Actually we have to do this by registering your application with the eventlisteners for NATIVE_DRAG_ENTER and NATIVE_DRAG_DROP. The following code shows how to do this. Just copy and paste the code to your MXML file and see the result. Drag and drop an image file from outside to your AIR application. import mx.controls.Alert; import mx.controls.Image;… Read More »
Hello everyone.. There has been a problem with corona that when you place one view over the other and when you touch the object in front of the other, touch will be migrated to the object below it. To prevent this there is a mechanism in corona. Here is how we solve this in corona.… Read More »
Here is the sample code to get the number of taps on a view in Corona SDK. here button is a displayObject like an image or a UI Button and event.numTaps gives the number of Taps on that view.
This tutorial shows how to create a tableview in Titanium and add data to it. How to handle a click function in the tableView and get the data from the row. Please leave your valuable comments.
The following example shows how to deal with a simple text file in Adobe AIR/FLEX. This example illustratesd how to write a string to a text file and save it in the desktop. However you can use the “application directory” but make sure that you have necessary write permission to access the directory. Please leave… Read More »
Change the background of your window with your selected image. Copy and paste the following code to your AIR file and view the result. Note: Please make sure that you have an image in your application source folder. Here the image name is “image.jpg” else you will get URL not found error.
AIR treats the XML files as just as normal file and so you can proceed using the FileStream classs. Please take a look at the sample code. Just copy and paste the following code to your main.MXML file and you are done. Please post your comments on this post
The following code helps you to do this. Save the following code as am .mxml file The html file start.html