Flasher Archive

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


Subject: Re: FLASH: F5 combining multiple external variables (bug???)
From: Muzak
Date: Fri, 22 Dec 2000 03:27:16 GMT

Before you can attach/use the onClipEvent() make surethe MC you want to attach it to is selected on the stage (workarea). To make
100% sure it is selected, close the actionscript panel, right click on the MC and choose 'actions'. The actions panel will popup and
it should read 'Object actions' in it's titlebar, instead of Frame actions.

onClipEvent (data)
The action is initiated when data is received in a loadVariables or
loadMovie action. When specified with a loadVariables action, the data
event occurs only once, when the last variable is loaded. When specified with
a loadMovie action, the data event occurs repeatedly, as each section of data
is retrieved.

This means, if you use (data) with loading a textfile, Flash won't execute the actions specified, until it has received all the
variables from the textfile. So, if you attach this action to a MC it will work.

// load the variables in the MC
onClipEvent (load) {
loadVariables ("text01.txt", "");
}
// as soon as variables are loaded
// display matter1 and matter2
// in a textfield 'matters'
onClipEvent (data) {
matters = matter1 + newline + matter2;
}

sample:
http://muzakdeezign.com/flashMM/matters.html
http://muzakdeezign.com/flashMM/matters.zip

hth,
Muzak
ps: mMc was a typo, it's late here too :-)

----- Original Message -----
From: <jmerrillatelftech [dot] com>
To: <flasheratchinwag [dot] com>
Sent: Friday, December 22, 2000 12:58 AM
Subject: Re: FLASH: F5 combining multiple external variables (bug???)


>
> Thanks. Yeah, figured that out after I sent it... its late here....
>
> I would like to now figure out how to use
> onClipEvent (data) {
> }
>
> but not sure how... the actionscript manual is vague. I'm not sure why
> when attaching that script to the MC instance I get a "can only be used
> with movie clips" error...
>
> Jason Merrill



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
flasher is generously supported by...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
flashforward2000 and the Flash(tm) Film Festival
November 27-29, 2000, LONDON, National Film Theatre

Produced by United Digital Artists and lynda.com
-Sponsored by Macromedia, Adobe Systems and Apple Computer
-http://www.flashforward2000.com or UK tel. +44 (0870) 751 1526
Register before November 10 and save �200
http:// 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: F5 combining multiple externa, jmerrill

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