ActionScript 3.0 :: Positioning XML Slideshow Images On Stage

Oct 12, 2009

I have a xml slideshow that is working fine. The problem I am having is all of the images load in at x=0 and y=0. I would like to have the images load at a specific x coodinate and y coordinate on the stage. I have been looking at other code examples to see how to fit this in to mine but I keep breaking it.

Here is my code: 

[Code]....

View 5 Replies


Similar Posts:


ActionScript 2.0 :: Slideshow Positioning - Center All The Images

Jan 12, 2009

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:

[Code]...

View 1 Replies

ActionScript 2.0 :: Text In A Slideshow - Make A Basic Photo Slideshow With External Images

May 29, 2008

i have a question about text in a slideshow. i know how to make a basic photo slideshow with external images. but now what i want to do is add 4-5 paragraphs of text next to each photo (with possible scrolling). the text will be different on each photo.

View 1 Replies

ActionScript 2.0 :: Positioning Mcs On The Stage?

Aug 24, 2011

I'm trying to make some mcs be displayed from alpha 0 to 100, one by one in the stage and in random positions. I've managed to make appear it randomly from alpha 0 to 100 with this code:

Code:
mcs = new Array("mc0", "mc1", "mc2", "mc3", "mc4", "mc5");
mc0._visible = mc1._visible = mc2._visible = mc3._visible =mc4._visible =mc5._visible = false;[code]....

The strange thing is that only some mcs are positioned randomly and others stay in the same position.

View 3 Replies

ActionScript 2.0 :: Positioning Mcs On Stage

Aug 24, 2011

I'm trying to make some mcs appear to alpha 0 to 100, one at one in the stage and in random positions. I've managed to make appear it randomly from alpha 0 to 100 with this code:[code]The strange thing is that only some mcs are positioned randomly and others stay in the same position, but not always the same.

View 1 Replies

Actionscript 3.0 :: Determining Which Mc Is On Stage And Positioning It?

May 19, 2011

