Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash





See Related Forum Messages: Follow the Links Below to View Complete Thread

Swapping Images :)
Hi All,

I am not very good at flash but I am an expert in Director.

I need to do a very simple thing in Flash. I have a gallery of items and I want to display different items in a main window which are animated in some sort of way.

Every item should appear at the same way. So it would be very easy to just swap the images (In Director this is a piece of cake).

I searched all over internet but I can't find a property for an image URL or something like that. I tried converting it into a movieclip so I could use _name, _target etc. But it still doesn't work.

Now please tell me I am missing something here. It shouldn't be that hard.

Thanx for your attention and for your reply,

Cheers,

One23

Swapping Images
Hi,

This is probably a real simple thing to do but its had me stuck for a day now so I'd appreciate any help.

I'm working on a card game. I've got an image of a card face down so you see the back. I also have the name of the card I want to show in its place in a variable, e.g. "heart6". "heart6" and all the other cards are in the library as graphics.

How do I change the image of the face down card for the one from the library I've chosen?

Also, thinking ahead to another issue I'll face. Is it different to do this with movie clips?

Thanks!

Help Swapping Images
I thought i had this working but now its not

What i am trying to achieve is:

Each section of the site has a title.
When you go to a different section that title changes.
Simple i know but i've done something wrong.

This is the script im using


PHP Code:




//set current title
currentTitle = home_mc;

//hide all other pages
listings_mc._visible = false;
djs_mc._visible = false;
fun_mc._visible = false;
info_mc._visible = false;

//controlls fun section
fun_btn.onPress = function() {
    fun_mc._visible = true;
    fun_mc.gotoAndPlay(1);
    currentTitle.gotoAndPlay(33);
    
};

//controlls listings section
listings_btn.onPress = function() {
    listings_mc._visible = true;
    listings_mc.gotoAndPlay(3);
    currentTitle.gotoAndPlay(33);
    
};

//controlls djs section
djs_btn.onPress = function() {
    djs_mc._visible = true;
    djs_mc.gotoAndPlay(1);
    currentTitle.gotoAndPlay(33);
    
};

//controlls info section
info_btn.onPress = function() {
    info_mc._visible = true;
    info_mc.gotoAndPlay(1);
    currentTitle.gotoAndPlay(33);
    
};

//controlls home section
home_btn.onPress = function() {
    home_mc._visible = true;
    home_mc.gotoAndPlay(2);
    currentTitle.gotoAndPlay(33);
    
};







Each movie clip sets it self as currentTitle when the transision is compleate.

Thing is, when i test it they all work fine apart form when i get to 'listings' then it all goes wrong and they simply stack up behind the listings title

Confused so am i if you can help it would be grately appreciated
-ADAM-

Swapping Two Images Help Need Please
Im trying to have two images swap from one to the other in my movie.

at present i created a mc and in frame 1 placed my first image and then secoframe 2 the nd image. i then created a second layer with separate stop() for both frames.

i then placed this in my movie and gave it an instance name of "selecta"

i then gave the following code to the mc...

on (release) {
if (selectnum == 1) {
selecta.gotoAndStop(1);
selectnum = 0;
}
else {
selecta.gotoAndStop(2);
selectnum = 1;
}
}

When i test the movie this isnt working

any clues as to where im going wrong, or another way to solve the problem.

thanks.

Swapping Images
i apologize as i realised similar threads as this one exist, but they didnt help me solve my problem so i thought i'd start a new thread...

