Forum Moderators: not2easy

Message Too Old, No Replies

Problems with Flash

         

zxk105

1:53 pm on Dec 9, 2004 (gmt 0)

10+ Year Member



What I wanted to do is randomly play my movie clips in my Flash movie. I posted my problem in the Flash forum and got help from 'helpful'. Thanks 'helpful'!

Now the problem I encountered is that after a while my movie clips will stop playing. And I have no idea why. Here are two links so you know what I mean.

This one [snowman.ca] is the example that 'helpful' gave me. The movie clips just keep playing randomly.

This one [snowman.ca] is my flash movie (8 movie clips). If you let it play for 10, 15, or 20 mins the letters will stop falling. You will only see the snow and the logo.....

The flash files (.fla & .swf) are also uploaded if you want to save them and look at them. Thanks to anyone who tries to help me figure this one out!

Z

maxxtraxx

6:08 pm on Dec 13, 2004 (gmt 0)

10+ Year Member



10 mins is a pretty long time in web terms, its an eternity when it comes to Flash! so i'm not sure why this is a problem...

however, this is an undesired effect for you, so i'll give it a shot. are your letters contained within their own movie clip? if not, definitely place them in their own MC, this will run outside of the main timeline.

if so, look for any stop() actions that may be present on the MC timeline. look for any stated number of iterations for looping of your Flash in the HTML.

hope this helps... =]

zxk105

6:41 pm on Dec 13, 2004 (gmt 0)

10+ Year Member



Well the reason why I'm looking at fixing this is b/c if the end user goes to the site [snowman.ca] and lets the web page and flash just while he/she is doing something else, the flash stops playing and it just doesn't look professional. That's pretty much it. So if I can figure it out I'd like to fix it. I've been thinking or simply including a meta 'refresh' tag so it gets refreshed every 5 mins or so b/c that fixes the problem.

Now some answers for you:
- The letters are contained within their own movie
- There are stop() actions but they are a part of the movie. And the movie is set to 'loop' so it should just keep looping then

I received help regarding making the MCs random. Both flash files can be accessed via links above. You download them and look at them that way if you want. Thanks...

maxxtraxx

7:00 pm on Dec 13, 2004 (gmt 0)

10+ Year Member



ok, just took a look at your .fla and you have a nice incremental loop for all of your titles.

since you are controlling it w/ ActionScript you should be able to count exactly when the titles quit. did you write the AS? if not, try to contact the scripter to see if you can insert a trace() and count the iterations your MC goes thru before it completely stops. (my actionscript chops are fairly rusty so it would take me awhile to find where in the code it breaks out of the title control loop.)

zxk105

3:07 pm on Dec 14, 2004 (gmt 0)

10+ Year Member



So I just did some testing with adding some actionscript so I know exactly when the MCs stop. The link to the three files is here [snowman.ca]. Here are the results of what i found:

Playing .swf file locally with the flash player:
49 iterations / stopped at 'title'4

Running SnowmanHeader1.html locally:
41 iterations / stopped at 'title2'

Running SnowmanHeader1.html in Netscape using the link above:
25 iterations / stopped at 'title1'

Running SnowmanHeader1.html in IE using the link above:
41 iterations / stopped at 'title1'

Since there are 8 MCs it always stops when playing the first movie after randomizing the array:
8*6 + 1
8*5 + 1
8*4 + 1
8*5 + 1

I'm gonna look more into it in a little while but if you come up with an idea please share it :)