PDA

Click to See Complete Forum and Search --> : image swapping in flash


Big Perm-dizzle
04-15-2004, 03:33 AM
how do i do image swapping in flash?



how do i make a new broswer window in flash without browser crap...

'In the past couple of weeks your kids have touched me, and i'm pretty sure i've touched them too' - Jack Black (School of Rock)

Ryan8720
04-15-2004, 06:36 AM
Image swapping? Like rollovers? There is a state for active, regular, and pressed. Just make an image for each.

http://edgewebdesign.org/ryan2.gif (http://www.edgewebdesign.org)

C:\DOS
C:\DOS\RUN
RUN DOS RUN

casedsgn
04-15-2004, 08:20 AM
What do you mean by image swapping?
Are you looking to open a pop-up window?

Big Perm-dizzle
04-15-2004, 04:01 PM
image swapping see www.twosmalldogs.com/print.html (http://www.twosmalldogs.com/print.html)

I know they need to be buttons with a

on mouse over = true

and then maybe a loadmovie

false = unloadmovie

'In the past couple of weeks your kids have touched me, and i'm pretty sure i've touched them too' - Jack Black (School of Rock)

Big Perm-dizzle
04-15-2004, 04:01 PM
oh and i want to know how to make a plain pop up window no browser back buttons etc

'In the past couple of weeks your kids have touched me, and i'm pretty sure i've touched them too' - Jack Black (School of Rock)

casedsgn
04-15-2004, 05:23 PM
I'm still unclear about what you're really trying to do with the image swapping...but I don't think you want to be loading and unloading movies on a mouse OVER. Can you show an example of what you're trying to do, or talk us through it perhaps?

Ryan's going to kill me for providing the pop-up info, but here you go:

on your button in flash -

on (release) {
getURL('javascript:openNewWindow('http:/www.whatever.html','thewin','height=750,width=625, toolbar=no,scrollbars=no') ');
}

on the HTML page hosting the flash inside the <head> tag -

<SCRIPT LANGUAGE=JavaScript>
function openNewWindow(URLtoOpen, windowName, windowFeatures) {
newWindow=window.open(URLtoOpen, windowName, windowFeatures);
}
</SCRIPT>

Big Perm-dizzle
04-15-2004, 07:18 PM
whats 'thewin'?


I want thumbnails of my work when someone rolls over them I want a large version to pop up in the same window

see html example
www.twosmalldogs.com/print.html (http://www.twosmalldogs.com/print.html)

'In the past couple of weeks your kids have touched me, and i'm pretty sure i've touched them too' - Jack Black (School of Rock)

casedsgn
04-15-2004, 07:38 PM
'thewin' is the title that will show up at the top of the popup window.

Aaahhhh HHaaaaa, I see now.
Create a movie clip that has three layers - actions, labels, and images
(Create keyframes in each layer, for every image you want to show.)
on the first set off keyframes, put your logo in the image layer and give it a frame label like OFF or something.
Place your images across the timeline, one image per keyframe on the images layer.
In each action keyframe, put a stop(); command.
In each label keyframe, give the frame a name, like image_01 or something.

ok, now drop that movieclip on your stage and give it an instance name, let's say imagesClip_mc

On each button, use this code:

on(rollOver){
imagesClip_mc.gotoAndStop('image_01');
}
on(rollOut){
imagesClip_mc.gotoAndStop('OFF');
}

Which image you want imagesClip_mc to show will depend on your rollOver code, using 'image_02', 'image_03', etc.
The rollOut code will stay the same, because you always want to hop back to the logo when you rollOut.

Make sense??