http://www.squelched.net/demo
(sorry, i haven't made a preloader yet but its only 150k)

basically, i want it so that when you click on the numbers in the top right hand corner, the image below the buttons will change.

but i can't do this using the gotoandplay scene/frame command as that will bugger up the rest of my movie. i also can't make the image an independant swf from the buttons as i am going to add a layer later that will overlap both of them.

so am i write in thinking i have to use the load clip command to swap over the images? i've made three one frame movie clips in my library one with each background image. at the moment the bg1 movie clip is the background.

can anybody help me with the code i need to assign to each button?

Swapping Out Images
How can I successfully swap out the main image ( picture of kitchen ) with another image on this following template?

Flash template

I've tried turning the new image into a symbol, but it can't find a way to swap the image out with the original. When I preview in flash, it's not there. Only the original picture is there. There must be solution?

Swapping Images
I'm making an image Gallery in AS 3, and am making pretty good progress, but am stumped on one thing. What I want to happen is, when a user rolls over a thumbnail, the new image is placed on top of the current image and fades in (or slides in or something else, I haven't decided yet).

First off, I'm not sure if I'm doing this the most efficient way possible. You can see my code below, but basically what I'm doing is creating an imageHolder sprite, which I then attach each image to, setting each one's alpha to 0, and then just fading them in when needed. I don't know if it would be better practice to add them and remove them from the display list as needed rather than fading them in and out? Or maybe it doesn't matter?

My second questions is about bringing the new image to the top of the stack. Right now, I'm basically just fading the last image out and the new image in, so it doesn't matter where they are in the stack. But ideally, I'd like to be able to bring the new image to the top so that I don't have to fade the last one out right away if I don't want to. I've tried to work this out using AS 3's child/depth swapping functionality, but can't seem to get it to work.

Hope that makes sense. Any other pointers or corrections to my code would be appreciated as well.


Code:
function addThumb():void {
// thumbsURLs and imageURLs arrays are populated elsewhere
if(thumbURLs[num] != null) {
var thmbloader:Loader = new Loader();
thmbloader.contentLoaderInfo.addEventListener(Event.COMPLETE, thumbAdded, false, 0, true);
try{thmbloader.load(new URLRequest(thumbURLs[num]));}
catch(e){
trace(thumbURLs[num]);
}

loader = new Loader();
loader.contentLoaderInfo.addEventListener(Event.COMPLETE, imageLoaded, false, 0, true);
try{loader.load(new URLRequest(imageURLs[num]));}
catch(e){
trace(imageURLs[num]);
}
} else {

}
}

function thumbAdded(event:Event):void {
var thumb:Sprite = new Sprite();
thumb.addChild(event.target.content);
thumbsArray[num] = event.target.content;

thumb.y = 0;
thumb.x = newX;
newX += thumb.width + 4;
thumb.buttonMode = true;
thumb.mouseChildren = false;
thumb.addEventListener(MouseEvent.ROLL_OVER, displayImage, false, 0, true);
thumbs.addChild(thumb);
}


function imageLoaded(event:Event):void {
imagesArray[num] = event.target.content;

imageHolder = new Sprite;
addChild(imageHolder);
imageHolder.x = 0;
imageHolder.y = 64;
imagesArray[num].alpha = 0;
imageHolder.addChild(imagesArray[num]);

num++;
addThumb();

}

function displayImage(event:MouseEvent):void {
var index:int = thumbs.getChildIndex(event.target as Sprite);

lastHolder = thisHolder;
thisHolder = imagesArray[index];

alphaIn = new Tween(thisHolder, "alpha", Strong.easeOut, 0, 1, .4, true);
alphaOut = new Tween(lastHolder, "alpha", Strong.easeOut, 1, 0, .4, true);

}

addThumb();

Swapping Images Using AS3 Only
Hello,

I would like to have my background image change images every so often. I would like to use only AS3 for this. Could someone point me in the right direction. I am new to the language as well as flash. I appreciate any feedback, thank you,

Swapping Images?
OK...so this is something very simple and I'm not sure I'm approaching it in the best way.

I have a loop of about 100 frames for an animation. At the beggining of the loop I have some text that fades in and moves up and then fades out at the end of the loop. I have about four different text image that would appear after each (four) loops. Basiaclly, loop one you see "creative", loop two you see "inventive"...etc. I want to recyle the code so that the new image gets loaded at the front of the loop. Any ideas on this one? I really appreciate the help.

