How to embed icon MAc dmg file in air application while in windows its working fine

how to embed icon in mac os dmg file ..while in windows i ha set in air application .xml file in <icon> tag and its working..so to embed icon for MAc OS

solution ::
add this code in windows app of AIR
<?xml version="1.0" encoding="utf-8"?>
<mx:WindowedApplication 
xmlns:mx="http://www.adobe.com/2006/mxml" width="100%" height="100%" creationComplete="init()" layout="absolute" xmlns:local="*">
<mx:VBox>
<mx:Label text="Jay Mahadev" fontSize="32" />
</mx:VBox>
<mx:Script>
<![CDATA[
private function init():void
if(NativeApplication.supportsDockIcon){ 
var dockIcon:DockIcon = NativeApplication.nativeApplication.icon as DockIcon;NativeApplication.nativeApplication.addEventListener(InvokeEvent.INVOKE,undock);
//dockIcon.menu = createIconMenu();
else if (NativeApplication.supportsSystemTrayIcon){ 
var sysTrayIcon:SystemTrayIcon = NativeApplication.nativeApplication.icon as SystemTrayIcon;sysTrayIcon.tooltip =
"Stopwatch";sysTrayIcon.addEventListener(MouseEvent.CLICK,undock);
//sysTrayIcon.menu = createIconMenu();
public function undock(event:Event = null):void{stage.nativeWindow.visible =
true;NativeApplication.nativeApplication.icon.bitmaps = [];
]]>
</mx:Script>
</mx:WindowedApplication>
and also in windowapplication.xml
<?xml version="1.0" encoding="UTF-8"?>
<application xmlns="http://ns.adobe.com/air/application/1.0">
 <icon>
<image128x128>/icons/128x128.png</image128x128>
<image48x48>/icons/48x48.png</image48x48>
<image32x32>/icons/32x32.png</image32x32>
<image16x16>/icons/16x16.png</image16x16>
</icon>
</application>
Reference Link :::
http://www.adobe.com/devnet/air/flash/quickstart/articles/stopwatch_dock_system_tray.html

Similar Messages

  • How to embed icon in dmg of MAC OS in air application?

    hi
    How to embed icon in dmg of MAC OS in air application? while in windows application it working file if  i set <icon> tag in windows application's .xml file.....
    Please reply

    solution ::
    add this code in windows app of AIR
    <?xml version="1.0" encoding="utf-8"?>
    <mx:WindowedApplication 
    xmlns:mx="http://www.adobe.com/2006/mxml" width="100%" height="100%" creationComplete="init()" layout="absolute" xmlns:local="*">
    <mx:VBox>
    <mx:Label text="Jay Mahadev" fontSize="32" />
    </mx:VBox>
    <mx:Script>
    <![CDATA[
    private function init():void
    if(NativeApplication.supportsDockIcon){ 
    var dockIcon:DockIcon = NativeApplication.nativeApplication.icon as DockIcon;NativeApplication.nativeApplication.addEventListener(InvokeEvent.INVOKE,undock);
    //dockIcon.menu = createIconMenu();
    else if (NativeApplication.supportsSystemTrayIcon){ 
    var sysTrayIcon:SystemTrayIcon = NativeApplication.nativeApplication.icon as SystemTrayIcon;sysTrayIcon.tooltip =
    "Stopwatch";sysTrayIcon.addEventListener(MouseEvent.CLICK,undock);
    //sysTrayIcon.menu = createIconMenu();
    public function undock(event:Event = null):void{stage.nativeWindow.visible =
    true;NativeApplication.nativeApplication.icon.bitmaps = [];
    ]]>
    </mx:Script>
    </mx:WindowedApplication>
    and also in windowapplication.xml
    <?xml version="1.0" encoding="UTF-8"?>
    <application xmlns="http://ns.adobe.com/air/application/1.0">
     <icon>
    <image128x128>/icons/128x128.png</image128x128>
    <image48x48>/icons/48x48.png</image48x48>
    <image32x32>/icons/32x32.png</image32x32>
    <image16x16>/icons/16x16.png</image16x16>
    </icon>
    </application>
    Reference Link :::
    http://www.adobe.com/devnet/air/flash/quickstart/articles/stopwatch_dock_system_tray.html

  • How to install .pkg or .dmg file on Mac using AIR NativeProcess like .exe on windows?

    Hi,
    I want to install a application on Mac which is in .pkg installer using AIR NativeProcess. I am able to install the .pkg file by double clicking on OS but not able to run that using AIR NativeProcess.
    I am able to install the .exe on windows using AIR NativeProcess.
    When I tried the same process for .pkg on Mac got the following error:
    ArgumentError: Error #3214: NativeProcessStartupInfo.executable does not specify a valid executable file.
    I am using:
    AIR 3.4 SDK
    Flash Builder 4.7 (beta)
    Tried packaging on both Windows and Mac OSX 10.8.
    Is there any way to install .pkg/.dmg file using AIR NativeProcess?
    Thanks in advance.

    A year later, but others may have this problem.
    You don't want to use NativeProcess to do this.
    You need to 1) mount the DMG and then 2) launch the PKG
    The PKG is very simple to launch :
      // where 'installer' is a flash.filesystem.File that has resolved to your PKG file
      installer.openWithDefaultApplication();

  • How to embed and launch ipa file from another ipa package created using Air for iOS

    Hi Guys,
    Anybody out there knowing how to embed and launch ipa file from another ipa package created using Air for iOS ?
    I am having 1 ipa file created using Xcode, Now i need to include that file in my ipa Package which is created using Flash CS 5.5 and Air for iOS. Also i need to know how to open my 1st ipa file from AS3 ?
    Thanks,

    Hi Sir,
    Thanks for your reply.
    But in that case user need to download 2 applications right. I need user to download my parent application created using Flash and that package contain one more ipa created using Xcode, so from my parent app only user should able to open my 2nd app. Is there any way to do that?
    Ps:  I am not talking about in-app but 2 individual apps inside one package.

  • My Mac suddenly started getting a pop up message saying "There was a problem conecting to the server. URLs with the type "file" are not supported." My internet is working fine,no problem connecting. I just keep getting this message which I click off .

    My Mac suddenly started getting a pop up message saying "There was a problem conecting to the server. URLs with the type "file" are not supported." My internet is working fine,no problem connecting. I just keep getting this message which I click off and continue working.

    Open the Time Machine pane in System Preferences. If it shows that Time Machine is ON, click the padlock icon in the lower left corner, if necessary, to unlock it. Scroll to the bottom of the list of backup drives and click Add or Remove Backup Disk. Remove all the disks, then add them back. Quit System Preferences. Test.

  • How do I protect my FLV files? or How to encrypt and decrypt FLV files using AIR?

    Hi,
         I am working on an AIR application, which is developed on eLearning concept. The application mainly deals with flv files. The application contains a video player component, which will stream flv files from an Apache Server and played in my application. Here my concern is I would like to protect my flv files some how against users who may stream them from Apache Server and use them without my application.
         I thought of with an idea to do it. But I don't know whether it will work or not. So I am requesting for your suggestions and better ways to do this with a sample.
    Here is my thought:
    I would like to place the encrypted FLV files at Apache Server side [ Need to know how to encrpt the FLV files using Flex]
    As my AIR application send a request for a FLV file, the Apache server should send the decryption key and a stream of FLV file.
    AIR application should take the decryption key, stream of flv file and it should capable enough to decrypt the FLV file and play it in my application. [ But I don't know how to encrypt/decrypt FLV files through flex]
    I can do encryption of FLV files using Mac Address of Apache Server system and using Java. But I don't know how can I decrypt the same FLV file ( Encrypted using Mac Address and java ) at AIR application side.
    So I would be greatfull If any body help me in encrypting and decrypting of FLV file with a sample using Flex 3.0.
    Thanks
    Sudheer Puppala

    russellfromblackburn south wrote:
    Is it because the portable drive is NTFS format and the Mac wont recognise this? If so what do I do?
    Yes, this is exactly what is causing the problem. Macs cannot write to NTFS formatted drives, only read. You must move the documents to the internal HDD/SSD of the Mac to be able to edit them.
    Or, since you say you don't want to move the documents to the internal storage, you'll need to format the external HDD as FAT32.

  • How is it best to keep files synced between iMac and Macbook?  I work from home on my iMac and then out in meetings on my Macbook and need to have access to the same files on both.

    How is it best to keep files synced between iMac and Macbook?  I work from home on my iMac and then out in meetings on my Macbook and need to have access to the same files on both.  The folders are using Microsoft programmes as this is compatiable with 90% of my colleagues, therefore I can't use the Icloud service.

    No, the camera connection kit only supports the copying of photos and videos to the Photos app, it doesn't support copying content off the iPad. For your second camera instead of the SD reader part of the kit, does the iPad to camera cable not work with it for direct transfer to the iPad ?
    For Lightroom and Nikon software again no - you can only install apps that are available in the iTunes app store on your computer and the App Store app on the iPad, 'normal' PC and Mac (OS X) software are not compatible with the iPad (iOS). There are some apps that perform fairly basic editing functions that are available in the store, but nothing as sophisticated as, for example, Lightroom.

  • How can I quickly view pdf files like I can do with Windows Picture and Fax viewer for jpg files?

    How can I quickly view pdf files like I can do with Windows Picture and Fax viewer for jpg files? I need to look at several thousand PDF files. It takes too long to open each one individually. The only thing I could think of is combining them into large groups and then using the Navigation index. But I like the way windows Picture and Fax Viewer does it because you can keep the files separate. Combining PDFs causes loss of individual file names. That would be a problem since I do need to have the individual file names.

    Windows Picture and Fax Viewer is a DLL and is started via a rundll32.exe call and can't be set as an application to handle images in Firefox 3 and later versions.
    Try to set Windows Picture and Fax Viewer as the default viewer in Windows, then it should be listed automatically in the Mozilla Firefox Browse dialog.
    *http://www.winhelponline.com/articles/115/1/Windows-Picture-and-Fax-Viewer-as-the-default-viewer-in-Mozilla-Firefox.html
    '''If this reply solves your problem, please click "Solved It" next to this reply when <u>signed-in</u> to the forum.'''

  • How can I create a exe file with a tab control on it that work´s ?

    I have a VI with many controls and indicators,these are spread on a tab control.This tab control works with out any problems but if i create a exe file then the tab control is fixed. How can I create a exe file so that the tab control on it work´s ?

    I have made a new Posting with the same question but this time I added a screenshot of the VI.
    Attachments:
    project7.1.jpg ‏129 KB

  • How to append paragraph in text file of TextEdit application using applescript

    how to append paragraph in text file of TextEdit application using applescript and how do i save as different location.

    christian erlinger wrote:
    When you want to print out an escape character in java (java is doing the work in client_text_io ), you'd need to escape it.
    client_text_io.put_line(out_file, replace('your_path', '\','\\'));cheersI tried replacing \ with double slash but it just printed double slash in the bat file. again the path was broken into two lines.
    file output
    chdir C:\\DOCUME~1\
    195969\\LOCALS~1\\Temp\
    Edited by: rivas on Mar 21, 2011 6:03 AM

  • How do I stop a sound file that is playing while Firefox is open that sounds like a PacMan Game?

    How do I stop a sound file that is playing while Firefox is open that sounds like a PacMan Game? It started when I downloaded the current Adobe DLM, but continues when disable. It begins playing each time I open FireFox, but gets interferred with when opening a web page.
    == This happened ==
    Every time Firefox opened
    == 1520 hours, Central Time

    See [[Firefox makes random sounds]]

  • I HAVE A MAC NETWORK WITH A HP LASER-JET AND EVERYTHING IS WORKING FINE.  I ALSO HAVE A WINDOWS BASED MACHINE THAT I WOULD LIKE TO PRINT TO AS WELL.  HOW CAN I ACCOMPLISH THIS?

    I HAVE A MAC NETWORK WITH A HP1200 LASER-JET AND EVERYTHING IS WORKING FINE.  THE PRINTER IS CONNECTED DIRECTLY WITH ONE OF MY MAC-MINI"S.  I NOW HAVE A WINDOWS BASED PC AND WOULD LIKE TO PRINT TO IT AS WELL.. HOW CAN I DO THIS?

    Make sure that you Printer Sharing enabled on the Mac Mini.   System Preferences > Sharing > Printer Sharing
    Do the same on the PC
    On the PC, try downloading and installing Bonjour Print Services for Windows v2.0.2
    Run the application on the PC to see if it will discover your printer and install the printer.

  • Hi,  I trimmed an audio regin in the audio track edior with "Snap Edits to Zero Crossings" on. But I zoom in.the waveform was not ended at Zero point. Why?  In the audio file editork, "Snap Edits to Zero Crossings" option works fine.

    Hi,
    I trimmed an audio regin in the audio track edior with "Snap Edits to Zero Crossings" on.
    But I zoom in、the waveform was not ended at Zero point.
    Why?
    In the audio file editork, "Snap Edits to Zero Crossings" option works fine.

    correction needs to be made to step #14, I typed:
    14) Point to the start or end one of the clips, when you see the icon showing arrows going either way, right click and drag your clips to roughly match up with the timeline selection, then zoom in further and adjust the clip start and end points to match up exactly with the timeline selection start and endpoints.
    Here is the correction, THE CORRECTED PARTS ARE CAPITALIZED:
    14) Point to the start or end OF one of the clips, when you see the icon showing arrows going either way, LEFT-CLICK and drag your clips to roughly match up with the timeline selection, then zoom in further and adjust the clip start and end points to match up exactly with the timeline selection's start and end points.
    Another Correction:
    Originally read:
    Addendum: IF you have 2 files selected and click "Edit" to go to Edit view, it will give you the file of the clip you selected first, not 2nd. You must then go back to MT view, de-select the clip you selected first, then de-select the clip you want to edit, then RE-select the clip you want to edit.
    Here is the the correction, CORRECTED PARTS ARE CAPITALIZED:
    Addendum: IF you have 2 files selected and click "Edit" to go to Edit view, it will give you the file of the clip you selected first, not 2nd. IF YOU WANT TO EDIT THE 2ND FILE YOU SELECTED IN MULTI-TRACK VIEW, You must go back to Multi-track view, de-select the clip you selected first, then de-select the clip you want to edit, then RE-select the clip you want to edit, THEN CLICK "EDIT" TO GO TO EDIT VIEW.

  • How to Enable Auto Update functionality in  adobe AIR application?

    Hi All,
         How to Enable Auto Update functionality in  adobe AIR application and ask for new version to install to user.
         Please provide some informarion regarding above topic.
    Thanks,
    Sunil Rana

    Hi All,,
    Got solution. call checkUpdate() function in application level initialize event.
    private function checkUpdate() : void
                    appUpdater.updateURL = "http://www.aa.com/flex/aa/NativeUpdater.xml";
                    appUpdater.addEventListener(UpdateEvent.INITIALIZED, updater_initializedHandler);
                    //we can hide the dialog asking for permission for checking for a new update;
                    //if you want to see it just leave the default value (or set true).
                    appUpdater.isCheckForUpdateVisible = false;               
                    //we initialize the updater
                    appUpdater.initialize();   
                 * Handler function for updater_initializedHandler events triggered by the ApplicationUpdater.INITIALIZED
                 * @param updater_initializedHandler
                protected function updater_initializedHandler(event:UpdateEvent):void
                    //initializeHandler();
                    appUpdater.checkNow();
    In NativeUpdater.xml
    <?xml version="1.0" encoding="utf-8" ?>
    <update xmlns="http://ns.adobe.com/air/framework/update/description/1.0">
         <version>2.0</version>
          <url>http://www.aa.com/flex/aa/AutoUpdate.air</url>
         <description>
         <![CDATA[                 * This a Win update
          ]]>
          </description>
    </update>
    Upload NativeUpdater.xml file on your Server. When you open your old .air file it will ask for replace with new version.
    Thanks,
    Sunil Rana

  • My pages documents on my ipad wont sync to icloud. Some documents have had the upload icon on them for over a month. It was all working fine but now I cant figure out what is going on.

    MY pages documents on my ipad wont sync to icloud. Some of the documents have had the upload icon on them for over a month. It was all working fine a month or so ago but I cant figure out why it wont work now.

    Why start a new and very similar thread to your other one which you have not responded to (have you read the replies?)
    I suggest that no response is made to this duplicate thread. 

Maybe you are looking for