i want to control this yellow motion without reducing fps. it show randomly & also i want to show this yellow obj on the blue man objects. i m using this AS2.[code]
Ok so I have many images all the same size in different keyframes in the same layer... I want to align them all to the stage at once... rather then each individually... how do i do this
how to get my images to center based on my AS (im sure that I am not referencing things correctly). The images fade fine but they still appear based on upperleft corner. I have changed reg point, etc but still to no avail.
it is an advertising movie and the images get from the XML file. In flash have an white frame and put the image in frame, one frame one image. If have 3 images, have too 3 frames however the frame is greater than the image, the image have 100px vs 90px maximums. but if the image no have this px, for exemple, 100x80, 10px of the bottom frame was showing. The images not is centred whith the frame. I not understand flash and my friend can't help me now. how center the images whith the frame?
onClipEvent (enterFrame) { // Make canvas dynamically resize to whatever is loaded in imageClip clip and width and height matches (and only when ttally loaded )
i have been looking on tremendous amount of code from several xml based image galleries but couldn't find out the right trick for the job.my knowledge at xml and actionscript is basic which might be the trouble understanding how to do it correctly.Anyway, i'm trying to load photos from an xml file to an array. Then attach the code to the thumbnails i created directly (couldn't figure out how to make them dynamic) so they load the big picture to the center of the stage. i was able to do this but the images loaded to the left corner of the mc all the time. I also need a next and previous button to loop through the images.I saw different approaches to this problem, but got confused on what's the right way to do this
I've got these images that are being loaded into an MC called imageClip, and another MC called Canvas underneath it.In canvas, I have the code:
onClipEvent (enterFrame) { // Make canvas dynamically resize to whatever is loaded in imageClip clip and width and height matches (and only when t�tally loaded )
I am working on creating a website that has 4 large images in the center of the stage and I was trying to load them using XML. I have a pre-loader to detect how much of the flash site was loaded then once it's loaded it continues onto the main content. My problem is that it goes to the main content before the images are actually loaded and I'm not sure how to make sure that the content is loaded before moving on from the preloader.
I have several images that are loaded dynamic.Now I want them to center in the container.How is that done? I can get the width and height but I can't adjust the x values on the loaderinfo object. Heres part of the code:
... part of function ... for (var i:uint=0; i<numPictures; i++) { var pictLdr:Loader = new Loader();[code].......
I have an actionscript that loads images for a slideshow. The images are different sizes and overlays in the slideshow top left justified. I would like to center the images. Below is the actionscript. What do I need to add to it and where?
I am editing an XML gallery and I have some questions..I wonder how I can position my images in the center of the screen. The images are all the same size (800x600) and I need them to display in the center of the screen.I played around with the code and I found out that when I change the Width and Height, the images starts to move (finally)... But it's very hard to find the correct position, so how can I just get it to the horizontal en vertical center of the screen/file?
Here's what the code looks like:
Code: <gallery dir="Photos/"> <img id='0' align="center" file="foodcongres2009_1.jpg" width='1024' height='768'> Test foto nummer 1 </img>
[code].....
And next... I have just two arrows (left, right), but when I click on the left one (previous), it goes to the next image instead of the previous one.. How about that?
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 they are all different size images. 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.
I have a function that I use to load images. I center align the images after loading by using loadClip() and attaching the function that centering to the onLoadInit event. The problem I'm having is that the centering stop working when I upload the flash movie to a webserver. I was also able to replicate this when I Test the movie and then go to View->Simulate Download.
Here is the function in question: Code: Select allfunction displayImage( img ) { // trace('displayImage()'); // lets mave the container invisible before loading the clip _root.mcLargePhoto.centerPhoto._alpha = 0; _root.mcLargePhoto.createEmptyMovieClip("centerPhoto",this.getNextHighestDepth()); var mclListener:Object = new Object(); mclListener.onLoadInit = function(target_mc:MovieClip) { // trace('onLoadInit()'); [Code] .....
I have built a gallery similar to the one found on Kirupa with a siding thumbnail gallery that references xml. Everything works great except that the images I want to load at their large size vary in width so when they load referencing the upper left hand corner they are not centered. I would like to load them so that each image in centered in the "picture" image area. I created a new movie clip and gave it the instance name of "picture" and center justified it but the images now load with THEIR upper left corner in the center of the "picture" image area. do I have to add code to the xml? is there anything I can ad to th AS to load pictures centered?
I've found a slideshow online and have been able to modify it to my needs, but I've struck a wall when it comes to centering. I figured out how to center all the images no matter their dimensions:
I have created a flash animation using tutorial on [URL] The problem I am facing is my images are of different size, so how to display images in center.
I have used this code, it displays images in center in IE but in firefox it displays half image
If you look at my Flash file "Grid.fla" (again see attached files) you'll see a group of 14 images which are loaded from an XML file ("Grid.xml") and when the user rolls their mouse over an image it uses the Tweener library to animate the image into its full size.
The problem is I need the images to animate into the center of the screen - see an example of what I'm trying to achieve by opening the SWF file within the attached ZIP called "StormGallery.swf".
But I have no idea how to do add this type of animation into my "Grid.fla" file!
This seems like it should be part of the "Adding Thumbnails" - the large images are align to the left when they load. So when you have landscape and portrait orientation images, they should horizontally align to center, not to the left.
I want a prev / next buttons that brings the one of the carousel images to the center of the stage. Then when clicked again, it moves to the next one. I know that I have to have a code in my button release that checks the focus of the icon and brings it to the center if clicked. I have my buttons in place and everything is working great except calling the next icon over.
I'm trying to customize the flash slide show from the "Slideshow Using XML and Flash" tutorial and have a question when it comes to centering the images.
My pictures are all either 210px wide or 160px high and the area where the pictures are to be displayed is 210x160. The pictures are down-scaled versions of bigger pictures with different size, meaning that some could be 210x160 while others may be 90x160 or 210x40.
The problem here is that each picture is loaded at the same position (x,y) as globally defined (I've adjusted this to top left by setting x=0 and y=0 in the actionscript part). This obviously doesn't look to good for a picture that is 210x50 as it does for a image which is 210x160 and fills the entire display area.
So, is there any way to center the pictures when they're loaded?
I have a center window and a background in my flash file. I am trying to get the center window to stay in the center of the web browser screen and get the background to expand and fill the entire web browser screen below center window layer. Sort of like this site [URL] I've currently converted the background to a movie clip and have this code.
My flash movie is 1440x900 but the area where all the important stuff happens in within 1024x768, i am trying to keep the middle in the center regardless of browers size or aspect ratio.
I can center the page but it doesn't work as i need it to. If the browers is small (1024x768) the swf is justified against the left edge, but not keeping the middle in the middle of the brower.
[URL] is an example of exactly what i am trying to achieve.
I have a flash file sitting inside of a web page in our company domain. There is another server (used to store images) that is part of the domain but is not running any web services (for security reasons). A folder on the images server is however shared in such a way that any site on the web server can display images from the images server as long as the user is plugged into the domain. For example, both I and my boss can pull up a web site on the web server and see all the information, but only he can see the images because I have Vista Basic and no domain support. This is done via "<img src='\serverNamedirectory.'/>"
That's ok, but on this particular instance I don't want to display the image on the webpage, I want it in a SWF on the page. However the SWF can't seem to load the images even though the page it's sitting in could. I've tried tons of variations of URLRequests and Loaders, most resulting in security errors. Since most of the online discussions about these errors revolve around cross-domain access, I can't seem to find any tech support for our specific situation.
i couldn't find a tutorial on this matter so i sorta started making my own hypothesis... what i'm trying to do is: have a gallery of images automatically scrolling horizontally while having the set of images loop. like at[URL]..
here are a couple of my theories and questions for AS commands to have this work:
1) display a range of pixels of an image at certain positions, i.e. if gallery is scrolling to the left, leftmost image when its parts are disappearing out of the viewing area, they become visible at the right.
2) have two instances of each image and when an image is disappearing on left, the second instance of that image comes visible on the right. this I imagine would take up more HD space.
i guess what i was wondering more about is how jager did their gallery where there's only enough images are in a set to be viewed in the viewing area.
Explaination: MX 04' Pro Thumbnail Nav. loading images with XML Loader resizes and displays images when users click on Nav. reading XML Problem: Users click Thumbnail Nav. first image gets loaded and loader resizes to image. However the next choice by user on thumbnail click, the second image doesnt get resized in the loader. It goes beyond holder. Here is my code for Thumbnail and Loader:
[Code]....
Now the first image loads fine and the loader sizes to file from XML. However, when users click second choice from Thumbail the loader doesnt resize to new image size. It only gets resized on the first selction or if users click the next or prev. buttons then the images fade correctly but nothing fades back in. Now if they do hit next or prev and then hit a thumbnail option it loads and resizes.
I am pulling external images, I have my main image, and five small images, I have that to make the small images when click to appear in the place of the main image, but I am not obtaining to make they to click, I am placing my archive who to want to make download
im loading multiple images but how do I make sure the program will start once all images have dispatched a complete event. like make a universal loader for all the other "small loaders" if you understand.