- Sean-Paul

Swapping Background Images
is it possible to swap the html background image from within in a Flash movie?

thanks
nic

Swapping Images On Rollovers
I don't know if I've gone crazy thinking this over way too much or what. Here's the problem

I'm doing a flash only website, I have my navigation which works fine with the button look changing on rollovers done by using the over/up/down states, my problem is this...ontop of having the look of the button change when rolled over, I also need an image to change each time a button is rolled over. This image is on a separate part of the page and this action needs to happen no matter what page the user is on. If anyone can help, please let me know, I'd be happy to send an swf file of what I already have. In the meantime, I've attached the image that will change upon rollover IN the button over states by editing the symbol in the window so I can get correct placement. Is there a way to script this to the button targeting a specific location on the page instead of adding it as part of the over state in the button itself.
Thanks so much for anyone's time.
Kerri

Swapping / Slidding Images [ HELP ]
Hi - hope you can help (again)

If you click on "who's who?" then "Caitlin" or "Brendan" an image will slide into view from the right.

I would like this to be changed so that when you click on someones name, their image slides into view (as it does now) but then when you click on another name the image that was in view slider to the right and out of view then the image of the button that was clicked on slides into view.

What I have done doesnt really do that at all.
I have useed a movie and have used the telltarget for the buttons to play the movie but I cant see how this can be changed to make it work how I want.

The symbol with the images in is called "character-swap".

The urls are these:
http://www.schoolyardrules.com/test/index.htm
http://www.schoolyardrules.com/test/01.fla

Many thanks - Joe

Swapping Images And Swf Files
Is there a java script that I can use that will allow me to do a simple rollover from a gif image to a swf file?

Thanks,
Matt

Swapping Images Like This Site
I would like to know how they were able to swap out pics without moving them.

http://www.youare.com/

Swapping Images In Flash 8
Is it possible to swap images in flash 8 with having to recreate the entire timeline?

Thanks in advance!

Brad

[F8] Swapping Images In Flash 8
Is it possible to swap images in flash 8 with having to recreate the entire timeline?

Thanks in advance!

Brad

Swapping Photo Images
I'm sure this must be really simple and I'm just being really thick. But all the books I've brought seem to show more complex animations and miss this bit out or I'm not looking up the right thing.

I want to show one image, have it fade out and replaced by another and show on. Can anyone tell me how or point me at a tutorial somewhere, or tell me what I should look up in a book to find the answer?

Thanks

Lotti

Changing/swapping Images
Is there some code I can use to rotate about 20 small images without haveing a timeline that goes on forever?

Swapping Images And Songs
This is my virgin post. I 'm basically a flash noob since my web design teacher last semester was horrible, but i also have visual basic and c++ programming experience behing me.

I am trying to present a series of images along with songs from which the images are inspired. Flash came with the .fla for fading/swapping the images, but I can't seem to get the audio to change as well. IThe audio loops should be set up in different movie clips based on a tutorial i was reading at flashkit. Here is the code I am working with (I know its kind of sloppy but basically at this point I just need to get it working before its due which is about 12 hours from now:

square._alpha = 0;
whichPic = 1;
whichSong = 1;

Sound1 = new Sound(SoundMc1);
Sound1.attachSound("song1");

_root.Sound1.start(0,999);

Sound2 = new Sound(SoundMc2);
Sound2.attachSound("song2");

Sound3 = new Sound(SoundMc3);
Sound3.attachSound("song3");

Sound4 = new Sound(SoundMc4);
Sound4.attachSound("song4");

Sound5 = new Sound(SoundMc5);
Sound5.attachSound("song5");

Sound6 = new Sound(SoundMc6);
Sound6.attachSound("song6");

Sound7 = new Sound(SoundMc7);
Sound7.attachSound("song7");



