A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: HTML Button activate flash

  1. #1
    Junior Member
    Join Date
    Dec 2005
    Posts
    20

    HTML Button activate flash

    I want that when I press a button on a HTML page that my flash function is activated. So, I dont want to use Flash buttons but HTML buttons.

    For example: I have the function playerclick()
    and when you click on the button on the html page, this function will be activated in the flash movie.

  2. #2
    Space Monkey daarboven's Avatar
    Join Date
    Sep 2001
    Location
    in the basement boiling soap...
    Posts
    217
    this can be achieved with javascript controlling flash, but is kind of tricky to operate in different browsers.
    easier imho would be different swf movies in one page communicating via
    "LocalConnection"
    look this up in the AS-Dictionary, there you'll find all methods to make several swfs in one page talk to each other.
    :::i am jacks complete lack of surprise:::

  3. #3
    Junior Member
    Join Date
    Sep 2005
    Location
    Moscow, Russia
    Posts
    9
    it works only then html is loaded into flash:

    In HTML:

    <a href="asfunction:_root.func,10">Activate Function</a>

    In Flash root:

    function func(par) {
    .....
    }
    Last edited by baron27; 12-15-2005 at 08:17 AM.

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