Ok, from the title you can probably tell im a beginner to Flash.
I'm using CS3, and am trying to create a "menu" to this one webpage.
I did 4 animated buttons, but now im having problems making them link to my pages. I will describe with details what I did:
First, I thought about select the button, and go to the Action panel and enter the script over there. For my surprise, when I try to type it in the action script 3, it comes up with the message "Current selections cannot have actions applied to it".
Then, second thing I did, was to go to my main project, add labels to all my buttons (b_1, b_2, b_3 and b_4), add a Layer, and on the first frame of this new layer, I go to the action panel and tryied the following sintaxe for my script:
So you understand, the b_1 is the instance name of my first button (which is called Company), and I did repeat that for all other buttons.
At first I was positive it was going to work, but then when i try to publish, it says the there is something wrong with the "getURL("compan y.html") part of the code. It's probably becuase thats not the correct syntax to call a webpage using Action Script 3.0 (I dont have any AC experience, my programming skills are from other languages, and I'm just experimenting on flash).
So, if anyone can help me, what would be the right syntaxe to call my webpage on that function? And also, why cant I just add it to the button?
Thanks for any help
I'm using CS3, and am trying to create a "menu" to this one webpage.
I did 4 animated buttons, but now im having problems making them link to my pages. I will describe with details what I did:
First, I thought about select the button, and go to the Action panel and enter the script over there. For my surprise, when I try to type it in the action script 3, it comes up with the message "Current selections cannot have actions applied to it".
Then, second thing I did, was to go to my main project, add labels to all my buttons (b_1, b_2, b_3 and b_4), add a Layer, and on the first frame of this new layer, I go to the action panel and tryied the following sintaxe for my script:
Code:
function onCompanyClick(evt:MouseEvent):void { getURL("company.html"); } b_1.addEventListener(MouseEvent.CLICK,onCompanyClick);
At first I was positive it was going to work, but then when i try to publish, it says the there is something wrong with the "getURL("compan y.html") part of the code. It's probably becuase thats not the correct syntax to call a webpage using Action Script 3.0 (I dont have any AC experience, my programming skills are from other languages, and I'm just experimenting on flash).
So, if anyone can help me, what would be the right syntaxe to call my webpage on that function? And also, why cant I just add it to the button?
Thanks for any help
Comment