//initiate change to new image when buttons are clicked
next.onPress = function() {
if (whichPic<7 && !fadeIn && !fadeOut) {
fadeOut = true;
whichpic++;
whichsong++;
input = whichPic;
}
};
back.onPress = function() {
if (whichPic>1 && !fadeIn && !fadeOut) {
fadeOut = true;
whichpic--;
whichsong--;
input = whichPic;
}
};
_root.onEnterFrame = function() {
// when a new Photo is selected, fade out, load new image, and fade in
if (square._alpha>10 && fadeOut) {
square._alpha -= 10;
}

if (square._alpha==90 && fadeOut) {
_root.Sound+whichSong.stop();
}

if (square._alpha==10 && fadeIn) {
_root.Sound+whichSong.start(0,999);
if (square._alpha<10) {
loadMovie("../images/image"+whichPic+".jpg", "square");
fadeOut = false;
fadeIn = true;
}
if (square._alpha<100 && fadeIn && !fadeOut) {
square._alpha += 10;
} else {
fadeIn = false;
}
// limit input field
if (input>7) {
input = 7;
}

};


Thanks to anyone who can help me with this!!!!

Swapping Images On Flash Event
hey guys!

i´ve got a really big problem.

i´ve got a flash-game with levels. when a player get´s to the next level i´d like to swap one image outside the flash. but every level should another image be swapped.

is it possible to make that and PLEASE could you help me? It´s really urgent

Dynamically Swapping Images In Tween
I need to make an image gallery for a web site. The site will contain approx. 60 small images that will link to their larger counterparts (the enlarged image will appear next to the thumbnails, as a transparent to opaque motion tween.)

Is there a way to create one motion tween (i.e. a tween containing a placeholder image symbol that would change from transparent to opaque)that all 60 images can call on when it's thumbnail is clicked (i.e. the thumbnail's larger counterpart will replace the placeholder image symbol)? Any suggestions? I'm pretty new at this and have spent hours trying to figure this out. HELP!!! Thanks

Swapping Dynamically Loaded Images
Hello,

I am trying to build an image viewing application that essentially loads in a large series of images (~300 @ 512px by 512px) and allows the user to drag across the image area to move to a particular image in the series. I've got this implemented, and it works "alright," but it swaps images somewhat slowly and will often skip images, even when dragging quite slowly.

Because the images are dynamically loaded, AFAIK, I have to grab the image data and attach it to an empty clip with smoothing turned on, which is what I am doing to each as it is loaded (and unloading the image after a BitmapData object has been created).

Currently, images are loaded at increasingly negative depths, and swapped to depth=1 when a particular image is to be displayed (and to depth=-1 when they are swapped out).

I should note that setting '_visible' to false on all images other than the one being displayed does not appear to improve the performance. Incidentally, is there a way to set '_visible' to false before it loads, so it is invisible until '_visible' is explicitly toggled (as opposed to setting it to false in an load event handler)?

I need all the images to remain loaded so the swapping can be as snappy as possible.

Any insight as to how I can improve the performance?

Thanks!

(XP, 1GB RAM, 2.8GHZ P4)

HELP Swapping Back Ground Images On Click
ok, i think this is done via actionscripting:

im building a site where i need an image to role in on the introductory sequence, and then once i click and open a link, i need it to slide smoothly out of view, whilst another background image roles in.

all this must happen whist the content alternates on top (i can do all the on top bits - i can even make the background image come into view) but making the first move out of view, and the next move in is a mystery to me...

any help would be much apreciated!

cheers,
sam

Quickie Question: Swapping Out Library Images/Motion Tweens Intact
OK...

So, I've just created a 132 frame animation. It has 8 levels, and on each level there is a simple fade-in, stop, then fade-out of a line of text. The texts are individual .bmp's from Photoshop.

Now, showing the client the "halfway point," they want me to change the color of the text -- just darken it slightly. Of course, each text image has a drop shadow and opacity setting from Photoshop, so I can't just alter the Tint in Flash without also altering the shadow's tint

