My first loop works it load the node the second seems to erase the array for some reason when I trace it.
trace comes back this: headline = Free Survey Builder headline = undefined ??? why undefined?
Code: var headline:Array = new Array(); var surveylen:Number = new Number() xmlData = new XML(); xmlData.ignoreWhite = true; xmlData.onLoad = loadXML; function loadXML(loaded) {
I am trying to load MC's from an array but I need to make it so that after ever 2 MC's the Yposition changes down say 300px so that I have a new line. I have tried using if(see at the bottom of this script.) bellow but it doen't work.
var selectedMensShirts:Array = loadShirts(); var itemX:Number = 500; // initial item x positionvar itemY:Number = 100; [code]....
I am working on a prototype of a system that will take stills from an attached video camera, store them in an array, then pull them back from the array and animate them. Thus far I've been able to create new bitmaps, put them in an array, and draw them to the stage. I have the video source coming to the stage and I have been able to take stills.The combined system, however, goes through the array, draws the bitmaps to the stage but they are not the sequence of stills. Instead, it is a set of bitmap objects that change every time I click the mouse to take a new still. My guess is that whatever I am doing wrong has caused the bitmapdata to remain dynamically linked to the video source or to be changed every time a new still has been taken. I feel like I am close but missing something major in how AS3 works.
// libraries to display bitmap of videoimport flash.display.BitmapData; import flash.display.Bitmap;import flash.display.DisplayObject; // get and show the input from the cameravar cam:Camera = Camera.getCamera(); var
I try to load multiple rss feed ( xml) and put them into an array ...
var adress : Array = ["http://www.lamoooche.com/getRSS.php?idnews=1500","http://www.lamoooche.com/getRSS.php?idnews=17594", "http://agro-business-conseil.blogspot.com/feeds/posts/default"] var feedTxt : Array = new Array //array of feed var arrayDUrlLoader:Array = new Array ; // array of url loader
I would know if with AS2 it's possible to load programmatically a bulk of images and save them in an array; then how to attach programmatically each image to an empty movieclip.
I know how to do this in AS3 however it seems impossible in AS2.
I can load external JPEGs, transfer their data as Bitmaps into an Array, and place those Bitmaps to the stage immediately using the Array index. ("bitmapList[2]", etc)
However, when I try to reference the Bitmap Array by index anywhere else in the script, it's blank. No error, just blank.
I have save my choice of several swf file in an array....i want the first movie show when i click a play button and when i click next button , my next choice of swf file will be load.
My first question is regarding a problem i am having. I have a movie clip on my stage with an invisible button inside of it on layer 1. on run time i tell the mc to load a jpg and it does just fine but it overlaps the invisible button. is thee any way around this?
second question. i have an array hat stores some names nothing special. and i want to randomly pop a name out of the array and place it into a new array.
i tried myArray.pop(Math.floor(Math.random()*myArray.lengt h));
when i ut that on a button it pops out the last item in the array
how I can ask flash to scan an image folder and load the folders' images into an array + create a new layer for each image. I would prefer this method over having to create a new layer manually for each image.
I now want each button to load in a jpg. I've added the code to load in the jpg and this works but I can't figure out how to write the code so when button 1 is pressed image 1 is loaded , and button 2 image 2 etc.Can any one show me how I need to change my btnOver function so this will work. I still want to use this array structure by the way.[code]
I am trying to load external swf's on mouse click on a button. There are 35 buttons and 35 external swf. In as3 it is much more complex than it used to be in as2. Have read many threads but none identify it directly.
I have a flash file with about 32 empy MovieClips on the stage.Basically what I need to do is take an array of images and load them into these empty MovieClips. Hope this makes sense so far.This array will be dynamic and will come from a PHP file.The problem is I'm not sure how to do this? I don't know to take an array in flash and allocate the images to individual MovieClips.
If I have an external text file with a variable, (let's say it's called names) with a list of names,... how do I load that variable into an array in flash?. Does it have something to do with Split() to separate the different values on the list separated with commas?
let's say the external file is: names=john, peter, veronica, alfred. How do we load that in flash so we have something like:
I'm new to AS3-What I need to do is load each jpeg in an array into a new Loader, then find the image's dimensions before attempting to load the next one. A Loader makes its info available through the LoaderInfo class. Loader has a property, contentLoaderInfo, that itself is an instance of LoaderInfo. When information about the Loader's requested file become available, it broadcasts Event.INIT. The AS3 language reference gives the following example for handling an Event.INIT event broadcast by a flash.display.Loader's contentLoaderInfo property, which itself is an instance of flash.display.LoaderInfo:[code]The AS3 reference says that neither Loader nor LoaderInfo accept any parameters in their constructor.
I have this to load a random image from my array. But how can I keep track so that a new random pic wont be the same as one allready shown, until all pics in the array has been shown once?
In my photo gallery, I have an array of images that load sequentially using 'next' / 'prev' buttons. The code fades out the current swf, recognises when the new external swf has fully loaded, then fades in:
I have 15 empty placeholder on my stage, named "empty01" - "empty15". I have 15 mcs in my library, with linkage identifiers "01" - "15".
[CODE]...
I would prefer for 'empty01' to load a random mc. Can anyone advise how I could achieve this? I have tried to create an array containing the 15 library mcs (not sure if this is correct):
I have a simple script that load from a xml file , 3 different languages on a little site. On local testing it working, on remote no, I try to test with remote debug and i have this error on array i think
TypeError: Error #1010: A term is undefined and has no properties. at index_fla::MainTimeline/completeHandler()[index_fla.MainTimeline::fra me2:330] at flash.events::EventDispatcher/dispatchEventFunction() at flash.events::EventDispatcher/dispatchEvent() at flash.net::URLLoader/onComplete()
i've been having issues with my embedded image so i found this really cool script that does what I need. problem is it only loads one script and i don't know a lot about Classes and i'm not sure how to convert it so it loads multiple scripts?
I am trying to load 10 images through an array using a loop. I have the images loaded as movieclips and this set up but nothing is working. Any suggestions?
var picArray:Array = new Array[img1,img2,img3,img4,img5,img6,img7,img8,img9,img10]; for (var i:Number=0; i<10; i++) { }