Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / Flash / Flash Site Design / November 2006



Tip: Looking for answers? Try searching our database.

make a pic into a button

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Missnana2004 - 08 Nov 2006 07:06 GMT
I am new to flash. I want to make a picture into a button to link to a URL. How do I do this? please remember I am new so please baby steps.
cowgirlpatty - 08 Nov 2006 16:13 GMT
Here's how to make the button:
Go to help (at the top of Flash on the tabs at the top), enter 'button' in
the search box, under Flash tutorials look for 'creating a button' and click
on it, follow the steps.

Here's how to insert it into a Dreamweaver html document:
http://livedocs.macromedia.com/dreamweaver/mx2004/using/wwhelp/wwhimpl/common/ht
ml/wwhelp.htm?context=Using_Dreamweaver&file=18_med12.htm


>I am new to flash. I want to make a picture into a button to link to a URL.
>How do I do this? please remember I am new so please baby steps.
Mister Peanut - 09 Nov 2006 22:45 GMT
right click on your picture, select convert to symbol, select button, and give it a name in the field.
Joel_Current - 14 Nov 2006 11:49 GMT
can anyon helpme in creatin a button in flash that on mouse hover can slide out and somethis\n like that
and how do i go to a page when the button is clicked .. wat is the scripyt for that
wynterain - 30 Nov 2006 03:04 GMT
Ok open flash.  Select rectangle tool.  Draw out a button at the normal size
you want it.  Then select the free transform tool. Select the button you drew.  
In the center of the button should be a circle.  Drag this circle to the left
edge of the button.  You should only move it horizontally across so that its
still in the center but on the left edge.  Now select the black arrow again.  
Select the button again and right click it to convert to symbol.  name it
whatever you want.  For this example I named it box.  Make sure Movie Clip is
selected.  (I'll explain in a minute).  Also, make sure the registration point
is the left center edge.  Just like when you selected the free transform tool.
Click Ok.   Now for the explaination.  You want to always use Movie Clips
instead of button.  Well not always but most of the time.  Because movie clips
can be used for more than just buttons.  I won't get too detailed but when this
tutorial is finished you will see you can make a movieclip respond like a
button.  
Now back to work!  :)
Now select box and go to properties and give instance name box.
Insert layer.  Open actions panel and insert the following

 import mx.transitions.Tween;
import mx.transitions.easing.*;

box.onRollOver = function() {
    var tw:Tween = new
Tween(this,"_xscale",mx.transitions.easing.Elastic.easeOut,100,300,3,true);
}

box.onRollOut = function() {
    var tw:Tween = new
Tween(this,"_xscale",mx.transitions.easing.Elastic.easeOut,300,100,3,true);
}

Now test your movie
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.