Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Loaded swf loops all the time 1

Status
Not open for further replies.

Jennyucf

Instructor
Jun 22, 2001
215
US
Hi, there

The more I mess with flash, I more I feel actionscript is powerful and thus appears difficult for me..It sometimes frustrating, stuck in a simple problem...

I used loadmovie("myswf", "_root.mymc"); to load a swf to the flash. What I did is:
1. At the end of the frame in the swf file, insert stop();
2. Insert a blank mc in the main timeline
3. On the mc frame, write:
stop();
loadmovie("myswf", "_root.mymc");

Though I used so many "stops", the loaded swf still plays again and again, and not willing to play the next mc in the timeline...

I've been messing with it for more than two hours already...So again, thank you for your help!!!!!
 
Can you send me the file? Or is it in the briefcase? Regards,

oldman3.gif
 
Ah but there's no grinderMachine.fla in there. Guess you dont'have it, right? Or do you? Regards,

oldman3.gif
 
Hi, oldnewbie

Sorry about that...I just uploaded it...

Also, I've uploaded another file with the problem description and fla file, called "Moving Menu Problem". I totally understand that the forum is not just for me..and I can't take up your time like this...But I've tried this by myself for almost four hours, and I thought I could solve it...So please help if you have time..Many many thanks!!
 
I'm spreading my time over 3 other forums as well... So no problem.

But going for a walk... We old folks do have to exercise!

Will look into it when I return. But I can already stop your movie anyway, from the main movie! It looks like it holds 80 frames or so?

Later... Regards,

oldman3.gif
 
I can see you are an expert on Flash!! I wish I could do that too..Yes, it has 80 frames..
Looking forward to it..

Thanks!!
 
Seems you got your files mixed up!
The first grinderMachine.swf you made available didn't seem to have a stop action on it's last frame. The new one does, and it does stop and not loop anymore.

Wanna start a new thread for your other problem? Regards,

oldman3.gif
 
Oh..see I really need to be organized! :) Yes, I tried that again, and it did stop..But the next scene on the timeline won't play then??

Thankful
Jenny
 
Well it's not a next scene, it's the next frame that you really mean. The only reason the main timeline moves from frame 1 to frame 2, in the first place, is because of your action on the last frame of your faked voice clip...

_root.play(mc);

Which by the way is bad syntax. The only thing this does is play the main timeline. There's no parameter in the play(); action's correct syntax. So Flash ignores your "mc" in there and does the same thing it would do if this action was correctly written as:

_root.play();

If you add the same action, along with your stop(); action at the end of your grinder .swf, then the main movie would move to the next frame, and play your last mc. Regards,

oldman3.gif
 
Hi, oldnewbie

Thanks you!! See I didn't even know (mc) would be a bad syntax...(Ashamed!!)

Then I tried to change the name of that movie clip...You mentioned that
"If you add the same action, along with your stop(); action at the end of your grinder .swf", do you mean that I need to add
stop();
and
_root.play(name of mc for next frame);??

I tried that and it still stopped at the last frame of the grinder..Do I need to unload the movie, or do something else?

Very much appreciated!!!

 
Hi, Oldnewbie

I added
stop();
_root.play();

on the last frame of "grinder" fla...and it still won't play the next frame...I think it is mad at me...:)

I am thinking that if "_root.play();" directs to the main timeline of "grinder", instead of the movie which loaded "grinder.swf"..would that be the reason?

Thanks for being so helpful even working at weekend.....

Jenny
 
This is not work for me! And I'll be around for quite a while yet tonight and through the weekend.

The answer is no! Unless you've now loaded your grinder movie on another level rather than in the container clip.

I haven't really tested this, let me check it out... Will be back in a minute...
Regards,

oldman3.gif
 
Yep! You were right! I got mixed up this time!
_root.play(); would only re-start the grinder movie itself. Use _parent.play(); instead and that will.

If the grinder movie had been loaded on another level, then again _root.play() would of re-started the grinder movie itself, but _level0.play() would have move the main timeline.

Regards,

oldman3.gif
 
Yeah!!!!!!!!!!!!! I am so pleased that it worked this time!! I don't know how to thank you...It's like you are in the same project with me..:)

Guess you work a lot of hours too....

Have a great weekend! (I hope I don't have to bother you at weekend...Keep my finger crossed..)

Jenny
 
I'll be around... Don't worry!

Are you on the West coast? Regards,

oldman3.gif
 
So we're in the same time zone then!

Only difference is probably that here, there's 3 feet of snow on the ground! Regards,

oldman3.gif
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top