Is there any relatively convenient way to just re-open these text images from their PSD's in Photoshop, change the tint, export them and overwrite the original files, and then replace the "faulty" ones in Flash without disrupting my motion tweens? Or, will I have to manually replace every image along the animation stream?

THANKS!

Flash Script - Swapping Images In Flash
This is a dedicated thread for discussing the SitePoint article 'Flash Script - Swapping Images in Flash'

Swapping Mc
This is really stupid but I am an actionscript newbie.

I have an empty mc. When I rollover a button I want the blank movie clip to play a different mc, on mouseout it goes back to empty. When I mousedown I want the blank movie clip to switch. It is just like in HTML when you want to swap images but I want to do it in flash with mc's.

I hope this makes sense. I can do it in a timeline format but I want to use actionscript.

Thanks in Advance
Spiral

Swapping Mc - Duh
This is really stupid but I am an actionscript newbie.

I have an empty mc. When I rollover a button I want the blank movie clip to play a different mc, on mouseout it goes back to empty. When I mousedown I want the blank movie clip to switch. It is just like in HTML when you want to swap images but I want to do it in flash with mc's.

I hope this makes sense. I can do it in a timeline format but I want to use actionscript. Do I use OnMouseEvent with a LoadMovie?

Thanks in Advance
Spiral

Swapping Mcs?
i have one mc nested in another in another in another... and a second one, invisible, outside on the top (_root).

at a certain point i want to swap the one inside (with all its content) with the one outside, and later on reverse this again. how can i achieve this?

can i eventually not use the dummy mc outside but instead create or copy a dummy mc (to swap with) and delete this when swapping back in?

tenthousandtimes thank you for any help, danny.

Swapping MC Help Please
Howdy all,

I've been trying to figure this one out on my own, but am getting nowhere. I have a MC on stage with 25 smaller MC in it. How can I randomly swap-out the 25 each of the smaller MC with 1 of 5 animations MC storied the library.

Any advice on this would be great.

Thanks

-L

Swapping MCs ..
Kinda new to Flash .. issit possible to do this
I've got a FLA containing several sections , around 5 of 'em..
but i need to do a transition between the sections.
The transitions are basically the same but the backgrounds
are different. I don't wanna build 25 different transition
MCs .. i just wanna build 1 MC with the transition on top
and the background below. SO i probably need some variable
to detect which background to switch to .. how do i do it ?
Thanks...

Swapping Swf For Gif
Apologies if I searched in the wrong area for information before asking this question but rather desperate for a comprehensive answer and have not found it thus far on the site:

Being a front end designer I wonder if there is a simple way for me to code a page such that if someone's browser does not have Flash installed it defaults to a gif substitute? Is there an easy way for me to do this within Dreamweaver 8?

Swapping Z-indexes How The F$^*$k?
Hi there flash gurus ;D

my problem is simple, I've got a drag-n-drop make your own scene, with various characters and props.
now, what I want to be able to do is bring things to the front (ie: z-index swap to top), so you can drag something around, then click on a bring to front button....
is this possible?

Layer Swapping?
Hello.

I've got a relatively simple question regarding Layers.. is it possible to swap them in mid-movie?

The situation is this. I have this rotating-thingie that looks like its 3D. Kinda cool, actually. I want to further simulate the third dimention by having it pass in front of a row of buttons on the upswing, and go behind these buttons on the backswing. The only way I could think of doing this (besides making two separate sets of buttons) would be to have the Rotator layer and the Button layer switch places during the movie, so they pass off priority to each other.

I know I read something about being able to do this.. somewhere.. awhile ago. I can't find it again for the life of me.

A little help?

- Bill

Swapping Movies?
Howdy,

I'm trying to create an effect where, when you move the mouse over a grid of dots, each dot that you pass over wiggles a few times and then stops, almost as if you've physically disturbed it.

