Flasher Archive

[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]


Subject: Re: FLASH: Loading music movie twice (again)
From: 2Nerotik
Date: Sun, 10 Oct 1999 21:11:28 +0100

The problem is that the second point is looking ONLY to see if Musicloaded=No
do this instead:

First frame of movie add: Set Variable: MusicLoaded=False

1st point for music
Set Variable MusicLoaded=True

2nd point for music

If (MusicLoaded=False)
Load Movie (music.swf,1)
Else
Go To and Play (Next Frame)
End If

At 06:24 PM 10/10/99 +0100, Michael Galvin wrote:
>I have my music in a seperate .swf file which I'm loading at the
>appropriate point, but now I've changed my movie file so that you can skip
>to 2 different points during the introduction (using labels, rather than
>seperate movies)
>
>So now I want to load the music at 2 different points, and if the timeline
>hits the first instance, it shouldn't load the music again at the second
>instance.
>
>In pseudo-code, I have
>
>set variable musicloaded=yes
>load movie music.swf
>
>at the first point. And
>
>if musicloaded="no"
> load movie music.swf
>endif
>
>at the second point. I've examined the variable, and it is being set to
>"yes" at the first instance, but it's still re-loading the music movie, so
>the music plays for a few seconds, stops, and starts all over again.
>
>Is there a better way of doing this, or what am I doing wrong?
>
>Michael
>

.oOo.
|| Thousands of years ago, cats were worshipped as gods.
|| Cats have never forgotten this.
||
|| Addicted 2 Swing ---> http://www.nisa.net/~2nerotik/
|| Fontaholic ? ---> http://www.fontsanon.com
|| HTML Writers Guild ---> http://www.hwg.org


flasher is generously supported by...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Streaming Media WEST '99 Conference & Exhibition
"The Worlds largest Internet Audio & Video Event"
December 7 - 9, San Jose Convention Center, California

Reserve your space today at http://www.streamingmedia.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe or change your list settings go to
http://www.chinwag.com/flasher or email helpatchinwag [dot] com


Replies
  FLASH: Loading music movie twice (again), Michael Galvin

[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]