ActionScript 2.0 :: Unload A Movieclip When It's Pressed And Load Another One In Its Place?

Jan 19, 2008

I'm trying to unload a movieclip when it's pressed and load another one in its place. For some reason the loaded movieclip is always being loaded at row 7 column 10.

Code:
var columns:Number = 10;
var rows:Number = 7;
for (i=0; i<rows; i++) {
for (j=0; j<columns; j++) {

[code]....

View 1 Replies


Similar Posts:


ActionScript 3.0 :: Load And Unload A Movieclip?

Jan 27, 2011

I want to know how to load and unload a movieclip.As for example i have a map of uk in my swf and when any body click on map(say london).the present map should fade away and new bigger map of the london should be loaded which is on another swf and must get first (orginal map) when he click back button.

View 1 Replies

ActionScript 2.0 :: Load/unload A Movieclip (not A SWF)?

Dec 15, 2006

how to load/unload MC's on my MC container? I have a menu with a lot of buttons and each one loading on the stage (inside a MC container) a movieclip that it's on the library.

Plus 1: the old movieclip is totally replaced by the new movieclip.

Plus 2: I think that change the visibility not is a good option cuz the old movieclip can still playing, right?

I know that load and unload SWF's can be more simple (I already use this) but I just wanted to try something different (do not work with a lot of SFW's on my project)

View 12 Replies

ActionScript 2.0 :: Load/unload A Movieclip (not A SWF)

Jul 19, 2007

Well, a "simple" question: how to load/unload MC's on my MC container? I have a menu with a lot of buttons and each one loading on the stage (inside a MC container) a movieclip that it's on the library.

Plus 1: the old movieclip is totally replaced by the new movieclip.

Plus 2: I think that change the visibility not is a good option cuz the old movieclip can still playing, right?

I know that load and unload SWF's can be more simple (I already use this) but I just wanted to try something different (do not work with a lot of SFW's on my project)

View 3 Replies

ActionScript 3.0 :: Unload Swf When Another Button Is Pressed?

Jan 16, 2010

i have a menu, that works with a xml file.the xml has the specific code that triggers the .as file:

HTML Code:
<buttons>
<button name="HOME" linkType="custom" link="home.swf" />

[code].....

View 5 Replies

ActionScript 2.0 :: Making Document Go To A Particular Place When A Button Is Pressed?

Nov 11, 2004

I need help on making my document go to a particular place when a button is pressed.I want that when I press button 4 which can be seen when you press button 3 (see attached file) it goes to MC 03.

View 3 Replies

ActionScript 2.0 :: Unload Movie Stuff - Current Swf To Unload And The New One To Load Only After A Transition Occurs

Jun 16, 2003

I want the current swf to unload and the new one to load only after a transition occurs. Is there a more efficient way to do this than if. switch()?

View 2 Replies

ActionScript 3.0 :: Unload The Previous Loaded .swf And Load The New .swf Without Having A Separate Button To Unload

Aug 9, 2008

I am working on a school project that requires me to load external .swf or .jpg files. I currently have all of the buttons working and are loading an external .swf file on to the screen. The problem I am having is that when I go from one button to the next the loaded .swf stays on the screen and the next .swf gets loaded on top of it. I know that I need to unload the file but I am not sure where to put the code for the unload or what code exactly to use. I would like when the button is pressed to unload the previous loaded .swf and load the new .swf without having a separate button to unload.

[Code]...

View 3 Replies

ActionScript 3.0 :: Unload Not Unloading - Unload An External SWF On _root To Load A New One Instead

Jul 23, 2009

I'm trying to unload an external SWF on _root to load a new one instead. I've tried (almost) everything but can't figure it out... I get this error : "Error #1010: A term is undefined and has no properties."

[Code]....

View 3 Replies

ActionScript 2.0 :: Place Hundreds Of Instances Of One Movieclip On Different Place?

Mar 7, 2008

how can we place hundreds of instances of one movieclip on different place?

for exemple, pacman:

how should i code the placement of all the money?

