1. Overview
Among some personalized websites, the first choice for website navigation is the flash navigation bar. The flash navigation bar can bring better visual effects to the viewer and is one of the main manifestations of the website's personality.
2. Technical points
It mainly applies the release() method of Button class in Flash action scripts. The Release() method is triggered when the left mouse button is pressed and released.
The syntax is as follows:
on(release){//Insert statement here}3. Specific implementation
(1) In Macromedia Flash Professional 8, create a new Flash document, click the "Insert" → "New Component" command in the menu, select the "Button" radio button in the pop-up "Create New Component" dialog box, and click the "OK" button.
(2) Enter the text "Homepage" in the "Popular" keyframe, select the "Pointer Pass" frame, right-click, select the "Insert Keyframe" command in the pop-up shortcut menu, insert an animation component in the "Press" frame, and draw the active area in the "Click" frame.
(3) Return to the scene and drag the component from the library into the appropriate position in the scene.
(4) Select the button, open the "Action" panel, and enter the following code in the code area:
on(release){getURL("index.jsp");}(5) Make multiple buttons in turn, and then generate SWF files. And insert the SWF file you just generated in the web page, the code is as follows:
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0"><param name="movie" value="navigation.swf" /><param name="quality" value="high" /><embed src="navigation.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash"></embed></object>
The above is the flash navigation bar based on JS introduced by the editor to you. I hope it will be helpful to everyone. If you have any questions, please leave me a message and the editor will reply to everyone in time. Thank you very much for your support to Wulin.com website!