Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New to the CF scene
    Join Date
    May 2007
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Help with Showing/Hiding DIVS from within Flash

    Hello all,

    I'm a web designer, but don't take an awful lot to do with the code and rarely do any Flash

    stuff. I can use a bit of Flash and do some basic animation... Using Flash MX

    My problem:

    Have a Flash movie with some buttons in it. This is embedded in a HTML page which has a few

    Layers in it. I want the user to be able to click the button from within Flash and for this

    to make the DIV in the HTML visible. I also need it to hide any other DIV that is visible.

    Basically it's a Flash map with dots on it, when the user clicks a dot it will bring up a

    DIV in the HTML with the address on it. There are about 50 of these dots so naming all the

    DIVS to close inside the Flash button is not something I want to be doing.

    Not sure if I'm making sense?

    Help would be greatly appreciated.

    Thanks,
    Marty.

  • #2
    New to the CF scene
    Join Date
    May 2007
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I need to have this job finished for tomorrow morning, if anyone can give me help with this it would be greatly appreciated...

    Cheers,
    Marty

  • #3
    New to the CF scene
    Join Date
    May 2007
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Ok I got this working...

    What I have is a HTML page with some DIVs in it with graphics and some text. I gave the DIVs id's, say 'test' for instance and then on the buttons in flash I put in

    on (release) {
    getURL("java script:showDiv('test')");
    }

    Also set the wmode to transparent in the embedded flash file in the HTML.

    Ok weird one...

    It works only when its live. It wasn't working when I tried it locally... However I do still have a problem that I can remember always having from I started doing this. If I click and show one of the DIV's and then close it using the close button I have in the DIV itself its grand, then I can do this again and its grand, but on the third time of trying when I click on one of the buttons instead of showing a DIV it goes to a blank page? If I refresh I can start all over again. If I do not close the DIV's I can keep clicking the buttons and showing all the DIV's no problem.

    Anyone any ideas?

    Cheers,
    Marty

  • #4
    New to the CF scene
    Join Date
    May 2007
    Location
    out of sight
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    It wouldn't be easy, but if you didn't want to do java, you could do something with php

    you could have flash goto a php url and dynamically edit the CSS file...but, that might be a bit over the top..


  •  

    Posting Permissions

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