Welcome to GraphicForumz.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Really easy really problem! Newbie in flash with simple

 
   Graphic Forums (Home) -> Newbie Corner RSS
Next:  Lost my CSS styles  
Author Message
cesarmejia

External


Since: Aug 05, 2007
Posts: 5



(Msg. 1) Posted: Sun Aug 05, 2007 4:56 am
Post subject: Really easy really problem! Newbie in flash with simple
Archived from groups: macromedia>flash (more info?)

Does anybody could help a newbie looking for the following: already load an
external .swf but need to get back to a specific frame at the main movie, the
one where I called the external from (the external got called inside the main
and the main stayed at level 0, while the other loads at level 1) I already
unloaded the movie but don't know how to the the button that unloads to also go
to and stop at frame 30 of the main! Thank you! Wink

 >> Stay informed about: Really easy really problem! Newbie in flash with simple 
Back to top
Login to vote
aniebel

External


Since: May 23, 2006
Posts: 16



(Msg. 2) Posted: Sun Aug 05, 2007 9:56 am
Post subject: Re: Really easy really problem! Newbie in flash with [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Not quite sure I understand what the specific question is but I'll give it a
go...

Don't worry about levels if you simply want to go back to a particular frame.
Put a "gotoAndStop(30);" inside the event handler for the button that unloads
the movie. In other words, find the part of your code that says "unloadMovie"
and place the "goto" code directly below it. So when that button is pressed, it
does 2 things.

 >> Stay informed about: Really easy really problem! Newbie in flash with simple 
Back to top
Login to vote
cesarmejia

External


Since: Aug 05, 2007
Posts: 5



(Msg. 3) Posted: Mon Aug 06, 2007 11:57 pm
Post subject: Re: Really easy really problem! Newbie in flash with [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

hm..nope let me refrase what I wanted to say....Ok, the button to unload the
movie is inside the external swf that the main movie is calling. After
clicking on the button I need to go to a specific frame on the main movie,
sooooooo.... what should I put inside my actions at the external movie to call
that particular frame after the frame has finished unloading? Thank you!
 >> Stay informed about: Really easy really problem! Newbie in flash with simple 
Back to top
Login to vote
clbeech

External


Since: Dec 07, 2006
Posts: 20



(Msg. 4) Posted: Mon Aug 06, 2007 11:57 pm
Post subject: Re: Really easy really problem! Newbie in flash with [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

from the loaded moveiClip call to: _level0.gotoAndStop(30);

BUT, once the movie is unloaded, the code is gone, so this can't happen
[i]after[/i] the movie is unloaded.

If you do want this to happen, use: movieClip.onUnload() = function() { ... }
within the main timeline.
 >> Stay informed about: Really easy really problem! Newbie in flash with simple 
Back to top
Login to vote
cesarmejia

External


Since: Aug 05, 2007
Posts: 5



(Msg. 5) Posted: Mon Aug 06, 2007 11:57 pm
Post subject: Re: Really easy really problem! Newbie in flash with [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

hm..what Am I doing wrong? already did that and flash throws me an error:

**Error** Scene=Scene 1, layer=Layer 4, frame=20:Line 3: Left side of
assignment operator must be variable or property.
this.unloadMovie() = function() { _level0.gotoAndStop(30); }

Total ActionScript Errors: 1 Reported Errors: 1
 >> Stay informed about: Really easy really problem! Newbie in flash with simple 
Back to top
Login to vote
clbeech

External


Since: Dec 07, 2006
Posts: 20



(Msg. 6) Posted: Tue Aug 07, 2007 9:56 am
Post subject: Re: Really easy really problem! Newbie in flash with [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

unloadMovie() - is a method, not an event handler and does not envoke a
function in this manner.

in the [b]main[/b] swf timeline call the name of the loaded clip and use the
[i]onUnload[/i] handler, like so: (I see I have a syntax error in the previous
post)

my_mc.onUnload = function() {gotoAndStop(30);}

if this mc was un-named when loading call to:

this.getInstanceAtDepth(1).onUnload = function() {gotoAndStop(30);}

Do this from the main timeline, not from the movie that's being removed.
 >> Stay informed about: Really easy really problem! Newbie in flash with simple 
Back to top
Login to vote
cesarmejia

External


Since: Aug 05, 2007
Posts: 5



(Msg. 7) Posted: Tue Aug 07, 2007 2:28 pm
Post subject: Re: Really easy really problem! Newbie in flash with [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Hm...I already put it the code everywhere I saw a place to put it! And no can
do, I'm giving you the code for the main (base.fla) and external file
(section_1.fla) and could you please take a look at it? I put the original one,
at frame 16 it does stop then with a button I call the external swf and inside
the external there's the button to unload but then I guess the movie stops at
frame 30, or is already there, so I need it to go back to frame 15 in order to
display the menu and background again! Thank you here are the url to the main
..fla! http://www.accsa.net/base.fla http://www.accsa.net/section_1.fla Thank
you!
 >> Stay informed about: Really easy really problem! Newbie in flash with simple 
Back to top
Login to vote
cesarmejia

External


Since: Aug 05, 2007
Posts: 5



(Msg. 8) Posted: Wed Aug 08, 2007 1:57 pm
Post subject: Re: Really easy really problem! Newbie in flash with [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Thank you so much! My email is cesarmejia1978.RemoveThis@hotmail.com Thank you!
 >> Stay informed about: Really easy really problem! Newbie in flash with simple 
Back to top
Login to vote
clbeech

External


Since: Dec 07, 2006
Posts: 20



(Msg. 9) Posted: Wed Aug 08, 2007 1:57 pm
Post subject: Re: Really easy really problem! Newbie in flash with [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

[b]cesarmejia[/b], I've had an opportunity to go over your file. PM me an email address, and I'll send it to you, with some instruction.
 >> Stay informed about: Really easy really problem! Newbie in flash with simple 
Back to top
Login to vote
clbeech

External


Since: Dec 07, 2006
Posts: 20



(Msg. 10) Posted: Wed Aug 08, 2007 1:57 pm
Post subject: Re: Really easy really problem! Newbie in flash with [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Back to top
Login to vote
Display posts from previous:   
   Graphic Forums (Home) -> Newbie Corner All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]