Flasher Archive

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


Subject: Re: FLASH: Have a heart guys. Some help please.
From: Antony Buonomo
Date: Fri, 5 May 2000 18:21:22 +0100

Nathan

You're right on all counts. Sorry for my impatience and the messy way
I've asked for help. It has led to a misunderstanding of what I am after.

Please take a look at:

http://www.vertigo.co.uk/flash

(The .fla is http://www.vertigo.co.uk/flash/index.zip)

I have achieved the easy bit, the 100% logo appearing every time the
user clicks the mouse. What I would like to do now is to have one of
six logos appearing on the mouse click. The logo to be randomly chosen.
Also, each instance of the logo to be randomly scaled, say between 10%
and 300%. As if this wasn't enough, I would like a sound to play on
each click.

Thanks for your help, I greatly appreciate it.

Antony




flasher-digest wrote:
>

> Hi Antony,
>
> Just so you know, sometimes it may take quite a while to get responses on
> this list - some messages more so than others... To best help you out
> with your question here's some sample code that hopefully can give you a
> start...
>
> The code is split up into sections to choose your mc and reposition it,
> then to rescale it, and then a method that you could use to start your
> sound. What you will need to do also is to "disable" a mc that has been
> repositioned and rescaled after so that your code doesn't try to run on
> that specific mc again. This takes into assumption that a random mc and a
> target range area are both square - if you have various sized mc's and a
> non-square range area (which is probably the case) then you'll need to
> rework the code a little to determine the maxscale/scale for various
> scenerios. This is also assuming that you will allow your scale to go
> from 1 all the way to the maximum scale allowed...
>
> On (Release)
> Comment: code to make the mc appear at the mouse position...
> Comment: -------------------------------------------------------
> Set Variable: "rNum" = random(6) + 1
> Begin Tell Target ("/mcName"&rNum)
> Go to and Play ("your label")
> End Tell Target
> Set Property ("/mcName"&rNum, X Position) = rangeMc:_x
> Set Property ("/mcName"&rNum, Y Position) = rangeMc:_y
> Comment: -------------------------------------------------------
> Set Variable: "mcWidth" = getProperty("/mcName"&rNum,_width)
> Set Variable: "mcHeight" = getProperty("/mcName"&rNum,_height)
> Set Variable: "rangeWidth" = rangeMc:_width
> Set Variable: "rangeHeight" = rangeMc:_height
> Comment: code here to determine specific scale for shapes that are
> not square...
> Comment: or the following two lines if they are both square...
> Set Variable: "mcScaleXMax" = (rangeWidth / mcWidth) * 100
> Set Variable: "mcScaleYMax" = (rangeHeight / mcHeight) * 100
> Set Variable: "rScale" = random(mcScaleXMax) + 1
> Set Property ("/mcName"&rNum, X Scale) = rScale
> Set Property ("/mcName"&rNum, Y Scale) = rScale
> Comment: -------------------------------------------------------
> Begin Tell Target ("/your sound mc")
> Go to and Play ("frame that plays sound")
> End Tell Target
> End On
>
> Hope that helps...
>
> Nathan Dicken
> Fusionary Media
>

--
Vertigo Productions Ltd - "Don't Look Down"
Really Very Fine Web Design
http://www.vertigo.co.uk
infoatvertigo [dot] co [dot] uk

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


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