Welcome to Dream.In.Code
Getting Help is Easy!

Join 86,250 Programmers. There are 2,156 online right now! Ask your question and get quick answers from Dream.In.Code experts. Join the #1 programming help community on the internet! Registration is fast and FREE... Join Now!

Chat LIVE With a Expert
Powered by LivePerson.com

Register to Make This Box Go Away!

Using Frames with loaded swf

 
Reply to this topicStart new topic

Using Frames with loaded swf, I'm trying to use gotoAndStop with loaded swf files

wing_ayalamon
post 24 Apr, 2008 - 12:02 AM
Post #1


New D.I.C Head

*
Joined: 23 Apr, 2008
Posts: 1



Hello, as the title says, I'm having a little trouble with my swf files. They will load fine, but they won't let me call their Frames. My code as it stands (or the relevent code anyway)

CODE

var request:URLRequest = new Request(fileName);
var loader:Loader = new Loader();
loader.load(request);

addChild(loader);

loader.gotoAndStop(2);


I was thinking about using this where the addChild loader went:
CODE

var newClip:MovieClip = (loader as MovieClip);
addChild(newClip);


A few things of note: I do have all the imports needed, the var fileName is a string with the location and name of the file to call, and I have no idea whether this is even possible...

Any help would be greatly appreciated...
User is offlineProfile CardPM
Go to the top of the page
+Quote Post


Fast ReplyReply to this topicStart new topic
Time is now: 5/16/08 08:56AM

Live Help!

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

Bye Bye Ads

Free DIC T-Shirt

T-Shirt Example

Related Sites

Monthly Drawing

Thumb Drive

Partners

Top Contributors

Top 10 Kudos This Month