Javascript :: Flash - Pass Array Collection From Flex To Function?

Jul 22, 2011

Is it possible to pass an ArrayCollection object from flex ExternalInterface.call() as a parameter to javascript function?

[Code]...

View 1 Replies


Similar Posts:


ActionScript 2.0 :: Pass Flash Array To Javascript Function Without Using Json?

Oct 28, 2009

How do I pass flash array to javascript function without using json?

View 3 Replies

Flex :: Pass The Array Values (not The Array Collection Values) To The Bar Charts Or Column Charts?

Sep 7, 2010

Is there anyway where I can pass the Array values (not the array collection values) to the Bar charts or column charts using flex 3.5...

here is the thing i want:::

I have array values like this,,

array1 = [23, 49, 40, 239, 20, 80, 39,49,120, 24, 31,41];

and i want to show these values on the Yaxis and months on Xaxis....

I have two Qns,

1) how can I pass this array to Bar chart or column chart.

2) how do I need to show months on Xaxis. beacuse I'm asking this regarding, I have kept a filters that even if we want to see some months or a particular months or perticalar span of months... there on Xaxis it need to change the months dynamically depending on the filters..... (for ex, on Xaxis the values should be (Jan, Apr, Jun,Oct) if i select the 3 months period filter....)

I have written a logic to collect the values of those particular months into an array, but not understading how to pass this array to Bar chart,, beacuse there I don't know what Xfield and Yfield to be given....

View 1 Replies

Flex :: Pass An Array To A Function Using The ... Rest Construction?

Feb 2, 2011

I'm making multiple similar calls with similar results to one remote object. Because these calls are so similar and very changeable, I've been keeping the name of the remote method in a config file, and when I need to make the call I use getOperation() on the remote object, and call send() on the operation object. However, the requirements have changed so that not all of the calls will have the same number of parameters. Because send uses ..., will I be able to continue using the same formation and pass an array, or will send() treat that as passing one argument of type array?

View 2 Replies

ActionScript 1/2 :: Pass Parameters Into Flash Using A Javascript Function?

Jan 29, 2010

I am attempting to get Flash - Javascript communication working using ExternalInterface.addCallback, using code found at http:[url].... I am trying to pass parameters into Flash using a javascript function, but it only works if I insert a 'window.alert' line into the code. Once I click OK, the parameter str is passed into Flash ok. The function is:
 
