ActionScript 2.0 :: Can't Unload The Movieclip That Shows The Picture?

Mar 21, 2007

(ps: everything happens on the maintimeline)when a user clicks the photobutton this code triggers:

Code:
this.createEmptyMovieClip("photo"+photoNum, getNextHighestDepth());
this["photo"+photoNum].attachMovie("photo", "photo", getNextHighestDepth());

now the movieclip "photo" consist on another movieclip that does the actual picture display/loading with some AS> photoHolder < loads the actual picture,so i thought ok,logically its

_root.photo.photoHolder.removeMovieClip();
maybe even _root["photo" + photoNum].photoHolder.removeMovieClip();
or _root.photo.removeMovieClip();
etc

i tried numerous other structures but i just can't get it to work, for some reasons i just can't unload the movieclip that shows the picture.

View 5 Replies


Similar Posts:


ActionScript 3.0 :: Get This Loader To Unload The Current Picture Before Loading In A New One?

Feb 2, 2010

I'm trying to to get this loader to unload the current picture before loading in a new one. how I can put that in?

ActionScript Code:
function loadPhoto(url:String):void {
var picLoader:Loader = new Loader();

[code]...

View 2 Replies

ActionScript 2.0 :: Make A Picture Gallery And Use Buttons That Move You From Picture To Picture And Backwards?

Apr 22, 2002

I want to make a picture gallery and use buttons that move you from picture to picture and backwards, but I don't want to tell button 1 to go to frame 2 and button 2 to got to frame 3 and so on (I hope you know what I mean)Can I use on button on a separate layer with the same action set? I tried something like that, but it didn't work:

on (release) {
thisframe =+1
}
[code]........

but it didn't work. I'm kind of new to any action script other than gotAndPlay, easy functions and all that.

View 2 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

ActionScript 1/2 :: Drag A Text Movieclip Onto A Picture Of An Object Movieclip

Mar 26, 2010

I Have the drag and drop working where you drag a text movieclip onto a picture of an object movieclip but having some problems. I know its something to do with the hitTest function but when i drop the word "cow" onto the picture of a dog it actually says this is correct by displaying the word cow above the picture of the dog when instead it shouldnt allow me to drop the text onto the picture which doesnt match.

Basically i need to know how to seperate the drag hitTest function for the DogPic/DogText so that it has its own function to detect a hit. At the moment you can see in the below code I have 1 hittest fucntion detecting both collisions when they need seperate functions I tried making a seperate function for each but it didnt work

[Code]...

View 4 Replies

ActionScript 3.0 :: Loeade MovieClip Shows Content Out Of Its Demension?

Apr 13, 2010

I am looking for a possible fix for the issue I have. I created an animated movie clip where the animated images are bigger than the size area of movie clip's stage. Let's say I have a mc with dimension of 500x700px, but images are used 650x850px in size. I make transitions between images while they move on a stage. It is a simple timeline based animation. When I look at the published swf, everything is looking great. When I load this published swf into another swf on its stage, the behavior is changed. I can see the area what is beyond the intended visible area of 500x700px. I can see the portion of the image that supposed to be out of visible area and transitions lost the intended style. It looks really bad.As far as I can tell, the loaded swf content is losing its stage area. Its content is shown no within swf's stage area but within upper level swf's stage area. Is that possible to fixI still need to have the loaded swf with own boundaries where nothing can be seen outside intended visible area. I used mask to hide content but it did not completely fix the problem,

View 10 Replies

AS3 :: Flash - Create Double Sided MovieClip Which When Rotation Shows The Other Side As Well?

Feb 15, 2011

I have a movie clip which has two frames. On the first frame I have the front side and on the second I have the back. I am rotating the MovieClip by rotationX, rotationY, rotationZ properties.I want to display the frame 2 when the MovieClip rotates. Please help. I dont want to use PaperVision class. Also, please consider the Perspective View of the scene.Sometimes, the MovieClip might not only be dependent on rotation. It is also equally dependent on the position (only in Perspective View).

View 3 Replies

ActionScript 2.0 :: "attaching" A Custom Context Menu On The 'picture' Movieclip (empty Movieclip That Holds Externally Loaded Pics)

May 5, 2006

I tried "attaching" a custom context menu on the 'picture' movieclip (empty movieclip that holds externally loaded pics) but with no luck.

View 1 Replies

ActionScript 2.0 :: How To Unload Movieclip

Feb 10, 2009

I am making a file that loads an swf on(release) of a movieclip. I can get it to load into frame 2 and have created a button to return to frame 1. But when you go back to frame 1 the swf is still there. How can I get it to unload when it goes back to frame 1?[code]

View 3 Replies

ActionScript 3.0 :: Movieclip Won't Unload?

Aug 20, 2010

I have a flash nav bar with sub nav.  the film button(main nav bar) has 4 sub buttons: tv, commercials, film and imbd.  When you click on the sub button commercials, it takes you to the main timeline where I have a loader (in a movie clip _1benz(that loads a benz.jpg in a loader called benzLdr.  When you click a button on the sub nav in this group, to leave the frame, the loader unloads.  But when you click on the main navigation to leave this frame(which is on the main timeline) the loader remains on the stage.what would be the correct actionscript to remove the loader from the main nav when it moves to other frames on the main timeline? I have tried....

_1benz.benzLdr.unload();
benzLdr.unload();
_1benz.unload();[code]..........

Do I need to put the loader on the first frame and then make it visible on the frame I want to show it? If I do that will it unload on all other frames?Nothing is working!  What am i doing wrong? 

View 3 Replies

ActionScript 1/2 :: Unload Another Movieclip?

Jan 23, 2012

I made a movieclip that is supposed to unload when a character (called 'char' in the code) hit it. That works fine. But I also want to unload another movie at the same time. The other movieclip is called 'square' and is already on the stage. But that doesn't work.Do I have to put _mc behind the name, or something like that?

onClipEvent (enterFrame) {
if (_root.char.hitTest(this))
{

[code].....

View 4 Replies

ActionScript 2.0 :: Unload Everything When Put Into A Movieclip?

Sep 11, 2005

how do i unload everything that i put into a movieclip?

[edit]_root.mvc.unloadMovieNum(1);[/edit] works good but only removes attached movieclips not .swf's that i loaded into it. eventhough i told the .swf's depth to be 1.

View 4 Replies

IDE :: AS2 : Unload Movieclip On The Stage?

Jan 12, 2010

Work bought this menu and asked me to edit it even though i'm no AS2 expert just so basic knowledge, I've come pretty far so far but now i ran into a problem (probably the final one)...The menu uses XML to load in the menu, so all the options are dynamical.If you click a button it loads a menu into the stage, but if i click an other it overlapse the old one...i need to unload all the other movies on the stage, how do I do this? This is what I got for onRelease functions:

Code:
//Release function..
_parent.AccordionMenu["Menu"+a].onRelease = function() {[code]....

View 1 Replies

ActionScript 2.0 :: Loading JPG Picture In MovieClip

Nov 29, 2009

I used to work with CS3, but now I have CS4. I want to load jpg picture in movieclip. But it doesn't works. I have tried to load *.swf and it's works. This is my code:
_root.createEmptyMovieClip("a",1);
loadMovie("small.jpg",_root.a);
there are no changes on stage.
I have Vista and this all happens in my documents

View 1 Replies

ActionScript 3.0 :: Add An Movieclip And Still Keep It In The Picture When Scrolling?

Nov 15, 2009

I really just want to have shadow showing underneath the gallery, I just don't know how to add a shadow so it stays under in the picture when i scroll...I call my movie clip with the shadow shadow mc. tried different solutions, but seems everytime i scroll the mask sort of blocks it out... is there anyway anyone knows what Im talking about..? Basicly i need ad a movieclip that lays underneath the gallery and stays there..this is the AS for the gallery:

var galWid:Number=879.95;
var galHei:Number=300;
var galX:Number=10;

[code].....

View 6 Replies

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 :: How To Unload/attach Movieclip

Dec 4, 2010

When using this code everything works just fine -->

myMovieClip.imageHolder.attachMovie("slideShow", "slideShowb", 1);
var slideShowInterval = setInterval(nextSlide, 10000);
function nextSlide() {

[code].....

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 2.0 :: How To Unload MovieClip From Scene

Dec 15, 2003

I need to unload my movie clip. Here is the AS I used:

annie.onPress = function() {
_root.createEmptyMovieClip("container", 1);
loadMovie("annie.swf", "container");
container._x = 380;
container._y = 190;
[Code] .....

Problem is I only want it to show in one scene and it is covering everything on the other scenes as well or "Pages".

View 5 Replies

Actionscript :: Save A Picture From A MovieClip In FLASH?

Nov 11, 2010

I need a very simple(*) image editor made in Flash so the users of my web page can edit pictures and then save them to my server. I'm beginning this project trying to save to a jpg or png the content of a movie clip, but I didn't find any information on Google. Can you give suggestions of how to begin? And if you know some opensource projects like this one, please share it here.

(*) very simple means, resize, crop, add text and overlap other images.

View 4 Replies

ActionScript 3.0 :: Change The Picture Already Included In A MovieClip?

Feb 20, 2009

How can I change the picture already included in a movieClip using actionscript since pictures don't have instance names ?

View 0 Replies

ActionScript 2.0 :: Load Picture Into MC When Duplicating Movieclip?

Dec 13, 2009

I have this script. On the mc duplications i want to onRelease get on the every box a different loadPic(x)[code]...

View 0 Replies

ActionScript 2.0 :: Get All Movieclip Instances On Stage To Unload All At Once?

Mar 19, 2010

I would like all the instances of my movieclip to unload once a variable has reached a certain number.

So that when the movie goes to the next frame, all the movieclips are unloaded.

View 2 Replies

ActionScript 2.0 :: Load Picture Directly Into A Movieclip?

Jun 13, 2004

I have a picture that I want to load directly in to a movieclip.

Movieclip name = picture
Image name = image.jpg

I tried something like this

loadMovie("image.jpg", picture);

but didnt work

View 11 Replies

ActionScript 2.0 :: Unload A Movieclip From Flash MX File

May 13, 2003

I've tried to unload a movieclip from my flash MX File. I've tried on this way..that is unloadMovie[Num](level/"target") in this method I've given the target path of the movie clip. But when the browser page refreshing that again displays. How can we unload a movie that never comes even if browser refreshing the page.

View 1 Replies

ActionScript 2.0 :: Unload Child MovieClip After Its Playback?

May 12, 2010

I don't know AS2 well, prefering 3.0, however the project should be in 2.0. So, I have 2 movieclips, one is parent, another - loaded through LoadMovie("name.swf", _root);I need to unload child after its played and stoped. How can I do it in most proper way?

View 1 Replies

ActionScript 3.0 :: Move The Picture From Movieclip To Stage?

Aug 8, 2010

i have movie clip with images and buttons: left, right, up, down, need for this buttons add events, to be able to move the picture from movieclip to stage

View 2 Replies

ActionScript 3.0 :: Unload A URLRequest (a New Swf) Done By A Button Which Is Inside A Movieclip?

Apr 28, 2009

How to unload a URLRequest(a new swf) done by a button which is inside a movieclip? tks a lot p.s - myloader.unload(); doesn't work

View 1 Replies

ActionScript 1/2 :: Unload Movieclip For View Of Rollover Buttons?

Jun 15, 2009

Here is the set-up.

I have a scene where there are 10 artist names. Each artist name is a button with a rollover image. The first artist name has an uploadMovie command in the timeline to show an image immediatly when the user opens the page.
 
_root.attachMovie("anne_01", "screen",1);_root.screen._x =417.9;_root.screen._y =135.7;
 
How do I unload that movieclip when the user scrolls over the nine remaining buttons? I know it is an unload command but I am not sure what the code should be or where I should put it. I have tried to put an unload command on the other buttons but I had no luck~

View 3 Replies







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