Page 3 of 3 FirstFirst 123
Results 21 to 26 of 26

Thread: Sliding image mask...

  1. #21
    Join Date
    Mar 2007
    Location
    Currently: New York/Philadelphia
    Posts
    2,735
    Thanks
    3
    Thanked 519 Times in 507 Posts

    Default

    Quote Originally Posted by momonline View Post
    okay, you totally lost me on this...i was sorta, kinda getting it and now i'm lost again!

    the google download for the .swf file -- i downloaded the zip file but don't know what to do with it.

    also, in my html file where i insert your code above, do i do a separate group for each before/after set?

    can you just post a sample of two sets of before/after so i know what info gets repeated?
    Look at the sample page I posted, it's all there! There is a .zip file with all the sources, including the HTML and SWFObject. This is much simpler than the old method, you shouldn't be lost.

  2. #22
    Join Date
    Mar 2006
    Posts
    75
    Thanks
    17
    Thanked 0 Times in 0 Posts

    Default

    on the link you provide, it goes to a google code page with a "featured downloads" section which includes 3 downloads: swfobject 2_1.zip; swfobject generator 1_1 air.zip; swfobject generator 1_1 html.zip

    do i download all 3 files?

    'cause i did and i'm still lost

    which are the editable files?

  3. #23
    Join Date
    Mar 2007
    Location
    Currently: New York/Philadelphia
    Posts
    2,735
    Thanks
    3
    Thanked 519 Times in 507 Posts

    Default

    Quote Originally Posted by momonline View Post
    on the link you provide, it goes to a google code page with a "featured downloads" section which includes 3 downloads: swfobject 2_1.zip; swfobject generator 1_1 air.zip; swfobject generator 1_1 html.zip

    do i download all 3 files?

    'cause i did and i'm still lost

    which are the editable files?
    lol....
    i guess you're still not seeing the link in my first post. The this in "So, I made this up really quickly" is a link. It's okay, it happens. Let's try this again.

    Go to: www.visualbinary.net/files/MOM/
    Click on . (It's under the first image, on the left).
    Download the file that it links to.
    Unzip the file.
    It has everything that you need. You don't have to download SWFObject by yourself.

  4. The Following User Says Thank You to Medyman For This Useful Post:

    momonline (07-24-2008)

  5. #24
    Join Date
    Mar 2006
    Posts
    75
    Thanks
    17
    Thanked 0 Times in 0 Posts

    Default

    okay, well that makes sense.

    i downloaded the zip file and will work on figuring it today.

    i'll be back, i'm sure

    thank you for your time!

  6. #25
    Join Date
    Aug 2008
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default question:

    Hi

    Im affraid im one of them newbie xml people. I wondered if its poss to get the caption taken off altogether?

    Kind regards
    Mark Zaccaria



    Quote Originally Posted by Medyman View Post
    Edit: This probably isn't what you're looking for. I've added another version in the next post


    Hi Marsha...

    So, had a chance to quickly make something up.

    I created two versions...

    1. AutoDetect Version
    You can download a zipped up version of that here. In the file you'll find the .swf, an example HTML page, a PHP script and the images folder. Obviously, all of your images should go in the images folder.

    You'll notice that I've changed the names of the images to sequential numbers. This script was initially designed to display images at random. The script will create the XML of the image files in alphabetical order. Thus, if you have images named 1before and 1after. The after will come before the before. To avoid that, change it to numbers.

    I've already configured the PHP script so you shouldn't need to mess with that. Again, it was designed for a much larger application so there are things in there that you don't necessarily need, but it works just as well for this as a more complicated version.

    Note: If you test this locally, it probably won't work (unless you have WAMP or XAMPP installed). You'll need a server with PHP capabilities to test/use it.

    2. XML Version
    You can download this version here. This is practically the same thing except that you're manually creating the XML. In the zipped archive you'll find the same files as mentioned above except an XML file instead of the PHP script. If you open the XML file with any text editor, you'll find a structure as such:

    Code:
    <?xml version="1.0" encoding="utf-8"?>
    <gallery>
    	<album lgPath="images/">
    		<img src="001.jpg" caption="" link="" />
    		<img src="002.jpg" caption="" link="" />
    		<img src="003.jpg" caption="" link="" />
    		<img src="004.jpg" caption="" link="" />
    	</album>
    </gallery>
    Pretty self explanatory...

    The lgPath attribute is the path to the images relative to the .swf. If you don't change the directory structure from my example, you won't need to worry about it.

    To add a new image, simple create another <img> node with the correct filename. The order in which these files are listed are the order that the images will appear. So for this application, you wouldn't need to rename your files.

    You'll also see a caption and link attribute. If you enter a caption for any of the nodes, a caption will appear on mouseover (this can be changed to be static...as in always there instead of appearing on mouseover. The problem with this is that it will show even if there is no caption). If you enter a link, clicking on that particular image will take you to the link.


    That's all I think I need to explain for now. Let me know if you have any questions.


    The speed, size and effect of the animation and/or .swf are all things that are controlled via the FLA. Let me know if you require any changes.

    Hope this helps.

  7. #26
    Join Date
    Mar 2007
    Location
    Currently: New York/Philadelphia
    Posts
    2,735
    Thanks
    3
    Thanked 519 Times in 507 Posts

    Default

    Quote Originally Posted by markzacc View Post
    Hi

    Im affraid im one of them newbie xml people. I wondered if its poss to get the caption taken off altogether?

    Kind regards
    Mark Zaccaria
    Sure...It's all up to you, really.

    If you don't reference the caption in your ActionScript it makes no difference if it's in the XML or not. You should probably get rid of it if you don't need it, though. But, the important and functional part here would be taking it out of your AS.

    If you need more guidance, post your AS.

Bookmarks

Posting Permissions

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