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 22nd, 2004, 07:37 PM
mervat mervat is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2003
Posts: 15 mervat User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Unhappy help with a Button Please

Well for the past 5 hours i tried to figure it out myself but that is it i gave up..

I created 4 buttons to do the following example:

If i click button A i want to show Info X &
If I click button B i want to show Info y ..... and so on

I did my buttons fine with the following:

on (press) {
tellTarget ("usad") {
gotoAndPlay(2);
}
}

and the info i did it as a movie with nothing in frame one then asign stop script and i put my info in frame 2 and assign it a stop function and is working fine, as when button A click a i get info X and when I click B i get Y

My problem is i want when i click on A i get X and when i click B i get Y but X NEED TO DISAPEAR FROM THE STAGE

Your help is appreciated in advance..

Reply With Quote
  #2  
Old January 22nd, 2004, 09:31 PM
timothye timothye is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2003
Location: Sweden/Sverige/USA
Posts: 134 timothye User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 5
Code:
on (release) {
tellTarget"usad") {
gotoAndPlay(2);
}
}

on (release) {
tellTarget"usad") {
gotoAndPlay(3);
}
}

put the content in 1 movieClip
content x frame 2 contenty frame 3
cheers

and not to be a smart as$
but you could use this as well .
Code:

myBtn1.onRelease=function(){
_root.usad.gotoAndPlay("2");
};
myBtn2.onRelease=function(){
_root.usad.gotoAndPlay("3");
};

just a thought !
__________________
please see my site http://www.f-web.net
also tutorials coming soon..
I am for hire .timo@f-web.net

Last edited by timothye : January 22nd, 2004 at 09:35 PM.

Reply With Quote
  #3  
Old January 23rd, 2004, 08:37 AM
mervat mervat is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2003
Posts: 15 mervat User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Thumbs up

Thank you sooooooooooooo much. I owe u big time.

The first code worked. I tried the other one but it keep giving me an error that i need a handler !!!!!

Many thanks again.

Reply With Quote
  #4  
Old January 23rd, 2004, 02:45 PM
mervat mervat is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2003
Posts: 15 mervat User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
how to solve this



well after i did all the codes using for button A

on (release) {
tellTarget ("address") {
gotoAndPlay(2);
}
}

and for button B i did the same

on (release) {
tellTarget ("address") {
gotoAndPlay(3);
}
}

and i have one movie with different frames and different information;
I found out if they click on A they get the right information from fram 2 but if they click on A again they get the information from fram 3 which should only be assigned for button B.

Reply With Quote
  #5  
Old January 23rd, 2004, 02:52 PM
mervat mervat is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2003
Posts: 15 mervat User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
i got it

Just if any one interest i solved the prblem:

Insted of using go to and play i used go to and stop


Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignFlash Help > help with a Button Please


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