Indigo Rose Software

Professional Software Development Tools

 
+ Reply to Thread
Results 1 to 11 of 11
  1. #1
    Join Date
    Jul 2003
    Posts
    712

    EXAMPLE: Image Thumb Viewer - Fade In Images

    Hello,

    This example demonstrates how to 'fade' images in and out using AutoPlay Media Studio 6.0 and the Image Object. Click on the images to the left, and watch the image on the right fade to the image you selected.

    Skills Used: Image Opacity, For Loops, Global Functions, Application.Redraw, Thumbnails, Image Object, Image Size, Image Position, Tables, If Statements.
    Attached Files
    Last edited by Desmond; 09-30-2005 at 10:04 AM.

  2. #2
    Join Date
    Aug 2003
    Location
    Maine, USA
    Posts
    1,695
    A nice example.

    Desmond / Adam,

    How can the "Resize/runtime" example be applied to this? Obviously this line prevents it:

    tLargeBounds = {W=500,H=405,Y=10,X=125}

    I'm sure I can figure it out eventually, but my brain hurts right now

  3. #3
    Join Date
    Jul 2003
    Posts
    712
    The values in tLargeBounds are as follows:
    W: The maximum width of the large image
    H: The maximum height of the large image
    Y: The minimum (top-most) vertical position
    X: The minimum (left-lost) horizontal position.

    So, to make this applicaiton resize, you'd have to start by setting the W and H values to allow the fade image object to be larger than 500x405.

    If you get a good resize going with this project, feel free to post back to this thread!

  4. #4
    Join Date
    Mar 2006
    Posts
    1
    Hello

    I have a "little" problem. This example is grate but only for galleries whit only one type of photos: vertical or horizontal.
    I would like to create mixed gallery but i have problem with script. I've made two copies of script making some changes:
    - for horizontal: tLargeBoundsA, OpenLargeA, Large_Image1;
    - for vertical: tLargeBoundsB, OpenLargeB, Large_Image2;
    - On Click: OpenLargeA(this) or OpenLargeB(this);
    I create in project two photos [horizontal and vertical] with Opacity 0, they lay on the same place.
    Now the "little" problem:
    When i click on thumbnail of the horizontal photo and then vertical, the first is showing properly but not fading out, then the second is showing in front of or behind the first one. I suppose the problem is that i copy second version script after the first. It's only "suppose" because i cann't programme.

    In Attachment is fast version of my "little" problem and version of script.

    At the end i sorry for my english, but i hope that you will understand what i try to say.
    Attached Files

  5. #5
    Join Date
    Nov 2006
    Location
    Quebec, Canada.
    Posts
    432
    Hi,

    I found your exemple very interesting, but I'm starting with AMS and it's language, so I need some help to do my modifications.

    Well, here is my goal: instead of changing the pictures during the build, I want, like in the slideshow exemple, (http://www.indigorose.com/forums/sho...ight=slideshow) to browse for the pictures to show, and then have a scrollbar when more than the space available is needed 9in your exemple, 5 pics).

    Can someone help me, (the better for me would be commented code, cause I like to study it and it's better if commented )

    Thanks a lot for your exemple and for everyone who would help me!
    FoxLeader

  6. #6
    Join Date
    Jul 2002
    Location
    Just South of Reality
    Posts
    778

    slide show basics...

    My slideshows are very rudimentary; nothing so sophisticated as Desmond's fantastic example.

    What I've done for resizing slideshows is to use two images (one portrait and one landscape) both non-visible. I test the difference in size of the .jpg to be loaded then load to image1 or image2 appropriately; and then make either the portrait or landscape image visible. Fade out or slide out for effects.

    Then I use 'Adam's cool resizing technique'; and the resizing works fine.

    Wide screen monitors really skew the full screen effect on the resizing; but it's easy enough drag the corners to adjust as necessary; or if you're energentic - I'm certainly not - place constraints on the maximum screen size when wide screens are used.
    Last edited by holtgrewe; 11-10-2006 at 11:34 AM. Reason: typo

  7. #7
    Join Date
    Dec 2006
    Posts
    14

    Displaying a variable

    Can someone start me off as to how you display a variable within the project on the screen? I have tried labels and hotspots...but not sure how you circumvent the "text" display with a variable.

    E.g. I get the Audio file name
    result = Audio.GetFilename(CHANNEL_BACKGROUND);

    How do I get the contents of "result" to display at a given point on the screen. I am sure it is basic, but the use of where the code goes confuses me...I realize it goes under Script...but the display text box and the object name also seem to come into play.

    Zylo

  8. #8
    Join Date
    Jul 2002
    Location
    Just South of Reality
    Posts
    778
    Zylo
    Posting requests for help under the EXAMPLE forum is probably not the best place to get a response from the many talented developers using this forum.

    This probably should be re-posted under the DISCUSSION forum for best response results.

    Best regards.

  9. #9
    Join Date
    Dec 2006
    Posts
    14
    Quote Originally Posted by holtgrewe View Post
    Zylo
    Posting requests for help under the EXAMPLE forum is probably not the best place to get a response from the many talented developers using this forum.

    This probably should be re-posted under the DISCUSSION forum for best response results.

    Best regards.
    Ok thanks. I'll repost it.

  10. #10
    Join Date
    Jun 2007
    Posts
    1
    Is it possible to have this fade effect on a gallery with a next a prev buttons.?

  11. #11
    Join Date
    Jun 2008
    Posts
    165
    Sorry for the age-old bump, I have only just stumbled upon this post, and I am currently trying to make an image browser!

    the way I have my project at the moment is in the Autoplay folder, there is another folder called "Albums", and in each album, there are images, I have a list box to display the albums, and when clicked, dispays the filenames of the images in a second listbox, then when an image is selected from the second listbox, I want it to fade in the image, it works with image.load!

    I have a problem in the code though, the problem is:
    On Select, Line 26: attempt to index global #tSize' (a nil value)
    But it shouldnt be a nil value!

    Please can somebody shed some light?

Similar Threads

  1. Example: Creating Animated Images
    By Corey in forum AutoPlay Media Studio 5.0 Examples
    Replies: 1
    Last Post: 03-04-2006, 12:44 AM
  2. AutoPlay 5.0 plugin, thumnail image viewer
    By Firenegn in forum AutoPlay Media Studio 5.0
    Replies: 0
    Last Post: 11-15-2004, 09:58 AM
  3. Switching pictures with forward/back buttons
    By ilandv in forum AutoPlay Media Studio 4.0
    Replies: 10
    Last Post: 08-08-2004, 04:51 PM
  4. Function: Resize & Center an Image
    By kpsmith in forum AutoPlay Media Studio 5.0 Examples
    Replies: 0
    Last Post: 05-17-2004, 01:36 PM

Posting Permissions

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