linking buttons to new scenes with action script

  • hpeezy31
  • Newbie
  • Newbie
  • hpeezy31
  • Posts: 5
  • Loc: Milwaukee, WI

Post 3+ Months Ago

I know you have all seen someone post this problem before, but i just wanted some help specific to my site. This is what i'm working on now...
http://kosmik-kare.com/flashhome2

i'm pretty sure it will display correctly, i'm basically trying to set it up so the user can click on the buttons, and the new media, info, etc. will fade into where the flyer is at the begining. I just simply cannot get this actionscript to work, and i'm fairly new to flashmx2004 so any help is greatly appreciated. thank you
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • deefadog
  • Newbie
  • Newbie
  • deefadog
  • Posts: 13
  • Loc: Wales

Post 3+ Months Ago

Hi, firstly i am no expert on mx pro, but good with Flash 5!

Firstly don't uses scenes, they are very unreliable! put your different sections into seperate swf's and load them into levels, each one with a preloader, this makes everything run faster and a bit more smooth. also put your fps to around 30, it will also make it run smoother.

Hope I helped a bit!

take care
  • hpeezy31
  • Newbie
  • Newbie
  • hpeezy31
  • Posts: 5
  • Loc: Milwaukee, WI

Post 3+ Months Ago

so wait, your saying i should create a new project for each section, the connect all the .swf files with the buttons?
  • deefadog
  • Newbie
  • Newbie
  • deefadog
  • Posts: 13
  • Loc: Wales

Post 3+ Months Ago

Yes, keep them seperate and have them load when you need them!

have your main movie with all your buttons on it!

use this code on your buttons:

Code: [ Select ]
loadMovieNum ("section2.swf", 3);


this loads your section2 into level 3! and so on

There are loads of topics on this at kirupa,flashkit and actionscripts.org!

This is the only real way of doing it, as I have found out, I have tried all ways in the past and found this is what the pro's use. it's a litle more complicated and you do have to keep track of everything, but it is better.

Good luck
  • hpeezy31
  • Newbie
  • Newbie
  • hpeezy31
  • Posts: 5
  • Loc: Milwaukee, WI

Post 3+ Months Ago

and this way it will have a smooth transition instead of switching html pages right?
  • deefadog
  • Newbie
  • Newbie
  • deefadog
  • Posts: 13
  • Loc: Wales

Post 3+ Months Ago

Yes, just one html page, it's the flash file's that do the swaping :)
  • hpeezy31
  • Newbie
  • Newbie
  • hpeezy31
  • Posts: 5
  • Loc: Milwaukee, WI

Post 3+ Months Ago

aight, i'm finna stick with your idea, and try to capitalize on it
  • hpeezy31
  • Newbie
  • Newbie
  • hpeezy31
  • Posts: 5
  • Loc: Milwaukee, WI

Post 3+ Months Ago

wait, ran into another problem, when i tried your code, it gave me the "statement must appear within handler" error
this is another way i was trying it.....
http://www.kirupa.com/developer/mx2004/transitions.htm

man, i'm just about ready to send you my .fla file to let you get a hands-on look, if you want, i'll send it to you right away
  • deefadog
  • Newbie
  • Newbie
  • deefadog
  • Posts: 13
  • Loc: Wales

Post 3+ Months Ago

My code was only a part of the code, just posted it as an example. that tutorial is a much better way of doing it than I have done! You have the source code of that to download, it should be easy as it's all done for you! I can't help with it as I am still on flash 5 :(

Let me know how it goes
  • joel_9
  • Born
  • Born
  • joel_9
  • Posts: 1

Post 3+ Months Ago

Hi I know this must sound stupid but i desperately need help

I need to link through a mouse click or release
botton- X in Scene 1
to Scene 2.

would appreciate some help all ive got now is stop() at the end of the botton frame :-)

Post Information

  • Total Posts in this topic: 10 posts
  • Users browsing this forum: No registered users and 21 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.