I�m calling a ColdFusion page that generates output in the form of a text file to be used in a scrolling dynamic text field.So, Instead of calling a text file like so:
//calls a static text file loadText.load("StaticTextFile.txt"); Im calling a ColdFusion page like so:
A snippet of my code is [code]The first element in the mainOptions Array is linked (metaphorically) to tab1.The second element in the mainOptions Array is linked (metaphorically) to tab 2 and so on.I want to create 12 variables named AudioMP3, AudioHEAAC, NewsBBC, NewsTwitter, VideoVideo and so on down to PicsPics2. i.e concatenate each entry in say tab1 through 5 to the each element from mainOptionsArray and make a new variable using that name then assigning a number to this variable.[code]
I build an application that need httpservice feature. This application will be deployed at some computer. So, I don't have an idea to set variable at url property.
I have spark States declared in mxml. I also have a class with string constants. I want my states names to match the string constants. Is it possible to do that directly in mxml and how? [code]...
It's too complicate to explain but I'll give you an example
I have an AS3 ResultEvent Object and this object has several propeties which can be accessed by this like:event.result.name or event.result.age and, I have this String variable: eventProperty:String that contains "name" or "age" How do I access to event.result. with the variable?
I have the following function which returns a string: cues.getCurrentCue(); returns: "Definition_1" Definition_1 is the class name of a movie clip. I would now like to do something like this:
var currentDev:String = "new " + cues.getCurrentCue() + "()"; def_mc = currentDev; addChild(def_mc);
But I get the following error: 1180: Call to a possibly undefined method currentDev.
[pseudo code] xml.node["subnode"].@string.children(); [real code where _xml is XML] _xmlList:XMLList = _xml.cases["case"][@id == event.target._id].files.children();
And yes, case is a reserved word - therefore the brackets and quotes.
event.target._id is a string, but I can't seem to figure out how to concatenate the @ (at sign) with a string to get the attribute (or the node that corresponds to the attribute).
I have an external interface call which I need to pass several values to. Each value has an indentifier string and the value itself.
Code: ExternalInterface.call("submitIUR", answers +"promo", promo+ "url", nextUrl); The problem is that when I pass this through to the javascript function, flash concatenates the identifier strings. So for example if promo is 12345 when passed through the "url" indentifier gets tacked on the end so I get 12345url.
Is there an easy way to separate out the variables being passed through to stop the strings being tacked on to the variables?
I'm writing a menu generating script. It's suppose to display arrays and any inner arrays. Ex:["test item",["item 1",["item 2","item 3"]],"item 4"];
These movie clips should be displayed if the actionscript is correct.: test item item 1 <---this of course, has a following subarray item 4 and the submenu should display: item 2 item 3
I run the script and it see's the inner array items ["item 2", "item 3"] and shows them in the next submenu -FINE---but what I get in the main menu to my surprise is 'run-on text' in the Dynamic field of that movieclip. ex: test item item 1; item 2; item 3 <---? seems to concatonate inner items in text field item 4
I only want to see text "item 1" ....not the items associated with it as well. (they are already displayed in submenu)
Code: for (var i = 0; i < menuArray.length; i++) { var menuItemName = "mc_menu_item_" + i; if (typeof(menuArray[i]) == "object") { this["mc_menu_box"].attachMovie("h_menu_middle_sub", menuItemName, tempLevel);
has anyone had any problems with addition? I'm trying to get two numbers to add and instead it is concatenating them together as a string, however when I multiply, divide, or even subtract them it works fine.
Setting the text property of a flex DateField makes the selectedDate property of that DateField go to null.I need to set the text property so that I can use a particular format (DD-MMM-YYYY).
Lately i discovered MATE (for Flex development) and was wondering: how do i bind a property in a view (actually a navigatorcontent component) to another property in a class so that they stay in synchronization (meaning that whenever the property in the class changes the property in the view also changes).
So if we have a view called Target.mxml and a property targertProp how do we bind it to the class called SourceClass with property SourceProp?
Can we put [Bindable] on functions/methods? I know that bindable is used to change the value of the source property to destination property. But not sure if we can use that for methods. why we cannot put/ if we can then what will be the outcome?
I'm wondering if there is a way I can bind a flex property to flash property?, the flash property is inside a swc file created in flash with the Flex Component Kit for Flash Professional, I can manipulate the flash component as a regular flex component, but I want to bind their properties, is there a way?
basically i want to populate an array with some data, photoArray[count]= varLoader.data.nombre; the problem is that "nombre" is suposed to be a variable, this is inside a loop and i have "nombre = "pic" + count;" before it, but it wont work, how am i suposed to call it?
I'm wanting to set an Object property using a variable value. I just can't get it to work as it assumes the variable name is the name of the property: I've simplified the issue rather than posting my whole code.[code]It always applies 'attrName' as the property name rather than the value of 'attrName'.Tried loads of things but just can't get it to work.
im doing a loop to attribute the values to _x property, and use it to make random movimets with movieclips.i ve got 16 movieclips in my stage, named b1, b2, b3....b16 and the code is
Code: count = 0 chama = setInterval(function () { count++[code]....
so... after 3 time that setinterval execute this function, i�d like to call a function to get this movieclips, in their current positions and take them in especifics positions on stage.so I created an Array and I�m trying to use this code to define variables with values from the Array, and make a moviment to the especifics positions
Code: xC = [63.9, 16.95, 45.85, 65.55, 18.75, 26.2, 55.85, 55.25, 28.85, 21.95, 36.6, 35.75, 14.7, 45.7, 14.45, 60.75] function cPos () { for (a=1; a<=16; a++) {[code]...but it�s not working...why??what can I do to Take the variables inside the array and use them to respectives movieclips b1, b2....b16?
How do you write this code so it works and doesn't run the funtion? I want to associate the function with the button so I can load it dynamically with event.currentTarget. Played with storing the funtion in a another variable but wasn't sure how to do that either