Results 1 to 5 of 5

Thread: Swapping Flash Objects

  1. #1
    Join Date
    Jan 2006
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Swapping Flash Objects

    By using flash objects embedded into your web page, is there a method of swapping these objects when clicking on buttons with in the page itself?

    The idea is to have a page load once, and by clicking on the buttons load other flash movies with out reloading the page. If you can do it with images with a mouse over script and it be done with flash objects?

  2. #2
    Join Date
    Aug 2005
    Posts
    971
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Thumbs up

    Who knows try doing it with DHTML. Once I remember I saw a similar thing which swapped sounds(embedded in flash) with javascript. But let me remember which it was .... umm.... DHTML ... yea http://dhtmlnirvana.com/index_back.html
    Yep that's it contact the person called Eddie Traversa and may be you can find the answer??
    Try it anyways.

  3. #3
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    Well... not sure how, but javascript can basically rewrite the html....

    name the embed tag...

    Then refer to that in the javascript:

    something like

    embedname.src = "nexthing.swf"

    ....maybe.

    this is a total shot in the dark, but with the right syntax and commands, it should work.



    Just put that in a function.

    then:
    <img onmouseover="function()">
    And that's it. Assuming you're using an image mouseover.

    the function can be used other ways as well, obviously.
    Daniel - Freelance Web Design | <?php?> | <html>| espa˝ol | Deutsch | italiano | portuguŕs | catalÓ | un peu de franšais | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

  4. #4
    Join Date
    Aug 2005
    Posts
    971
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    yea maybe it is possible as with images. document.imagename.src = 'image.ext'
    try doing sth like document.objectname.src = 'objectname.ext'
    May be it works, I have never tried it so I am not so sure about it.

  5. #5
    Join Date
    Jan 2006
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thanks for you help everyone, i'll give it a try and let you know what happens..

Bookmarks

Posting Permissions

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