Flasher Archive

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


Subject: RE: [flasher] RE: checking to see if last variable has loaded
From: George Medve
Date: Thu, 15 Mar 2001 17:42:52 -0000



onClipEvent (enterFrame) This command automatically loops (create a
simple counter and trace the result, you will see), there is no need to tell
frames to loop. (Paul, you will notice that I mentioned that I tried that
already.)

I have used 'eq' because I am dealing with a string, I have tried "==" with
no luck...but this way I am telling Flash that this IS a string to compare.

Loading actions? It don't matter where I have them surely, button, keyframe
or on clip?


Cheers.

G.

-----Original Message-----
From: Paul Willoughby [paul_willoughbyatbeap [dot] co [dot] uk (mailto:paul_willoughbyatbeap [dot] co [dot] uk)]
Sent: 15 March 2001 11:56
To: flasher from chinwag
Subject: [flasher] RE: checking to see if last variable has loaded



You need to tell Flash to loop if the condition is not met. Also, you
probably want a normal equality operator as 'eq' is deprecated in Flash 5.
Assuming you've got a blank frame before where this clip appears, try
something like:

onClipEvent (enterFrame) {
if (_root.flash_db.information == "complete") {
_parent.gotoAndPlay("registration1");
} else {
_parent.gotoAndPlay(_currentFrame - 1);
}
}

I find it easier to put loading actions into frames on the main timeline, so
you could also just put this on frame 2 of your movie (again, assuming frame
1 is blank):

if (_root.flash_db.information == "complete") {
gotoAndPlay("registration1");
} else {
gotoAndPlay(_currentFrame - 1);
}

hth

paul


George Medve [george [dot] medveatwheel [dot] co [dot] uk (mailto:george [dot] medveatwheel [dot] co [dot] uk)] wrote:
> I tried placing this on to a movieclip in the scene:
>
> Variation 1)
> ============
> I created a variable called "information=complete", which is
> at the end of
> the variable list.
> (the variable is loaded into '_root.flash_db' moviclip)
>
> onClipEvent (enterFrame) {
> if (_root.flash_db.information eq "complete") {
> _parent.gotoAndPlay("registration1");
> }
> }
>
> Flash just seems to ignore this completely...I tried to place
> the same 'if'
> statement into a keyframe and have create a loop back to the
> frame and this
> does not help either.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
The Chinwag site carries a wealth of Flash resources.
Find useful links, suggested reading and archives at:

** http://www.chinwag.com/flasher **
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
You are subscribed to flasher as: george [dot] medveatwheel [dot] co [dot] uk
To unsubscribe, email $subst('Email.Unsub')

_____________________________________________________________________
This message has been checked for all known viruses by UUNET delivered
through the MessageLabs Virus Control Centre. For further information visit
http://www.uk.uu.net/products/security/virus/

_____________________________________________________________________
This message has been checked for all known viruses by UUNET delivered
through the MessageLabs Virus Control Centre. For further information visit
http://www.uk.uu.net/products/security/virus/



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