ActionScript 1/2 :: New Name/value Pair At Runtime?
May 18, 2010
I'm trying to create a new list from a query using the following code, but I get a script error left side of assignment operator must be variable or property.
mclist add Number(mccounter) = eval("mcid" add i);
I want to end up with a list that looks like "mclist1=somevalue, mclist2=somevalue, mclist3=somevalue, etc etc. ps its nested in a FOR loop.
View 8 Replies
Similar Posts:
Jul 12, 2010
I have a situation where I might be getting one or both of a pair of characters and I want to match either.
For example: str = 'cddd a dfsdf b sdfg ab uyeroi'
I want to match any "a" or "b" or "ab". If the "ab" comes together I want to catch it as a single match (not as two matches "a" "b"). If I get "ab" it will always be in that order ("a" will always precede "b")
What I have is: /[ab]|ab/
But I'm not sure if the ab is going to be a stronger match term than the [ab].
View 3 Replies
Jun 7, 2010
I am trying to get every possible pair of objects out of an array. I only want unique objects, so the pairs (obj1, obj2) and (obj2, obj1) would be the same and thus not unique. I do not want any repeats either.
View 2 Replies
Nov 26, 2011
Parse XML to get name and value of tags in Flex.I am able to get the name and value pairs of the <id>,<width> etc XML tags.But I am not able to store them as a name-value pair in Array/ArrayCollection, i.e
id - ""
width - 10
height - 10
name - Person1
I want to use them later in my application. How to do that ?
View 1 Replies
Jan 31, 2009
Does anyone know of a good SWF assembler/disassembler pair?
View 1 Replies
Nov 9, 2009
I'm having trouble updating a property value of a custom class (SubLoader) using a getter and setter. Inside the if() statement of the main fla you can see my attempt to set the percent value. Running a trace() method before the if() statement always outputs '0' for some reason. Tracing after the if() statment outputs an actual value. I can't figure out why the percent property always traces as '0' before the if statement even though I am updating it with each progress event.
[Code]...
View 3 Replies
Aug 27, 2009
I have a php page called userid.php. The code is as follows:
PHP Code:
<?PHP
$username = $_SERVER["REMOTE_USER"];
echo ("&serverResponse=$username");
?>
[Code].....
I believe there is a few things that I am doing wrong in both my php and actionscript that is keeping the textvalue from the variable $username from being passed to flash.
View 5 Replies
Apr 5, 2012
adding additional name-value pairs to my existing object in Flex;
I have an object1 of Object Type and I declare a new object2 = object1 plus some extra name-value pairs, is there a way to attach new name-value pairs to an existing object?
View 2 Replies
Apr 4, 2011
I have a class that holds some constants and will receive an object literal (associative array) with some data like this:
var ConfigObj:Config = new Config({
"Some" : 10,
"Other" : 3,
"Another" : 5
});
The class looks like this:
public dynamic class Config
{
static public const SomeProperty:String = "Some";[code].....
View 2 Replies
Aug 6, 2010
I have a property file (fileProperties.txt) which contains a name value pair like below:
FileLocation1 C:/Test/Lookup.xml
FileLocation2 C:/Test/Multiple/MultiLookup.xml
From my ActionScript code I need to read in the fileProperties.txt and extract the Key/Value pair from this file wherein my key is for eg FileLocation1 & corresponding Value is C:/Test/Lookup.xml.
View 1 Replies
Jun 4, 2010
I have set up a roll_over / roll_out listener that works for me, but the event only applies to "inBulb_mc". As I have it set now, a bunch of squares are blinking through random colors. I want the mouseover to pause this event no matter which mc i mouse over. Is there a way to indicate that this should work for any instancename "inBulb_mc"+number.
using a variable such as i=0; i++ ; won't work because i need it to happen wherever the mouse is.
Quote:
inBulb_mc.addEventListener(MouseEvent.ROLL_OVER, manageMouseOver, false, 0, true);
inBulb_mc.addEventListener(MouseEvent.ROLL_OUT, manageMouseOut, false, 0, true);
Is there a way to set it up so that the listener works for all instances of inBulb_mc, be it inBulb_mc0 inBulb_mc1 inBulb_mc2 etc
View 3 Replies
Oct 27, 2009
I'm developing a multi-player game and I know nothing about how to connect from one client to another via a server. Where do I start? Are there any whizzy open source projects which provide the communication framework into which I can drop my message data or do I have to write a load of complicated multi-threaded sockety code? Does the picture change at all if teh clients are running on phones?
View 4 Replies
Jan 19, 2007
Im trying to create the look of a pair of chopsticks working as the mouse cursor, with them moving together when you press the mouse button - just like when you're eating chinese food . However its well buggy, it only recognises the button press and release sometimes.
View 4 Replies
Jan 30, 2004
Here's what i do:
[AS]
onClipEvent (load) {
loadText = new LoadVars();[code]...........
As i could read on macromedia 's web site: Use an empty pair of <P></P> tags to insert a line break. Use two pairs to insert a line break and carriage return.But this isn't working... Why?
View 2 Replies
Feb 23, 2010
I've seen the Loom project, but are there any alternatives that are more mature (and actively developed)? I am looking for something that would allow load-time weaving of pointcuts into existing binary code at runtime with the AVM2 runtime.
Has any work been done in this area?
View 3 Replies
Nov 16, 2009
I've been into coding for about 5 years now, but I'm a recent convert to Flash development. One of the questions I have at the moment is, considering that SWF files can be run by either Adobe Flash Player OR Adobe AIR, what's the real difference between the two runtime environments? What API's and Objects exist in one environment, but not the other?
Basically what I'm more or less trying to establish is, when would I want to develop an SWF for AIR, and when would I want to develop for Flash Player, considering that Flash Player can also execute locally (providing support for creating "desktop applications")
View 1 Replies
Oct 9, 2009
Whenever I link a set of movieclips together with the bone tool which are inside a containing movieclip, and also set the type to "runtime" instead of "authortime", I get this error when published.
"Runtime symbols with skewed matrices should be wrapped in a movie clip" What does it mean? I need the type to be set to runtime so I can use scripting with it..
View 2 Replies
Jul 5, 2011
I'm working on a project which allowing end users to embed a flash in their own HTML pages while we offer different ways so user could choose one that works for their circumstances, for example, most blogs doesn't welcome users to inject JavaScript on their pages, therefore SWFObject wouldn't be possible, we offered two other ways: IFrame and the oldie but goodie Object/Embed pair. Just like old Youtube embedding code:
[Code]...
View 1 Replies
Oct 23, 2009
I am wonder what tools or options I can use in order to have an object look like it is being drawn out while you watch a flash movie.So far all I can think if is draw it piece by piece over a few keyframes, but that could look choppy and take a lot of time.
View 1 Replies
Apr 2, 2010
I don't know how to link swc file at runtime environment.
View 3 Replies
May 27, 2009
After loading the following XML file, is there a way to count the number of attributes of the "question" node, and if possible, the number of items having the word "answer" in them? (in this case 4 should be returned, ie. answer1, answer2, answer3, answer4)
Code:
<?xml version="1.0" encoding="utf-8" ?>
<quiz>
<question text="The man went ___ the morning." answer1="at" answer2="on" answer3="in" answer4="out" correct="in" />
</quiz>
View 1 Replies
Sep 7, 2009
I am writing an application that layers several PNG images with alpha on top of each other.Is there a way for me to convert this set of images to a single PNG with alpha, at runTime, and safe the image to the server?
View 1 Replies
Sep 28, 2009
I am creating an animation that will be used in 60 or so countries so messages will have to be translated in-country. From what I understand, using XML is the best way to do this. So, I created the following XML file (number of items reduced for space) using notepad:
<?xml version="1.0"?><displays name="Transfer Case Messages"> <message text="Click on the igntion switch to advance the switch one position." messageNumber = "0"/> <message text="Please use the brake pedal hold button to shift into and out of Park (P)." messageNumber = "1"/> <message text="Speed is limited in 4WD LOW." messageNumber = "2"/></displays>
Then, I used the following code to load the XML file and verify that it loads:
[Code]...
View 9 Replies
Mar 16, 2010
I was wondering if there is a way to change fps(Frames Per Second) during run time using AS3.is there? if so is it recommended? or is there a way to slow down the execution of the code(like adding a pause?)
View 5 Replies
Aug 18, 2010
I created an 800 x 600 size flash file for one application and i would like to be able to resize it easily to run in another application at 800 x 480.
My code works to scale everything but the stage:
this.onLoad = function() {
this._xscale = 100;
this._yscale = 80;
}
i tried another way of loading my movie into another LOADER, but i think that the LOADER will require as many frames that my movie uses...
i would like to try to get the top code to work if possible and not have to use a loeader.
View 1 Replies
Sep 20, 2011
I m in process of developing a website which required to save the customized video, I want to know if there is any possibe way to embedd the audio and image in the swf in runtime so that it can be rendered to a video format via some 3rd party swf to video convertion tools.
View 4 Replies
Feb 18, 2010
<mx:Repeater id="rep" dataProvider="{headingData.component}">
<mx:HBox id="panel" label="{rep.currentItem.title}"
width="100%" height="100%">
[Code]....
When i am not placing it under a repeater tag, the components are created from XML, but if i do then the components are not getting created.
<components type="array">
<component type="mx.controls::ComboBox" title="Title One" description="Lorem Ipsum
is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.
" width="230" height="220">
<link linkname="Option one"/>
<link linkname="Option Two"/>
</component>
<component type="mx.controls::RadioButton" title="Title Two" width="230" description="Lorem Ipsum
is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like AldusPageMaker including versions of Lorem Ipsum.">
<link linkname="Option one"/>
<link linkname="Option Two"/>
</component>
[code]....
View 2 Replies
Sep 16, 2010
I've made an AIR app with Flash Builder 4. Works great but I want to run the app without installing it. So..... when I install the app, I copy the files from program files and paste it on a CD and give it to somebody. He runs it on another computer without AIR runtime with as result that it doesn't work.How can I bypass this? Like some launcher/setup that installs AIR runtime for the client if it aint installed. If it is installed, run the AIR app
View 1 Replies
Oct 13, 2009
Did you EVER see MCs reported width CHANGE right under your nose without any doing anything to it?
private function Tracker_MOUSE_MOVE (ev: MouseEvent): void
{
trace('w' + _Tracker.width );
trace('w' + _Tracker.scaleX );
[Code].....
My movie clip's WIDTH CHANGES AT RUNTIME when I move the mouse over it!!! WHAT. THE. F***!!! And no, I'm not doing ANYTHING to it ANYWHERE.
I just put it on the stage and drag my mouse over it and that's the friggin output.
View 8 Replies
Jan 9, 2006
How can we create an SWF out of runtime created objects in an SWF.OrSaving Runtime created objects.The idea is to create an interface in flash that can be used to create some animations , saved , and later used.
View 1 Replies