I'm building a Flex/Flash Builder 4 application that loads data using E4X/XML, like this:
I originally build an application that was a single MXML file which loaded this XML file and built a form from the data.
I've now build a main menu screen with a button to load the form screen as a seperate module. How do I g...
I've created an XML file using the .Save() method of an ADODB recordset in the following manner.
dim res
dim objXML: Set objXML = Server.CreateObject("MSXML2.DOMDocument")
'This returns an ADODB recordset
set res = ExecuteReader("SELECT * from some_table)
With res
Call .Save(objXML, 1)
Call .Close()
End Wi...
I was wondering what happens to the code contained in an <mx:Script> tag. If I define a function tehre, it just becomes a member function of the generated class. But I noticed that it seems OK for the compiler if I just write some (static) method calls there (specifically, I call Font.registerFont()). It works fine, but I feel kind of gu...
I have several mxml components in an app, all of which need the same variable called genericX. I've included that variable in the main mxml and made it public
[Bindable] public var genericX:Number = 102;
but I still can't access it from other mxml components. If I try to do this for example, it doesn't recognize the variable.
<s:But...
I have 4 buttons, all of them have the same width.
<s:Button id="btn1" width="{btnWidth}" />
<s:Button id="btn2" width="{btnWidth}" />
<s:Button id="btn3" width="{btnWidth}" />
<s:Button id="btn4" width="{btnWidth}" />
Is it possible to set their width with Style, something like this:
s|Button{
width: btnWidth;
}
I tried it, bu...
How to open multiple pop up browser windows from ActionScript?
...
Is it possible to set a percentage value for the width property of an UIComponent defined in MXML using data binding?
What I try to achieve is something like this (which doesn't work):
<s:Button width="{buttonWidth}%"/>
I know that using percentage for width or height properties in MXML is kind of a hack in the Flex SDK, since they'...
Hi,
I have a scenario where I want to dynamically add words of text to a container so that it forms a paragraph of text which is wrapped neatly according to the size of the parent container. Each text element will have differing formatting, and will have differing user interaction options. For example, imagine the text " has just spok...
what I meen is to get all objects and their properties, is it possible? How to do such thing?
...
Does anybody know the reason why CSS type selectors cannot be used inside MXML components, and/or a trick to make it work?
I see absolutely no reason for a such simple functionnality not to be supported, and I'd really like to understand.
After all I read about CSS in Flex 4 being so much better than in Flex 3, I find myself quite disa...
I usually set the layout like this
<s:Group>
<s:layout>
<s:VerticalLayout gap="10"/>
</s:layout>
</s:Group>
but not sure how to specify the gap if I want to use new VerticalLayout
...
How to sart Adobe Air App with arguments, is it possible, at least with native apps?
...
I have a list ItemRenderer that has 2 states. When it initializes, I set it to 1 state and listen for an event that switches it to state 2.
protected function onCreationComplete(event:FlexEvent):void{
currentState = "state1";
addEventListener(CustomEvent.Event1, switcherfunc);
}
protected function switcherfunc(event:FlexEvent):vo...
What is the fastest way for a Adobe AIR program program to index all images on a users' computer?
Using Open Source ActionScript-3, MXML Libs and classes.
Fastest - Same pc configuration, different time (seconds)
To index - get a list of absolute links (like c://bla-bla/file ) and save them into file (index.txt)
All images (like JPEG...
How to get folder size in Adobe Air?
...
So we want to seacrch for file like exampl*.ex*mple. We want to search in all users files and folders.
I know it will take long, but steel using ONLY AS3\MXML, no native commands, no external programms - only AS3\MXML libs and classes, we can skeep all folders with sise <= 200kb
So How to search for a file on users file system? (in A...
I've got a list with a custom itemRenderer that's just a rectangle of specific size.
The list
<s:List id="thelist" width="100%"
dataProvider="{thelistdata}"
itemRenderer="ListItem"
borderVisible="true" />
Note the list's border is visible to help with debugging
The itemRenderer
<s:Rect id="box" width="50...
Hello guys.
I am trying to output xml by using domxml_new_doc.
However, I just got the call to undefined function domxml_new_doc() error.
I tried google it but still not luck. Do I have to install any extension or
library? Thanks for the help.
$doc=domxml_new_doc("1.0"); //error on this line....
$node=$doc->create_element("marker...
How would I use the following AS3 class within MXML?
AS3 Class:
package mtm
{
import flash.display.MovieClip;
import flash.display.Shape;
public class TestClass extends MovieClip
{
public function TestClass()
{
var s:Shape = new Shape();
s.graphics.beginFill(0x000000, 1);
s.graphics...
In Actionscript...
If I Have an XML variable that equals this:
var X:XML=XML("<mx:WindowedApplication xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical" xmlns:ns1="Tools.*" minWidth="684" minHeight="484" creationComplete="Init();" xmlns:ns3="Components.*" initialize="I()"/>");
And I try to list the attributes via:
var AList...