
Originally Posted by
btelecky
What did they do to my beloved flash! :eek
They bad it better! 
MX to CS3 is a pertty large jump to make. but once you get used to it, you'll grow to love it. It seems like a pain in the beginning, but believe me, it's SOO much more powerful.
As for your questions...
AS 3.0 doesn't support adding events to buttons. I suppose you were trying to do something like:
Code:
on(release) {
getURL("website");
}
That's a no no!
That's partially why I always tell people here to get away from that convention.
The more proper way (with AS 2.0) is:
Code:
button_mc.onRelease = function() {
getURL("website");
}
Now AS 2.0 vs. AS 3.0
AS 2.0
Code:
button_btn.onRelease = function(){
output_txt.text = “Button was clicked!”;
}
AS 3.0
Code:
function eventResponse(evt:MouseEvent):void {
output_txt.text = “Button was clicked!”;
}
button_btn.addEventListener(MouseEvent.MOUSE_UP,eventResponse);
I know...tedious and looks like nonsense. The mouse events are done in a more verbose if not more confusing way but AS 3.0 is a lot more powerful.
With that said, there is a "Create a AS 2.0" Project option with CS3 (which I still use almost exclusively).
For more: http://designfission.com/blog/2007/0...tep-into-as30/
Bookmarks