ActionScript 3.0 :: Insert Images Based On An Array?

Apr 14, 2009

I have a project that was dumped on my lap, and my knowledge of Actionscript is very limited.

The scenario is that the user is presented with a floormap of a building that should show a red dot denoting where each employee sits (based on X,Y coordinates on the floormap).

The employees' profiles (name, telephone, X/Y coordinates) are stored in a database.

One our our programmers managed to load the users into a Flash object array. Now, it's my turn to add some actionscript to place a red dot on the floormap for each and every user in that array based on their x/y coordinates.[code]...

View 3 Replies


Similar Posts:


Arrays :: Flex Create An Array Of Images To Insert Into A ItemRenderer?

Aug 17, 2011

I am trying to loop through a list of images and then add them to list box with a itemRenderer

public function createDataProvider():ArrayList
{
var a:Array = new Array();

[code].....

View 1 Replies

ActionScript 3.0 :: Load Images Based On Array Position

Apr 12, 2010

I've searched for ages on this and I can't see how it's done, I've got a set of images in my library and each one has been "exported for actionscript" with class names of stim1, stim2...stim12. Now, I have a bit of actionscript code that creates instances of these classes and will load the stimuli to the stage:

[CODE]...

View 1 Replies

ActionScript 3.0 :: Load Images Based On Array Position?

Nov 22, 2010

I've got a set of images in my library and each one has been "exported for actionscript" with class names of stim1, stim2...stim12.Now, I have a bit of actionscript code that creates instances of these classes and will load the stimuli to the stage:

Code:
var BitmapDataLeft:stim1 = new stim1(150,150);
var imageLeft:Bitmap = new Bitmap(BitmapDataLeft);

[code]....

View 1 Replies

Flash :: Insert Text At Cursor In A TLF-based Flex Spark RichEditableText?

Oct 8, 2010

I want to programmatically insert formatted text at the current cursor position in a Flex 4 (Spark) RichEditableText control. I could just modify the .text property But that doesn't allow me to insert formatted text. So I believe I need to interact with either .textFlow or .textFlow.interactionManager somehow? However, TLF is quite complex and I can't find a simple way to do what I want.

View 1 Replies

Insert About 4 Or 5 Changing Images Across Top Of A Website?

Jul 24, 2011

I want to insert about 4 or 5 changing images across the top of a website (Frontpage).

View 5 Replies

ActionScript 3.0 :: Possible To Insert And Retrieve Images From SQL Server?

Jul 28, 2011

Is it possible to insert and retrieve images from sql server using actionscript. Also is it possible to create a flash scrolling gallery based on images stored in a database and everytime an image is added it is displayed in the gallery.

View 1 Replies

Flex :: Insert Persistent Images To A Video?

Sep 19, 2011

Is there a way to convert frames to a video in flex? If I have a video, I want to brand it by adding adding a persistent logo over it. Is it possible?

View 2 Replies

ActionScript 3.0 :: Insert Images Into Dynamic Movieclips?

Sep 27, 2010

I dont know how to do this, i am trying but i cant, [code]...

View 9 Replies

ActionScript 3.0 :: Pick 4 Images Out Of 20 Images Array And Pull Them Out From The Array?

Jun 17, 2010

I have an array with 20 elements and a shuffle function applied. Now i need to screen only 4 elements from that, which then should be deleted from the array in order to avoid repetition (next play will pick other 4 images and so on) Anyone knows if there a class i can use?

ActionScript Code:
function processXML(e:Event):void {
var my_xml:XML=new XML(e.target.data);
my_speed=my_xml.@SPEED;

[code]....

View 1 Replies

ActionScript 3.0 :: Insert Images In A Green Part In A Video?

Jun 29, 2010

I need to insert in a video an image uploaded by the user. Just like in a movie when you have filmed with the green background and added other background in postproduction. An exact example is quilmes . com . ar but it's in spanish. I've thought generating masks frame by frame but that's obvioulsly insane

View 1 Replies

ActionScript 3.0 :: Create Dynamic Array Element Names Based On Another Array?

Jun 28, 2009

Is it possible to, if you have an array of class names like ActionScript Code: var city01names:Array = ["pic_01", "pic_02", "pic_03" ...] make a new array which would read these names, instantiate them, and push them into a new array containing the instances of all these pictures, which I could then use for a slideshow?

[Code]...

View 7 Replies

ActionScript 2.0 :: How To Insert A String In Array

Jul 23, 2008

does anyone know a good way of how to insert a number of string defined in an array?[code]msg error: "there's no property in with the name item".

View 3 Replies

ActionScript 2.0 :: CS3 Unable To Insert Object Into Array?

May 4, 2009

Code:
var userdataArray = new Array();
for (var s = 0; s<5; s++) {

[code].....

View 1 Replies

ActionScript 3.0 :: Insert Item Into Array Without Replace?

Apr 8, 2011

so if my array is

ActionScript Code: var topScores:Array = new Array(1000,900,800,700,600,500,400,300,200,100)

I know that I can replace the item at position 5 by doing ActionScript Code: topScores[4]=550

but how do I just insert another array item without replacing so that position 5 becomes position 6 and position 5 is the new number?

more to the point, I then ideally want to lose the last postion so that the same number of items exists in the array

View 3 Replies

ActionScript 2.0 :: Insert Sections Of A String Into An Array?

Oct 15, 2011

How would you insert sections of a string into an array?[code]...

View 0 Replies

ActionScript 3.0 :: Array: How To Insert In Right Index Order

Nov 11, 2009

I have 2 arrays and I want to create the third one as associative array.ex: tab1 contains IDtab1 (10,5,6,...) tab2 contains IDtab2 (12,12,12,5,5,6,10,10...)tab3 contains both IDtab1 and IDtab2 (associative array)However I want to able to insert into the right INDEX area only.

View 4 Replies

ActionScript 3.0 :: Insert Item Into Array At Certain Index?

Mar 10, 2012

i see that theres the array.push and array.unshift, but thats just the beginning and the end of the array. how would i go about inserting an item(s) into an array at the desired index?

View 4 Replies

ActionScript 2.0 :: Insert New Values To Specific Place In Array

Mar 13, 2010

how can I insert/add/push new values to specific place in Array?

For Example:
Array:
myArray["value1", "value4", "value5"]

[Code].....

View 1 Replies

ActionScript 3.0 :: Insert Movieclips Currently In A Holder In Stage Into Array?

Jan 27, 2011

How to insert movieclips currently in a holder in stage into array? Number of movieclips varies in each step.

View 1 Replies

ActionScript 2.0 :: Insert The Array Elements Into Text Box Label?

Apr 28, 2003

I think that arrays are probably one of the more powerful tools available in flash,

mc with instance name but0

inside mc is a text box var name label , code is
[AS]label = _name;[/AS]

mc on main timeline code in frame 1 is:

subjects = new Array("page1","page2","page4","page4","page5")
butHeight = but0._height+5;
butNumber = subjects.length[code]....

What this code does is produce 5 buttons appearing one after the other, like a cascade effect, so far so good, I then want to insert the array elements into text box label, but all I get is subject, subject1, subject2 and so on.So, what do I need to do so that my buttons are called page1, page2 and so on.

View 6 Replies

ActionScript 2.0 :: Insert New Values To Specific Place In Array?

Mar 13, 2010

how can I insert/add/push new values to specific place in Array?

For Example:

Array: myArray["value1", "value4", "value5"]

Data to insert: "value2", "value3"

So I need my array to look like this: myArray["value1", "value2", "value3", "value4", "value5"]

View 1 Replies

ActionScript 3.0 :: Sorting An Array Based On Another Array?

Apr 10, 2012

how to reorder an array based on the information contained in another array. What my script is currently doing is detecting all the attached monitors I have and then ordering them based on their left bounds. However I then want to reorder the screens location in the array based on whether the user has selected that display or not. If the user has selected it, by clicking a button, the button movie clip will be on frame two, if they haven't been chosen it will be on frame one. So what I am doing is then creating two separate arrays, chosen screens and not chosen screens, and then combining them into one.

Code:
if(displayButton.currentFrame==displayButton.totalFrames)
{
//sort the chosen ones into an array

[Code]....

My problem now is being able to reorder a separate array which contains all the screens, called screenArray, based off of that. screenArray currently returns [Object Screen], [Object Screen], [Object Screen], etc... and is in the order of 1,2,3,4,5,6. How do I take then and get it to be equal to the order of my displayButtonsChosen Array of 1,3,5,2,4,6?

View 6 Replies

ActionScript 2.0 :: Create Object And Insert Them In An Array, For Moving Them Across The Screen?

Sep 3, 2010

I'm trying to create object and insert them in an array, for moving them across the screen. I'm trying to use the attachMovie for this task:

attachMovie("MyObject",arrayVal[counter],1);
the problem is that the second parameter must come in "" like
attachMovie("MyObject","arrayVal[counter]",1);

So, as you can see, i'm not able to tell which number comes on the "counter" variable

arrayVal[0]
arrayVal[1]
...

and i'm not able to use it latter:

arrayVal[0]._x++;
...

How is this usually done? (i'm a as3 developer, so i'm stuck here)

View 2 Replies

Actionscript 3 :: Dynamically Insert Object / Array Info In A Dynamic Textfield?

Jan 25, 2012

I have a load of objects with arrays in them.

var tabData0: Object = new Object();
tabData0.tab1 = new Object();
tabData0.tab1.names = new Array();

[Code]....

I want to combine this output with a few more to refer to my object / array. The remoteHolder contains the value I need to know which object (tabData0, tabData1, etc) to retrieve the info from.

tabHolder['btn' + i].titleHolder.titleField.htmlText = all['tab' + tab].names[(i-1)];

But get this:

ReferenceError: Error #1069: Property tab1 not found on String and there is no default value.

View 1 Replies

ActionScript 3.0 :: Display Images But Each One Selected Randomly From Say An Array Of Different Images?

Mar 31, 2011

Is there a way using flash you can display images but each one selected randomly from say an array of different images?

View 4 Replies

ActionScript 2.0 :: Symbol Can't Insert Into Insert Text

Jul 27, 2004

i have few button to let user click and the symbol will insert into the input text. i change my input box to 'symbol' but i facing the problem that i can't insert character other than symbol...

View 6 Replies

ActionScript 2.0 :: Sever-based Countdown Without Images?

Dec 7, 2006

the following code for a server-based Countdown (see below). I would need this code changed without using images displaying the numbers.

stop();
eventDate = new Date(2007, 7, 1);
eventMillisecs = eventDate.getTime();[code]....

View 1 Replies

ActionScript 2.0 :: Switching Text/images Based On URL?

Feb 12, 2007

I currently have an SWF that is reading and displaying text, images and an ID number via an XML file. What I wanted to do was switch the text and graphic based on a URL.

For example the if the url was www.somedomain.com/about/ the SWF would then read the XML file and see that based on the domain ID the "about" text and images would load.

Here is what my Actionscript looks like

Code:
function loadXML(loaded) {
if (loaded) {
_root.headers = this.firstChild.childNodes[0].childNodes[1].firstChild.nodeValue;

[Code].....

View 4 Replies

Actionscript 3 :: Reordering An Array Collection Based On Another Array Collection Hierarchy?

Sep 16, 2011

I have an array, crewPositionsAC that contains a list of position abreviatations - EP, PR, DR, WR, and so on. These positions are read in through an XML file each time my flex application loads. Also being populated from an XML is a project. Within a project, there are positions (a student assigned to a type of position listed within crewPositionsAC). These positions are not necessarily in the correct hierarchy order dictated by crewPositionsAC. I have all the positions within an ArrayCollection (positionsAC) with the following structure:

positionsAC (arrayCollection)
[0] = Array
[0] = startOffset
[1] = numDays

[code].....

Then, the user can click a button to add another position. When the "Add Crew Member" button is pressed, the user is presented with a list of possible positions to add. Currently, I simply add another array to positionsAC. This results in the recently added crew member to placed on the bottom of the list. I need to take positionsAC and reorder it based on it's [2] item (role) based on the hierarchy defined in the crewPositionsAC. crewPositionsAC has the following structure:

crewPositionsAC:
[0] = EP
[1] = PR
[2] = DR
[3] = WR

* continue until all possible position types are listed

View 2 Replies







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