Skip to main content
Known Participant
May 5, 2011
Question

loading pix

  • May 5, 2011
  • 2 replies
  • 1126 views

hi

this is my website in flash  900px on 600px

pix1 pix2 pix3 are button

and I would like to know the code in actionscript3

to load pix when I click on buttons

for example

when I click on button1 I would like to see the pix1

when I click on button2                            the pix2

when I click on button3                            the pix3

Thanks in advance 

This topic has been closed for replies.

2 replies

aneelbakshi
Inspiring
May 6, 2011

your job done???

marie5510Author
Known Participant
May 6, 2011

not completely

i am trying to be clear

i have a problem

first when you open the website on a layer i put this action :  loadMovieNum("pix1.swf", 1);

pix1.swf like pix2.swf like pix3.swf appear little by little (img1 alpha : 0% and img20 alpha : 100%)  it is why it is a .swf and not a .jpg

on the button pix1 i put this action : on (press) {loadMovieNum("pix1.swf",1);
}

on the button pix2 I put this action : on (press) {loadMovieNum("pix2.swf",1);
}

on the button pix3 I put this action : on (press) {loadMovieNum("pix3.swf",1);
}

and the problem is

for exemple when pix1.swf is loaded

and that I click on the button pix2

that load pix2.swf (a the beginig the pix is transparent (alpha: 0%) and I would like to see pix1.swf desepearing little by little

while pix2.swf is loading (you understand ?)

but not that unload pix1.swf and I see the green color of my background and that is my problem

how do I load pix2.swf without unloading pix1.swf ?

thanks in advance

aneelbakshi
Inspiring
May 6, 2011

i think u should use movieclip rather then levels

Like one is disappearing and another is appearing. and when the first one completely disapper unload it. and next time load new image in that movielcip and disapper the other one

by the way its as2 code and i think u were looking for as3

relaxatraja
Inspiring
May 5, 2011