DPChallenge: A Digital Photography Contest You are not logged in. (log in or register
 

DPChallenge Forums >> Hardware and Software >> Ok "Flash" Experts
Pages:  
Showing posts 1 - 6 of 6, (reverse)
AuthorThread
10/14/2005 07:05:02 PM · #1
Ok so I am toying with macromedia flash 2004. What I am trying to do= when someone clicks on a thumbnail of a photo the larger displayed picture will slide off the screen to the left and the larger picture of the thumb they clicked on will slide in from the left. I have everything else looking pretty cool, but I am getting kind of frustrated here.

I am sure it cant be explained in a fourm so if someone could just poit me twoard a tutorial for that specific operation, it would be great.

I know it has to be somthing like adding some action script

on (release) {

gotoAndPlay (95)
}

Thanks

Travis

edit: also maybe something describing the difference between button and movie clips.

Message edited by author 2005-10-14 19:09:00.
10/14/2005 08:31:12 PM · #2
bump
10/16/2005 05:01:39 PM · #3
so you want the small picture ( button ) to slide off the screen and a larger version ( button ) to slide on instead?

why? it slows browsing of the pictures..

how about having a button and the over or down state show the picture instead?
11/04/2005 01:37:41 AM · #4
For the sliding in/out parts, you would have to use multiple frames for each "action" and do a simple motion tween.

I think the actionscript code you posted would work, if on frame 95 you had the current thumbnail slide out and the bigger one slide in. Give it a go and post back?
11/04/2005 02:26:38 AM · #5
the on(release) may work, but you can use dot notation to be a little bit faster with it

like this.onRelease=function(){
gotoAndPlay(95);
}

But instead of "95" maybe make a frame label like *start*, then put it in as gotoAndPlay("start");

Also, if you write the script in the first frame of the entire movie, you can consolidate the scripting to one area (for the most part). Then to affect a button, you could use absolute or relative to trigger stuff, like

_root.movie.button.onRelease=

or this.movie.button.onRelease=

Next question is hard to explain. In general, I like the power of movie clips. They can do anything a button can for the most part, and then some. Buttons are useful because they come with some preinstituted frames and work fairly easily. I understand how and when to use both, so I use both, but for the most part, I stick to movieclips.

Max
11/04/2005 07:31:54 AM · #6
with multiple images, this would make for a HUGE swf file.

Originally posted by justin_hewlett:

For the sliding in/out parts, you would have to use multiple frames for each "action" and do a simple motion tween.

I think the actionscript code you posted would work, if on frame 95 you had the current thumbnail slide out and the bigger one slide in. Give it a go and post back?


scripting it as mentioned by PShizzy would be better, cleaner, easier to edit, and make for a much smaller movie. stay away from tweening.


Pages:  
Current Server Time: 09/21/2025 12:50:36 PM

Please log in or register to post to the forums.


Home - Challenges - Community - League - Photos - Cameras - Lenses - Learn - Help - Terms of Use - Privacy - Top ^
DPChallenge, and website content and design, Copyright © 2001-2025 Challenging Technologies, LLC.
All digital photo copyrights belong to the photographers and may not be used without permission.
Current Server Time: 09/21/2025 12:50:36 PM EDT.