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 January 17th, 2004, 02:09 AM
TylerH TylerH is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2004
Posts: 3 TylerH User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Menu problems

I have a bit of a problem. I'm ultimatly looking for some ActionScript that will count to 5 and then load up a new page. This is my problem:
I have a menu bar that is near the middle of the screen for the main page and then for other pages i have made a tween that moves that bar to the top of the page, that lasts for 10 frames (2-11). So after a button (there are 7) is pressed, I want the bar to move to the top and then goto my next page, but i can't find a single thing that will work. Any ideas?

Thanks guys

Last edited by TylerH : January 17th, 2004 at 02:14 AM.

Reply With Quote
  #2  
Old January 17th, 2004, 08:25 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,715 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: 11109 Folding Title: Novice Folder
Time spent in forums: 3 Weeks 1 Day 11 h 50 m 46 sec
Reputation Power: 580
Facebook MySpace
Hi, I dont see where the counting to 5 comes in. As for the rest well...

say your menu movie is called myMenu.

on each button have

on(release)
{
myMenu.nextPage = "News";
myMenu.gotoAndPlay(2);
}

Then on the last keyframe for the menu animation have:

_root.gotoAndPlay(nextPage);

That's assuming you have each page on the main stage sectioned off with named keyframes, in this case we want to jump to the News page (keyframe).
__________________
-Tann

-Vote for your favorite ActionScript editor here.

Reply With Quote
  #3  
Old January 17th, 2004, 09:18 AM
TylerH TylerH is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2004
Posts: 3 TylerH User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Well that wont work because i have 7 different links and i'm not moving ahead in the movie, i'm linking to an html page, so a new page will be loaded in the browser, not a continuation of the .swf
So that is where the timing comes in, what would happen would be that the button would be clicked, the tween would occur (for a timed period) and then the new page would be loaded in the browser. Since i don't want the new page to be loaded immediatly after release i'm having problems.

Thanks

Reply With Quote
  #4  
Old January 17th, 2004, 10:40 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,715 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: 11109 Folding Title: Novice Folder
Time spent in forums: 3 Weeks 1 Day 11 h 50 m 46 sec
Reputation Power: 580
Facebook MySpace
Hi, I'm not sure why you think that wont work. It should. Anyway if you really want a timed method then this should do:
Code:
function openPage(theLink)
{
getURL(link, "_self");
}

setInterval(openPage, 5000);

Normally I would recommend cancelling setInterval with clearInterval but if you loading a new page onto it wont matter since the whole thing is replaced.

I still reccomend the first thing I said, if you want it to open a new page then use:
Code:
on(release)
{
myMenu.nextPage = "News.html";
myMenu.gotoAndPlay(2);
}

last menu kf:
Code:
getURL(nextPage, "_self");

Reply With Quote
  #5  
Old January 17th, 2004, 02:15 PM
TylerH TylerH is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2004
Posts: 3 TylerH User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
So if in enter that it will go to frame 2 of my scene, play it and when the tween has finished will open up a new page?
Thanks, I will try that

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignFlash Help > Menu problems


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 5 hosted by Hostway
Stay green...Green IT