I need to control flash button states within html

I am utilizing a flash header for navigation on a site built
in html. I need to control the button states in my flash header
from within my html page to facilitate breadcrumbs. The header
works in a similar manner to an expandable banner. The sub menu
expands over the html page. However, I cannot figure out how to get
the primary navigation buttons in the flash header to stay in the
"hit state" so that the user knows which section of the site they
are in.
Can anyone point me in the right direction?
Thanks

You will want to use movieclips as buttons so that you can
control what state they are in by code.
As far as using the html to set the state, you could devise a
scheme using FlashVars, which get designated in the embedding code
of the html page.
Assuming you are not using frames, and the flash is reloaded
for each page that you navigate to, then you will have adjust the
FlashVars code to reflect the relevant page's button.

Similar Messages

  • Need help using flash buttons

    Can anyone help me with flash buttons? I am trying to build
    my first website, and my five flash buttons (inside a 5 col. table)
    for page navigation work fine in testing all 5 web pages with
    mozilla firefox, and they look the same on the index page when
    testing with IE-7. However when I begin navigating to other pages
    in IE-7, the flash buttons disappear, and the 5 cols in the table
    where each flash button was placed now are not equal sizes anymore
    like they are on the index page. In my files area on the right, I
    notice 3 out of the five buttons I created have about 15 to 20
    "generations" shown there, with numbers 1 through 15 or even more
    to qualify them tacked on to the end of the names. Where do these
    come from, and why are 2 out of the five only have 1 "generation"
    each? I never expected this, and I think it has something to do
    with the problem, but maybe not. Please help me if you can!

    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...
    Your problem is caused by navigating away from the previewed
    page. In
    general, this is not a good thing to do, since root relative
    links will not
    work as expected when you do that (locally).
    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
    ==================
    "dreamnovice" <[email protected]> wrote in
    message
    news:[email protected]...
    > Can anyone help me with flash buttons? I am trying to
    build my first
    > website,
    > and my five flash buttons (inside a 5 col. table) for
    page navigation work
    > fine
    > in testing all 5 web pages with mozilla firefox, and
    they look the same on
    > the
    > index page when testing with IE-7. However when I begin
    navigating to
    > other
    > pages in IE-7, the flash buttons disappear, and the 5
    cols in the table
    > where
    > each flash button was placed now are not equal sizes
    anymore like they are
    > on
    > the index page. In my files area on the right, I notice
    3 out of the five
    > buttons I created have about 15 to 20 "generations"
    shown there, with
    > numbers 1
    > through 15 or even more to qualify them tacked on to the
    end of the names.
    > Where do these come from, and why are 2 out of the five
    only have 1
    > "generation" each? I never expected this, and I think it
    has something to
    > do
    > with the problem, but maybe not. Please help me if you
    can!
    >

  • Flash button to show html layer

    I have embedded a Flash menu into an html doc with a hidden
    layer called player. I want a button in the Flash menu to show that
    layer. I used the instructions on this website:
    http://www.bestflashanimationsite.com/tutorials/1/2/
    But it doesn't work. I made a link on the html page that
    shows the layer, so the Dreamweaver MM_showHideLayers function is
    there in the html head. I tried this in the button actionscript:
    on(press) {
    getURL("javascript:MM_showHideLayers('player','','show')");
    I also tried writing a custom function in the html which does
    work from a button in the html:
    function showPlayer() {
    MM_showHideLayers('player','','show')
    and then putting this in the Flash button:
    on(press) {
    getURL("javascript:showPlayer()");
    Which does not work. (following are the Dreamweaver
    functions)
    Please help!!!!!

    I use externalInterface (instead of getURL). Its a great way
    to call javascript functions from flash and vice-versa.
    http://livedocs.adobe.com/flash/8/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveD ocs_Parts&file=00002200.html
    There are some links to examples in the comments below the
    description.

  • Linking a flash button to a html page

    Hi, I was wondering if anyone knew the best way to link a
    flash button to a page in DW?
    Thanks

    Place this actionscript into the hit area of your flash
    button, then export the flash as a .swf and place onto the
    dreamweaver page...
    on(release){
    getURL("YOUR_DESIRED_PAGE.html","_self");
    This will open the new html page in the same window. Hope
    that helps.
    You can get a cheap but awesome tutorial on Flash buttons
    here...
    http://www.cartoonsmart.com/smooth_buttons.html
    No, I don't know the guy and I don't get a commission. The
    tutorials really helped me, that's all.

  • Symbol with 3 animations controlled by buttons elements within

    alright this thing is bugging the crap out of me.
    I have a symbol (top_nav) with elements inside that will be buttons on click (quad1, quad2, juggle_logo_nav)
    each button moves to a point when clicked and then I need it to move back on a seperate click.
    I have my animations on the same timeline which I thought would make it easier but I guess not.
    I will also be doing this with 2 other symbols (bottom_nav, and slide_right_left) so I need to figure this out. I have spent way to much time creating and trashing this thing. Help
    Here is the flle. https://www.box.com/shared/static/i3lx4xwlaad35ery0ki1.zip

    Hello John,
    Okay, the two ways that I'd approach something like this would be either creating a state machine where you set a variable that you check later to see if the button's been clicked, and then use a conditional to perform the correct action based upon the value of the variable and then give it a new state value (not too complex an approach, but lots of code), or simpler and probably just as effective, use getPosition() to get the current time of the playhead, and then use a conditional to perform the correct action based upon the time in milliseconds derived from getPostion(). Here's some code that you could put on the click event of your button (everything with a double forward slash is a comment, but the lines starting with sym can be uncommented (remove the double slash) and used if necessary:
    var getPosition = sym.getPosition();
    if (getPosition < 1) {
              sym.play();
             // you can also use getSymbol to play other symbols, like the following:
              // sym.getParentSymbol().getSymbol("mySymbol").play();
    } else {
              // assuming you want to play it in reverse back to the last label/trigger
              sym.playReverse();
              // or you could just jump there, like so:
              // sym.stop(0);
    But - looking at how you've set up your animation, it looks like you've already done the reverse animation and you're using triggers to control it - which makes getPosition() a bit of overkill. That's fine, and makes it even easier. So instead of using sym.play(0) as you did in juggle_logo_nav, you could just use sym.play() to advance to the next trigger with the stop action and play the reverse animation. To play symbols outside of the symbol containing the button, reference the sym.getParentSymbol().getSymbol() code above and add it to your code, using your symbol name of course. That would look something like this:
    sym.play();
    sym.getParentSymbol().getSymbol("slide_right_left").play();
    If you want to do any interactivity in Animate, I highly recommend you refer to our Javascript API, which explains all the available commands you can use, with examples of how to use them:
    http://www.adobe.com/devnet-docs/edgeanimate/api/current/index.html
    hth,
    Joe

  • Flash button - linking to HTML page - weird problem

    There could be a really easy solution for this, but I can't
    figure it out. I have a simple button that links to an anchor
    within an HTML page. Here the actionscript for the button:
    on (release) {
    getURL ("test.html#two");
    when the button is pressed, the HTML page comes up but only
    to the top of test.html. The '#two' is not passed to the URL .
    Seems like everything after '#' is ignored. How can I get around
    this?

    hi
    on(press)
    getURL("path of html page");
    }

  • 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

  • Remote Control Menu Button

    Starting from the top, I have a 1st play title menu (A) with 4 buttons that are targeted to 4 other menus (B) – each of which, have multiple motion buttons leading to individual clips (C).
    I would like to be able to click on the Remote Control Menu button anywhere within the DVD and have it return to the 1st play title menu (A). In the Disc Inspector, I have set the “Remote Control” pull down menu to the 1st play title menu (A).
    I can achieve what I want by clicking on the Remote Control “Title” button but not the “Menu” button. What am I missing?
    Thanks in advance for your help.

    Sorry - I made an assumption that you were not able to go fro a track to the title menu... what you are asking is to go from a menu to the title menu by using the ;menu' key.
    Sadly, it won't be possible - the Menu key is designed to move only between tracks and menus. If you are in a track it will take you to a menu, once there, pressing it again willr eturn you to the track.
    You need to use the 'return' key to traverse through the menus, but it isn't a robust implementation in DVDSP.
    Therefore, the only way to accomplish what you want is to use the Title key on the remote control when in a menu... unless you add a button to each sub menu that jumps to the title menu.

  • Flash button problem in Firefox

    Hello.
    I am using a flash button to replace html email links
    throughout the site as a method to control email spamming.
    A lot of the areas I am doing this, the flash email link
    appears amidst a paragraph of text.
    This seems to work and displays perfectly in IE.
    However, in firefox, the embedded flash object wants to start
    a new line/paragraph which messes up the flow of text.
    Does anyone know a fix for this?
    Here is a link to a page where this is happening. Scroll
    horizontally to the 2nd to last column (under "who would have said
    any cover band would have lasted 18 years?") and note the EMAIL
    link in red in EXPLORER. Then look at it in FIREFOX and see how it
    starts a new line with a gap.
    http://dev.informarch.com/wm/feature/feature.html
    Any help would be greatly appreciated.
    (by the way...I know horizontal scrolling is not
    preferred...but thats not what this thread is about....thank
    you.)

    Hello,
    Try this and see if it works
    In your HTML go to where the <object> tag is that loads
    your flash button.
    Add this parameter within it.
    <param name="wmode" value="transparent">
    Then add the following inside the <embed> tag
    wmode="transparent"
    This is taken from an article from this site
    http://www.bigismore.com/flash-related/flash-zorder-always-on-top/

  • Button States -- Over, Up, and Down.  How to show?

    This morning, I attended a webinar from our Adobe friends in Bangalore.  It was a good presentation and got me thinking back to button states. The instructor said that you needed to create 3 button states as 3 separate images (not in Flash) such as (1)  [buttonx]_up.png, (2)  [buttonx]_over.png and (3) [buttonx]_down.png.  She said to put all 3 in your library, but only point to [buttonx]_up.png in the properties panel. She said that Cp would automatically pick up on the other 2 states. I have tried in Preview and have not gotten the states to show. Granted, I have not published yet.  Does anyone out there have experience with button states. Am I missing something?  I'd also love to build folders in the assets panel (such as one for buttons--  Is that an enhancement request?)

    You may have misunderstood what the Adobe person said, or they may have mistakenly used the wrong word.
    You don't put the button files in the Captivate Library. You add them to the button Gallery at:
    C:\Program Files\Adobe\Adobe Captivate 5\Gallery\Buttons
    or on 64bit machines at:
    C:\Program Files (x86)\Adobe\Adobe Captivate 5\Gallery\Buttons
    Then they should appear listed among the buttons available in your image buttons drop down.  Captivate only shows one of the images but uses all three.

  • Need help with Flash CS4 buttons/can't get buttons to control anything

    Hello,
    I need help with Flash CS4. I am making a banner with an animation (Image change into movie clip "3D Spiral") and added buttons but I cannot get the buttons to control the animation. Please help I am frustrated! If someone could help I would be most appreciated.

    Thank you.
    Regards,
    Michael J. Sheehan  allelois
    Date: Mon, 17 Aug 2009 18:48:09 -0600
    From: [email protected]
    To: [email protected]
    Subject: Need help with Flash CS4 buttons/can't get buttons to control anything
    Hi there
    I'm not sure how you wound up where you did. But you wound up in the Adobe Captivate forums. Please stand by as I move your thread to the Flash forums.
    Cheers... Rick
    >

  • Flash Button within Dreamwever

    I am trying to set up a number of flash buttons which can be
    produced within dreamweaver, from Insert>Interactive
    Image>Flash Button. I am trying to set up the button to pick up
    an anchor further down the same page, but I cant seem to get it to
    work. I have tried many different types of HTML and entered this
    into the "Link" option within the Inset flash button submenu, but
    when I save and click onto the button it just refreshes the current
    page and dose not move to the required Anchor further down the
    page.
    Can anyone tell me what needs to be entered to allow the
    button to work correctly. Many thanks in advance

    Hi
    Ok it's good to learn but if you want to save time and effort
    take a look
    at:
    http://www.coffeecup.com/form-builder/
    $39
    HTH
    Ian
    [email protected]
    http://www.edwards-micros.co.uk

  • Flash Button "Active" State

    Hi friends,
    I am trying to create a flash navigation bar for the first time and i have problems making it work the clicked state wont stick! I've looking thru tons of tutorials and only found 1 that ALMOST fits my need. Im lost in the never ending google and i really cant find the help i need to make it work so here i am.
    Here goes my problem i hope someone can help me out, i am very new to flash so please consider that if you want to help me out.
    I have created a navigation bar with 5 buttons made of movie clips each containing 4 states labeld up, over, out and clicked. When i test the navigationbar inside flash it works fine because it does not reload when i click a button as it would on the website where the whole page reloads. But on the website when im testing it the button state "clicked" just wont stick and i understand why, because the page is reloading and my script tells all the buttons to return to "up" state when the flash starts. But i would like them to stick... and i dont know how to do it really. I would love if there was a way to make so when i click the button the flash does not reload when im trying to grab my main content but im not sure if its possible. Or maybe so that the script checks what page i am on and activates the "clicked" state that way... Im not sure to be honest.
    Here is my action script for my navigationbar. Please help me..
    button1.buttonMode = true;
    button2.buttonMode = true;
    button3.buttonMode = true;
    button4.buttonMode = true;
    button5.buttonMode = true;
    function allButtonsUp(): void {
      button1.gotoAndStop("up");
      button2.gotoAndStop("up");
      button3.gotoAndStop("up");
      button4.gotoAndStop("up");
      button5.gotoAndStop("up");
    function allButtonsOver(): void {
      button1.addEventListener(MouseEvent.MOUSE_OVER,
      overFunction);
      button2.addEventListener(MouseEvent.MOUSE_OVER,
      overFunction);
      button3.addEventListener(MouseEvent.MOUSE_OVER,
      overFunction);
      button4.addEventListener(MouseEvent.MOUSE_OVER,
      overFunction);
      button5.addEventListener(MouseEvent.MOUSE_OVER,
      overFunction);
    function allButtonsCLICK(): void {
      button1.addEventListener(MouseEvent.CLICK,
      clickFunction);
      button2.addEventListener(MouseEvent.CLICK,
      clickFunction);
      button3.addEventListener(MouseEvent.CLICK,
      clickFunction);
      button4.addEventListener(MouseEvent.CLICK,
      clickFunction);
      button5.addEventListener(MouseEvent.CLICK,
      clickFunction);
    button1.addEventListener(MouseEvent.CLICK, Home);
    function Home(event: MouseEvent): void {
      navigateToURL(new URLRequest("?page=home"), "_self");
    button2.addEventListener(MouseEvent.CLICK, Register);
    function Register(event: MouseEvent): void {
      navigateToURL(new URLRequest("?page=register"), "_self");
    button3.addEventListener(MouseEvent.CLICK, Ranking);
    function Ranking(event: MouseEvent): void {
      navigateToURL(new URLRequest("?page=ranking"), "_self");
    button4.addEventListener(MouseEvent.CLICK, Downloads);
    function Downloads(event: MouseEvent): void {
      navigateToURL(new URLRequest("?page=downloads"), "_self");
    button5.addEventListener(MouseEvent.CLICK, Donate);
    function Donate(event: MouseEvent): void {
      navigateToURL(new URLRequest("?page=donate"), "_self");
    function allButtonsOut(): void {
      button1.addEventListener(MouseEvent.MOUSE_OUT,
      outFunction);
      button2.addEventListener(MouseEvent.MOUSE_OUT,
      outFunction);
      button3.addEventListener(MouseEvent.MOUSE_OUT,
      outFunction);
      button4.addEventListener(MouseEvent.MOUSE_OUT,
      outFunction);
      button5.addEventListener(MouseEvent.MOUSE_OUT,
      outFunction);
    allButtonsUp();
    allButtonsOver();
    allButtonsCLICK();
    allButtonsOut();
    function overFunction(e: MouseEvent): void {
      e.target.gotoAndStop("over");
    function outFunction(e: MouseEvent): void {
      e.target.gotoAndStop("up");
    function clickFunction(e: MouseEvent): void {
      allButtonsUp();
      allButtonsOver();
      allButtonsCLICK();
      allButtonsOut();
      e.target.gotoAndStop("clicked");
      e.target.removeEventListener(MouseEvent.MOUSE_OVER,
      overFunction);
      e.target.removeEventListener(MouseEvent.MOUSE_OUT,
      outFunction);

    if none of your button movieclips have a stop() in their first frame, use:
    var buttonA: Array = [button1, button2, button3, button4, button5];
    var pageA:Array = ["home","register","ranking","downloads","donate"};
    var previouslyClickedButton:MovieClip;
    buttonListeners();
    function buttonListeners(): void {
        for (var i: int = 0; i < buttonA.length; i++) {
        buttonA[i].gotoAndStop("up");
            buttonA[i].addEventListener(MouseEvent.MOUSE_OUT, outFunction);
            buttonA[i].addEventListener(MouseEvent.MOUSE_OVER, overFunction);
            buttonA[i].addEventListener(MouseEvent.CLICK, clickFunction);
            buttonA[i].buttonMode = true;
    function overFunction(e: MouseEvent): void {
        e.currentTarget.gotoAndStop("over");
    function outFunction(e: MouseEvent): void {
        e.currentTarget.gotoAndStop("up");
    function clickFunction(e: MouseEvent): void {
        navigateToURL(new URLRequest("?page="+pageA[buttonA.indexOf(e.currentTarget)]), "_self");
         if(previouslyClickedButton){
              previouslyClickedButon.enabled=true;
              previouslyClickButton.gotoAndStop("up");
        MovieClip(e.currentTarget).enabled = false;
    MovieClip(e.currentTarget).gotoAndStop("clicked");
         previouslyClickedButton=MovieClip(e.currentTarget);

  • I need to download flash media playback but I can't find the download button.

    I need to download flash media playback but I can't find the download button.

    Such behavior can be an indication that you are infected.<br />
    In such a case you can use another computer to download the program and save the file to an USB stick.<br />
    Be sure to download the latest databases.
    You can try an online anti-virus scanner.
    * http://www.google.com/search?q=Online%20Antivirus%20Scanner
    * http://housecall.trendmicro.com/ HouseCall - Free Online Virus Scan - Trend Micro USA
    * http://vms.drweb.com/online/?lng=en Dr.Web - innovation IT-security solutions. Complex protection against Internet threats.
    * http://www.eset.com/onlinescan/ - Free ESET Online Antivirus Scanner

  • Flash button that controls breeze play button

    Is it possible to create a flash button that is scripted to
    control the play and pause button on the breeze playbar? What I am
    looking for is a way to have a button that would start a slide
    again after it has stopped and is waiting for the user to start
    again.

    Hi!
    If you want to control the viewer with a Flash button you've
    embedded in a powerpoint slide (prior to using presenter to convert
    it) try this:
    (1) Make your button in Flash, and add this Actionscript to
    the first slide (replace [btnName] with the name of your button
    instance:
    btnName.onRelease = function () {
    _root.m_controlBar.m_slideNextBtn._onRelease();
    (2) Insert your button's swf in the PPT presentation and
    compile with Presenter. Now, when the user clicks the button, it
    will simulate pressing the "next slide" button in the viewer's
    control bar.
    Here are some of the other button names; to use these
    instead, just replace "m_slideNextBtn" in the above code:
    Play/pause button "m_playBtn"
    Next slide button "m_slideNextBtn"
    Previous slide button "m_slideBackBtn"
    View changer button "m_viewChangeBtn"
    Attachment Button "m_attachmentsBtn"
    Volume Button "m_volumeBtn"
    Hope that helps!
    ~Marc B

Maybe you are looking for