In your AIR Application you want to export data from the connected local SQLite database in SQL syntax to use it in other SQL databases without using a third format like CSV or XML.
Solution
Use the FileReference to create a .sql file which you can use for batch import into another SQL database.
The Tree control has 'toolTip' property. But it is applied for Tree control itself, not for each nodes shown in the control.
In addition, the control does not have any methods to show toolTip hint as you want.
Thus, the property is difficult to show toolTip message for each nodes dynamically.
Solution
Here is the workaround for the above problem:
When the 'Tree.itemRollOver' event is fired, you can refer the node which is rolled over by user.Thus, you can get text of the node to show it as toolTip.
Hi people.
I'm trying to create an object at runtime, just passing the classname as a parameter
I already tried that with a standard Flex Component and it worked very well.
BUT, when I try to do this with one of my components, an error occurs: ReferenceError: Error #1065: Variable [myComponentClassName] is not defined.
Thanks.
Solution
Did you make sure your class is getting compiled ? Because if it's not referenced anywhere else in the application it is not compiled, and thus it is not possible to create any instance of it.
I'd like to write an AIR application to manage my local media collection from a pc connected to my TV. I already have an IR remote control that operates other applications like GBPVR and Hulu desktop. How do I capture/access the IR signal from the remote control and use it to navigate my AIR/Flex application?
An SWC library complied with Flex 3 SDK, being added to Flex 4 project and conflicts with Flex 4 namespaces. Similarly, legacy Flex 3 SWF file has to be used within Flex 4 application. Latter can be found in large/legacy applications.
Solution
Implement legacy code within separate Flex application, compile with Flex 3 SDK and embed into Flex 4 application.
You want to print a PDF file directly from AIR without displaying it to the user and using your own custom button (not the default PDF control bar).
Solution
Open the PDF document you want to print in Adobe Acrobat Pro. Add the JavaScript code to your document and save it. Create an HTML page that contains a JavaScript function and embed the PDF document. In your Flash (or Flex) file add a button that prompts the user to print the document. Add the ActionScript 3.0 code that communicates with the HTML page. Publish your AIR file (making sure you include the HTML and PDF files). Test your AIR app.
I need to access data in the attributes and elements in a very large and complex XML file. E4X works well for more basic XML structures, but the namespaces make it much more challenging to get at access I need without parsing the text of the file. There has to be an easier way.
Solution
Not as easy as working with simpler XML, but E4X makes it straight-forward by making use of the top-level QName class to handle the elements and attributes based on their qualified names, taking namespaces into account rather than removing them.
This site is produced in partnership with
O'Reilly.