-
Gallery Problems
Hello everybody,
I am trying to create a gallery where I have 3 buttons for separate sections in my gallery and each section has 15 images. What I am having trouble doing is firstly creating the 15 buttons to call up different images depending on the first(of the three) buttons clicked. I want to click button A and the 15 buttons to call up those 15 images, button B to call up a different 15 images and so on.
I have just loaded 15 different buttons for each section but I am sure there must be a neater way using variables...
Now I use the loadMovie action to call up my images but I dont know how to move the position... they always load at 0,0 in relation to the main time line?? Any ideas on how to shift them?
Thanks in advance.
ct
-
hi ...
.. it comes to be that u r in deep **** .. lol .. dont worry ... follow this ..
u got yer 3 buttons at the first frame ..
.. place 15 Empty Movie Clips (be them just rectangles) .. have them named like m1, m2, m3, .... , m15 ... insdie the first button have this:
on(release){
click = "A";
}
in the 2nd one:
on(release){
click = "B";
}
on(release){
click = "C";
}
...... ok .. now have a swich statement in the frame Script:
switch(click){
case "A":
m1.loadMovie("URL to your jpeg");
m2.loadMovie("URL to your jpeg");
m3.loadMovie("URL to your jpeg");
.
.
.
m5.loadMovie("URL to your jpeg");
break;
case "B":
m1.loadMovie("URL to your jpeg");
m2.loadMovie("URL to your jpeg");
m3.loadMovie("URL to your jpeg");
.
.
.
m5.loadMovie("URL to your jpeg");
break;
case "C":
m1.loadMovie("URL to your jpeg");
m2.loadMovie("URL to your jpeg");
m3.loadMovie("URL to your jpeg");
.
.
.
m5.loadMovie("URL to your jpeg");
break;
}
.. thess about it .. the above code can be compressed very much, but i have just given u the complete algo.
Theres a Devil inside us all .. only, some are afraid to bring it out !
-
Thanks alot I will try it out and see how it goes.
How can I compress the code?
And now all that leaves is how to move the loaded jpeg from 0,0??
Cheers
ct
-
well .. u wont need to reposition them if u position your MCs in the first place !
Theres a Devil inside us all .. only, some are afraid to bring it out !
-
I get it, sorry didn't understand till I tried it out !
Works perfectly.
Thanks alot
-
no problem dear .. happens ...
Theres a Devil inside us all .. only, some are afraid to bring it out !
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|