ActionScript 2.0 :: Scale Empty Movie Clip?
Jul 15, 2008
wanted to load an swf into an empty movieclipthen modify the empty movieclips xy scale, and xy positionrecall doing something like that b4, and it seemed like a simple enough taskbut for some reason this doesnt seem to wanna obey me at the moment
View 1 Replies
Similar Posts:
Apr 8, 2005
how to trace a movie clip and place it into an empty movie clip i create at the begginning of the movie
View 5 Replies
Oct 20, 2004
I want to load a random movie clip from the library to an empty clip on the stage called (bg_graphics). the clips in the library are called (green, blue, yellow).
View 5 Replies
Apr 28, 2011
(Whoops - ALMOST solved - one last issue below!) I've got two buttons, one shared movie clip. The two buttons each load two different movies. All I want to do is TOTALLY CLEAR OUT whatever movie is loaded from one button whenever I press the other to load its cargo into the movie clip.
This seems like it should be so easy to do, but there's always a remnant of the first movie left in this.How do I empty the whole thing while still keeping the shared movie clip (which the two buttons/movies share) in place?
[Code]...
View 6 Replies
Jun 24, 2008
What I'd like to do is have a checkbox, that when it is checked it loads a movie into an empty movie clip, and when it is unchecked, it loads a different movie into the empty movie clip.Also if possible I'd like to find a way to output to a variable whether the same checkbox is checked or not. And send the info from the variable in an email.
View 11 Replies
Oct 17, 2005
trouble getting a movie to load in an empty movie clip. I am hoping I'm missing something simple.I have a button with the instance name SPS_btn on a layer I've called buttons.Below the button layer i've got a layer called movie clips that contains an emptymovie clip called mainStage_mc.I want to load a .swf into into mainStage_mc. both the buttons and their actions occur on the first frame.I have used this code but it not working.
on (release) {loadMovie (new002.swf, mainStage_mc);
I just get a blue area but the movie does not load. I can run the movie fun locally by clicking on new002.swf file.i also tried the behaviors panel, which produces this code but it also doesn't work:
on (release) {loadMovie ("new002.swf",mainStage_mc);
//load Movie Behavior
if(this.mainStage_mc == Number(this.mainStage_mc)){[code]........
for some reason it will load if i use loadMovieNum () but the registration point is in the top right corner and i don't want that.What's the best way to debug this?When i use test movie the output window dosen't show an error but something's wrong.how can I test if is a path problem? A problem with the loaded movie or a problem with something else? the movie new002.swf is 393KB. I tired making a smaller 2kbmovie using the code above and it wouldn't load either.
View 3 Replies
Mar 29, 2011
load a .swf into an empty movie clip. I've given the empty movie clip an instance name of "myContainer". This is the code i've got now on a button (which doesn't have an instance name), which doesn't work:
on (press) { myContainer.loadMovie("BVLibrary_Branding.swf");
}
View 11 Replies
Sep 27, 2011
I created a movie clip of a photo gallery that works fine until I test it and get to the frame that the movie clip is on. After doing so, the movie clip stays throughout any other page I click on. I can't get the removeMovieClip function to work.
Here's the code I have:
this.createEmptyMovieClip("container",1);
var imagesNumber:Number = 5;
for (i=1; i<=imagesNumber; i++) {
[code]....
View 2 Replies
Jan 20, 2011
I have two images pulling though an empty movie clip, using the actionscript below. I can't seem to figure out how to position both of them, could anybody shed some light on this? I'm using AS3.
[Code]....
View 1 Replies
Jan 15, 2003
[fmx]
related files: 7MB .FLA File
Okay...
At the _root I have an instance using an empty clip named mainPageEmptyClip. Inside of that, are various other movies.
Now, at the _root there is a menu which, when clicked, should access one of the layers within the empty clip's content.
The problem here is that I can't discern what the target would be to actually access the clip. The action worked fine before I implemented the empty clip, but now it won't work any longer.
I've tried using the target tool built into FlashMX, but it doesn't list any of the instances withing mainPageEmptyClip - that's as far as it goes. I've tried entering in what would seem to be the path, based on the instance names of subordinate movies, but it does me no good - I'm continually given the error of Target Not Found.
These are the two options I've tried....
_root.mainPageEmptyClip.gotoAndPlay(351);
_root.mainPageEmptyClip.webLayer.gotoAndPlay(156);
View 2 Replies
Mar 27, 2004
I created an empty movieclip with[code]...
Where in the script can I add the x and y properties for that empty movieclip?
View 3 Replies
Aug 3, 2007
I'm trying to load images into a row of images. Each image is a different width. Heres the code so far:
Code:
var xPos:Number = 0;
for (y=0; y<5; y++) {
var container:MovieClip = this.holder.createEmptyMovieClip("picholder"+y,y);
container.loadMovie("mypic.jpg");
container._x = xPos;
xPos += container._width;
}
The problem at the moment is that the container._width property is reading 0 so all the images are loading on top of each other. This is the same with "picholder"+y. If I set the xPos value to say 100 then it works fine. I'm guessing its something to do with the fact that the loadMovie happens after the var container is defined. Whats a way around this?
Also just while I'm posting whats the correct syntax for something like this:container.loadMovie("mypic" + (y) +".jpg");
View 3 Replies
Dec 27, 2009
Im trying to animate a set of empty movie clip containers. When I select them and try to apply a motion tween.
View 2 Replies
Mar 27, 2004
I created an empty movieclip with:Code:_root.createEmptyMovieClip("container", 1);Where in the script can I add the x and y properties for that empty movieclip?
View 3 Replies
Feb 24, 2003
What is the AS needed to scale a movie clip? I want it to be at 0% and then increase to 100%. I've searched through the forums and haven't found what I'm looking for yet - I'm a complete newbie when it comes to AS but here's what I have:
onClipEvent (load) {
_xscale = 0;
_yscale = 0;
[Code]...
View 3 Replies
Sep 21, 2010
I want to load an instance on my stage into an empty movie clip on my stage when it gets to a certain frame. The instance is called jpeg_2 and the movie clip is called empty_mc.
View 7 Replies
Feb 18, 2009
I am trying to make a photo gallery in as3. I found a tutorial for a scrolling thumbnail panel and found how to convert it to as3.
What I would like to know is how do you get the larger image to display when the user clicks on a thumbnail in the scrolling panel? (I have 8 thumbnails, and 8 larger images).
ActionScript Code:
panel.addEventListener(MouseEvent.MOUSE_OVER, panelOver);
function panelOver(event:MouseEvent):void {
[code]....
View 7 Replies
Sep 8, 2010
just a simple actionscript2 loading a movie into an empty movie clip.
do i need to use a loop to change the name of the empty movie clips
why as actionscript cs5 decided to remove the help instructions. online instructions are slower thean previous . rant over .
View 5 Replies
Jul 13, 2004
c_mc2 = _root.createEmptyMovieClip("main_text", 4);
c_mc2._x = 0;
c_mc2._y = 359;
If i use this method to create an empty clip and then once i am done with the clip i unload the movie which was previously in it, what happens to the clip. Do i have to re-create it if i want to reuse the empty movie clip again with the same name?
View 6 Replies
Nov 30, 2005
Trying to do a simple thing, load a textfield into an empty movie clip
Here is the code
clip=createEmptyMovieClip("clip1",2);
//clip.createTextField("my_txt",1,300,20,60,60);
this.createTextField("my_txt",1,300,20,60,60);
[Code].....
View 3 Replies
Mar 29, 2006
I need to know how to the lead a empty movieclip that i made with ASi already tried deletemovieclip is there any other way
View 6 Replies
Nov 13, 2007
It is on tracing variables. I have a attached main.fla, movieclip.fla, and movieclip.swf.
If you run main.fla from within flash you'll notice the actionscript on the first frame of main.fla is loading movieclip.swf into an empty movie clip called container on the first frame of main.fla. No problem.
In movieclip.swf I assigned three values to three different variables, a, b and c, on the first frame of moviclip.swf(See movieclip.fla) like this:
a = 1;
b="string";
c 1.234556;
Also, in the first frame of main.fla, there was actionscript as follows:
container.loadMovie("movieclip.swf");
trace (_root.container.a);
trace (_root.container.b);
trace (_root.container.c);
Now each of the above traces produced undefined results when I ran main.fla from within flash. And yes I had complied moviclip.swf. Why did I get undefined results? What concept am I not grasping?
View 2 Replies
Nov 30, 2009
How can I create an empty movie clip where I can set It's name plus a number?
View 2 Replies
Nov 9, 2003
How do you do loadMovie into an empty movie clip automatically, without a silly butto push or anything?I've got a movie. I want to include another movie when the .swf file loads (so I can use a preloader on the movie that's being loaded).So, in my timeline, on a layer called banner, I have an empty movie clip I've made, with the following code:
Code:
onClipEvent(enterFrame) {
loadMovie("topbar.swf", "_root.barHolder");
}
topbar.swf is the name of the movie that's being called.barHolder is the instance name for the movie clip I want it to load to. So why isn't this working?
View 3 Replies
Feb 3, 2010
I've jumped in head first into Actionscript and I'm working my way through Adobe's Classroom in a Book for AS3. I've just completed chapter 4 and am currently trying to solve the "try on your own" problems at the end of the chapter.
Here's a problem that is stumping me:
Create a button to let the user set the size of the shapes that they paint.
And here is my code (the commented bits of code are solutions I tried but didnt work):
[Code].....
View 7 Replies
Feb 1, 2010
I'm trying to make a zoom in and out effect, on images in a movieclip, using the mouse wheel. But, there is another mouse event that scrolls through the frames of the movie clip. I need it to stay zoomed in, and out respectively, when you scroll to the next frame.
View 0 Replies
Dec 27, 2005
I have a quicktime video at 620x480 that I would like to keep sharp and clean with no pixelation or video grain. Unfortunately, the client would like the rest of the movie to scale to 100% (the movie is a flash projector file and is not browser based). I'm aware of full browser flash option when the stage is set to "noScale", but is it possible to have a clip that loads into a scaled projector at fixed resolution? So far my approach is this:small flash projector file to "embed" flash player. This would be at 100% scale mode. Then I would have the video clip load into the main projector clip (as a .swf). The external clip (video) would be set to "noScale" mode. Would this adhere or would the noScale be overruled by the projector scale mode?
View 4 Replies
Jul 7, 2004
i want to try to decrease scale of movie clip. it should be 90 but i don't know what code to add. it should move slowly down.
_root.myclup11._height = 100;
_root.myclip11.onEnterFrame = function() {_root.myclip11._height -=1};
UN@
View 1 Replies
May 26, 2010
I'm trying to load a flash game (hosted remotely) into an empty movie clip, and when I do the game appears but the buttons are disabled.Is there any way around this? I need to code it in as2 but the game was coded in as3, maybe that's causing issues? I've tried 2 slightly different ways so far but with the same affect:URL...(BTW, the game I'm using is just an example because the real one isn't finished yet)
View 1 Replies
Aug 2, 2009
I've loaded an external .swf into a movieclip in my parent .swf using the loadMovie(); function. The file loads perfectly and in the right position, however I can no longer access the functions of the external .swf. When I load the file into a level rather than a movieclip, the functions (buttons and timeline) of the external .swf work properly. Is there any way to use the functions of the external .swf when I load it into an empty movie clip?
View 7 Replies