loadMovie problem - Syntax
**Error** Scene=Beginning, layer=Buttons, frame=1:Line 1: Syntax error.
Symbol 1.onRelese = function (loadMovie("Amplifier.jpg") ;
Total ActionScript Errors: 1 Reported Errors: 1
Symbol 1.onRelese = function (loadMovie("Amplifier.jpg") ;
Can someone please explain to me what the syntax error here is?
I'm really confused.
Code:
Symbol 1.onRelese = function (loadMovie("Amplifier.jpg"))
0r
Code:
Symbol 1.onRelese = function (){
loadMovie("Amplifer.jpg")
}
**Error** Scene=Beginning, layer=Buttons, frame=1:Line 1: Syntax error.
Symbol 1.onRelese = function (){
**Error** Scene=Beginning, layer=Buttons, frame=1:Line 3: Wrong number of parameters; loadMovie requires between 2 and 3.
loadMovie("Amplifer.jpg")
**Error** Scene=Beginning, layer=Buttons, frame=1:Line 1: Statement must appear within on handler
Symbol 1.onRelese = function (){
Total ActionScript Errors: 3 Reported Errors: 3
...
I'm really confused
Ok
Attached Files
I couldn't open your fla.
Are you using flashMX 2004 ?
Uh huh
Yes, Professional even. I don't know why you're having problems. Any ideas? Do I have to change publishing settings or something? I didn't even touch them.
Try in Save As, and see if there is an MX version to save ?
Poop...
Sorry, but if I save as just Flash MX the ActionScript will be lost...Thanks anyways though...
What are you trying to do ?
From your earlier post it looked like you had a button loading a clip
this should work
one_btn.onRelease = function(){
holder_mc.loadMoive("movie.swf")
}
one_btn is my button
holder_mc is a movieclip on the stage that I load the swf into
my_btn.onRelease = function(){
my_mc.loadMoive("Amplifier.jpg")
}
my_btn is the button
my_mc is the movieclip on the stage
amplifier.jpg is the picture I want to appear
**Error** Scene=Beginning, layer=Buttons, frame=1:Line 1: Statement must appear within on handler
my_btn.onRelease = function(){
Total ActionScript Errors: 1 Reported Errors: 1
that's the error
Attached Files
Posting Permissions
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
Forum Rules
Click Here to Expand Forum to Full Width