How can use lightbox effect in flash?
A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: How can use lightbox effect in flash?

  1. #1
    Junior Member
    Join Date
    May 2012
    Location
    New Delhi
    Posts
    1

    How can use lightbox effect in flash?

    Hi i want to create a lightbox effect in flash. When i click on a button in shockwave file i want that lightbox comes on the screen. But i want that it work only in flash not in browser or html. if anyone knows about it pls help

  2. #2
    Moderator whispers's Avatar
    Join Date
    Mar 2001
    Location
    CFA2h (respect the HEX)
    Posts
    12,697
    you would 'make your own' then..

    attach a 'semi' faded movieClip that covers your flash area/stage... and then plays/loads whatever it is you want to 'display'.


    the TRUE lightbox works in HTML/Javascript and is called 'from' flash to the container (html document)... where a function is written.

    You call/execute this 'javascript' function in the html doc by using ExternalInterface() instance..

  3. #3
    Senior Member realMakc's Avatar
    Join Date
    Oct 2002
    Posts
    663
    didn't he said he needs this outside of browser?

    any way, basic lightbox-like thing would be like this:

    Code:
    var background:Sprite = new Sprite;
    background.graphics.beginFill (0, 0.5);
    background.graphics.drawRect (0, 0, stage.stageWidth, stage.stageHeight);
    stage.addChild (background);
    
    background (or stage).addChild (your image or dialog or whatever);

  4. #4
    Moderator whispers's Avatar
    Join Date
    Mar 2001
    Location
    CFA2h (respect the HEX)
    Posts
    12,697
    he said needed to work IN flash.. NOT in browser..

    hence why I told him to make his own...

    you also posted in AS3? (but were not in the AS3 section)

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

Poll by Flashkit.com