Flash Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignFlash Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old December 11th, 2003, 07:23 PM
b1b2b3 b1b2b3 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2003
Posts: 24 b1b2b3 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Question My Flash Site

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

Reply With Quote
  #2  
Old December 12th, 2003, 04:14 AM
Tann San Tann San is offline
Gotta get to the next screen..
Dev Shed Demi-God (4500 - 4999 posts)
 
Join Date: Nov 2003
Location: Legion of Dynamic Discord
Posts: 4,714 Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)  Folding Points: 10093 Folding Title: Novice Folder
Time spent in forums: 3 Weeks 1 Day 11 h 8 m 12 sec
Reputation Power: 580
Facebook MySpace
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.
__________________
-Tann

-Vote for your favorite ActionScript editor here.

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignFlash Help > My Flash Site


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway
Stay green...Green IT