Groups | Blog | Home
all groups > flash (macromedia) > january 2004 >

flash (macromedia) : need help for using button


benwin NO[at]SPAM ca
1/28/2004 11:18:54 PM
I am new for Flash.
I am using Flash mx2004 to design the header part of a webpage, which include a search engine, a banner and a navigation bar. Following the Flash part are the side bar and main content window. I use firework for the sidebar, and the content window is used CSS for positioning (in Dreamweaver)...
The navigation buttons I use Movie Clip to add some rollover effects on it. Now what I want to do is that: when I click the navigation button, the content window will be refreshed with new contents; when I click the search button, a new window will be opened to show the search result.
It seems the button is quite different in Flash with in dreamweaver (in dreamweaver, you just simply assign the hyperlink to the button. I think the button in Flash is designed to control the movie). Anyway, anyone can tell me how to make the Flash button function as a HTML button? Do I have to use Actionscipt?
Thank you for any information!

Ben


Igor Costa
1/28/2004 11:41:24 PM
So to sold your problem you need to use actionscript, due to in flash it's the same process of dreamweaver in html file, but has a while diferent, such as open a new window, and processes of target

you sold quik, just you need to do it´s go to the flash and create a button and add this AS code to the button

on(release){
getURL("page.html","_method//such as _parent , _blank);
}

that's it

Done.

Bye

benwin NO[at]SPAM ca
1/29/2004 12:05:19 AM
Thank you!
I am a little surprised why Flash doesn't provide such simple embeded function for button ( right click menu will be simpler than actionscript for the new user).
The help and tutorial of Flash2004 are really weak for the new user. Always saying new features might be useful for the experienced user but doesn't help for the new comer.

Igor Costa
1/29/2004 12:14:32 AM
but there's a way guy don't worry if you creat a button and want to give it a behavior you can do that like this

open your flash and create a new button now go to the behaviors paneland press the plus button. if you can't see the behaviors panel you can acess shurt cut as shift+f3 , t'll appear some options choose web and click on Go to web page it´s easy just type the web page address you want and the target, if you want to learn how does the AS works, go to actions panel and see the same code that I gived you.


Macromedia thinks in all. hehehe
bye God Bless


AddThis Social Bookmark Button