Adding a url to flash buttons in Dreamweaver

I have a web site built and I have recently added Flash buttons and I need to add my web pages to the buttons. How would I go about doing this?

Let's say you create a button symbol.  Since it is a button, it is already a self animating object that will react to mouse interactions, but only visually at this stage.  The first thing you need to do to make it useful code-wise is to assign it a unique instance name.  So you drag a copy of it out to the stage from the library, and while it's still selected, you enter that unique instance name for it in the Properties panel... let's say you name it "btn1"
In AS3, to make a button work with code, you need to add an event listener and event handler function for it.  You might need to add a few (for different events, like rollover, rollout, clicking it, but for now we'll just say you want to be able to click it to get a web page to open.  In the timeline that holds that button, in a separate actions layer that you create, in a frame numbered the same as where that button exists, you would add the event listener:
btn1.addEventListener(MouseEvent.CLICK, btn1Click);
The name of the unique function for processing the clicking of that button is specified at the end of the event listener assignment, so now you just have to write that function out:
function btn1Click(evt:MouseEvent):void {
   var url:String = "http://www.awebsite.com/awebpage.html";
   var req:URLRequest = new URLRequest(url);
   navigateToURL(req);

Similar Messages

  • Previewing Flash Button in Dreamweaver

    When I insert the Flash Button/Movie into the Dreamweaver doc
    and preview in browser, I only see a placeholder.
    I created a simple Flash "movie" with some dynamic text
    functioning as a button layered over the animation.
    It previews fine in flash, and when I play the animation in
    the Dreamweaver document it looks fine but when I try to preview it
    in the browser from the Dreamweaver document all I see is a Flash
    placeholder. Is this something that will change when the page is
    published or is there something else I should try?

    If you want to use Flash for navigation, consider this -
    1. Some people don't have Flash installed - what do they do?
    Especially
    consider those people who are browsing from a corporate
    internet where Flash
    is not allowed by the IT staff.
    2. Search engines may not parse Flash links - your site will
    not be
    spidered unless you have redundant HTML links
    3. Screen assistive devices don't parse Flash links - what
    will those users
    do?
    4. DW cannot maintain links within a Flash movie, so if you
    move or rename
    a linked file, your navigation will break - what will you do?
    You will have
    to remake those buttons.
    It's usually a very bad idea for these reasons - and for
    these reasons,
    Adobe has removed Flash buttons and Flash text from CS4.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "webnauta" <[email protected]> wrote in
    message
    news:gpaf0d$qjl$[email protected]..
    > After inserting a flash button in dreamweaver CS3 , I
    select add behavior
    > and
    > then Go to URL onFocus (i tried onClick to), when i
    upload the website
    > works
    > fine in IE but in firefox the buttons doesnt works, how
    can i fix it?.
    >
    > Thanks.
    >

  • Flash buttons in dreamweaver 8

    Hi,
    i am having a problem with inserting flash button in
    dreamweaver 8, when i insert the buttons it appears on the page as
    a grey box with "F"(flash) and not displaying the proper text. The
    user is a standard windows users and has not administrator
    privilidges. but if an administrator loggs into the pc and does the
    exact same process then the flash button work.
    has anyone come across this problem ? does anyone know how to
    resolve
    cheers
    david

    You'll need to go back into Flash and build the links into the buttons before you create the swf's.  Look in the Flash help docs regarding the getURL function as far as the code you'll need for linking.  If you have problems, post in the Flash AS1 and AS2 forum.
    Beyond that, don't be surprised if some feedback arises here regarding using Flash buttons.

  • No more Flash Buttons in Dreamweaver CS4?

    The removal of Flash button extensions are pretty pathetic.  How much development money and time does it take to include and already existing feature?
    Also, if no one uses them (Ya I was told in a previous post I seen)  The why is Microsoft Expression Web including something sort of like them in their software!
    The removal of these, after I have bought the already overpriced CS4 from CS3, has prompted me to look at other software development tools.
    I been using Dreamweaver since the 1.0 version but now I'm starting to use Expression Studio for my development needs.  I think it sucks that simple navigation buttons and includes are removed when they are included in even $20 pieces of Web Development software.
    Some idiot actually posted that if someone needs to use navigation extensions, then they should use the CS3 for adding them!  Why upgrade then?
    For all the money your charging for your software it should make coffee for me too!

    I have locked this thread.  It's not really a discussion - just a rant.  and it's a duplicate of a previous post.

  • Flash Buttons in Dreamweaver

    Hey Everyone
    So i have these Flash buttons on my website(which is done in
    Dreamweaver), and when i go to 'test' the site... the buttons will
    work when the page first loads(Home)... but if i go to click on a
    link, lets say "Contact", the buttons aren't there anymore! And if
    i go back to "Home" they arent there either!!
    Does anyone have any suggestions or solutions to this
    problem?!
    Thanxs much in advance!!
    -Liz

    >>actually, i do have the OBJECT tags...
    >> but if i go to click on a link, lets say "Contact",
    the buttons aren't
    >> there anymore!
    Do you have the Flash buttons on all web pages was my point.
    In other words,
    did you have the same Flash buttons on the Contact page?
    >>Can someone take a look at my code and see whats
    wrong with it?
    /intro_buttons.swf
    Is the intro_buttons.swf in the web site root folder -- what
    / means? On the
    local drive the / could mean the root folder of the computer
    if you are not
    testing under
    http://.
    Lon Hosford
    www.lonhosford.com
    May many happy bits flow your way!
    "EBTurner" <[email protected]> wrote in
    message
    news:e3bdng$2df$[email protected]..
    actually, i do have the OBJECT tags...
    Can someone take a look at my code and see whats wrong with
    it?
    Thanxs!
    <tr>
    <td colspan="14">
    <object classid="clsid
    27CDB6E-AE6D-11cf-96B8-444553540000"
    codebase="
    http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#ve
    rsion=6,0,29,0" width="422" height="25">
    <param name="movie" value="/intro_buttons.swf" />
    <param name="quality" value="high" />
    <embed src="/intro_buttons.swf" quality="high"
    pluginspage="
    http://www.macromedia.com/go/getflashplayer"
    type="application/x-shockwave-flash" width="422"
    height="25"></embed></object>
    </td>
    </tr>

  • Are There Preset Flash Buttons In Dreamweaver CS4

    I have upgraded from Dreamweaver MX to CS4 and I'm looking for preset flash buttons that I can just insert within dreamweaver and I can't find any.  Maybe I'm looking in the wrong place?  I don't know how to create flash buttons just yet and If i need to start the journey of learning how please let me know.  I'm editing a site I created in MX so I want matching buttons and such lol.

    There aren't any flash buttons in DWCS4 anymore see Deprecated features in this link:
    http://help.adobe.com/en_US/Dreamweaver/10.0_Using/WS2C41F19D-502B-4fb5-8A54-4442E2127C84a .html
    Rgds!

  • Flash Buttons in Dreamweaver CS3

    I'm trying to place some flash buttons on my Dreamweaver site
    and when I insert a flash button, all I get on my page is a Flash
    icon. What do I need to do to get my buttons to show up? I would
    appreciate any help you can give. Thank You.
    P.S. I'm on a Mac with OS 10.4 (tiger)

    If you want to use Flash for navigation, consider this -
    1. Some people don't have Flash installed - what do they do?
    2. Search engines don't parse Flash links - your site will
    not be spidered
    3. Screen assistive devices don't parse Flash links - what
    will those users
    do?
    4. DW cannot maintain links within a Flash movie, so if you
    move or rename
    a linked file, your navigation will break - what will you do?
    It's usually a very bad idea for these reasons...
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "gringodogi" <[email protected]> wrote in
    message
    news:fb4biu$eet$[email protected]..
    > I'm trying to place some flash buttons on my Dreamweaver
    site and when I
    > insert
    > a flash button, all I get on my page is a Flash icon.
    What do I need to do
    > to
    > get my buttons to show up? I would appreciate any help
    you can give. Thank
    > You.
    > P.S. I'm on a Mac with OS 10.4 (tiger)
    >

  • Help Brining Flash button to Dreamweaver/webpage?!?!

    Hello all,
    I've created an animated button in flash cs3, and wanted to bring my work onto a webpage. I am using dreamwaver cs4, and want to know how, the only thing I know how to do on dreamweaver is bring in the whole movie clip, but this just won't do... PLEASE HELP ME!!!!
    ps: just bringing it onto a webpage is my question...

    When you say, "just the button," to what are you referring?
    If just the image of the button, export (from Flash) an image.
    If you need it to work like the flash button you designed, you will need the whole .swf file (and any auxiliary code).
    Beth

  • Adding PayPal code to Flash button

    I want to use my own .swf button for PayPal payments with a "hidden format", but when adding the generated PayPal Website code to my html page, only a red X and the alt PayPal text is showing where the button should be. I have changed all Active X controls to Enable.
    Every time I contact PayPal I get a different reply. The last one was that I have to add a "static" image, but I really want to use my own button.
    I would rather find a way to paste the PayPal code into my buttons action script and then I only have to paste the Flash button to the html, but don't know how to manipulate that because the only code generated by PayPal is a "form" in html format. I am also adding text fields and guess that's why I don't get an generated email code from PayPal which I get if I don't add text fields.
    Any ideas how I can transform the code generated by PayPal to my action script are welcomed. I have about 150 buttons to add!
    This is my link: http://www.astondenwoodjewellery.co.uk/Jewellery%20html/Gold%20Rings/GR02_button_test.htm

    I will definitely mark when I have managed to do this, thank you. Still can't get it to work and I don't know where I'm going wrong, but shall continue trying...
    I have added the form in my html, but deleted the button which appeared as an X. Instead I've added my button with the code you gave me in AS.
    I don't know what I am doing wrong, but I keep receiving action script error messages:
    **Error** Scene=Scene 1, layer=glas, frame=1:Line 1: Statement must appear within on handler
         var sendLV:LoadVars=new LoadVars();
    **Error** Scene=Scene 1, layer=glas, frame=1:Line 2: Statement must appear within on handler
         var receiveLV:LoadVars=new LoadVars();
    **Error** Scene=Scene 1, layer=glas, frame=1:Line 3: Statement must appear within on handler
         receiveLV.onData=function(src){
    **Error** Scene=Scene 1, layer=glas, frame=1:Line 10: Operator '=' must be followed by an operand
         sendLV.on0= ;// use selected option for man/woman
    **Error** Scene=Scene 1, layer=glas, frame=1:Line 11: Operator '=' must be followed by an operand
         sendLV.on1= ;// use selected option for size
    **Error** Scene=Scene 1, layer=glas, frame=1:Line 8: Statement must appear within on handler
         GR02_test.onRelease=function(){
    Total ActionScript Errors: 6 Reported Errors: 6

  • Adding a URL to a Button.swf

    Please help. How can I attach a URL to a button?

    Action Script 3. But I can change to script 2 if that's
    easier.

  • Link Custom Flash Buttons in Dreamweaver?

    Hello,
    I created an animated button in flash and tried to link it up
    in Dreamweaver with no success. I don’t understand why I can
    use generic animated buttons that DW offers and have a link for
    them but, when I create my own DW doesn’t offer a link. All
    I’m trying to do is link to a different page on my site. I
    tried to use “getURL” in the action script in flash and
    got that to work but, I really didn’t want to open a new
    browser. Can anyone help?
    60vette

    If you want to use Flash for navigation, consider this -
    1. Some people don't have Flash installed - what do they do?
    2. Search engines don't parse Flash links - your site will
    not be spidered
    3. Screen assistive devices don't parse Flash links - what
    will those users
    do?
    4. DW cannot maintain links within a Flash movie, so if you
    move or rename
    a linked file, your navigation will break - what will you do?
    It's usually a very bad idea for these reasons...
    In addition, you cannot add a link to a Flash element using
    HTML. That link
    must be added in the Flash itself.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "60vete" <[email protected]> wrote in
    message
    news:fcpoqm$rou$[email protected]..
    > Hello,
    > I created an animated button in flash and tried to link
    it up in
    > Dreamweaver
    > with no success. I don?t understand why I can use
    generic animated buttons
    > that
    > DW offers and have a link for them but, when I create my
    own DW doesn?t
    > offer a
    > link. All I?m trying to do is link to a different page
    on my site. I tried
    > to
    > use ?getURL? in the action script in flash and got that
    to work but, I
    > really
    > didn?t want to open a new browser. Can anyone help?
    > 60vette
    >
    >

  • Dreamweaver Flash Buttons Paths

    Hello all,
    I am a novice site designer. My first challenge is to design a navigation bar once and used by all web pages.  I built it using Flash buttons.  The concept works fine in a flat file, but when I'm viewing a web page that sits in a different directory than the flash navigation buttons, the buttons point to a file in the current directory which doesn't exist. I want the buttons to still point to the flash files in the parent directory.
    I'm using Dreamweaver CS2 to create my flash buttons. I'm using PHP include statements to include my flash navigation bar. When I create the php file in another directory, click on flash button, all heck breaks loose. I look at the URL and the link appends the PHP file that the flash button should be pointing to whatever directory my current web page is in.
    It seems like, I should just create each button  as a absolute path, http://rootdirectory.com/filename.php, but it still uses relative path when I'm looking at web page that sits in another directory and appends the navigation link to the current directory http://rootdirectory.com/currentdirectory/filename.php although it points to a link in the root or parent directory.
    Do I not know how to create flash buttons using the absolute paths?

    If you want to use Flash for navigation, consider this -
    1. Some people don't have Flash installed - what do they do?
    2. Search engines don't parse Flash links - your site will
    not be spidered
    3. Screen assistive devices don't parse Flash links - what
    will those users
    do?
    4. DW cannot maintain links within a Flash movie, so if you
    move or rename
    a linked file, your navigation will break - what will you do?
    It's usually a very bad idea for these reasons...
    Adding in frames makes it even worse - you are in the deep
    stuff here. Why
    are you using frames?
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "LeichterLernen" <[email protected]> wrote
    in message
    news:er5fua$3am$[email protected]..
    > Hey, I use some standard flash buttons from Dreamweaver
    to navigate. I
    > have two
    > frames in this web. The buttons are in frame "A" and
    refer to a target in
    > frame
    > "B". This worked perfectly fine, even with IE 7 in
    Windows XP it still
    > works.
    > But in Windows VISTA every button opens a new browser
    windows.
    >
    > Windows VISTA, IE 7, Dreamweaver 8, running the web on
    my HD
    >
    > Thanks in advance.
    >
    > Sky
    >

  • Dreamweaver Flash Buttons / Frame Navigation in VISTA

    Hey, I use some standard flash buttons from Dreamweaver to
    navigate. I have two frames in this web. The buttons are in frame
    "A" and refer to a target in frame "B". This worked perfectly fine,
    even with IE 7 in Windows XP it still works. But in Windows VISTA
    every button opens a new browser windows.
    Windows VISTA, IE 7, Dreamweaver 8, running the web on my HD
    Thanks in advance.
    Sky

    If you want to use Flash for navigation, consider this -
    1. Some people don't have Flash installed - what do they do?
    2. Search engines don't parse Flash links - your site will
    not be spidered
    3. Screen assistive devices don't parse Flash links - what
    will those users
    do?
    4. DW cannot maintain links within a Flash movie, so if you
    move or rename
    a linked file, your navigation will break - what will you do?
    It's usually a very bad idea for these reasons...
    Adding in frames makes it even worse - you are in the deep
    stuff here. Why
    are you using frames?
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "LeichterLernen" <[email protected]> wrote
    in message
    news:er5fua$3am$[email protected]..
    > Hey, I use some standard flash buttons from Dreamweaver
    to navigate. I
    > have two
    > frames in this web. The buttons are in frame "A" and
    refer to a target in
    > frame
    > "B". This worked perfectly fine, even with IE 7 in
    Windows XP it still
    > works.
    > But in Windows VISTA every button opens a new browser
    windows.
    >
    > Windows VISTA, IE 7, Dreamweaver 8, running the web on
    my HD
    >
    > Thanks in advance.
    >
    > Sky
    >

  • Flash buttons won't work in Dreamweaver

    Hello,
    I recently watched/read tutorials about how to add Flash buttons into Dreamweaver. I followed the instructions perfectly: insert>media>flash button, and played around with that options. After I clicked ok/apply, though, the only thing that popped uo was a little grey box with the "f" Flash logo inside. It could be resized, but thats it. When I tried previewing it in a browser, all I saw was a little box in the color i had set as the BG color. In the properties window, it says "undefined" next to file. I am using CS3on a macbook, and am a beginner with Dreamweaver. Anybody know why this is happening and how i can fix it?
    -New user

    That's correct. There's no difference. But Flash buttons should be avoided however you make them.
    Use text-based CSS formatted buttons instead.
    Easier to maintain and update and search engines love them.
    Google CSS Buttons and you'll find plenty of tutorials.

  • Problem with Flash Button Sticking

    I am adding Handlers to Mouse Events using action Script 3.
    The buttons move up and down when rolling over the button. So you
    have that "wave effect" when navigating the site.
    The problem I am having is that if you rollout of the button
    before the button is done playing the movie it freezes at that
    point of the movie.
    Has anyone had this problem before? Can anyone help?
    THANKS!

    The standard reply is -
    1. Why are you using frames since there are many compelling
    reasons not to?
    2. Why are you using Flash navigation since there are many
    compelling
    reasons not to?
    Most people here don't work with (assiduously avoid) both of
    those critters,
    so, you may have trouble getting a more explicit response!
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "jawy2007" <[email protected]> wrote in
    message
    news:fgrr3g$ivf$[email protected]..
    > Problem with Frames in Dreamweaver 2004 mx using Flash
    9. When using Flash
    > buttons in Dreamweaver within a frame and specifing a
    target frame the
    > flash
    > button loads a new page in another window and not in the
    frame specified.
    >
    > Steps to reproduce:
    >
    > Dreamweaver: New Wesbite / "Create from samples" /
    Framesets / Select
    > "fixed
    > left"
    > In the left frame insert a Flash Button and link it to a
    page to load in
    > the
    > mainFrame.
    >
    > What went wrong?:
    >
    > When the flash button is pressed the page loads in a new
    Internet Explorer
    > window instead of loading in mainFrame frame.
    >
    >
    > What should have happened?:
    >
    > When the flash button is pressed the page should load
    with the mainFrame
    > frame.
    >

Maybe you are looking for

  • How to find and replace text in Excel with Automator

    I am new to Automator. And I would like some help how I can create a service that will allow me to find and replace certain text in Excel. I noticed that there is an action to do this for Word documents, but not for Excel document. Any suggestions ho

  • Error Asset 0 not in company code during creation of service puchase order

    Dear All, I am getting the following error while creating service order in ME21N. My account assignment category "P" and Item category "D".                    The error message is "Asset 0 not in company code" Kindly give your suggestions to solve th

  • Exporting Versions to a specific pixel size

    I want to export files for a slideshow that requires a pixel size of 1900 x 1200 , can it be done in Aperture ? , I have tried modifying the export preset , it does not work with (Fit Within ) is there another way ? Thanks Ray

  • IWeb gallery - I can't see it!

    Hello, Just finished putting together a website for my brother but having issues with the gallery. I have a portfolio page for his photos. When I'm in iweb the photo album covers scroll nicely between images and link straight to the photo gallery pag

  • ATV2 sound loss from HDMI, Optical or both!

    Hi, Sometimes (and this is the rustrating bit), but not always the sound from my ATV2 will die. I have it connected to the TV via HDMI and also to a surround sound system via an optical cable. I've played around with the audio setting in the ATV menu