ActionScript 2.0 :: Setting The Location Of EmptyMovieClip?
Dec 21, 2006I'm clearly not caffinated enough (or too much!) because I can't seem to place my emptyMovieClips where I want them.
[Code]...
I'm clearly not caffinated enough (or too much!) because I can't seem to place my emptyMovieClips where I want them.
[Code]...
when you create an empty movie clip, the registration point is 0,0 as default, I read you can change this by defining the X&Y but my movie Clip's position is defined by stage width and height.Is there another way to define the registration point~?
View 8 Repliesi have a darkBlueRect rectangle sprite and a copy of the same sprite with a larger scale and a lighter color - lightBlueRect.i'm attempting to shift the location of the lightBlueRect according to the mouse.x location when the mouse is moving over the darkBlueRect. this way if the mouse is on the right of the darkBlueRect than the location of the scaled up lightBlueRect will be on the opposite side and shifted towards the left proportionate to the mouse position and scale. in addition, the lightBlueRect must appear "locked" to the darkBlueRect so lightBlueRect.x must never be more than darkBlueRect.x and lightBlueRect.x + lightBlueRect.width must never be less than darkBlueRect.x + darkBlueRect.width.
[code]...
I'm loading a video using the FLVPlayback component, and I want to start the video 10 seconds in, as opposed to from the start. How would I do this? For audio it seems simple enough, but I couldn't find an easy answer for video.
View 1 Repliesit's an easy question but the words may come out wrong. so I'm loading these 5 pics as buttons
[code]...
and I want to have them located one below the other plus 10 pixels gap . . . it seems so easy, but then so did opening the MX2004 packaging . . . 3 days later.
I gave up on Flash heavy coding when it switched to AS3. Always thought it was less intuitive, longer, and a brand new language and I got tired of trying to keep up when most of my clients did not want to pay for a full flash site. But I got this client...
Here's the problem, I can load a swf into my main stage or into an MC , but I cannot find out anywhere how to set parameters or load into a level so it doesn't replace the current material or fix to a size that doesn't block my other material.[code]...
I am trying to make an object tween from its starting location to the location of a mouse click. I have a script, but it has a very annoying ease to it.I would LIKE the object to mantain a certain speed during while traveling from its starting location to the mouse click location.
View 16 RepliesI created a simple button that displays an error messeage: "error opening 'url" when I test the movie, but does play and opens in browser after publishing. However, it won't open in the browser in a different location. I pasted the html code in a web page but it doesn't work there nor opens in the browser in a differnet location from where it was originally published and saved. Why is that?
View 13 RepliesI'm having a heck of a time getting my movie clip on the stage postion where I want it (and eventually I'll want 8-10 movie clips running on different stage locations at the same time.) I've tried numerous scripts methods, this is the last one and it's still not moving out of 0 position:
this.createEmptyMovieClip("my_mc", 1);
my_mc.createEmptyMovieClip("container_mc",2);
var my_mcl:MovieClipLoader = new MovieClipLoader();
my_mcl.loadClip("textgauge1.swf", my_mc.container_mc),{x_:371.6, y_:76};
Is it possible to attach some script to a dynamically created movie Clip?
View 7 RepliesI did a search but couldn't find exactly what I was looking for. I'm loading an external jpg into an emptyMovieClip (AS1) on the _root timeline and I want to implement a preloader so when the jpg loads it fades in, not show up abruptly.
Here's my code:
Code:
// Load an external Image
function loadImage(imageFile) {
var imageFile;
[code].....
When I create a new mc:
Code:
_root.createEmptyMovieClip("container", 1);
and try to attach one into it:
[Code]....
Even when I give the "container" content with [.lineTo()], nothing continious to happen.
I guess it has something to do with the 'emptyness' of the mc, but how to solve?
Fairly simple question:When I create a new mc:
Code:
_root.createEmptyMovieClip("container", 1);
and try to attach one into it:
[code]......
I'm loading external .swfs into an EmptyMovieClip. but i want to change the background color dynamically for some of the swfs but not all. that is, sometimes the background color is white sometimes black. how do i do this?
View 3 RepliesMy problem is that I cant figure out how to draw my movieclip if I dynamicly name it.
However If I address it by using its actual name it works fine.
I have included both working and non-working code.[code]....
I am loading an swf file into an EmptyMovieClip container called "container" using loadClip. I cant figure out how to reference the different instances inside the loaded swf.[code]...
View 5 Repliessay i got this empty movie clip which loads .jpg files.... the dimensions of the empty movie clip is 800 by 550... by default, the top most left of the external .jpg image will load onto the 0 by 0 point of the movie clip... but i want it to display the .jpg image in the center of the empty movie clip...
View 2 Replieswell like the title says, ho can i set the properties of a mc's created with createEmptyMovieClip , getting a real nag , have tried all kind of things , for loops , etc.
for (i=0; i<=10; i++) {
this.createEmptyMovieClip(["rondje"+i], i);
lineStyle(1, Black, 100);
[Code].....
I'm trying to create a scroller menu. The container movieclip will hold several copies of a clip in the library. So I'm trying to create the clip dynamically since it's width will be varying depending on the number of elements it contains.
But when I try to use the attachMovie method on my newly created empty movieclip, nothing shows up! The test_mc will attach if I just say _root.attachMovie, so I don't know if it's a path issue or if emptyMovieClips can't have other clips attached or what.
var emptyClip:MovieClip = this.createEmptyMovieClip("empty_mc", 9);
emptyClip._x = Stage.width / 2;
emptyClip._y = Stage.height / 2;
emptyClip._width = 300;
emptyClip._height = 300;
emptyClip.attachMovie("test_mc", "test_mc", 20);
I'm having trouble getting an emptymovieclip which i have created to draw with to appear below the top layer. . . is LineTo always at the top depth?
View 1 RepliesI have 3 picture slideshows usings XML, the pictures will be changing form time to time that's why i needed it like this.Every slideshow is inside a folder, ej: gal1, gal2, gal3.In every folder i have the images, the flash file (gallery.swf) and the xml file.I have the main movie in wich i have a container where most data shows... and in wich i made an emptymovieclip, called "galMC" (now i know i could have used createEmptymovieclip, but maybe next time)[code]I have tried various methods but i always end up unloading "galMC"...the problme i think is that if i reload the container and click on another slideshow (gal2 or gal3), i see only the first image of the selected slideshow and then and then it starts showing the first slideshow that was loaded, so i guess i need to really UNLOAD that slideshow to load another and this is not hapenning.
View 1 RepliesI'm using this source file to create my photo gallery:How would I modify this code to make the external JPEG load in the center of the movie?
============
MovieClip.prototype.fadeIn = function() {
this.onEnterFrame = function() {
[code]....
well like the title says, ho can i set the properties of a mc's created with reateEmptyMovieClip its getting a real nag , have tried all kind of things , for loops ,
for (i=0; i<=10; i++) {
this.createEmptyMovieClip(["rondje"+i], i);
lineStyle(1, Black, 100);
[code].....
i got this empty movie clip which loads .jpg files.... the dimensions of the empty movie clip is 800 by 550... by default, the top most left of the external .jpg image will load onto the 0 by 0 point of the movie clip... but i want it to display the .jpg image in the center of the empty movie clip....my guess is i have to get the dimensions of the external .jpg and then calculate from there...
View 2 RepliesI want to make a bunch of movie clips 295 pixels apart named "pic1, pic2, etc.." with an array only I don't know how Can I have these clips extend past the limits of the maximum stage width of ~2880 if I do them with actionscript? Because I did do it manually but I was restricted so I am resorting to trying this!
View 1 RepliesI need to load several swf from several rollover on mcs instances. I create an empty mc as follow
[Code]....
It works ok, loads, unloads but of course the swfs all load at the same x and y positions. I need each loaded swf to have a different position each time there is a rollover... SO SO SO Do I have to create an empty movie clip ( container 2, 3 etc...) for each mc?
How can I move my MC from one location (x, y) to another location (x1, y1) wirh action script..?.. and I would like to have my motion tween rounded to (x,y) so it will look sharp.
View 8 RepliesI have thumbs placed on the stage. I create an empty mc to load swf. But my thumbs disappear from the stage when I test the movie ( html or swf) if I settle the _ and _y position of the empty mc.why the emptymovieclip positions affect the positions of my thumbnails?
View 2 RepliesI have a series of swfs that I've connected via loadmovie. This works well with I press the NEXT button, but not the PREVIOUS button. The PREVIOUS button starts at the beginning of the called movie. I need it to start at a specific location. Is that doable? If yes, how? I tried adding the gotoandplay after the call to the swf, but no luck.
View 2 Repliesis it possible to show my Town (find by IP) / Town of my Provider in Flash File?
View 2 Replies