Loading SWFs and Images in Flash using ActionScript 3
Uploader Comments (richmediainstitute)
All Comments (8)
-
@mel2000 This lesson is complete. If nothing happened when you clicked play, then your code is most likely not hooked up to your button correctly, with the event listener. Perhaps its an instance name issue (i.e., the instance name of your button)?
-
@SinginPuffle loader.unload ();
-
Is there another part to this tutorial that's missing? When I loaded your code into the first frame of a newly created ActionScript layer, nothing happened when I pressed the Play button.
-
What if you wanted to Unload the swf? :\
-
wtf is this "AddChild" nonsense? why dont they call it "AddSusan" or AddFarmBell" wtf is wrong with adobe... AS3 sucks ass.
-
How would you configure a button so that when clicked it opens an .swf file in the UILoader?
-
Ah awesome. Thanks I'll look for it!
It's called addChild, because you are adding a child display object to a parent display object. The 'parent' has been called 'parent' for years -- now we are calling the child, 'child'. The reason we don't call it 'addSusan' is because that would make no sense.
richmediainstitute 2 years ago
same code to load SWFs as to load bitmaps
richmediainstitute 2 years ago
This would have been an excellent tutorial if you could read the code :P
madturki 3 years ago 2
You can view the high-res version of this video, and download the code, on our website. I can't post the direct URL in comments because youtube doesn't allow it.
richmediainstitute 3 years ago