| | |
flash question
Please support our Graphics and Multimedia advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
Thread Solved |
yes it is possible and here is how it is done.
firstly in frame one of the timeline a variable needs to be set. i set this as
once this has been done you next need to add the
in the frame where you want the play head to pause. As mine then had the animation after the pause for the page exit, you will need to add this code to frame at the end of the page.
this section of the code is looking for a variable to be sent to it from the button being clicked on. The code to get the variable to be sent will obviously go on to the button.
the code which goes on the button is this
this will then pause where you want it to pause and when a button is pressed it will play the animation for the page exit then take the user to the page the have requested depending on which button is pressed.
just to clear things up a bit for any novice flashers i had a layer for the actions where all the code script went to make the play head stop and play. also i hab a layer called labels which gave the variables being sent to the script a place to go to.
where you see in the script "_page1" this are the labels for the beginning of each page.
if anyone needs help with this or i have just done a bad job of trying to explain what i have done pm me and i will help as much as i can.
firstly in frame one of the timeline a variable needs to be set. i set this as
Graphics and Multimedia Syntax (Toggle Plain Text)
var frame : String;
once this has been done you next need to add the
Graphics and Multimedia Syntax (Toggle Plain Text)
stop();
in the frame where you want the play head to pause. As mine then had the animation after the pause for the page exit, you will need to add this code to frame at the end of the page.
Graphics and Multimedia Syntax (Toggle Plain Text)
stop(); if(_level0.frame != undefined){ _level0.gotoAndPlay(_level0.frame); // or gotoAndStop(_level0.frame_to_goto)... If you want it to stop on that frame... }else{ trace("An error as occured!"); }
this section of the code is looking for a variable to be sent to it from the button being clicked on. The code to get the variable to be sent will obviously go on to the button.
the code which goes on the button is this
Graphics and Multimedia Syntax (Toggle Plain Text)
on(release){ // set the variable... _level0.frame = "_page1"; // assuming that's the frame's label... //play the timeline from the next frame to frame 25... play(); }
this will then pause where you want it to pause and when a button is pressed it will play the animation for the page exit then take the user to the page the have requested depending on which button is pressed.
just to clear things up a bit for any novice flashers i had a layer for the actions where all the code script went to make the play head stop and play. also i hab a layer called labels which gave the variables being sent to the script a place to go to.
where you see in the script "_page1" this are the labels for the beginning of each page.
if anyone needs help with this or i have just done a bad job of trying to explain what i have done pm me and i will help as much as i can.
![]() |
Similar Threads
- Linking flash buttons to htm pages (Graphics and Multimedia)
- Flash Design - Do I Really It On My Site? (Site Layout and Usability)
- Flash 5, MX, or 2004? (Graphics and Multimedia)
- Flash Help... (Graphics and Multimedia)
- Flash Swatch (Graphics and Multimedia)
- ATI vs. ATI question. (Monitors, Displays and Video Cards)
- dhtml menu and flash (JavaScript / DHTML / AJAX)
- ASUS Flash Bios - Boot Problem (Motherboards, CPUs and RAM)
- bios boot up question.. (Motherboards, CPUs and RAM)
Other Threads in the Graphics and Multimedia Forum
- Previous Thread: Small photos to big photos on same page
- Next Thread: Dreamweaver - Rollover graphics in a Spry Menu
Views: 739 | Replies: 1
| Thread Tools | Search this Thread |
Tag cloud for Graphics and Multimedia
3d 10 actionscript3 adobe adobeacrobat adobereader air ajax amazon amf apple button cart childprotection cloud dashboard dell design dojofoundation dreamweaver ebay eclipse ecommerce elasticcomputecloud embed endorsement extra family flash flash-develop flashlite flex flv free harddrive iamthwee ibm illustrator imflash intel interactivemap intro javafx javascript laptop legal map micron microsoft mobile monitoringsoftware moonlight multimedia myspace nand news novell panorama pdf pedophiles photoshop photosynth php safety sandisk security shopping silverlight solidstatedrive sproutcore ssd streaming swf table ukmap unload unwanted video vulnerability web white.space xml zend zephyr zeroday





