Flasher Archive

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


Subject: RE: [flasher] RE: [flasher]using functions?
From: AndyA
Date: Fri, 23 Feb 2001 20:31:19 -0000

Hey Bill,

First off, if you're using Flash5 usage of the "call" command isn't
encouraged. Flash5 conforms more closely to Object-oriented principles (e.g.
the usage of dot notation etc) and as such makes life easier in many ways.
I've not been using Flash long myself, but it seems to me that once you've
defined the function, all you should need to do is state the function. So,
once you've created the function in the root timeline

function navigate () {}

then in later code, you should simpy be able to code

navigate() //or _root.navigate()

If I understand it right, Flash4 used call () to reference a frame label or
frame number in which the code sat that you wanted to run. With this in
mind, your call ("Navigate") is trying to switch the context to the frame
labelled "Navigate" and run any code there.

Hope this helps. As I said, I don't have much experience with Action Script
so I may be wrong.

Regards

Andy




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