A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Problem using Javascript in HTML to call button function

  1. #1
    JayVEE
    Join Date
    Jan 2001
    Location
    Kgn Jamaica
    Posts
    44

    Problem using Javascript in HTML to call button function

    The Setup

    I have a flash menu and header with an mp3 player, due the to music I dont want to reload the flash file on everypage so I am using javascript to load the html pages in a container div.

    The Problem

    when I use links in the html to switch pages, this needs to call the button function in the flash menu and header so that the right background can be loaded and the correct menu item highlighted. I have looked at many posts re flash and js as well as the externalinterface but none of the solutions has enlightened me to do what I need to do in a clear manner, I have very little understanding of js.

    What I Have

    the button functions setup in flash:

    _root.topmenu.m1.onRelease = function() {
    //load page one background, highlight button one, load page one
    };
    _root.topmenu.m2.onRelease = function() {
    //load page two background, highlight button two, load page two
    };

    etc

    What I need

    1. The ExternalInterface code if needed to make the flash file accessable.

    2. the javascript in the head of the page to reference these button functions.

    3. and the javascript on each loaded page that will execute the proper button function

    If anyone can help it would be greatly appreciated.

    Thanks
    'til next time

  2. #2
    Senior Member
    Join Date
    Aug 2009
    Posts
    113
    we have the same problem!!!

    could anyone help us.. (if he has not een helped yet)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center