I'm loading a .png image with loadMovie() and I need to center the image (for later dragging). I know flash has some issues with loading stuff, but I really need to get the movieclip's width. If someone knows how to get over this and get the movieclip's width
This is a part of a more complex app, so that's why I won't paste any code.
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?
(using actionscript 2.0) I have a mc titled 'mc_othersitterimage1' Within 'mc_othersitterimage1' I have one layer with a simple shape that measures 85px x 85px, and I have another layer that has this actionscript on it:
('perfectsitterimageURL1' is a variable for an image url. All of the images are NOT the exact same size.) I'd like the image to load in the center of my 85x85 pixel square. I have the registration point in the center of 'mc_othersitterimage1', but it still doesn't seem to work
I'm trying to use Zoom transition for my photo Gallery which I'm using loadMovie "jpg" from Xml file.Now the problem is here. The Registration Point is set to the top upper left corner and I would like it to be in the center of my loadMovie.The Zoom transition only zoom from left corner and need to be center equal sides. How do I do this. My image size is "width 400px height 240px
How can I center a loaded photo [lets say 200x300] in an image control [lets say 400x600]? My image control has fixed dimensions while my contents have different dimensions and I want them to get centered automatically.
created in flash. The issue i am having is when an image is loaded it always appears on the left handside attached to the top left point of the stage. Is there anyway i can get these images to load in the centre of the stage? This is the AS that is attached to my flash document.
Actionscript Code: function initGallery() { function loadXML(loaded) { if (loaded) { xmlNode = this.firstChild; total = xmlNode.childNodes.length;
I have this for loop where I am circling through an array. I have swf's for each of the numbers like dropTarget_1.swf, etc. For whatever reason I can't seen to get this loaded into my holder.
I have am trying to establish the center of the imags that load so that I can put them in the center of the stage. I am doing this as each image is a different size.
Here is the code i have gotten to work before but its not working now and I have been searching to find what I have done wrong with no luck. : ( Would you look it over and maybe you will see what I am doing wrong?
public function placePicture(e:Event = null):void { rawImage = imageData.image[imgNum].imageURL; lastImageIndex = imageData.*.length() - 1;
[Code].....
and I tried doing all of the above by inserting the loader into a sprite and then applying the code to the sprite and then adding that sprite to another sprite and putting that at 640 and not inserting it in another sprite and trying to straight up put the existing sprite at 640 (hopefully that all makes sense). And I have tried to put it to width/3 and nothing different happens.
I try to put an extern image in my flash movie. No i have problem to center it.This is the code i tried to use:
Code: var container:MovieClip = this.createEmptyMovieClip("container", this.getNextHighestDepth()); var image:MovieClip = container.createEmptyMovieClip("image", container.getNextHighestDepth()); var listener:Object = new Object();
As the title says, I'm trying to figure out how to center and image to a movie clip. I am familiar with centering images to the stage. imageLoader.x = (stage.stageWidth - Number(rawW)) /2; imageLoader.y = (stage.stageHeight - Number(rawH)) /2; But I do not know the correct actionscript phrases to implement this same concept into my movie clip known as "gallery_mc".
I am using loadMovie to load an image that a user has uploaded. If I have the loadMovie target as a movie clip of size 300x300 and the user loads an image of size 600x600 it does not restrict and scale that image down to fit within the 300x300 box.
Is there anyway to restrict this? Like setting the properties of the uploaded image to fit within the movieclip?
Another issue is that I am using the following code to edit the size of the preview pane (according to a users input):
I have a movie clip called "play_btn". The timeline has 2 labels, "paused" & "playing" ... paused contains a movie clip called "playButton" and playing contains a movie clip called "pauseButton". playButton & pauseButton contain images of a pause button and a play button.I am trying to replace the playButton image using:
loadMovie("play.png", play_btn.playButton);
This works when the swf is first loaded but then if I do:
I'm creating a DVD with an image gallery, everything local. But the thing is my loaded images appears within flash, and not outside when I execute the swf. The path of the image is inside an array (from an xml file). If I write the path of my trace(array[x][x]), the image outside flash is shown. But when I write: loadMovie(array[x][x].toString()) or loadMovie(array[x][x]) It doesn't... I did a trace of array[x][x] and it shows me the exact path to the image.. Code: _root.obra_mc.containerImg_mc.loadMovie("images/Patrimonio/Ceramica/"+(obras[0][1]).toString());
-would it be possible to set the _x and _y of image.jpg relative to myMC?You see moving myMC and then loading the picture into it will not me because myMC is to be scaled and manipulated, so its axis must be in the center of the loaded image.
i am new with flash, and i had swf which contains big image it will resize to best fit. when i double click the image the clicked position come to center of the stage. i achived little bit, it zooming but image not come to center position. i have attached the fla file in it i have used this script to zoom on double click and bolded 2 lines are to position the image.
I'm a real noobie with flash and I was wondering if somebody could help me with this one. I have this actionsript 3 code, where the cursor image "ball_mc" follows the mouse's position with a slight delay:
[Code]...
1) How can I get the cursor image automatically return to the center of the stage on mouseout? As of now, it stays at the position where the mouse leaves the stage.
2) How can I reverse the movement of the mouse? So that when I, for example, move mouse to the right, the cursor image would move to the left? And when moving the mouse up, the image would go down. The stage is 800 x 250 pixels, in case that makes any difference.
I'm trying to draw an image in actionscript, I set it as a BitmapFill within a rectangle. The problem is that if I move the rectangle away from the origin(0,0), in my case I start drawing the rectangle at (20,35), the bitmap background doesn't follow along. The background is always drawn at (0,0) and then repeated, so I don't get a centered image but rather 2 halved images. Here's what my code looks like:
public class PageTileRenderer extends VBox { private var sp:Shape;
[Code]....
how to move the background fill origin. Or is there another solution to draw the image centered.
I have a list of artist, each one a mc, in a vertical display. Next to them, I have a holder in which I load the thumbnails one the mouse is over a mc.This images, are being loaded via loadclip.. resize-center and then shown with alpha..But sometimes, the image are shown huge, and instantly resized and positioned.This a dvd project.. so images are not being downloaded..this is the part of the code..