Professional :: Loading File Order Reverse?
Sep 14, 2010
I try to load 4 pictures. Loading is fine but the order is reverse.This is the code:
function showThumbnail(id:String, xmllist:XMLList):void{
var pics:XMLList = xmllist.(@name == id).*;
for each(var i:XML in pics.pic){
var loader:Loader = new Loader();
[code]....
The "I" is the picture index. I think the order should be 1.png 2.png 3.png 4.png just like the order of the xml ~~This is the output:
I:1 mc.x:11 mc.y:27 file:///D|/works/Flash/thumbnails/4.png I:2 mc.x:11 mc.y:210 file:///D|/works/Flash/thumbnails/3.png I:3 mc.x:11 mc.y:393 file:///D|/works/Flash/thumbnails/2.png I:4 mc.x:11 mc.y:576 file:///D|/works/Flash/thumbnails/1.png
View 4 Replies
Similar Posts:
Dec 13, 2011
I'm loading some images within a gallery but I have a trouble.. They appear backwards.. the last one on the xml is the first one shown.. I guess the problem is caused by onLoadInit.. which resizes each images and then place it on stage.. if i make a trace of "i" inside onLoadInit, always give me the last number of "i" (eg. "28"... 28 times)
[Code]...
View 2 Replies
Jul 8, 2008
i have been able to customize this tutorial to meet my needs but i have one remailing issue. The thumbnails are loading in reverse order from they way they are listed in the XML file or random order. Is there a way to force them to load in the order they are listed in the XML file?
[Code]...
View 3 Replies
Sep 20, 2011
Ive got text in arabic in Word doc, written right to left (its times new roman font, arabic characters). when I copy & paste in XML, it reverses the direction, becomes left to right.
Im using word 2003 & adobe CS3 .i need to load xml file in Flash .
View 1 Replies
May 29, 2009
is it possible to play a movie clip (or simply, main timeline) in reverse order e.g. suppose, there is a movie clip, few frames in that, of course it will play from first frame to end frame, and also, i want them to play from end frame to first frame.
View 8 Replies
Apr 7, 2009
If I do a for loop like this, how can I reverse it so the last result is shown first?
for (var i=0; i<10; i++){ trace ("number " + i)}
View 1 Replies
Feb 6, 2011
I can't seem to get my scrolling background to do it in the reverse order, This is my code
var bg1:Background = new Background();
var bg2:Background = new Background();
var currentBG:Background;
bg1.x = -1.05;
bg1.y = 409.85;
[Code]...
View 5 Replies
Oct 14, 2009
I'm trying to use a BarChart in Flex. I'd like it to order the bars according to the order of the ArrayCollection I fed it. i.e. data at index 0 should be the first bar on top.However, Flex is giving me the exact reverse order. i.e. data at index 0 is not the last bar in bottom. How could I tell the BarChart to reverse the order other than reversing the order of my ArrayCollection?Here's the block of code in my script tag:
[Bindable]
private var optionsArray:ArrayCollection = new ArrayCollection([
new VotingOption('Yes, it rocks!', 'yes', 5),
[code].....
View 2 Replies
Sep 22, 2009
I am trying to get my animation to play in reverse order and this is a pain in my leg.I have most of it figured out, this script below. I need to know if and how do I get this forward function to stop at a labled frame or key frame and not just use a number of px.
In this example I have x: "100".I need this to just play till it reaches a stop actions / lable frame or key frame. I have been trying to get this animation to play in reverse order for about a week now and I came across the TweenMax and it has a lot of good subclasses, but not much information online about the reverse subclass.
stop()
// importing the classes TweenMax and easing
import gs.TweenMax;
import fl.motion.easing.*;
[code]...
View 3 Replies
Apr 26, 2010
this is not CRUCIAL but I would like to be able to change it.As the notes come down the screen, they get added on top of each other since each child is added at a specific time.Is there a way I can reverse the sort order? So notes added after notes become layered behind instead of in front?
View 5 Replies
Dec 8, 2009
i would like to load a flash file in order to use it's functions and classes. i would like that this file will be never cached. how can i do that ?
View 1 Replies
Aug 21, 2009
Is it possible in AS2 to remove an attached movieclip instance in reverse order? I want to give the user the ability to click an erase button and remove the most recent instance of an attached movie. I have tried .swapDepths and getting inconsistent results. Here is what I have:
this.onMouseDown = function(){var drawdot:MovieClip;
drawdot = this.attachMovie("dot", "dot_mc", this.getNextHighestDepth(), {_x:_xmouse, _y:_ymouse});
[code].....
View 5 Replies
Jan 26, 2011
Is there a way to reverse the order of the items in a comboBox? I'd like to use index numbers to refer to items in the arrayCollection below. I want the newest content to appear first in the comboBox. But, if I add something above the first item then all of the index numbers will be off by one. If I could add a new item to the end of the arrayCollection, but have it appear first in the comboBox drop down that would solve a lot of problems.
[Code]...
View 1 Replies
Mar 28, 2010
loading 2 external swfs into one main file using 1 preloader, I have figured out how to get the preloader to handle the correct # of bytes loaded and such but my 1st swf I want to load onto the stage is a video file and I want it as the background but I don't want it to start until after they are both (the video and main file - 2 external swfs) loaded and then I want to start the video and place it on the stage first, then place the main swf on the stage.
I can get the order right if I place them into my load complete function but then my buttons don't work on the main file.
Here is the code:
var bytesLoadedVidBG:Number = new Number();var bytesTotalVidBG:Number = new Number();var loader0:Loader = new Loader(); // load video BGvar loadedSWF0:Object;loader0.load(new
[Code]......
View 3 Replies
Jun 18, 2009
So I have this mc: this.slidingMenu it's a mc of a ring shaped menu, which turn around when 2 button get clicked. When the button on the right, mc goes forward until stop(), when the button on the left mc goes reverse until the stop(). In the first case i use gotoanplay, and everything goes fine. For the second I use prevFrame, like this:
[Code]....
View 3 Replies
Mar 23, 2010
I have 2 flash in my website.One is background and the other is menubarThe problem is that the menubar is sent to back of the other flash(background).
View 1 Replies
May 6, 2010
I have a simple flash banner that is pulling a number from an xml file on a different server. When it gets to the frame where the number should be it just says "transferring data from and will not actually pull in the number. Unfortunately I can't put the files on the same servers.below are the links and the xml code I'm using followed by the action script.[URL]
<?xml version="1.0"?>
<inventors>
<person>
View 5 Replies
Oct 20, 2011
I'm following lessons 11 on ActionScript 3.0 (classroom in a book) and I am using Flash professional CS4; I have properly copied and pated lessons from the CD to my PC. I'm up to the stage where it describes the process of loading external files dynamically by using xml list. I have followed it to a tee, however when I came round to test it, it does load the list however the next video is not showing up.
View 6 Replies
Jul 6, 2009
Im loading in tumbnails from an XML. Now they appear in a random order, i want them to be in the order they are in the XML file.
Quote:
thumbNails_xml.onLoad = function() {
var listenerArray:Array = new Array();
var tempArray:Array = thumbNails_xml.firstChild.childNodes;
var tnLoader_mcl = new MovieClipLoader();
[Code].....
View 5 Replies
Jul 10, 2009
In AC2, I am trying to load .swf files in to a movie.
I know how to load them, and I can load them at random. But what I want to know is, if I have say 500 movies, named movie_0.swf movie_1.swf movie_2.swf etc...
is there a way I can load them ten at a time, in order of highest number to lowest number. In a specific location.
In other words, I want to be able to have many external swf movies, about 400px wide by 100px tall, and load 10 at a time in to a 800px wide by 1200px tall movie, 10 movies at a time, in order of highest to lowest movie name number. Each in a specific place, with a next and precious button to show the next 10 or last 10.
Im basically working on my first site, and want to use something like this so I can show my latest articles first when someone clicks on the articles section of the website.
Now resolved with AS3
PHP Code:
var loaderone:Loader = new Loader();
loaderone.contentLoaderInfo.addEventListener(Event.COMPLETE, loadedone);
loaderone.load(new URLRequest(prefix + totalfiles-- + ".swf"));
function loadedone(one:Event):void
[Code].....
View 1 Replies
Jul 15, 2010
I noticed something after executing my slideshow. The images aren't showing in the order they are in the XML (and that MUST be in order).[code]The problem resides in the fact that Event.COMPLETE when loading images add probably images in the order they are LOADED and not LOADING. Is there a method which will make them add in the order they are called?
View 5 Replies
May 27, 2010
I have a problem with loading images. The images are loading random wise whats the problem with the code.When i trace the url its displaying randomwise.
ActionScript Code:
private function createContainer():void {
for (var i:Number = 1; i<=myXML.images.length(); i++) {
[code]........
View 4 Replies
Aug 5, 2007
I have one main stage in Flash 8 where I am loading different swf's into a main movie clip. And since some of swf's are bigger then others they are loading randomly. I would like to know is there a script that can put some of the swf's on hold and load them as the scipt tells in which order?
In my scenario i would like to place them to load in some order in my main movie clip.
I am relativley now to flash, but I have basic scills to do some basic stuff.
View 1 Replies
May 13, 2010
What code is their to play a single frame containing movie clips once and then play the next frame and stop
View 26 Replies
Jan 6, 2010
I have created a SWF file with a button which is action scripted to load a FLV video. However I am still not sure that I am filepathing the inserted FLV file correctly. I have set the absolute file path including http://www.etc..com however the movie does not load. Is the _root correct? Should this be cleared?
View 2 Replies
Jun 21, 2010
i want the .SWF file to be opened but not donwloaded until a button is pressed but don't know ho to do that..on frame 1 i have an object (movieclip) that consists of a logo with a blur effect.. after 1-2 seconds the blur effect goes away and you can see the logo. the logo itself is a button that send's the user to the next frame in the main scene.on frame 2 of the main scene i have a preloader that shows the percentage of the loaded page and a progress bar .. everything works great
the problem is that when you open the swf it starts downloading the hole flash site and when you press enter the site is already loaded and you can't see the progress bar of the preloader..i want only the 1 frame of the main scene to be loded, then i want i to stop loading (downloading) the SWF file until enter is pressed.when enter is pressed i want the flash site to be loaded and so you can see the preloader in action..can i put some code on the action layer on the 1 frame that stops loading the movie (the first frame is loaded and the blur effect of the logo plays).and another code on the second frame (where the preloader is visible) that starts the donwloading again?
View 4 Replies
Sep 15, 2010
How do I know that my preloader is loading the rest of my file? I put a preloader on the first frame The rest of my web site is on the second frame If that takes too long to load up, I want the preloader to load. How do I know it is actually loading up the rest of the site? Or, is that not what a preloader actually does?
View 3 Replies
Oct 23, 2011
When i load the audio as mp3 file some time it will throw error.The error is "one or more files cannot be imported" Then i convert the audio file as wav file,but the quality of the audio is not good.
View 1 Replies
Jun 16, 2011
I'm trying to load a bunch of image files for processing (to make a sprite sheet to be exact). Thusly, I need to make sure those files are loaded in order for processing (otherwise the animations become all wonky).
The code I'm using is pretty standard:
protected function onFileSelect(e : FileListEvent) : void
{
[code]....
View 4 Replies
Oct 7, 2009
I have this script that is working fine.I have some some buttons which when clicked load a .txt file aswell as load an image into a picHolder.However i want it so when the page loads the home.txt is already loaded (at present i have to click the button)
ActionScript Code:
loadListener.onLoadInit = function(){
sizeListener.onResize();[code]..........
View 2 Replies