I have this xml
var testXML:XML = <family>
<father name1="tom" age="5" ><father1 name1="test1"/><father2 name1="test2"/></father>
<mother name1="tomylee" age="55" ><mother1/><mother2/></mother>
<sister name1="sister1" age="35" ><sister1/><sister2/></sister>
</family>;
I want to get the child node with name1 = test1 ...
I'm trying to send some data to PHP using HTTPService POST but for some reason it's not working.
The same example works with GET but not with POST:
private function start():void{
var param:Object = {};
param.date = "2010-10-10";
userRequest.send(param);
userRequest.addEventListener(ResultEvent.RESULT, result);
user...
When I try to set the firstBaselineOffset property on many controllers (added them using textFlow.flowComposer.addController(controller)) it only has a effect on the first container in the flow. All the other containers get the "AUTO" property and not "LINE_HEIGHT".
...
I am using the Loader to load an external swf into my program. Inside the external swf, I need to be able to access the Loader instance that just loaded it.
Does the loader add the external swf to itself before any code inside the swf gets executed?
When is it safe to access the loader via the following code?
var target:DisplayOb...
I want to access a MovieClip in another scene than I'm currently in.
More specific I want to set a TextField to a certain value from a "preloader"-scene. This is for handling totally dynamic language phrases. Maybe this is the wrong way.
I'm loading a XML with language phrases that I want to replace the textfields with.
We could do th...
I've a little problem, I don't really understand if I can use addEventListener more than one time on the same object (and same callback function) if this case can I have a problem of overflow, or simple flex is so smart to not add again in the same stack same function
for examples:
var t:CServiceObj = _rModel.userGetBoardJoined();
t.a...
I'm trying to add an Image to a datagrid row, but I cant get anything to show.
I'm datagrid dataprovider is an xml file. If tried incorporating the item render inline as will as definining it in another file, and still now joy.
<mx:DataGrid id="nodeGrid" dataProvider="{nodes}"
creationComplete="datagridChange()" dataChange="data...
I'm really having a hard time accessing a data model I've defined in an Actionscript class in my Flex app. The following is my AS Class (Model.as):
package
{
import mx.rpc.http.HTTPService;
public class Model
{
private static var _instance:Model;
public static function getInstance():Model
...
Hello,
I need something accurate I can plug equations in to if you can help. How would you apply the equation bellow?
Thanks guys.
AVERAGE VELOCITY AND DISPLACEMENT
average velocity
V=X/T
displacement
x=v*T
more info
example
I have 30 seconds and a field that is 170 yards. What average velocity would I need my horse to travel at...
Hi guys,
I have a problem with the DataGrid component in Flash CS4.
I would like to display only on column out of 3 and make the only column displayed as large as the DaTaGrid object.
When I hide two column and give them a width approaching 0, the third one doesn't take the width it should.
IMAGE : http://img340.imageshack.us/img340/...
var blockGraphics : Graphics = null;
blockGraphics.clear();
blockGraphics.beginFill(255);
blockGraphics.drawRect(10,10,10,10);
I am trying to simply draw a rectangle but nothing appears on the screen. What am i missing?
...
I'm aware that ActionScript 3.0 is designed from the ground up to be a largely object-oriented language and using it means less or even no timeline code in Flash documents.
I'm quite experienced with OOP and am comfortable writing classes. However, since I mostly use Flash for animations, I hardly ever need to write ActionScript code ot...
i can't read the variable in the function, i want to use it outside the function, here is my code.
var contentLoader:URLLoader = new URLLoader();
contentLoader.load(new URLRequest("http://localhost/data.php"));
function onComplete(event:Event):void
{
var txtu:String = event.target.data;
}
contentLoader.addEventListener(...
I'm trying to create custom icons for my taskbar/desktop icons in my Flex WindowedApplication. So far, I've edited my -app.xml file to include the following:
icons/t_16.png
icons/t_32.png
icons/t_48.png
icons/t_128.png
When the application is run, however, the default flex/air icon is still showing. I have my systemChrome se...
Does TLF editor allow user to add UL or LI tag through a bullet button in the toolbar?
...
I have a Flex repeater that has a complex item template. When a checkbox is clicked, I need to toggle the visibility of a sibling button contained in the same repeater template. Since I can't add binding expressions to event handlers, I can't pass in the repeater item's index.
How can I access sibling components inside a repeater item?...
Thinking outside of the box here...
What possible basic approaches could be taken in an effort to create a Flex component that could run Java?
I know I can easily use flex to browse to or launch a Java app, but there are things I can only do if I can run the Java from WITHIN an MXML Component.
I the strictest sense, I know it's not im...
i can't seem to tween any bitmap filters. here's my code:
var dropShadow:DropShadowFilter = new DropShadowFilter();
mySprite.filters = [dropShadow];
var dropShadowTween:Tween = new Tween(dropShadow, "distance", Regular.easeOut, 4.0, 20, 2, true);
what is my mistake? i've also tried the following but it doesn't work:
var dropShadowT...
Hey,
I have an image slideshow program working right now and it takes in a folder of a hard coded in number of images. I would like to change this so that it can take in a folder and will display all of them no matter the number. Is there a way to do this in flash? I'm thinking something like the foreach loop in perl or other scripting...
I have an SWC with a class called Content. I want to set it as the "Document Class" in Flash. However, after setting up the SWC in the .fla, I am receiving an error message saying that "A definition for the document class could not be found in the classpath,..." Setting up the direct class folder works fine, but I need to distribute this...