Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

Graphics Forum


You are currently viewing our Graphics Forum as a guest. Please register to participate.
Login



Reply
Flash and actionscript question - one loop only
Old 12-06-2008, 11:49 AM Flash and actionscript question - one loop only
Super Talker

Posts: 133
Name: Jess Weiss
Location: Massachusetts
Trades: 0
Hi all -

I am working with Flash and actionscript, and I know that there must be a way to make this happen, but I'm a bit stuck.

Here is the work in progress so far: http://www.jessweiss.com/pt/index.html

I am talking about the movie called books1, at the top of the page, with the steaming coffee cup.

This movie is several layers.

What I want to do is add an additional movie clip, which will only play one time, while the rest of the movie keeps repeating. All I have been able to accomplish is getting it to play once, but it resets and replays each time the larger, existing movie plays.

I've tried lots of different code, but none if it seems to be working.

I keep reading something about inserting actionscript into the movie clip using something along this line:

for (var i:Number=0; i<1; i++)
{; stop()};

or along this line:

if (count<1 {count++; gotoandPlay(1);}
else {stop();}

But, it doesn't keep it from resetting when the larger movie resets - it just keeps it at stop for that one play of the larger movie.

So, what am I missing here? TIA!
__________________
"If you worried about falling off the bike, you'd never get on it" - Lance Armstrong

"The problem with people who have no vices is that generally you can be pretty sure they're going to have some pretty annoying virtues." - Elizabeth Taylor
lynnema is offline
Reply With Quote
View Public Profile Visit lynnema's homepage!
 
 
Register now for full access!
Old 12-11-2008, 10:01 PM Re: Flash and actionscript question - one loop only
Super Talker

Posts: 133
Name: Jess Weiss
Location: Massachusetts
Trades: 0
If it's any help - here is the url -

http://www.jessweiss.com/pt/index.html

As you can see, the "ink splot" is resetting every time the movie resets - the movie length is three steam trails - roughly. I'm happy to send the .fla if anyone thinks it will help.

Anyone, anyone?
__________________
"If you worried about falling off the bike, you'd never get on it" - Lance Armstrong

"The problem with people who have no vices is that generally you can be pretty sure they're going to have some pretty annoying virtues." - Elizabeth Taylor
lynnema is offline
Reply With Quote
View Public Profile Visit lynnema's homepage!
 
Old 12-12-2008, 10:57 AM Re: Flash and actionscript question - one loop only
LadynRed's Avatar
Defies a Status

Posts: 10,016
Location: Tennessee
Trades: 0
I'll take a look at it if you want, definitely have to see the FLA file. PM me and I can give you an email address to send it to.

Do you have a stop action at the end of the ink blot movie clip ?

I'm not an AS guru by any means, and I know this is OLD AS, but this is what I used to use.

In the ending frame you add this AS:

Quote:
if (loopCounter < 3) {
this.gotoAndPlay(1);
}
else{
this.stop();
}
In the beginning frame, you set up the loop counter:
Quote:
loopCounter++;
As I said, this is Actionscript 1.0, but it might help you figure out what you can do with current AS.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 12-12-2008, 04:24 PM Re: Flash and actionscript question - one loop only
chrishirst's Avatar
Missing! presumed drunk.

Posts: 41,526
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
I haven't programmed flash in a long while, but I would suggest that you need to extend the timeline to have three more "steam trails" while keeping the ink blot as a static keyframe.
Then at the end of the timeline loop back to the static inkblot keyframe rather than to frame 0.
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Reply     « Reply to Flash and actionscript question - one loop only
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.66454 seconds with 12 queries