Flasher Archive
[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]
| Subject: | FLASH: null is >, <, =, or ? to zero |
| From: | Samir Thaker |
| Date: | Tue, 25 Jul 2000 21:56:41 +0100 |
i've got 7 movie clips moving back and forth across my stage (using a
programmatic movement subroutine that gets 'called' every so often). i've
setup another movie clip that basically tells all these clip to change
direction once the furthest left clip (or furthest right one) hits the edge
of the stage. i did this with the following actionscript:
Set Variable: "q" = "1"
Loop While (q < 8)
If (getproperty ( "/a" & q , _x ) <= 50)
Set Variable: "/actions:dx" = /actions:dx * -1
Set Variable: "q" = q + 1
Trace ("left edge hit")
Else If (getproperty ( "/a" & q , _x ) >= 500)
Set Variable: "/actions:dx" = /actions:dx * -1
Set Variable: "q" = q + 1
Trace ("right edge hit")
End If
Set Variable: "q" = q + 1
End Loop
now, a bunch of that might seem like nonsense, so just ignore it...the key
parts are the ones detecting where clips /a1, /a2, /a3, etc are. the problem
is, at one point, some of these clips disappear (when they are clicked on).
how does flash handle determining whether clip /a3 's x position is >= 50 if
it has been unloaded from the stage? does it simply ignore that test?
everything moves fine until i start removing clips, at which point wierd
things start happening.
-Samir Thaker
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 help
Replies
Re: FLASH: null is >, <, =, or ? to zero, Wayne Pennell \( Web Mast
[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]

