Flasher Archive
[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]
Subject: | Re: FLASH: onClipEvent(data) |
From: | Helen Triolo |
Date: | Mon, 18 Sep 2000 15:43:50 +0100 |
Gary,
Three cheers for you for showing that onClipEvent(data) really can work!
So I think my problem is that I want to do the LoadVariables from a
button inside the movieclip. The mc has all the vars (textfields) I
want to pass, and the button passes them when the textfields have been
filled out. But when I put that movieclip in a frame and use
onClipEvent(data) in the Object Actions for that movieclip, in the same
frame, it never executes.
Maybe onClipEvent(data) only gets fulfilled if the LoadVariables is done
in the onClipEvent(load) -- which would trigger Flash to start looking
for returned variables. But it seems that for things like email forms,
it really is necessary to have the action originate on a button
instead. Maybe onClipEvent(enterFrame) is the only way to do that? I
don't know yet. Anyway, I have a working sample of passing data from a
form in Flash 5 to a Perl script and receiving status variables back if
anyone is interested (Flash 5 Journal--url below, Sept 15 entry,
includes downloadable fla & perl). If there's a way to use
onClipEvent(data) instead of onClipEvent(enterFrame) for this example,
I'd love to know.
Regards,
Helen
---------------------------------------------------
Flash 5 Journal: http://i-technica.com/flash5
Flash Q&A archive: http://i-technica.com/flashlist
"DeJarnett, Gary" wrote:
>
> 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.
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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), DeJarnett, Gary
[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]