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
    Senior Member whispers's Avatar
    Join Date
    Mar 2001
    Location
    CFA2h (respect the HEX)
    Posts
    12,756
    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
    927
    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);
    who is this? a word of friendly advice: FFS stop using AS2

  4. #4
    Senior Member whispers's Avatar
    Join Date
    Mar 2001
    Location
    CFA2h (respect the HEX)
    Posts
    12,756
    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