A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: tell html file that variable Test = "ready" from flash?

  1. #1
    Senior Member
    Join Date
    Jan 2002
    Posts
    267

    tell html file that variable Test = "ready" from flash?

    Hi,

    I have this problem which i can't seem 2 figure out. In the html file (main.html) i am using a selfmade varialbe called 'Test' .

    Test = "stoppp" when the html code is entered for the first time.

    THen i have a flash (swf) file which has to trigger the Test variable. When a button is pushed in the flash file then the variable in the html file has to change.

    Test = "ready"



    is this possible and how can i achieve this. tnx very much for reading and i'm looking forward to your reply!

  2. #2
    Flashkit historian Frets's Avatar
    Join Date
    Oct 2000
    Location
    flashkit
    Posts
    8,797
    Hi,

    Html is static. your not going to beable to change the substance of it.

  3. #3
    Senior Member
    Join Date
    Apr 2002
    Posts
    2,849
    Of course you can change HTML, you do it with Javascript.

    Basically you need to use Flash to call a Javascript function. Basically in the HTML you'd have something like

    test="stop";
    function changeMe(){
    test="ready";
    }

    and then in the Flash movie something like:

    on(release){
    getURL("javascript: changeMe()");
    }

    Though you may run into security errors depending on which version of the Flash player you're targeting.

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