www.webdeveloper.com
Results 1 to 5 of 5

Thread: Can a flash object interact with html....???

  1. #1
    Join Date
    Oct 2005
    Location
    Panorama, Los Angeles
    Posts
    2

    Can a flash object interact with html....???

    I'm new to flash.....
    my problem is this:

    If I have a table with a background picture of harry potter can I make a flash object and embed it to the same web page that can change that background picture to something else...

    It's like when that flash object have a button and I click on it, then the background picture of the table will change....(just like what you can do on javascript or other client-side language...)
    Is that possible...???

    cause I have a profile in some community website and that website doesn't allow javascript, dhtml, etc in it but it allow flash...
    so if there is a way to make that flash do what a javascript can do then my problem is solved...
    0101011101101000011000010111010000100000010101000110100001100101001000000100011001110101011000110110 1011

  2. #2
    Join Date
    Jun 2004
    Posts
    390
    The only way to allow flash to do this is to call a javascript function from flash... but seeing that you can't use javascript, there is no solution for you.

  3. #3
    Join Date
    Oct 2005
    Location
    Panorama, Los Angeles
    Posts
    2
    but what about html...???
    could I use flash to manipulate or change the html source code...
    like if I have an html page called:
    sample.html
    and I embed flash into the sample.html
    could I then use the flash to like interact witht the sample.html
    like if I put an external style sheet on the sample.html
    could I use flash to write an internal style sheet so it will be used instead of the external style sheet....

    I know that some of you are a bit confuse...because I can't really explain it well...
    0101011101101000011000010111010000100000010101000110100001100101001000000100011001110101011000110110 1011

  4. #4
    Join Date
    Oct 2005
    Posts
    481
    As schivo already said, the only way Flash communicates with html is through javascript and you said you can't use it. You can use Flash to change backgrounds, etc. within the Flash file, but not outside of it.

  5. #5
    Join Date
    Oct 2005
    Location
    Vancouver B.C.
    Posts
    3
    The other comments are correct about Flash needing Javascript to interact with the page's HTML code - there IS one other approach though: do all the work inside FLASH. Instead of an html table, make a Flash movie to handle the changing background plus all the stuff that you had in the table itself.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles