Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Buttons vs MovieClips

Status
Not open for further replies.

esearing

IS-IT--Management
Aug 22, 2000
132
US
When is it better to use a button vs a movieClip.
especially in regards to the following items:

-Link to a webpage (getUrl)
-Tween size, color, or alpha of the object when moused over
-controlling other objects (i.e. text appears when mouseover or press)
-do a combination of the above in one object.

The reason I ask is due to this problem.
I have a movie clip which when moused over zooms in on the graphic and when clicked launches a web page.

I tried to do the same thing with a button but when I mouse over the button the whole page zooms. I attached this script to the button.

on (rollOver){
while(this._xscale < 125){
this._xscale += 5;
this._yscale = _xscale;
}
}
The button is active only on one frame and there are several other buttons on the frame. it is a links page.


 
-Link to a webpage (getUrl) -> button is easiest

-Tween size, color, or alpha of the object when moused over
-> movieclip
-controlling other objects (i.e. text appears when mouseover or press)
-> movieclip

-do a combination of the above in one object.
-> use the button for the link and put it with all other actions is a movieclip.

If this doesnt work, just reply or send the source if you have tips or comments send them to me. I am a human and humans could give wrong answer

Want see some flash?? visit or
 
use a movie clip for this problem but create an invisible button(only has a keyframe for the hit event). The the whole area of the movieclip with the invisible button and assign your actions to the invisble button with in the movieclip.
 
hello,
i have one question cocerning buttons in movieclips. i have a sliding movie bar with buttons on it. i want that if you press one button you go to a different scene. but on (release) gotoandplay (&quot;scene2&quot;,1) or something similar does not work. how do i do this? it is just abutton inside a movieclip. there should be a way...........?!
it would be veery kind, if you could give me some tips.
thank you very much
raresushi
email: jks@gmx.li
or stoffjul@hotmail.com
 
check spacing and capitalization.

gotoandplay should be gotoAndPlay.
&quot;scene2&quot; could be &quot;Scene2&quot; or &quot;Scene 2&quot;

mine generally looks like:
on (release){
gotoAndPlay (&quot;Scene 2&quot;, 1)
} eSearing.com
a work in progress
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top