Flasher Archive
[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]
Subject: | Re: FLASH: onClipEvent(data) |
From: | DeJarnett, Gary |
Date: | Sat, 16 Sep 2000 04:44:34 +0100 |
Randy said:
>Yeah, that's how I would have done it, but that Data argument is pretty
cool...if
>only it would work! If you figure it out please let us know.
>Helen Triolo wrote:
>> Thanks Randy. Yes, I have the handler attached to the instance -- and I
>> agree; it took a bit of getting used to, but Flash won't actually let
>> you put an onClipEvent in the mc itself (error on publish). For now
>> I've given up on getting the data method to work and am using instead my
>> Flash 5 favorite, onClipEvent(enterFrame), like so
Helen & Randy,
onClipEvent(data) has been working fine for me so far. Here's what I did:
I have an mc instance on my main timeline called "v" (where I hold my
variables, I don't like to type). The object actions within this instance
are as follows:
----------------------------------------------------------------------------
----------
onClipEvent (load) {
loadVariables ("getEvents.asp", "_root.v", "POST");
}
onClipEvent (data) {
duplicateMovieClip ("_root.iBox", "iBox"+_root.v.clipNo,
_root.v.clipNo);
trace ("FinishedLoading = " + _root.v.FinishedLoading);
}
----------------------------------------------------------------------------
----------
Just ignore the duplicateMovieClip statement. That is just used to get the
ball rolling for my application. The FinishedLoading variable is just
something passed from my ASP page (old habit) indicating that all the other
variables have been loaded. So far, onClipEvent(data) has always only
kicked off 1 time per run, and only when the variables have been loaded.
Let me know if I can help,
Gary DeJarnett ( a3gddtechmail [dot] admin [dot] ttu [dot] edu )
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
NudeGuru.com is proud to sponsor the Flasher list
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
IT'S THE ART OF MONEY, HONEY!
Tips and Advice from some of the most popular Flash
artists + industry power-brokers on how to hold onto
your rights, negotiate contracts and get full value
for your work.http://www.nudeguru.com from Franke James
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe or change your list settings go to
http://www.chinwag.com/flasher or email helpchinwag [dot] com
Replies
Re: FLASH: onClipEvent(data), Helen Triolo
[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]