a simple question

  • kontra
  • Novice
  • Novice
  • kontra
  • Posts: 16
  • Loc: Romania

Post 3+ Months Ago

hi,

how can i make some button in the first frame to react like this:
on press to go and play, and when it enters another frame to stop
and geturl

i have 4 buttons and 4 urls


Thank you
  • classified
  • Expert
  • Expert
  • User avatar
  • Posts: 540
  • Loc: Bahrain

Post 3+ Months Ago

kontra wrote:
hi,

how can i make some button in the first frame to react like this:
on press to go and play, and when it enters another frame to stop
and geturl

i have 4 buttons and 4 urls


Thank you


assign the following action script to the button ..

Code: [ Select ]
on(press) {
_root.gotoAndPlay(2); //
}
  1. on(press) {
  2. _root.gotoAndPlay(2); //
  3. }


on the frame you want to stop assign the following action to the desired frame
Code: [ Select ]
stop();
getURL("http://www.google.com" , "_blank");
  1. stop();
  2. getURL("http://www.google.com" , "_blank");
  • kontra
  • Novice
  • Novice
  • kontra
  • Posts: 16
  • Loc: Romania

Post 3+ Months Ago

yes, i know that,
but how can i make it to load a different link when i push another button in the 1st frame
  • classified
  • Expert
  • Expert
  • User avatar
  • Posts: 540
  • Loc: Bahrain

Post 3+ Months Ago

can u explain your over all situation ?

this can be done many ways ...
anyhow ..
im leaving to college now . prolly by the time im back , someones else answered it ..
  • kontra
  • Novice
  • Novice
  • kontra
  • Posts: 16
  • Loc: Romania

Post 3+ Months Ago

classified thanks anyway


it`s like this:
-1st frame with 4 buttons.

-i want for each button on press to go and play next frames till ...let`s say frame 30 where to stop and geturl

- the url witch has to load from frame 30 it must not be the same for every button pressed

if, lets say, i press the button "about" i want to play till frame 30 and load "about.htm"
and if i press "home" i want to play till frame 30 and load "home.htm"
  • JimmyPez
  • Novice
  • Novice
  • JimmyPez
  • Posts: 16

Post 3+ Months Ago

you could assign a variable to each button -

so lets say you have a var called currentSite.

make each button change the state of the variable. have that variable = new urls for each btn -

comprendeme?
  • classified
  • Expert
  • Expert
  • User avatar
  • Posts: 540
  • Loc: Bahrain

Post 3+ Months Ago

JimmyPez wrote:
you could assign a variable to each button -

so lets say you have a var called currentSite.

make each button change the state of the variable. have that variable = new urls for each btn -

comprendeme?

well

create a variable ...

On each button press change that variable to your link ...

here is an example i made 4 U ...

http://80.88.250.162/Rnklmsd/link.zip
  • kontra
  • Novice
  • Novice
  • kontra
  • Posts: 16
  • Loc: Romania

Post 3+ Months Ago

that helped me a lot, it works now :D

thank you very much
  • classified
  • Expert
  • Expert
  • User avatar
  • Posts: 540
  • Loc: Bahrain

Post 3+ Months Ago

kontra wrote:
that helped me a lot, it works now :D

thank you very much


glad 2 know that :)

anytime budd ..

Post Information

  • Total Posts in this topic: 9 posts
  • Users browsing this forum: No registered users and 12 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
 
cron
 

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