Draco18s
6875 posts
|
AS3, MainTimeline:Frame 1:
include "Main.as"
|
|
|
alecz127
817 posts
|
Originally posted by Draco18s:
AS3, MainTimeline:Frame 1:
include "Main.as"
I don’t get it. o.o
|
|
|
Draco18s
6875 posts
|
Originally posted by alecz127:
Originally posted by Draco18s:
AS3, MainTimeline:Frame 1:
include "Main.as"
I don’t get it. o.o
That line makes an external AS file timeline code. Main.as in this case is not a class but code that effectively lives on the timeline, except that it doesn’t.
I’m having to build a module for a learning system, and modules 1-5 are done and my company is being hired to code module 6. The container swf that holds the content has that line in its timeline.
|
|
|
qwerber
4756 posts
|
so Main.as isn’t a class.
|
|
|
NineFiveThree
1378 posts
|
what’s so special about include?
|
|
|
UnknownGuardian
8201 posts
|
Lets you not care about having to find the frame with whatever code on it, you can now look in external .as files.
|
|
|
Draco18s
6875 posts
|
Originally posted by qwerber:
so Main.as isn’t a class.
Nope.
The first lines look like this:
//For Debugging ONLY
myText.visible=false;
//IMPORTS
import caurina.transitions.Tweener;
import pipwerks.SCORM;
var slideTabs:Boolean=true;//Set to false if you do NOT want tabs to slide in and out.
|
|
|
BigJM
468 posts
|
Why did you never think you’d see that?
|
|
|
starfiregold
364 posts
|
I’m surprised your client didn’t have you sign an NDA.
|
|
|
Draco18s
6875 posts
|
Originally posted by BigJM:
Why did you never think you’d see that?
I never thought I’d see someone who was aware that classes and external AS file exist use an external file to do timeline code.
Originally posted by starfiregold:
I’m surprised your client didn’t have you sign an NDA.
Please. The code I posted here is so generic and sanitized.
myText?
Tweener?
pipwerks.SCORM?
slideTabs?
None of that tells you who the client is or what the product is or what the project does.
Hell, this isn’t even the closest I’ve come to disclosing proprietary information on these forums.
|
|
|
qwerber
4756 posts
|
|
|
|
Draco18s
6875 posts
|
Originally posted by qwerber:
http://pipwerks.com/
We’re using that. As in it was downloaded off that website and included in the project. Like hell it’s proprietary info that it was implemented.
The simple fact that you were able to locate that website indicates that it is in fact public information.
|
|
|
qwerber
4756 posts
|
Makes me interested now :D
|
|
|
Draco18s
6875 posts
|
Originally posted by qwerber:
Makes me interested now :D
What, never heard of eLearning software and Learning Managment Systems and SCORM?
Fun stuff.
|
|
|
truefire
3014 posts
|
Like this?

|
|
|
Draco18s
6875 posts
|
Coincidentally, most of the last two weeks has been filed with Minecraft.
But no.
I meant that making things SCORM compliant is a bitch sometimes. One project in the works right now is making an iPad app communicate with the LMS…which requires a browser session to know who the user is.
It’s not on my plate though, and apparently the guy who is working on it knows what he’s doing and can make it work.
There’s also this API that’s being worked on (like early alpha stage).
|
|
|
BigJM
468 posts
|
Originally posted by Draco18s:
Originally posted by BigJM:
Why did you never think you’d see that?
I never thought I’d see someone who was aware that classes and external AS file exist use an external file to do timeline code. I bet if you wrote that code in a class, it would compile to something very similar.
|
|
|
Draco18s
6875 posts
|
Originally posted by BigJM: I bet if you wrote that code in a class, it would compile to something very similar.
Possible.
But here’s the thing. Why would you write a class for one thing, but make the main “class” a non-class?
|
|
|
BigJM
468 posts
|
|