I understand the hitTest function, and I can create the wiggle movie, but I don't know how to have the movie only play the first frame when there's no hit (dot appears stationary), and then play the wiggle movie only once when there's a hit.

Thanks in advance!

Swapping Clips
I want to create a draggable movie clip that switches to a different clip upon dragging over another (stationary) clip can anyone direct me to a source file or give any pointers? Thanks a mil....

Swapping Scaling MC
I have an MC picture inside a button, that scales within a _root MC. However, I want a button in the _root to swap the MC picture with another MC picture.

Any suggestions?

::bluemoth::

Swapping Depths
I'm looking for a solution to my little problem.

What I am trying to do is to swap the depths of two clips I attach to stage in the runtime
http://galileo.spaceports.com/~skd/scr.swf
'Craft Window' attaches a new 'window' clip to the stage with a name of "newindowX" (where X is the accumulator var) on depth equal to X.

What I want to achieve is on press of the drag bar (A button inside the window clip), I want to switch the depths of the clip on which I activate the button with the clip on top (it's depth is equal to the current value of X), thus bringing the needed clip on top of the stash.

What my problem is - I cannot yet get how to call swapDepths for the clip A by activating the event from inside the clip A (with the help of button, in my case).

Any help would be deeply appreciated.

Depth Swapping
Hi all. I have a question about a problem I'm having getting some action scripting to work right.

I have a main page that I use buttons with loadMovie commands to load outside .swf files into it as MC instances. I've had no problem getting depthswapping to work with the MC instances. When I click on one, it pops to the top of the others fine. But, when I click to load another, it doesn't seem to know what the currect value of my _level incrementing variable is. The new MC instance loads beneath the last window I clicked on to bring above the rest.

Here's the various code I'm using:

For the load button in the _level0 timeline:

on (release) {
//establish location for starting position of
//loaded MCs for cascading windows based on
//"target" value
target = target + 1;
if (target > 4) {
target = target - 4;
}
depth = "_level" + z;
z = z + 1;
loadMovieNum ("green.swf", z);
test = depth; //displays this value to test output field
}

This scripting increments the depth z and loads the green.swf to _levelz. There is an OnClipEvent in the green.swf that repositions the green MC instance based on the value of the target variable producing a window cascading effect when multiple windows are opened. This cascading works fine.

The green.swf is just a plain rectangular window with a window wide drag handle. The scripting on it is:

on (press) {
_level0.z = _level0.z + 1;
_root.swapDepths( _level0.z );
depth = "_level" + _level0.z;
greentest = depth;
startDrag ("_root.green");
}
on (release) {
stopDrag ();
}

Why would the depthswapping work fine from instance to instance of this MC, but when I load a new instance it appears under whichever window I happened to click on last?

I know this is a pretty detailed question to ask on a message board like this. This is just a little "how does it work project" I was messing with so I just have a couple files I've dummied up to work out the mechanics of it. I'd be happy to email anyone my source files to take a look at as my explanation of the problem might leave something to be desired.

Thanks for any and all help.

Swapping Symbols
Is it possible to use ActionScript to swap out a graphic on the symbol on the scene with one that's in the library?

Swapping Depths
How can swap depths between more than two movieclips.. Please help

Swapping Movies
Hi,

I have 2 movies, both of which are the same size.

When playing the first movie, I want to be able to swap that movie for the second movie on the click of a button. I also want to pass a couple of variables between the two movies when swapping them over.

The way I was thinking of doing it was using loadMovie, assigning the variables and then using unloadMovie on the original movie. Thing is, I'm not too sure about how to use layers/targets. What exactly is the difference? What layer do new targets appear in?

If someone could outline the code for me I'd be really grateful

cheers,

Darkwhiteorange

Depth Swapping
Here's the deal:

*I have four layers
Layer 1: Backround
Layer 2: Box 1
Layer 3: Box 2
Layer 4: Box 3

Box 1 is in the center, Box 2 is the back left, and Box 3 is in the back right.


If I click a button in box1, lets say [SwitchtoBox2] button, box 1 and box 2 switch places, but in an animation where 2 moves to the left and box 1 then goes where box 2 started from, then box 2 moves to where box 1 started from. So I can't use the On (Release) event, the depth switching has to be automatic. Any ideas?

Here is the Link

-Thanks

Swapping MCs From The Library
Hi all,

Does anyone know how to tell Flash to make an MC on the stage take on the properties of an MC in the Library. In other words, swap out a MC on the stage with one from the Library.

Thanks.

Scene Swapping
Building a program which contains 9 scenes. one of them is a main menu which has buttons linking to the other 8 scenes. These 8 scenes also have buttons which link to each other and back to the main menu.

What i want to do is to be in 'scene A' move to scene B and then back to scene A. When scene A loads again it will be in the same frame where it left off.

As currently when you move beack to a scene which was previously visited it starts back at frame 1 and doesn't continue from where it left off.

Swapping Depths Of .swf's
i have three buttons...when clicked i want each button to open a window with more buttons, which when clicked on open other windows...

the first one i managed to do...it is draggable and collapsable, but i would like to know how to open the other windows, and then bring a window to the front when clicked on (i woud also love it if the ones in the background could by less opaque as well!)

thanks anyone and everyone!

Swapping Levels Of .swf's
i would really appreciate any help on how to swap levels of loaded .swf's. also is it possible to have the ones in the back less opaque?

thanks

Swapping Many MC's Using Buttons Next/last
I've had a look through the tutorials, and I found one on Back and Forward Buttons for Flash and I also trolled the forum for info, and mainly found a nice collection of unanswered questions!

Anyway, what I'm trying to achieve is something I did in Director which was similar (don't ask). What I had was a library full of MC's, of which were named sequentially. I then swapped the original (first) MC on the stage with the 'next' in the library with a button click.
I could also go backwards through the MC's with a back button. I could also loop from the last MC to the first MC on a 'next' click.