I have a series of movieclips acting as buttons that load different flashvars video srcs onto the stage.When the swf loads --- the first button is added to the stage after a 20 sec Timer completes.As you click through each button, the one just CLICKED is removed and a new button is added in its place.All the buttons are set to dynamically be centered on the stage. However, the function that is positioning them is called BEFORE the first button is on stage, throwing the error (Error #2007: Parameter child must be non-null.)here is the code inside of the windowResize method which positions the buttons.

Code: Select allprivate function onWindowResize(e:Event):void
{
//position hidden buttons[code].....

Even though I've set up a boolean var and set it to true after the first button has been added to the stage -- the method still tries to find the first button and gives me a error saying that it must be non-null.Basically I want to make sure that it doesn't try and position the first button before it has been added to the stage. I'm not sure if encapsulating this method inside of another Timer is a good idea.

View 1 Replies

ActionScript 2.0 :: Y Positioning - Keep Browser At Top Of The Stage

Jul 29, 2008

I have a bottom bar on a site that has he following code: nav_menu.menu_bars._y = 0; But I want it to be at the top of the stage. Sorry for such a noob question, but how do it? I've tried nav_menu.menu_bars._y = -600; but when the browser is resized it obviously moves down the page. Is there a bit of code to keep it at top of the stage?

View 1 Replies

ActionScript 3.0 :: Positioning After Stage Resize?

Aug 25, 2011

coordinates in flash, particularly after resizing the flash player window.I have an mc on stage and draw an ellipse inside that mc. The movie is of size 800 x 600.

Code:
var ellipse:Shape = new Shape();
ellipse.graphics.beginFill(0x6CCDF4, 0.5);
ellipse.graphics.lineStyle(4,0x186B87);

[code]....

If I check the coordinates of that ellipse from it's transform property, I see that the top left is at 400, 300.

Code:
ellipse.transform.pixelBounds.topLeft.x
ellipse.transform.pixelBounds.topLeft.y

This seems fine to me as this position is in relation to the stage, yes? If I convert this to a position local to the container I get values ~0,0.

Code:
var stagePoint:Point = new Point(ellipse.transform.pixelBounds.topLeft.x, ellipse.transform.pixelBounds.topLeft.y);
var localPoint:Point = join.canvas.globalToLocal(stagePoint);

When the flash player window is resized, the coordinates change entirely. Instead of being at 400,300 the transform property indicates that it is at 640, 510. I assume this is because the viewport has changed, but the stageWidth and width properties of the stage do not change.

View 12 Replies

ActionScript 2.0 :: Dynamic Positioning Of The Rollover Images In A Movie Clip?

May 10, 2006

i have a movie in which i have 50 thumbnails dynamically added to a mc and i have a scroller to scroll the mc which works fine.. on each thumb i have a rollover image (which is a bigger image of the thumb) which works fine but i want the rollover image to be shown within the area of mask area which is not happening now..

View 4 Replies

ActionScript 3.0 :: Positioning External Flv Files On Stage?

May 21, 2009

i am loading 3 flv files so that the first file plays once and the other two loop afterwards. Now i am interested is it possible to position the flv files on the stage to certain coordinates when they start to play (so for example that the first flv plays as default in the centre, the second flv file plays a little bit right and the third plays a little bit left). This is the code i'm using:

[Code]......

View 9 Replies

ActionScript 2.0 :: Positioning Buttons Always At The Bottom Of Stage?

Apr 1, 2007

I have a group of 6 buttons which on my stage sit in the center and are 20 pixels from the bottom, I am trying to create a bit of a liquid layout, and the browser is going to be able to resized by the user. I want always for the buttons to stay at the bottom in the center of the browser 20 pixels from the bottom no matter wether it is resized too

View 7 Replies

Actionscript 3 :: Positioning Nested Movieclips Based On Stage?

Aug 12, 2010

I have multiple nested movieclip in its own different movieclip, and i would like to arrange them accordingly. My idea was to use the localToGlobal function. I can get the position of the MC on stage, but how do I use the function and place the MC based on stage?

cAPos = new Point(objectA.y);
newcAPos = objectA.localToGlobal(cAPos);
cBPos = new Point(objectB.y);
newcBPos = objectB.localToGlobal(cBPos);
objectB.y=objectA.y+objectA.height <-- based on stage

View 1 Replies

ActionScript 3.0 :: Giving Object Random Stage Positioning?

Jul 20, 2010

so i am giving these objects random x and y coordinates on the stage, but i need each object to be spaced apart from each other (lets say 20px) how can i achieve this. I have got the following code:

ActionScript Code:
for(var i:int=0;i<=bubbleNumber;i++){
var bubble:Bubble = new Bubble();

[code].....

View 2 Replies

ActionScript 2.0 :: Positioning Big Image To Absolute Middle Of Stage?

Aug 29, 2006

im trying to achieve a Full Browser Flash and i want my bgimage to remain in the centre of the stage whilst other objects move round it depending on mouse movements but how would i go about centering the bgimage through AS?

View 2 Replies

CS3 Loading Random Images Into Slideshow?

Jan 12, 2010

i am using a slideshow template that I purchased and I wanted to get the images to load randomly, I contacted the author but he wants me to pay him extra for this and I have no money left for this project.basically, I'm looking to add a line to this as2 file that would make the images load randomly without repeating and then start over when the cycle completes. I tried putting in an array but it caused all kinds of errors.

View 8 Replies

ActionScript 3.0 :: Slideshow - Images Loading All At Once

Oct 6, 2011

I'm writing a flash site for my wive's photography site.translation.I'm not getting paid. I wrote a slideshow that works great except that the images load all at once. It seems to me they should load one at a time, but they don't and I don't know why. It really slows down the loading of the page. [code]...

View 3 Replies

Preload Images For Random Slideshow?

Jun 8, 2009

I am using a random slideshow on the homepage of my website. It worded perfect when I was testing it locally, but now that I've uploaded it to an external server which is a bit slower, and there is a delay between loading images. Here's the work in progress site: [url]... I know it has to do with the way the actionscript is written, and the order in which functions are carried out. I just cant seem to get it to function the way I would like it to. I would like it to immediately load the first image and display it, then while that first image is displayed I would like it to load the second image. Right now it waits until the first image finishes displaying to load the next image.

View 4 Replies

Professional :: Create A Slideshow Of 5 Images?

Jun 23, 2010

I want to create a slideshow of 5 images, with black fade effect in between. So from black to image to black to the next image and so on. Then it stops on the last image. I dont want any buttons or any interactions.

View 2 Replies

Flash :: Slideshow Pro - Loads But Images Do Not?

Sep 2, 2010

I installed Slideshow pro, with swfobject here: [URL] The flash loads but the images do not. I have double checked the image paths to death and they appear to be correct. Here is the html:

[Code]...

View 2 Replies

ActionScript 2.0 :: Preloader Within A Slideshow Of 5 Images

Feb 22, 2009

This thing is giving me a headache. See code below. The issue here is that my first image preloads OK, but then the second image gets jammed at 25-30% and never loads. The third and forth image preloads OK and the same issue with the fifth image. And sometimes the issue is on the last 4 images.

[Code]...

View 0 Replies

ActionScript 2.0 :: XML Slideshow - How To Preload Images

Dec 9, 2008

Have built a variation of the xml slideshow using the XML basics video - works great but would like to preload the image(s) so they don't "blink" in when loaded (looks like there's a slight delay before it displays the image).

View 2 Replies

ActionScript 2.0 :: Loading Images Only Once For A Slideshow?

Jun 2, 2008

I'm building a slideshow using only ActionScript, but the computer running it will only have access to the files when the show is first started. So I need to somehow load all the images initially, and call on them from within the file itself from then on.

View 3 Replies

ActionScript 2.0 :: XML Random Images Slideshow?

Aug 6, 2008

I've created a flash slideshow with a fade-in fade-out effect that pulls a random image from a file containing a bunch of images from an XML file.Now what I'm trying to do is create some type of array that would generate those random images but maybe only 10 or so and just play those 10 images so that there aren't any duplicates one after another from pulling a random image from the file every time.

View 3 Replies

ActionScript 3.0 :: Aligning Images In Slideshow?

Jan 10, 2011

I have a slide show in a site I'm building for a friend the slide show can be viewed by going to [URL] and clicking the About Us button

the images are supposed to be centered and 95% of the time they are. I would like to see them centered 100% of the time. here's the code:

Code:
import com.greensock.*;
import com.greensock.easing.*;
import flash.display.*;

[Code].....

View 2 Replies

ActionScript 3.0 :: Tweens On Slideshow Do Not Function Once Have 25+ Images

May 8, 2009

I am building a slideshow right now using TweenLite as my tween class.Everything works perfectly when I have less than 25 images loaded into it, once I go above that things go south and the tweens appear to not work smooth, sometimes not at all.

My structure is basically:

- I have a sprite on stage called "Main".

- Loop through images, load them and add to the Main sprite as Sprites.

Code that I use to process the tweens:

PHP Code:

// Tween image outvar cx:int = Math.round(Backgrounds.loadArray[idx].width / 2);var cy:int = Math.round(Backgrounds.loadArray[idx].height / 2);TweenLite.to(Backgrounds.loadArray[idx], 1, { alpha: 0, scaleX: 0, scaleY: 0, x: cx, y: cy, ease: Quad.easeInOut, overwrite: 1, onComplete: doRestore,

[code]....

View 1 Replies

ActionScript 3.0 :: XML Slideshow Displaying Random Images

Jul 28, 2009

I have an XML slideshow displaying random images.

It works but sometimes duplicates the same images or displys the same image way more than the others...

Is there an action I can call so ALL my images play once in random order, before they get to be displayed for a 2nd time?[code]...

View 10 Replies

Create An Slideshow With External Images And Transitions?

Aug 7, 2009

Previously I've done all the monkeywork by hand on the timeline, but now I need to make an automated slideshow for an image portfolio that collects pictures from an external folder (1.jpg, 2.jpg, 3.jpg, etc...) so I can just upload variants of the image without having to change the flash file each time.

I'm also hoping to include fading transitions and an easy way to change the amount of time each image is on screen.

View 2 Replies

Slideshow Not Showing Images From Remote Browser?

Dec 8, 2009

I have created a simple site in Dreamweaver, I have uploaded the site to a remote server and everything is great but for one thing. I have inserted a Flash image viewer that should show a selection of images, it works fine when launched from Dreamweaver into a browser window such as Firefox. However if I access the site using its domain name and recieving from the remote server no images/slides play.

I have done several things to try and rectify this. Made sure the images are in the root folder. entered 'base' and '.' in the parameters and made sure all image names start with a lower case (linux) and it still doesnt work.

View 1 Replies

ActionScript 3.0 :: Loading Images To Slideshow - URL Not Found

Apr 2, 2009

I am having a little trouble loading images to a slideshow. I have all of my paths correct and all of my images named correctly. I get this error:
Error #2044: Unhandled IOErrorEvent:. text=Error #2035: URL Not Found.
The code I am using is attached.

View 1 Replies

Simple Slideshow - When It Start It Only Shows Images For One Second And Goes To The Next?

Jun 25, 2009

i need is a simple slideshow. already have images ready but when it start it only shows images for one second and goes to the next.i want it to stay on screen for ten seconds (i am new) (cs4) and needs to work when uploaded to website not just on my computer

View 3 Replies







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