Flasher Archive

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


Subject: Re: FLASH: Bloody FRUSTRATING!!!!!
From: Wil Roboly
Date: Fri, 14 Apr 2000 17:24:08 +0100

Hi Pat

This kind of problem happens all the time when doing variable with Flash
because it's a tricky little beast. What you need to remember is that
variables exist on different levels and as such must be properly called. In
this case, you might consider this:

On (Release)
Set Variable: "/:image" = random(4)+1
Begin Tell Target ("/rt_image")
Go to and Stop (/:image)
End Tell Target
End On

Or, you can even force it to:

On (Release)
Set Variable: "_level0/:image" = random(4)+1
Begin Tell Target ("/rt_image")
Go to and Stop (_level0/:image)
End Tell Target
End On

Have fun and goodluck!

Wilco

> From: Patrick FItzgerald <patrickfatbestweb [dot] net>
> Reply-To: flasheratchinwag [dot] com
> Date: Fri, 14 Apr 2000 12:03:37 -0400
> To: flasheratchinwag [dot] com
> Subject: FLASH: Bloody FRUSTRATING!!!!!
>
> OK. I don't think an earlier posting of my problem made it through..... so
> here it is again:
>
> I have an MC, named "rt_image" with 4 frames. Each frame contains an image.
> I have a simple button that does 2 things:
> 1- generates a random number between 1 and 4 and stores it in the variable
> "image".
> 2- tells "rt_image" to go to the frame number contained in the variable
> "image".
>
> Only, IT DOESN'T WORK!!!!!!
>
> Here's the code for the button:
>
> On (Release)
> Set Variable: "image"=random(4)+1
> Trace ("image="&image)
> Begin Tell Target ("/rt_image")
> Go to and Stop (image)
> End Tell Target
> End On
>
> The only code in the MC "rt_image" is a "Stop" command in each image frame.
>
> Could someone PLEASE tell me WHAT I AM DOING WRONG!?!?!?!?!?!?!?
> This is NOT rocket science! It SHOULD work.
>
> Patrick
>
> PS- Sorry for the tone of this message.... am running on about 6 hours sleep
> for the week.
>
>
> flasher is generously supported by...
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> Get the last 100 messages from the flasher list NOW
> http://www.chinwag.com/flasher/last100.shtml
>
> Flash books http://www.chinwag.com/flasher/books.shtml
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> To unsubscribe or change your list settings go to
> http://www.chinwag.com/flasher or email helpatchinwag [dot] com
>


flasher is generously supported by...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Get the last 100 messages from the flasher list NOW
http://www.chinwag.com/flasher/last100.shtml

Flash books http://www.chinwag.com/flasher/books.shtml
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe or change your list settings go to
http://www.chinwag.com/flasher or email helpatchinwag [dot] com


Replies
  FLASH: Bloody FRUSTRATING!!!!!, Patrick FItzgerald

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