|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Let me give you the overview. I am creating a flash site and I have each section in boxes (in the one movie). So I want that boxes to scale down into a corner and then scale out with the chosen section. e.g. When a visitor click on the downloads section, the front section (calles news) will scale down into a corner and then the downloads box will scale out from that corner. A motion tween works great for that so I can make the news section tween to a corner and the downloads to tween out but I want to have an action that states that whatever section is currently showing, that will tween to the corner and then the sectionthe user wants to view tween out. I know this sounds confusing but if you want me too and can set up a quick site and shows you with screenshots and tuff what I want to be abe to do, or I can try and exaplin it a bit better.
Any help will be greatly appreciated. Cheers |
|
#2
|
|||
|
|||
|
Hi, thats a bit similar to Sadielazarus. At least in mechanics.
In root have two variables: currentPage = "news"; nextPage = "news"; For now leave them set to news. Now when you want to load a new page the user clicks the appropriate button i.e. contacts: on(release) { _root.nextPage = "contacts"; } The final part depends on how you want to implement it. You need a method to watch what the nextPage is and to close the currentPage when this has changed (and load the new one). Try setInterval for now, soo: function checkPage() { //Theres been a page change request if(currentPage != nextPage) { currentPage.gotoAndPlay("exit"); nextPage.gotoAndPlay("start"); } } setInterval(checkPage, 1000); so copy all of that to frame one and see what happens. The idea is that each movie is called the same as what you set currentPage and nextPage to be i.e. "new", "contacts" etc. Then you use this variable to start and stop each movie as required. You might want to move the nextPage.gotoAndPlay("start"); to the end of each page closing. That way each page will load the next one when it is complete so you dont have two movies playing in and out at the same time. Hope you understand all that. |
![]() |
| Viewing: Dev Shed Forums > Web Design > Flash Help > My Flash Site |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|