Flasher Archive

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


Subject: RE: [flasher] Actionscript geniuses, please help....
From: Tom Verhaegen
Date: Mon, 22 Jan 2001 13:02:50 -0000

Hi Pascal,
took some time and this is the result, more questions feel free to ask.

Tom

On (Press)
-- to capture the mousedownevent

Set Variable: "numChildren" = ..:numChildren
-- here you are setting the variable "numChildren to the value of the
Variable "numChildren which has been created in a movie one level below
("..:" means "one level lower, in the new syntax this is equal to "_parent")

Set Variable: "counter" = 1
-- setting the value of counter to 1

Loop While (counter <= numChildren)
-- here a loop is started which goes from counter (which you just setted to
1) to numChildren (probable a numeric value)

Set Variable: "arrayElement" = "..:child_" & counter
-- here you create a temporary variable "arayElement" and you give is the
string value "..:child_" + counter (this should be "..:child_1" in the first
passage of the loop)

Set Variable: "control" = Eval (arrayElement)
-- here you are setting the var "Control" to the evaluated value of
"..:child_1" // probably there are a number of variable in the movie one
level lower whith the names "child_1 , child_2 , child_3 ...."

Begin Tell Target (control)
Go to and Stop (1)
End Tell Target
-- Tell Target calls a movie (in this case the movie whith the name which is
equal to the value of "control" ) and tells it to Go to the First frame and
stop

Set Variable: "counter" = counter + 1
-- the variable "counter" plus "1" // here the loop starts again untill the
value of counter is equal to the value of numChildren

End Loop
-- loop is ended

Set Variable: "..:selected" = _target
-- the variable "..:selected" is setted to the value of the path from the
root of the flash movie to the movie in which the "_target" function is
called. // you can embed several movie in one flash movie, you can also
instanciate several movie, so a flash movie can have several layers, to nowe
the complete position of a certain embedded or instanciated movie you use
the "_target"-function

Go to and Stop (2)
-- go to Frame 2 and stop

End On
-- end of mouseEvent

Tom Verhaegen
-------------------------
GUI engineer
Carels Innovative Software
Belgium


-----Original Message-----
From: Intensepixataol [dot] com [Intensepixataol [dot] com (mailto:Intensepixataol [dot] com)]
Sent: Saturday, January 20, 2001 12:30 AM
To: flasher from chinwag
Subject: [flasher] Actionscript geniuses, please help....


I have this script which I need to use but I would like (if possible) for
someone to tell me(ASAP-tonight if possible) exactly what each syntax means,
especially the "numChildren",the periods,etc..
here it is below,

On (Press)
Set Variable: "numChildren" = ..:numChildren
Set Variable: "counter" = 1
Loop While (counter <= numChildren)
Set Variable: "arrayElement" = "..:child_" & counter
Set Variable: "control" = Eval (arrayElement)
Begin Tell Target (control)
Go to and Stop (1)
End Tell Target
Set Variable: "counter" = counter + 1
End Loop
Set Variable: "..:selected" = _target
Go to and Stop (2)
End On

Thank you for your time, I really appreciate it,
Pascal


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
The Chinwag site carries a wealth of Flash resources.
Find useful links, suggested reading and archives at:

** http://www.chinwag.com/flasher **
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
You are subscribed to flasher as: tom [dot] verhaegenatcarels [dot] com
To unsubscribe, email leave-flasher-479259Patlists [dot] chinwag [dot] com




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