Flasher Archive
[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]
Subject: | Re: FLASH: onClipEvent(data) |
From: | Helen Triolo |
Date: | Fri, 15 Sep 2000 15:58:45 +0100 |
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
onClipEvent(load) {
_root.rstatus = ""; // not really necessary but doesn't hurt
}
onClipEvent(enterFrame) {
if (_root.rstatus ne "") {
_root.gotoAndStop("display");
}
}
It works just fine (and I'm so glad to get rid of those waiting loops!)
but I'd still like to figure out the data argument one day...
thanks again,
Helen
---------------------------------------------------
Flash 5 Journal: http://i-technica.com/flash5
Flash Q&A archive: http://i-technica.com/flashlist
Randy Kato wrote:
>
> Hi Helen,
>
> Are you putting your script into a frame withing the MC? I'm pretty sure the
> onClipEvent() handler needs to be attached to the Instance of the MC (this
> was one of the trickiest things to figure out in the F4 to F5 transition),
> rather than being in the MC itself. Think button actions -- in the instance,
> not the timeline.
>
> And I think you're right about not needing a loop (shouldn't need those any
> more with F5), though I haven't played with onClipEvent(data) yet.
>
> HTH,
> Randy
>
> Helen Triolo wrote:
>
> > Has anyone successfully used onClipEvent(data)? I have a movieclip that
> > does a LoadVariables and returns a variable to the main timeline from a
> > perl script. If I put a standard 2-frame wait loop in, it works fine --
> > the variable shows up in the Flash movie. But if I replace the loop
> > with an instance of the movieclip that has
> >
> > onClipEvent(data) {
> > _root.gotoAndStop("display");
> > }
> >
> > as the Object Action on one frame (labelled loop), and
> > gotoAndPlay("loop") in the next frame, I never get past the "loop"
> > frame. Does the variable have to be returned to the movieclip instead
> > of the main timeline? (I tried that and couldn't get it to work
> > either). I don't think I need to have a loop at all, but how do I get
> > past the onClipEvent(data) frame? Any examples of this on the net
> > anywhere? (I tried macromedia and flashkit -- no luck)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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), Randy Kato
Replies
FLASH: onClipEvent(data), Helen Triolo
Re: FLASH: onClipEvent(data), Randy Kato
[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]