function sendToFlash(str) {                if (str=="tools"){            window.alert(str);            getFlashMovie("richFunctionality_corp").sendTextToFlash(str);[code]....
 
If I remove the window.alert, str isn't passed into Flash. Is this a browser speed thing? A value menu is passed out of Flash using getURL("index.php?pageID=239&menu=tools"), i.e. the page reloads and a php script  sends the appropriate str value to the sendToFlash javascript function based upon the value of menu.

View 5 Replies

Flex :: Binding Two Array Collection To Flex One Array Collection?

Oct 10, 2011

In my flex application im using two datagridfirst datgrid is for items collectionssecond is for bank details.if i click one row in first datagrid (which has the items collections)...a unique code is taken from the grid(which is primary key).then, i have to select two or more banks using itemrenderer checkboxes in second datagrid(which has the bank details)ow, have to bind the bank details(one or more banks) with that one primary key in first datagrid. to an single array collection... and have to show it in another new datagrid(thirdone)

View 1 Replies

Flash :: Take A Photo Using The Webcam Then Pass That Data To A JavaScript Function

Feb 17, 2010

I think this is fairly straight forward but my skills lie in JavaScript and Ruby rather than flash so I want to run this past a few other minds :) I have a flash file that will take pictures of the user via their web cam. I want to take that newly created image, base64 encode it then pass it to a JavaScript function. That JavaScript function will essentially take this data then embed it into a hidden form element on the page.

[Code]...

View 1 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

ActionScript 2.0 :: Pass Flash Variables Through A GetURL Javascript Function Call

Dec 2, 2009

How To Run A Shadowbox Gallery From A Flash getUrl function Call..

This Is What I Have In My Flash:

btn1.onRelease = function() {
getURL("javascript:MyGallery([page1,app1]);", "_self");
}

I want to be able to declare my arguments in flash like so

var page1 = {
title: 'Google',
player: 'iframe',

[Code].....

View 1 Replies

Html :: Flex - Export Array (array Collection) Data Into A Table Or Text File?

Oct 9, 2010

I have an array collection of strings and integers (which I have displayed in a data grid) and I am wondering if it is possible to export the array collection into an html table? or even a text file for the user to download

I found some pages that had an export to .xls files but I want to stray away from that for now.

View 1 Replies

Actionscript 3 :: Difference Between Array And Array Collection In Flex

Jul 16, 2010

While making my choice b/n Array and Arraycollection I get confused why whould I use one and why not another. I have read the theory in langref but apart from that is there some general advantages/disadvantages of one over the another that you have learned from your experience.

View 4 Replies

ActionScript 3.0 :: Make A Utility Function To Convert An Array Collection Into A String?

Sep 8, 2010

I'm just trying to make a utility function to convert an array collection into a string.

Supose my item within the array collection (named 'ac') is something like:

Code:
var ac:ArrayCollection = new ArrayCollection([{property:'foo'},{property:'bar'}]);

I can get the items property if I use a 'for' loop like:

Code:
var acToStr:String = "";
for (var item in ac)
{

[Code].....

View 4 Replies

Xml :: Add File In Array Collection In Flex?

May 6, 2011

i have created one array collection in flex.and i have my one XML file. Now i want to call that XML file into arraycollection

View 2 Replies

Javascript :: Pass A Reference To A Function As An Argument To An ExternalInterface Call?

Mar 26, 2010

I want to be able to call a JavaScript function from a Flex app using ExternalInterface and pass a reference to a different JavaScript function as an argument.

[Code]....

View 1 Replies

ActionScript 2.0 :: Call A Function In SWF And Pass It A Parameter From JavaScript In The Page?

Apr 29, 2004

I'm trying to call a function in frame 1 of my SWF and also pass it a parameter.

I need to do this from elsewhere on the embedding HTML page using JavaScript.

For example call the function flashFunction(foo);

Does this require a listener in Flash that listens for the call, excepts "foo" and then calls the flashFunction and passes "foo" to it?

Can this be called directly without a listener?

View 7 Replies

Xml - Flex Tree Control With Array Collection?

Apr 9, 2012

Im trying to populate a tree control with an external xml file brought in via arraycollection but i need to group the xml data to display in the tree Okay my external xml file is called parts.xml and it looks like this:

[Code]...

additionally what i intend is for the user to have huge tree of parts and they select a node at the partnumber level and drag an drop it on to a datagrid where all the other tags of the part gets displayed.

Ive tried and tried many things without any luck. even now im thinking maybe if i looped through the array-collection and created a new array just for the tree to get it to display the way i need it, then when the user dragged and drop a part onto the grid i would have code that would look for that part number in the original arraycollection and add it to a new array just for the datagrid... i still dont know how i would create that new array for the tree!! cause the xml data is grouped by partgroup and then grouped again by parttype before you get the individual part numbers

View 1 Replies

Flex :: Filter Only Certain Column In Array Collection?

Jul 13, 2009

Is it possible for me to filter only a certain column in a arraycollection but still displaying the other values in a datagrid?

View 1 Replies

Flex :: Limiting The Values In An Array Collection?

Jul 28, 2009

I have an array collection that I would like to limit to say 100 items. I tried setting up a filter function where the return was:return (myAC.getItemIndex(item) > 100);but the value was always -1. For whatever reason it couldn't find the item, even though the item is definitely there.I'm able to do this with a while loop:while(myAC.length > 100) myAC.removeItemAt(100);

View 4 Replies

Flex :: Get Two Xml Files In A Single Array Collection?

Oct 27, 2009

I have two xml files, defect. xml and employee.xml. But the files havea common field but with different names in each file. I want both the files to be merged in to a single array collection.

The structure of my defect.xml file is:

<defectList>
<defect>
<revId>123</revId>

[Code]....

Now, if I give datafield as "employeeId" in the datagrid with defectList as dataprovider, I get the employee id of the corresponding Employee Name.

View 1 Replies

Flex :: Showing XML Nodes From Array Collection

Jul 14, 2010

I've got an XML Doc loaded in. I've created an Horizontal List and referenced the arraycollection as the Data Provider. But what I need to do now is then pull the data out from that. I have 3 nodes / variables. They are id, title, thumbnail. But when I go to pull through the data as : {videos.title} Flex Builder gives me the Error - "Access of undefined property videos". Now I know full well it exists, as when I set the dataProvider to {videos} it pulls through the data without issue.

My code is as follows :
<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="[URL]"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx"
minWidth="800" minHeight="600"
[Code] .....

How do I go about getting the XML Node : title and of course the thumbnail too?

View 1 Replies

Flex :: Empty Keys In Array Collection?

Jul 12, 2011

Does flex allow empty, or missing, keys within an array collection? For example, would the following code be okay:

var myAC:ArrayCollection = new ArrayCollection;
myAC.addItemAt("hi", 0);
myAC.addItemAt("hola", 4);

[code]......

View 2 Replies

Flex - Array Collection Set Foreign Keys?

Jul 27, 2011

I have an array collection set as a datagrid's dataprovider. I'm pulling content from my relational database and 2 of the columns in the grid appear as foreign keys.

How do I go about replacing the foreign key id with information from the other table?

I'm guessing I need to do some sort of: for each, but I'm really not sure how.

View 1 Replies

Flex Sort Array Collection By Inner Class

Sep 19, 2011

I want to sort an array collection in a way that I am not sure is possible.Usually when you want to sort you have something like this.[code]if a is the same in multiple classes then I want to sort on ToSortInner2.aa Is this possible. I have tried to pass in inner1.aa as the sort field name but this does not work.

View 2 Replies

Flex :: Array Collection - Get GroupId Of Selected GroupName?

Nov 10, 2009

[Code]...

I'm not getting like this ...how can I get groupId (exact id which I'm getting into arraycollection thru remoteobject) of selected GroupName?

View 1 Replies

Flex :: Populating Array Collection By Parsing String

Jul 26, 2010

In ActionScript I have string as
str="subject,r1,r2:a,b:1,2:3,4";
Dynamically I have split this string and build array collection as given below
arraycoll.addItem({subject:a ,r1:1,r2:3});
This example of one set. The array collection should be built dynamic. I have tried but not successful.

View 1 Replies

Arrays :: Flex Differences Between Array Collection Syntax

Dec 15, 2011

I was wondering what's the difference between doing [code]However type 2 seems to work, but more people seem to reference type 1

View 1 Replies

Flex :: Convert Remote Object Result To Array Collection In It?

Jun 11, 2010

I'm using zend_amf and flex. My problem is i have to populate my advance datagrid using array collection. this array collection have a children.[code]...

View 1 Replies

Flex :: Arraycollection - Assign An Index Of My Choice To Array Collection?

Dec 14, 2010

I want to give an array index to array collection let say 205 when it is started is it possible to do so in flex or any alternate of this.actually I need to index the objects with a specific no, in 2D array collection

say

205 a c d g f d
268 s g h g f f
805 d g h h f f d

where integers are indexes and alphabets are object referenced by these integers

View 2 Replies

Flex :: Binding - Error In Getting Values From XML File To Array Collection?

Nov 15, 2010

I am trying display values in a datagrid in my application. I have all the values as an xml file. I had only one set of record n the XML file, to fill only one row of the data grid. While trying to store the values from the XML file to an Array Collection in the application File using the code, i.e.,

<mx:Model id="reviewList" source="assets/reviewList.xml"/>
<mx:ArrayCollection id="reviewlist" source="{reviewList.Item}"/>

I get an error, saying Error No# 1034: Type coercion failed cannot convert mx.utils::ObjectProxy to Array.But If I have two record sets in the XML file, it works fine. If there is only one set, I gHere is my xml file:

<ReviewList>
<Item>
<ReviewId>1123</ReviewId>

[code]....

View 6 Replies

ActionScript 2.0 :: Pass The Contents Of An Array To Javascript Code Which Creates A Text File On The Local Machine?

Jul 30, 2003

Is it possible to pass the contents of an array to JavaScript code which then creates a text file on the local machine?

View 10 Replies







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