i would go:
_root.attachMovie(
_root.attachMovie(
_root.attachMovie(

but that's not the good solution is it?

there must be a code to do that without hundreds of lines of code.

View 3 Replies

Actionscript 3 :: Load A Local External SWF, The Application Load-unload Infinitely?

May 6, 2011

I have a Flex application that just load an external SWF, but the application load and unload infinitely my swf.

[Code]...

View 2 Replies

ActionScript 2.0 :: Call An OnClipEvent(enterframe) Of A Movieclip To Happen When That Movieclip Is Pressed?

Oct 24, 2007

how do you call an onClipEvent(enterframe) of a movieclip to happen when that movieclip is pressed?

[Code]...

when i type this in i get an error because on events cannot be nested within other on events. how can you get around this?

View 10 Replies

ActionScript 2.0 :: Flash8 - Load, Unload And Load Again From Library?

Jul 13, 2009

I am trying to load, unload and load again the same movie clip from library.

View 7 Replies

ActionScript 2.0 :: Detect The Pressed Movieclip Outof 4 Movieclip?

Jun 13, 2011

i am new to flash AS,i have 4 movieclips, those have the 4 option of a question, when i select the answer,if it correct means my score will increase otherwise it will show alert,for that first i have to press the any one movieclip out of 4 options, in AS3.0 addEventHandler will work for AS2.0 what will i use to achive this

[Code]...

in this answer1, answer2,answer3,answer4 are the movieclip for 4 options

View 1 Replies

ActionScript 2.0 :: Load, Unload And Load Again From Library?

Jul 13, 2009

I am trying to load, unload and load again the same movie clip from library. How could i do it?

View 2 Replies

ActionScript 2.0 :: MC - Make A Movieclip Move Slower At A Certain Place In Movieclip

Mar 13, 2004

I'm trying to make a movieclip move slower at a certent place in my movieclip. This means, that the speed needs to be lowered when e.g. showing af picture. Here is the situation. I have a movieclip running different pictures. E.g. the first runs for 115frames and fades out. Instead of runing 115 frames i want the movieclip to run 5 frames (picture fading in) and the stops or delays for 10sek and then goes to frame 6 from where the picture fades out. Where in the movieclip should i place this Action Script?

View 1 Replies

ActionScript 2.0 :: Automatically Unload A Movieclip When The Movie Within The Movieclip Plays Completely?

Oct 6, 2009

I need to automatically unload a movieclip when the movie within the movieclip plays completely.

View 9 Replies

IDE :: Load And Unload SWF With FLV

Jul 13, 2009

I've got a SWF with two (for now) buttons on it that each load a SWF. Each of these will load fine if they are the first one pressed. Once one is pressed there are problems. If you try to go to the next one, the new SWF covers the one currently playing, but it will not load the FLV associated with it and the audio from the previous does not stop. You can see it all here: [URL]

And here is the code on the navigation:
var Xpos:Number = 130;
var Ypos:Number = 10;
var swf:MovieClip;
var loader:Loader = new Loader();
loader.x = Xpos;
[Code] .....

View 1 Replies

ActionScript 2.0 :: Load An External Movie When This Button Is Pressed?

Apr 26, 2009

I have a button with an instance name of sound_btn. I'd like to load an external movie when this button is pressed, and then make this movie slide from "out of the canvas" into the canvas.My problem is how to deal with an external movie...

Code:
import mx.transitions.Tween;
import mx.transitions.easing.*;
var revealTween:Tween;

[code]....

View 3 Replies

IDE :: Load A Flash Animation In Webpage When A Specific Key Is Pressed?

Sep 28, 2009

I want to load a flash animation in my webpage when a specific key is pressed. e.g: If i press "A", the page should display animation 1. If i press "B", the page should display animation 2 and likewise.

View 5 Replies

ActionScript 3.0 :: Load And Place Images From XML?

Sep 1, 2010

How to load the images from the url field into the swf.I sort of get that there's a 'for each' routine involved to place images on x and y .. but how to actually load the image into the swf? [code]...

View 9 Replies

ActionScript 3.0 :: How To Load/unload Swf

Jul 10, 2010

Teach me how to load and unload a swf into a main movie. And how to pass a varaiable from the main move to the loaded swf. This is a huge gap in my flash knowlege and i don't know where to begin.

View 1 Replies

ActionScript 3.0 :: To Load And Unload SWF

Sep 20, 2009

I am studying AS3 by myself, please bear with me if my explanation is not that clear.It's all about loading and unloading external swf's.My code is working perfectly though I just have some questions about load and unload issues.I have three buttons on the stage and it should load its external SWF [code]Each of the button should load it's external SWF's intro when click.My problem is that I don't know how to command the button to play the swf's outro and then load the next swf everytime I click a button.When I click homeButton_btn, the external swf should load "home.swf" and then if I am going to click page1Button_btn, the outro of "home.swf' should play and then once it reaches the end of it's timeline, it should load "page1.swf".Same goes with page2Button_btn, whatever swf that is on the stage should play it's outro first and then load "page2.swf"My questions are:

1. How can I control the external SWF to play it's outro and then load the next SWF.

2. What code should I put at the end of the external SWF's timeline.

3. Where do you think I should put the preloader? Is it better to put it at the external swf timeline? or on my main swf timeline?

4. Does load and unload of external swf also work with movieclips? Like for example I will not use a external swfs, instead I will use movieclips to load and unload its content.[code]

View 2 Replies

Actionscript 3.0 :: Load And Unload SWF's?

Feb 1, 2012

I've got a games menu and have the code to load games when a button is clicked.

So far say you want to play GameA...

The player clicks the button to Play GameA and that game is loaded. Once the player finishes the game they are shown a button to continue which unloads the game and loads the menu.

The problem is that I want a movieclip to be visible on the menu but only when GameA is completed. There is no way to back out of GameA and getting back to the menu without completing GameA. I don't know how in GameA to put that if the continue button is pressed make 'GameATick' visible. I've tried inside the code of GameA putting code like root.GameATick.visible and code like this but it doesn't recognise the MC.

View 1 Replies

IDE :: Unload External Swf And Load New One?

Jul 29, 2008

I'm creating my portfolio in Flash CS3. I have five buttons in website.swf. I also have five external swf files.If you click a button, it loads an external swf. If you click another button, it unloads the first swf and loads the next one. Is there anyway to unload it and load the next?

stop();
function loadMain(e:MouseEvent):void{
var loadMain:Loader = new Loader();

[code]....

View 14 Replies

IDE :: Load And Unload Swf W/ Flv W/out Stacking?

Nov 20, 2009

I want to load and unload EXTERNAL SWF that contains FLV on mouse click. Loading and unloading the swf is NOT the issue. The problem is how do i get the external swf which contains an flv to stop playing and stacking up on each other.

I can load and unload the swf's as long as I pause the videos before I click on another thumbnail, but if I click on another thumbnail while the external swf is playing it's flv, the previous flv keeps playing and stack up under the newly loaded swf.

[Code]...

View 3 Replies

ActionScript 2.0 :: Getting The Pressed Movieclip In An Array?

Nov 18, 2003

I've got an problem with reading out an array, the array is filled with movieclips with each an different picture in it (php variable -an url). Basically what i want to do is get the pressed movieclip and use another method to change the _xscale and _yscale properties of the pressed movieclip (an picture) and then pass it back to the function brillenArray.onEnterFrame to change the values of that movieclip!

Only thing what i now get is that either all of the pictures move or none...

[AS]
brillenArray = new Array();
for (var i = 0; i<5; i++) {
if (this['plaatje'+i] != undefined) {

[Code].....

If i press one of the four pictures it does what i want to: THAT picture scales to 70. But how can i call this movieclip (the pressed one) from another method without using specified place in the array (like brillenArray[1])?

View 2 Replies

ActionScript 2.0 :: First Photo In The Xml Datebase (pic1.jpg) Does Not Load When Button#1 Is Pressed?

Jul 17, 2004

1. For some reason, the first photo in the xml datebase (pic1.jpg) does not load when button#1 is pressed. The gallery starts with #2? I just don't understand why.

2. On load, the preload bar is presend even though i've got visible = 0.

3. The BIG one. Right now I've got an empty frame for my thumb buttons. What I really want to do is have a single button prototype that duplicates itself and externally loads a thumb*.jpg rather than placing each thumb*.jpg on each button manuelly. There was an example on the same thread, but I was unable to combine the two.

View 13 Replies

ActionScript 1/2 :: Place, Not Load, External Swf Onto Stage?

Jul 31, 2010

I have made many small swf files for each section of my website. The problem is now I want to club them all together to avoid breaks and showing of the loader at inappropriate moments, I know that was poor planning on my part. I want to know I can place an external swf onto the stage, so that it gets loaded with the main swf. As in, I don't want to call a loadMovie or loadClip

View 1 Replies

ActionScript 2.0 :: Load External Swf In The Exact Place?

Oct 7, 2005

I bought a template website and I understand pretty much all of the AS by now that they use. But I would like to decrease the file size so I wanted to load things externally. Here's a layout:Main Timeline:page1movieclips of all kinds plus a thumbnail scrollbar to load some other movieclips inside page1.page2page3page4code on the buttons inside the thumbnail scrollbar:

on (rollOver) {
gotoAndPlay(2);
}

[code].....

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved