Indigo Rose Software
Indigo Rose Software
Log in to the Customer Portal Customer Login
Software Development Discussion Forums Forums
+ Reply to Thread
Results 1 to 13 of 13
  1. #1
    Join Date
    Apr 2005
    Location
    São Paulo, Brazil
    Posts
    1,259

    Example: "Transparent" Web Object

    I placed this idea recently as response in another topic, but I have made some improvements since then. Here is an example how you can make a Web Object appear as transparent on the page, using layers, CSS and some masking "magic".

    All you have to do to make the Web Object appear as transparent is call a function in the On Show event of the page, like this one:

    Code:
    -- function to make a web object appear as transparent on the page
    -- arguments:
    -- 1: name of the web oject
    -- 2: document to be displayed in the web object
    -- 3: the background image used on the page
    maketransparent("Web1", ".\\AutoPlay\\Docs\\demo.htm", "..\\Images\\630B2747.jpg");
    The HTML document will be modified to include an additional layer (which will carry the background image), and a style sheet document will be created to adjust the correct position of this layer, to blend the Web Object into the background of the page. I have done several tests, but it may be necessary to make additional adjustments for a specific case.

    Here are examples showing how this works:


    In the editor, move the Web Object, then preview/run. Move the Web Object to another position, and preview again. The background should be corrected on each iteration.

    For those who might find this useful, please check the sample project below.

    Ulrich
    Last edited by Ulrich; 10-29-2008 at 01:58 PM.

  2. #2
    Join Date
    Oct 2007
    Posts
    44
    Thanks for this example upeters

  3. #3
    Join Date
    Oct 2007
    Posts
    233
    WoW, Very nice upeters

  4. #4
    Join Date
    Jun 2002
    Location
    Israel
    Posts
    1,810
    That is a VERY nice trick!.
    Mix that with window transparent option for flash and you have a transparent flash object as well...
    Thanks!!!


    Yossi

  5. #5
    Join Date
    Feb 2001
    Location
    Indigo Rose Software
    Posts
    2,640
    That really is a nice workaround.
    --[[ Indigo Rose Software Developer ]]

  6. #6
    Join Date
    May 2006
    Posts
    854
    wow great ,how did i miss this thread

    i found this when i was looking for a way to execute javascript from ams
    now i can make a web object (with your example) as a label and call some
    javascript functions

    thank you for this great job

  7. #7
    Join Date
    Oct 2004
    Location
    East, South & West Asia
    Posts
    965
    Hi Ulrich,

    Thanks again for sharing your knowledge with all of us.
    Newbie Examples
    ------> AMS 7.5 : amstudio.azman.info
    ----> AMS 6 & 5: www.azman.info/ams/
    ----> Twitter: www.twitter.com/azmanar/

  8. #8
    Join Date
    Jul 2002
    Location
    Just South of Reality
    Posts
    776

    ...transfer to Example section

    upeters

    Thanks for this example.

    Maybe IR should transfer this into the EXAMPLES section so it doesn't get buried amongst the other threads.

  9. #9
    Join Date
    Sep 2006
    Location
    Alberta
    Posts
    99
    Wow very nice. Thanks for this.

  10. #10
    Join Date
    May 2005
    Posts
    1,106
    Cute as a button!
    Never know what life is gonna throw at you.
    (Based on a true story.)

  11. #11
    Join Date
    Dec 2003
    Location
    Location! Location!
    Posts
    6,055
    Thanks!

    I mirrored it on amsusers.com:

    http://www.amsuser.com/ams/examples/...S7-upeters.apz
    Intrigued
    www.amsuser.com

  12. #12
    Join Date
    Apr 2005
    Location
    São Paulo, Brazil
    Posts
    1,259
    Reuploading the same project file, I deleted the attachment by accident.

    Ulrich
    Attached Files

  13. #13
    Join Date
    Jun 2007
    Location
    Delphi II
    Posts
    1,166
    Thanks a lot upeters! Great trick...I added it to all my little code goodies.

Similar Threads

  1. Reload of page in Web Object
    By Ulrich in forum AutoPlay Media Studio 7.5
    Replies: 2
    Last Post: 06-11-2008, 06:44 AM
  2. Web Object Right Click Management
    By Roboblue in forum AutoPlay Media Studio 7.5 Examples
    Replies: 9
    Last Post: 12-24-2007, 01:56 PM
  3. HOW TO: Return a Web Browser Object to the Original URL after a Page Jump
    By Support in forum AutoPlay Media Studio 4.0 Examples
    Replies: 0
    Last Post: 02-03-2003, 09:18 AM
  4. INFO: Difference between the Media Player Object and the AVI Object
    By Support in forum AutoPlay Media Studio 4.0 Examples
    Replies: 0
    Last Post: 10-29-2002, 02:15 PM
  5. Replies: 0
    Last Post: 10-04-2002, 10:09 AM

Posting Permissions

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