ActionScript 2.0 :: Using LoadMovie In Duplicated MovieClip?

Jan 3, 2006

I can't manage to load jpg in some duplicated mc. I tried to add the as to the container mc "img"

Code:onClipEvent (load){ this.loadMovie(_parent._name+".jpg"); which trace the correct path to the jpg but the jpg don't show up. (Which would be wrong as if I remember well, the mc when being duplicated loses the loadMovie part????To be confirm) So I thought that maybe the best would be to have it done while duplicating the movie but whatever I have beeen trying has been unsucessful. Here is the codes with duplicating mc.

[Code]...

View 1 Replies


Similar Posts:


ActionScript 2.0 :: Duplicated Movieclip Doesn't Inherit Loaded Movieclip?

Jun 27, 2006

I'm loading an image into a blank_mc within a movieclip called 'background_mc' using the MovieClipLoader object; when the onLoadInit for the MovieClipLoader object is fired, i then attempt to clone my 'backgound_mc' object and the loaded image it contains so i can do something with it (i,e a funky masky/blur thing, not important right now)I'm successfully loading my image into the blank clip within background_mc, the onLoadInit behaviour fires and duplicates background_mc once the image has been loaded, but in a disappointing turn of events, my clone of background_mc no longer has an image attached, and has instead reverted back to it's original form, just as ti was before it had the jpeg image loaded in.

View 3 Replies

ActionScript 2.0 :: Get Some Actions On A Duplicated MovieClip?

Sep 24, 2010

I am trying to get some actions on a duplicated MovieClip Now what I got is something like this:

Actionscript Code: I have some loop wrapped around this so the 'i' changes.duplicateMovieClip("target", "new"+i, 100+i);// I use 'i' because i need a few of those...for(i=0;i<somenumber;i++){_root["new"+i].onEnterFrame = function(){//actions}}

And it won't work. Logically it just makes MCs "new1" "new2" "new3" and so on.And then it checks for those.If i put a MC named "new3" on stage, it works. I guess i'm just stupid and doing the duplication wrong or something.

View 9 Replies

ActionScript 2.0 :: [FMX]Removing A MovieClip That Is Not Duplicated

Feb 1, 2003

I've seem to have hit a snafu in a small animation I am creating for my next tutorial. What I have, is a movie clip that gets duplicated when the space bar is pressed. The movieclip has actions setup so that when the movieclip reaches a certain y value, it will remove itself via this.removeMovieClip()

The problem is, every movie clip that is duplicated does remove itself like it is supposed to. The exception is the original movie clip that I duplicate from. That movie clip seems to want to stay and cause problems (it is not removing itself because it isn't duplicated via attachmovie or the duplicateMovieClip method).

View 6 Replies

ActionScript 2.0 :: Getting A Duplicated Movieclip's Name On Event?

Sep 8, 2005

I cannot find a solution anywhere for this issue. Searching the forum yields: "The following words are either very common, too long, or too short and were not included in your search: name"

Anyway, the thing is this.

I duplicate a movieclip several times, which is a button, and name the instances c0, c1, c2, etc. I want to use substring to extract the number behind this name when someone clicks on one of these buttons. I have the following function in the button:

Code:
on(rollOver) {
x = substring(this._name,1);
ripples._x = coords[x].split(",")[0];
ripples._y = coords[x].split(",")[1];
}

As you may guess, I need the number in the variable x. However, the pointer "this" apparently points to the level this button is on (_level0), and not the button itself. So "this._name" gives me nothing.

My question to you all is, how do I obtain the buttons instance name the user has clicked on? Or for that matter, any other property. How do I address the button itself, from the on(XXXX) function?

The code to spawn the buttons is (in a loop):

Code:
duplicateMovieClip("clickdot","c"+x,x+10);
setProperty("c"+x,_x,coords[x].split(",")[0]-8);
setProperty("c"+x,_y,coords[x].split(",")[1]-8);

Obtaining the coordinates instead of it's name would suffice as well.

View 4 Replies

ActionScript 2.0 :: Duplicated Movieclip Ontop?

Dec 30, 2008

whenever i duplicate this movie clipthe duplicated movie clip goes ontop of everything elsehow do i duplicate it in a manner that prevents it from sittingon top of everything else in my screen?

View 2 Replies

ActionScript 2.0 :: Button Click In Duplicated Movieclip?

Nov 4, 2009

Before telling you my problem in actionscript, I would like to explain on how the system works. Please bear with my long explanations.I have a list of data that need to be display out. I've created one movieclip and I named it table_mc. Inside the table_mc, I put 2 dynamic text and one blue box with alpha 0. In order to display a list of data out, I used a table component in flash to duplicate the movieclip, table_mc. It saved me from doing a "for loop".

I wanted the list of data to be clickable so I converted the 2 dynamic text in table_mc, into movieclip. I named it table_but. When I clicked onto table_but, the blue box will appear, alpha 100 to show that it is being clicked.Here's the problem. I've done an actionscript in table_mc. In the list example, when i clicked onto no '2', the blue box appear and if I clicked onto no '5' the blue box for no '2' should disappear. Unfortunately the blue boxes will appear there together when i clicked onto no '2', '5' and '7' because they shared the same movieclip table_mc. Is there a way to do it when the blue box can only appear at a time?

View 2 Replies

ActionScript 2.0 :: Link To Duplicated MovieClip In Loop?

Apr 17, 2007

I've got a form with radio buttons which were duplicated depending on the response from the database. However, when they are selected (even though they have the same group name) it is possible to select more than one. I've got round this problem by adding the selected one to a blank array and removing it from an array with all the possible radio buttons in. This then enables me to get the selected value and use it, and However, the other values (which are in another array) still show as selected (i.e. the dot is in the middle of the button) which isnt good. I've set up a loop which should go through each value in the "unclicked" array and set the radiobutton corresponding to it to unselected. The code I have is below:

for (i=0; i < unclicked.length; i++)
{
_root.RB[i].radioButtoni.selected = false;

[code]....

View 5 Replies

ActionScript 2.0 :: Attach Different Codes To Each Of The Newly Duplicated Movieclip?

Nov 15, 2009

I have a movie in witch i duplicate a MC several times.

Example:
MC1 (template mc)

Duplicated to:
Movieclip1
Movieclip2
Movieclip3

I want to attach different action script codes to each of the newly duplicated movieclips. Each Movieclip should have different on(release) scripts.

View 1 Replies

ActionScript 2.0 :: Duplicated Movieclip - Rotates When Moving The Mouse?

Apr 12, 2007

I have a tree movieclip that when clicked, will duplicate itself and the duplicated movieclip will be dragged, using this code:

Code:
onClipEvent (load) {
var i = 0;
if (this._name != "tree") {[code]....

BUt it only rotates when i am moving the mouse?

View 1 Replies

ActionScript 3.0 :: Accessing Duplicated MovieClip - Drag / Drop Dots

Feb 15, 2012

Going from AC2 to AC3. I have made a script that creates a dot (myTag) and a text label (nameLabel) when a button is pressed. Then the user is able to drag and drop the dots. This is what my script does so far. I want the text label to be hidden when dragging and displayed at the place where the dot is when user stops dragging.

Here is my code:
var tagArray:Array = [];
var labelArray:Array = [];
var nameCounter:int = 0
addLabelKnapp.addEventListener(MouseEvent.MOUSE_DOWN, addLabel);
function addLabel(event:MouseEvent):void {
[Code] .....

View 9 Replies

ActionScript 2.0 :: DuplicateMovieClip - Add A OnRelease Event To A Duplicated MovieClip It Does Not Seem To Respond

May 14, 2006

I have created a MovieClip in the library that consist of buttons, graphics and other MovieClips. When the movie starts I attach this movie clip to a newly createdEmptyMovieclip like so

[Code]....

So all that works fine, except when I add a onRelease event to a duplicated MovieClip it does not seem to respond. So I was wondering if the duplicateMovieClip function does not copy the button inside the original MovieClip. The code for the button is

[code]....

View 1 Replies

ActionScript 2.0 :: [MX] Use This Movieclip In Another Movieclip Using Loadmovie?

Sep 20, 2004

[URL] I want to use this movieclip in another movieclip using loadmovie.Ofcourse the "_root referring to"'s have to be changed . but I just can't get it working.Mainmovie.fla using as. to get submovie.fla.submovie contains the as. used in the topic.

View 1 Replies

ActionScript 2.0 :: LoadMovie On A Movieclip

Oct 15, 2004

I used attachMovie to load a movieclip from the library into the stage.And in the movieclip, it has another movieclip named "imageHolder".As I wanted the movieclip to be placed on the stage like a list of buttons. The code goes as follows:[code]But the something.jpg doesn't appeared when I test the movie. And something.jpg is in the same directory as the .fla file.

View 10 Replies

ActionScript 1/2 :: LoadMovie From Inside A Movieclip

May 1, 2009

I have a scroll movieclip which contains 15 buttons each button is an instance of 1main button. I have the button frame inside the timeline of the movie clip and the actions in frame 1 of the clip.onrelease should call the loadMovie function and load another. swf in level 1.[code]it only works using LoadMovie not LoadMovieNum but instead of loading the swf into level 1 it loads into level 0.i can use this the way it is but why is it only loading in level 0?

View 6 Replies

Flash :: Center LoadMovie MovieClip?

Oct 26, 2010

I'm dynamically creating an empty movieclip inside another movieclip to load an image into it.
How could i make sure that this image is always centred in the movieclip?

Also, if i have a attached movieclip named E.G. 1M how do i find out the x and y position to make it appear next to each other?

View 1 Replies

ActionScript 2.0 :: LoadMovie If MovieClip Is In Library

Jun 29, 2006

Is there any way to load a external .swf into a movieclip that is in the library?

Such as

img0_mc.loader_mc.loadMovie("movie.swf") while img0_mc is in the library and not on the scene.

View 5 Replies

ActionScript 3.0 :: Making LoadMovie In Empty MovieClip

Apr 17, 2011

I'm making a new as3 file, and there I made an animation, like an intro for my website, in a movie clip. But what I want is, when this animation or this movie clip ends, automatically it charges another swf with my website, without having to press any button. I read some tutorials on internet that I can make this, creating a new empty movie clip, and then writing some code, but it didn't work me.

View 5 Replies

ActionScript 3.0 :: Create Empty MovieClip Or LoadMovie

Jan 27, 2009

i am trying to load a list of jpgs in to flash using as 3. eventually i am going to tile them etc. but right now my script goes through my for loop and just replaces the image i previously loaded... in as 2. i of course would change the name and depth of these images as i loaded them but i am of course not using createEmptyMovieClip or loadMovie etc.. so i am a bit lost..

[Code]....

View 3 Replies

ActionScript 2.0 :: LoadMovie In A Extended Movieclip Class?

Oct 15, 2010

i have this class but instancing it nothing appear

class myclass extends MovieClip
{
var mc:MovieClip;

[code].....

View 0 Replies

ActionScript 2.0 :: Load Clips Using LoadMovie Into That Movieclip?

Nov 10, 2004

I have a color problem when loading a movie clip. I have a root animation with white background including a movieclip. I have to load clips using loadMovie into that movieclip. When I load those movies, who have different background colors, the loaded movie's background color is completely ingored so I always have the white background.

I've tried to find the original background color of the movie I load but no success. Did someone can help me with this problem ?

View 4 Replies

ActionScript 2.0 :: Use AttachMovie Inside A Movieclip Used LoadMovie On?

Jun 7, 2005

This is driving me nuts... is it impossible to use attachMovie inside a movieclip you used loadMovie on? For example, I have this but it doesn't work out:

Code:
imageHolder_mc.loadMovie("firstImage.jpg");
imageHolder_mc.attachMovie("secondImage_mc","attachedImage_mc",1);

Why doesn't this just load the firstImage.jpg through the loadMovie method and then create an attachedImage_mc on the imageHolder_mc (with the secondImage_mc)? All its doing as of now is loading the first image... then if I comment the loadMovie part, it attaches the second image.

EDIT: Just a little more info. Basically I have a movieclip called imageHolder_mc that I created manually on stage. This movieclip calls LoadMovie to load in a JPG, but later on I need too replace the entire content of it with a movieclip from the library (still keeping the imageHolder_mc instance name).

View 4 Replies

ActionScript 2.0 :: LoadMovie Not Centering Movieclip Properly

Dec 12, 2005

I'm loading an external movieclip into an empty movieclip which is inside of another movieclip. But the movieclip I'm loading isn't properly centering to the top movieclip.

Code:
this.createEmptyMovieClip("side2", this.getNextHighestDepth());
this.side2.loadMovie("skins/default/red.swf");
this.side2._x = this._x;

[Code]....

Way way way off of the top movieclip. I'd at least expect side2's 0,0 point to be in the upper left which would snap to the center point of this. But not even close.

View 2 Replies

ActionScript 1/2 :: Loadmovie The External Movieclip In The Main Movie?

Mar 22, 2011

I have a main movie is coding AS2 which contains a movieClip called MC_header.And I have an external movie is coding with AS3.

My question is : Can i loadmovie the external movieclip in the main movie?

View 1 Replies

ActionScript 2.0 :: LoadMovie Function Block Out MovieClip To Fade In

Sep 21, 2003

When you use LoadMovie to load a SWF, does that SWF stay loaded, or does it get reloaded every subsequent time you use the LoadMovie function for that same SWF? I use the LoadMovie function in several buttons to load SWFs into my movie. In those same buttons, I use a function which fades a different (already present) movieclip in. However, the LoadMovie call seems to block out the movie clip which needs to fade in; when I click the button, it loads the SWF just fine, the movieclip just doesn't fade in (or it does, but I can't see it), when I comment the LoadMovie call out, the movieclip fades in just fine (and I can see it). Also, I load the SWFs into an empty movieclip, which is beneath all other layers, so that's not the problem.

In my button:
Code:
on(release){
_root.home.fade(0,100,10);
_root.content.loadMovie("home.swf");
}

I've tried:
Code:
on(release){
_root.content.loadMovie("home.swf");
_root.content.swapDepths(1000);
_root.home.fade(0,100,10);
}
But, that doesn't get me anywhere, either.

View 4 Replies

ActionScript 2.0 :: Play A MovieClip From The Library And Leave It On The Stage Before The LoadMovie

Aug 20, 2010

Just got into flash about 8 months ago and have an assignment for AS2. (Personally I like AS3, but I have to work the parameters of the project). My question: I have a loadMovie command on the 1st frame of my timeline. How can I play a movieClip from the library and leave it on the stage before the loadMovie. I can provide more details and the code i have so far if needed.

View 2 Replies

ActionScript 2.0 :: LoadMovie - Draw External SWF File Into Blank MovieClip

Oct 1, 2004

I'm using Flash MX 2004, and using the loadMovie() function to draw an external .swf file into a blank movieclip. My question is how the browser (let's assume Internet Explorer) caches this information. I know that after a Flash movie is loaded within an HTML page, the browser caches it, so that on the next load the movie appears nearly instantly from the cache. However, does it also cache the movie loaded using loadMovie(), or does it always redownload that external movie regardless?

View 2 Replies

Actionscript :: Flash AS2 - LoadMovie Movieclip Property Edits Don't Show In Browser

Apr 13, 2011

Using loadmovie I'm loading an external SWF on a different domain. Any property changes made to a movie clip in the loaded SWF don't show in a broswer. container.emc.loadMovie([URL]); Inside movieA is the movieclip "box". I don't want "box" to be visible so I've used container.emc.box._visible = false; All working fine at this point, when I preview the SWF from Flash (CS3) I see that box isn't visible. When I open the SWF in the browser, movieA is loaded but box is not set to invisible. This happens with all browsers or any publish settings I try.

View 1 Replies

Motionguide On A Duplicated Instance?

Apr 8, 2010

the boxes are being added to the ready queue. what i want is that as soon as the box reaches to the right most position, i want a motion guide to follow, that is that the box should then enter into the CPU box and stay there for a specific point in time. this time will be determined by the burst time input.i only want the motion guide to happen to 1 box at a time when it reaches the right most position alont the queue.how will i be able to do this

View 1 Replies

ActionScript 2.0 :: [FMX] Duplicated MC's Interaction?

Apr 7, 2003

I want two duplicated clips to do a hittest on each other. Anasteroid and a laser. I can use this. on one of the objects but howdo I pick up the name of the other object - it could be anything from

View 3 Replies







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