-
Alternative to URL request Method
Ok i feel really dumb asking this question because it seems like basic actionscript3, i;ve been searching stuff (maybe over complicating it a bit) but i can't figure it out.
Oh kay here it goes, i want to load this swf from the library in the flash movie not from the URL but i can't figure out how to do it via linkage and such....any help is much appreciated. hopefully you guys actually give me answers unlike actionscript.org >.>
Please and thank you
Code:
var skrolDefaultPath:URLRequest = new URLRequest("skrol_basic.swf");
var skrolLoad3:Loader = new Loader();
var mySkrol3:MovieClip;
var myContent3:skrolContent3 = new skrolContent3();
skrolLoad3.load(skrolDefaultPath);
-
Import your swf into a MC...in the library go into that MC's properties and check 'export for actionscript'. You'll see the 'Class:' field automatically fill in, whatever is in there is the class name that you'll need (let say Skrol).
In your code now, you can make a new copy of that MC just like any other object:
PHP Code:
var mySkrol3:MovieClip = new Skrol();
addChild(mySkrol3);
-
I think your gonna have to have my children now....
Thanks alot man, so far on three forums nobody has answered me and it seemed simple. Again thanks
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|