This content has been marked as final.
Show 8 replies
-
1. Re: No static attribute???
neil manuell Jun 16, 2006 3:21 PM (in response to gold987987987)it is telling you that LoadVars properties that you are trying to access must be done so through an instance of the class, not the global. -
-
3. Re: No static attribute???
gold987987987 Jun 16, 2006 3:25 PM (in response to gold987987987)Whoa, I just added all your AS and it's giving me these errors:
**Error** Scene=Scene 1, layer=Layer 20, frame=91:Line 1: Statement must appear within on/onClipEvent handler
var myLoadVars:LoadVars= new LoadVars()
**Error** Scene=Scene 1, layer=Layer 20, frame=91:Line 3: Statement must appear within on/onClipEvent handler
myLoadVars.onLoad
**Error** Scene=Scene 1, layer=Layer 20, frame=91:Line 4: Statement must appear within on/onClipEvent handler
{
**Error** Scene=Scene 1, layer=Layer 20, frame=91:Line 8: Statement must appear within on/onClipEvent handler
myLoadVars.onLoad (enterFrame)
**Error** Scene=Scene 1, layer=Layer 20, frame=91:Line 9: Statement must appear within on/onClipEvent handler
{ -
4. Re: No static attribute???
neil manuell Jun 16, 2006 3:47 PM (in response to gold987987987)hold on, now that i've actually read your code fully I I think you are getting confused here,
do you want to add an onLoad and an enterframe event to an mc?
or do you want to create a LoadVars object to load up some variables from a text file?
I rather think you mean the first, in which case:
-
5. Re: No static attribute???
neil manuell Jun 16, 2006 3:54 PM (in response to gold987987987)lots of classes have an onLoad method
MovieClip
LoadVars
XML
to name a few, and there are two ways to impliment them
you can placew them on the object:
on (load){}
on(release){}
on(rollOver){}
or (properly):
myMc.onRelease=function(){}
myLoadVars = new LoadVars()
myLoadVars.onLoad(success){} -
6. Re: No static attribute???
gold987987987 Jun 16, 2006 4:03 PM (in response to neil manuell)Awesome!!! No more errors, but........ the swif doesn't work properly. When I click on the buttons it's suppose to move this page around and it's no longer moving that page.
Any ideas????
Thanks for your help, it's almost fixed! -
7. Re: No static attribute???
neil manuell Jun 16, 2006 4:09 PM (in response to gold987987987)theres a mistake in my code : on(load) its not a capitol.
its a scoping issue, since I don't know what mc should be moving an where you buttons are I can't say...
I'm afraid its late here and I'm of to bed.
suggest you start a new topic for a new problem. and get a new helper
all the best, hope you make it (=-} -
8. Re: No static attribute???
gold987987987 Jun 16, 2006 4:22 PM (in response to neil manuell)Good night, thanks for your help!!!