The project was a kiosk program that showed veneer swatches, and you basically just clicked 'next', and a new veneer swatch would appear where the old one was, and the text description would also change, and you'd just go next, next, next through the whole lot, and back again using buttons as necessary.

I'd like to achieve a similar thing in flash, without having to put in 50 'gotoandstop(#)' codes with 50 buttons, one for each frame or anything like that. I would like to just have two buttons that swap out a specific group of MC's into a particular spot (where the original was) with a button click.

Is there any way of doing this simply? I know I can do it manually with seperate frames, but if I could get it down to one frame per collection of 50 different MC's and just use a script to swap the next and/or last cast members, it'd save me a world of hassle.

One way I thought I could do it is to have each different piece of info that was to be cycled as a seperate frame in one large MC, and have the buttons 'gotoandStop(list1,nextFrame)' or whatever the code is, and cheat that way.

Would this method be suitable? What would to code be to goto the current frame plus one of a seperate MC?

Am I barking up the wrong tree?

Am I barking mad?

Do you need a better explanation?

Thanks.
--Rico_Stallion

Texts Swapping
Please help...
Why doesn't it work? What's wrong with the script?

Swapping Movieclips
Greetings once again.

This should be my last question. I'm still having problems with setting x positions for a looping movieclip (about 15 posts below), but I digress.

My last question: How do you replace movieclips?

I have a movieclip of a blank box that is on the stage throughout. Upon a button rollover, I'd like to swap the blank box movieclip with another movieclip. Then on rollout, swap it back to the blank screen. I could do this easily through simple button rollover actions, but the buttons are in a movieclip which is constantly moving.

I have no idea how to go about this.

Any help would be greatly appreciated!

Thanks in advance.

Trying my best to cope with scripting,
Tony

Copyright © 2005-08 www.BigResource.com, All rights reserved