Flasher Archive

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


Subject: FLASH: duplicate MC tell target problem
From: webweaver
Date: Tue, 13 Jun 2000 13:23:04 +0100

I've got an issue & have exausted my resources. Please..please help me..

On the main timeline there are 2 movie clip symbols: "a" and "subs" a- is the mc to be duplicated subs - contains a routine named generate which does the duplicating. Everything works fine(ie: clips are duplicated, new instance properties are set, &variables are passed to the new MC's) except the tell target from within subs/generate except when I attempt to Tell Target the newly duplicated MC and send it variables using the "lastOut" variable ( which works fine in the duplicate and set property(xpos) actions 2 lines above the tell target).

It appears as if the variable "lastOut" loses scope within that Tell Target action within the subs/generate function. I have pasted the level0 frame actions, the subs/generate text, the object report, and the variable report, below..

Any help would be appriciated.

TIA, big time.. :)

Tony Gunn


Frame1
Set Variable: "obCurr" = 0
Set Variable: "obCount" = 3
Set Variable: "lastOut" = 1

Frame2

Loop While (obCurr<obCount-1)
Call ("/subs:generate")
Set Variable: "obCurr" = obCurr+1
Set Variable: "lastOut" = lastOut+1
End Loop


-------------subs/generate-----------------------------
Duplicate Movie Clip (which, "p"& lastOut, lastOut)
Set Property ("/p" & lastOut, X Position) = 150 * lastOut
Begin Tell Target ("/p"& lastOut)
Trace (lastOut) // this trace box is empty as if lastOut did not exist
Set Variable: "itname" = "/p"&lastOut
Set Variable: "direction" = "p" & lastOut & "dir"

End Tell Target





----------Variable Report----------
Layer #0:
Variable _level0:obCount = "3"
Variable _level0:lastOut = "3"
Variable _level0:obCurr = "2"

Movie Clip: Target=""
Variable _level0/p1:itname = "/p" // this should be /p1
Variable _level0/p1:direction= "pdir" // p1dir

Movie Clip: Target=""
Variable _level0/p2:itname = "/p" // should be /p2
Variable _level0/p2:direction= "pdir" // p2dir


---------Object Report-----------
Layer #0: Frame=6
Shape:

Movie Clip: Frame=1 Target="_level0/a" Label="r"
Shape:
Button:
Edit Text: Variable="itname" Text=""
Edit Text: Variable="direction" Text=""

Movie Clip: Frame=1 Target="_level0/subs"

Movie Clip: Frame=1 Target="_level0/p1" Label="r"
Shape:
Button:
Edit Text: Variable="itname" Text="/p"
Edit Text: Variable="direction" Text="pdir"
Edit Text: Variable="lastOut" Text=""

Movie Clip: Frame=1 Target="_level0/p2" Label="r"
Shape:
Button:
Edit Text: Variable="itname" Text="/p"


flasher is generously supported by...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
flashforward2000 and the Flash(tm) Film Festival
July 24-26, 2000, NEW YORK CITY, Hammerstein Ballroom
www.flashforward2000.com
Produced by United Digital Artists and lynda.com
Sponsored by Macromedia, Adobe Systems, Fusion, Inc, AtomFilms,
shockwave.com and Electric Rain.
1.877.4.FLASH.4 or (1.805.640.6679 outside the US and Canada)
Register before June 30 and save $200!!-- www.flashforward2000.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe or change your list settings go to
http://www.chinwag.com/flasher or email helpatchinwag [dot] com


Replies
  Re: FLASH: duplicate MC tell target prob, Helen Triolo

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