Things you never thought you'd see

Subscribe to Things you never thought you'd see 19 posts

avatar for Draco18s Draco18s 6875 posts
Flag Post

AS3, MainTimeline:Frame 1:

include "Main.as"

 
avatar for alecz127 alecz127 817 posts
Flag Post
Originally posted by Draco18s:

AS3, MainTimeline:Frame 1:

include "Main.as"

I don’t get it. o.o

 
avatar for Draco18s Draco18s 6875 posts
Flag Post
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.

 
avatar for qwerber qwerber 4756 posts
Flag Post

so Main.as isn’t a class.

 
avatar for NineFiveThree NineFiveThree 1378 posts
Flag Post

what’s so special about include?

 
avatar for UnknownGuardian UnknownGuardian 8201 posts
Flag Post

Lets you not care about having to find the frame with whatever code on it, you can now look in external .as files.

 
avatar for Draco18s Draco18s 6875 posts
Flag Post
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.
 
avatar for BigJM BigJM 468 posts
Flag Post

Why did you never think you’d see that?

 
avatar for starfiregold starfiregold 364 posts
Flag Post

I’m surprised your client didn’t have you sign an NDA.

 
avatar for Draco18s Draco18s 6875 posts
Flag Post
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.

 
avatar for qwerber qwerber 4756 posts
Flag Post

http://pipwerks.com/

 
avatar for Draco18s Draco18s 6875 posts
Flag Post
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.

 
avatar for qwerber qwerber 4756 posts
Flag Post

Makes me interested now :D

 
avatar for Draco18s Draco18s 6875 posts
Flag Post
Originally posted by qwerber:

Makes me interested now :D

What, never heard of eLearning software and Learning Managment Systems and SCORM?

Fun stuff.

 
avatar for truefire truefire 3014 posts
Flag Post

Like this?

 
avatar for Draco18s Draco18s 6875 posts
Flag Post

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).

 
avatar for BigJM BigJM 468 posts
Flag Post
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.
 
avatar for Draco18s Draco18s 6875 posts
Flag Post
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?

 
avatar for BigJM BigJM 468 posts
Flag Post

Good question.