Flash Actionscript 3 Intro Part 2
Uploader Comments (blake912)
All Comments (10)
-
thank you!!
-
lol, i was wondering why a if statement got a i++ lol whahahahha but great tuts
-
I have a problem with label for some reason the button doesn't say hello myButton_btn.label = "Hello";
I don't know why it won't work help.
-
Your videos are very good and informative - some of the best I've found for learning this stuff. Thank you!
-
ok. ill try that thanks. its always good to have more than two eyes! :)
-
Remove the semi-colon after the conditional statement. "if(myText_txt.x == 100)"
-
No I'm having issues with the conditional. I get an error stating: else is unexpected.
if(myText_txt.x == 100);
{ trace(myText.txt.x);
}
else
} trace("please check x value")
}
-
Yes it worked, thanks. Could you type out the if,then statement? I could not see the else part.
The video was quite helpful, but had issues with the For loop. Typed it like you had it: For(var i:Number =0; i <=6; i++)
{ trace(i);
}
, but kept getting syntax errors. Perhaps you can see what's missing?!
meggles48 3 years ago
yes i can "For" is not going to work. Capitalization is important. So, do the exact same thing that you did; but, with "for" instead of "For". let me know if that works
blake912 3 years ago
i keep getting an error
it is saying in scene1,layer actionsc,frame 1
line 7 that myfunction cannot be found cuz it hasnt been made
i copied code just like you?
any idea what may be wrong
BTW i just started using flash and used script2.0 and am interested in 3.0
but only been using flash for about a week
killuacaper 3 years ago
make sure that you have all the syntax correct (code). this could be caused by the fact that you are using an uppercase version of it in one place but not in the other.
For example, the following would be 2 different functions:
myfunction();
myFunction();
are completely separate. Also, make sure you are calling the function in the event listener.
myButton_btn.addEventListener(MouseEvent.CLICK, myFunction);
function myFunction(event:MouseEvent):void
{
}
blake912 3 years ago