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

Similar Messages

  • 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

  • How to Add Input Values into a XML in Flex AIR Application

    I need a help, now I am developing a flex windows AIR application, in this I am displaying data using a xml file,
    I have some input fields in my application,if the application user filled the input field and press submit button, the inputs
    Should be stored in that xml. How can I do this using flex, can you  anyone please provide me a sample file with tutorial.
    Thanks in advance
    Vasanth,
    Chennai

    You can use the "+" operator which is both the addition (number) and concatenation (string) operator. JavaScript makes the decision about how this operator will work by the type of the value of being processed. Two numbers JavaScript performs addition, character string and number, number and character string, or 2 character strings then concatenation.
    If you just use the '+' operator and spaces, you will get extra spaces unless you add code to allow for null fields and adjusting the spacing or other punctuation as needed. You may also need to force numeric values to character stings or you might end up with an addition and not concatenation.
    Adobe provided a example of a funciton to properly join 3 fields with full versions of Acrobat:
    function fillin(s1, s2, s3, sep) {
      // Concatenate 3 strings with separators where needed
      // convert passed strings to a string value
      s1 = s1.toString();
      s2 = s2.toString();
      s3 = s3.toString();
      // assign a numeric value for presence of a given string(s)
      var test = 0; // no passed strings
      if (s1 != "") test += 1; // s1 has a value
      if (s2 != "") test += 2; // s2 has a value
      if (s3 != "") test += 4; // s3 has a value
      // return appropriate combination based on passed strings
      if (test == 0) return ""; // no stings passed
      if (test == 1) return s1; // s1 only
      if (test == 2) return s2; // s2 only
      if (test == 3) return s1 + sep + s2; // s1 and s2
      if (test == 4) return s3; // s3 only
      if (test == 5) return s1 + sep + s3; // s1 and s3
      if (test == 6) return s2 + sep + s3; // s2 and s3
      if (test == 7) return s1 + sep + s2 + sep + s3; // s1, s2, and s3

  • How can I sync my iPhone my mac and macbook air without losing my calendars?, How can I sync my iPhone my mac and macbook air without losing my calendars?

    How come I lose calendars on my iPhone if I plug my iPhone into my MacBook Air? My iTunes is on my mac, yet I have my iCal set as sync using iCloud and I have assumed that it will transfer between all three. Where am I going wrong? Any help gratefully received.

    Third Party software do a google search

  • How to embed custom font (tamil font [ta_IN]) in my android application

    We are developing a mobile application (targeting for android & ios) using Adobe Flash Builder 4.6, Adobe AIR 3.5.  Requirement is to localize the content for indian languages, and rite now we are targeting tamil locale.  We implemented the localization, it is working for the locales where the fonts are available on the device, like french, chinese etc., but not for tamil locale.  As the device doesn't have the font, we would like to embed TTF font.
    After googling on the subject, these are the steps we did to embed tamil font, without any luck.
    1. Used fontswf to convert to SWF
    2. In the main application, we embed the SWF (got the Class reference)
    3. Registered the font
    4. When the locale is changed to Tamil, we are changing the application style (fontFamily) to the Class that we got in Step 2
    PS: Currently we are testing on android devices, however the solution needs to work for ios as well
    Unfortunately, this is not working.  Requesting your help in this regard!

    i am bumping this up. i cannot seem to get this to work on iOS, but was able to get this to work on Android using device fonts.
    Anyone here have expereince dealing with the Tamil language on iOS through AIR?

  • How can I only autorotate the Background of my Adobe AIR application??

    Hi Guys,
    I made a game application which runs on a landscape position.
    Now I would like to make use of the orientation function, but I only want to rotate the background of
    the application. I cannot figure out how to do it .
    Does anyone have suggestions? Please help me!

    You can turn off auto orient and do the accelerometer readings for yourself, then rotate the background based on those readings.

  • How to download a file from a link within an AIR application ?

    Dear friends, I have created a simple AIR app with Flex, where it basically navigates toa specific URL. It works fine, all the links, and so on... however, when I need to click a specific link to download a file (DOC, XLS, PDF) from it... it just do NOT work !  why is it ? what am I supposed to do to achieve my purpose ? Appreciate any help, thanks in advance !

    Hi Arun,
    Goto AL11 - > click on the directory path and select your file  -open the file - > click on menu item List - >save/send -> file
    -> select the type of file.
    Or you can write a small abap code using DATASETS. If you require I will post the code.
    Hope it helps you.
    Regards,
    Rajani.

  • How to play and stop flv files through NetStream in AIR Application

    Hi,
    In a folder I have 'n' number of flv file, which are DRM protected. when the user try to play those files for the first time through my AIR application, it will prompt for username and password and gets the license/voucher from the server and store it in AIR Runtime. so that from the next time onwords it won't prompt for username and password as because it already has license/voucher.
         My problem is assume there are 500 files, such that for each file the user has to enter his credentials[username and password]. which is a stupid thing. I want to avoid this process by implementing this process internally/programetically. By playing/accessing each file through netstream from the folder and setDRMAuthenticationCredentials for that file and stop the stream. Here I am able to play each file but I am failed to stop it. I mean to say I will get the license for all the flv files internally[while loading my AIR application], such that user should not be interrupted for his credentials for each file.He should play as if he is accessing/playing a non-DRM protected file. I will be very thank full if any one help me out in this.
    public function init():void {
          connectStream();
          getLicenseForAllFiles();
          videoStream.addEventListener(DRMAuthenticateEvent.DRM_AUTHENTICATE, drmAuthenticateEventHandler);
          ppt_videoStream.addEventListener(DRMAuthenticateEvent.DRM_AUTHENTICATE, ppt_drmAuthenticateEventHandler);
            private function getFilesRecursive(rootFolderPath:String):void {
                //the current folder object
                var currentFolder:File = new File(rootFolderPath);
                //the current folder's file listing
                var files:Array = currentFolder.getDirectoryListing();
                //iterate and put files in the result and process the sub folders recursively
                for (var f = 0; f < files.length; f++) {
                    if (files[f].isDirectory) {
                        if (files[f].name !="." && files[f].name !="..") {
                            //it's a directory
                            getFilesRecursive(files[f].nativePath);
                    } else {
                        //it's a file
                        fileList.push(files[f].nativePath);
                        //Alert.show(""+files[0].nativePath);
                        var fileName:String = files[f].name;
                        if(fileName.indexOf("PPT_")!=-1){
                            ppt_videoStream.play(files[f].nativePath);
                            ppt_videoStream.pause();
                        videoStream.play(files[f].nativePath);
                        videoStream.pause();
                private function connectStream():void {
                    videoConnection = new NetConnection();
                    videoConnection.addEventListener(NetStatusEvent.NET_STATUS, netStatusHandler);
                    videoConnection.connect(null);
                    ppt_videoConnection = new NetConnection();
                    ppt_videoConnection.addEventListener(NetStatusEvent.NET_STATUS, netStatusHandler);
                    ppt_videoConnection.connect(null);
                    videoStream = new NetStream(videoConnection);
                    videoStream.addEventListener(NetStatusEvent.NET_STATUS, netStatusHandler);
                    video.attachNetStream(videoStream);
                    ppt_videoStream = new NetStream(ppt_videoConnection);
                    ppt_videoStream.addEventListener(NetStatusEvent.NET_STATUS, netStatusHandler);
                    ppt_video.attachNetStream(ppt_videoStream);
             private function netStatusHandler(event:NetStatusEvent):void {
                switch (event.info.code) {
                    case "NetConnection.Connect.Success":
                        //connectStream();
                        break;
                    case "NetStream.Play.StreamNotFound":
                        trace("Unable to locate video: " + videoURL);
                        break;
                private function drmAuthenticateEventHandler(event:DRMAuthenticateEvent):void {
                    videoStream.setDRMAuthenticationCredentials("adobe", "adobe", "drm");
                private function ppt_drmAuthenticateEventHandler(event:DRMAuthenticateEvent):void {
                    ppt_videoStream.setDRMAuthenticationCredentials("adobe", "adobe", "drm");
    Thanks
    Sudheer Puppala

    Hi,
    Please go through following links..this will help you:
    http://lucamezzalira.com/2009/02/28/create-pdf-in-runtime-with-actionscript-3-alivepdf-zin c-or-air-flex-or-flash/
    http://forums.adobe.com/thread/753959
    http://blog.unthinkmedia.com/2008/09/05/exporting-pdfs-in-flex-using-alivepdf/
    Thanks and Regards,
    Vibhuti Gosavi | [email protected] | www.infocepts.com

  • Turn on Distraction free mode on mac in Adobe AIR application

    Is there a possibility to turn on Distraction free mode in Adobe AIR application on OSX?

    Could you please open a new bug report on this over at bugbase.adobe.com?  When adding the bug, please include sample code or an application so we can quickly test this out internally.  If you'd like to keep this private, feel free to email the attachment to me directly ([email protected]). 
    Once added, please post back with the URL and I'll attach the symbolicated crash log to the bug report.  Out of curiosity, have you tried this with AIR 3.6?

  • How to Import Self-signed SSL server certificates in Adobe AIR applications

    Hi,
    I am using secure AMF endpoints for remote object communication from AIR client.
    since i am using a self signed SSL certificate on the server, i am getting a certificate warning message on the AIR client, when ever a remote call is done.
    Is there any mechanism to import the server certificate in AIR application..?
    Please provide suggestions.
    Thanks

    I have the same issue along with repeated prompts to accept cert when I am just trying to access the page internally on my network.. Any help here RIM????????

  • Flex/Air applications with an OS X Menu Bar icon

    (Flash Builder 4 beta)
    I'm developing a flex/air application for mac os x exclusivley. The application should be very unobtrusive to the user, and as such, I want to eliminate the dock icon for the application and have it run exclusivley in the os x menu bar. Similar to a twitterific app. I've scoured the documentation for a way to do this, but only come up with methods for a system tray in windows, and dock icon function on a mac.
    Does AIR really lack the ability to have a menu bar icon?
    Thanks in advance!

    I've made menu's already for the application. They are native os x menu's but they are used create contextual menus (file, edit, view...etc...) and are only visible when the application is open. Unless their is a feauture I missed I don't think I can do it with those. I'm looking for the ability to create a menubar icon application similar to twitter, or the default apple spotlight.

  • How to install elements 9 on a mac book pro? i click install icon but cannot start because it sais that is from unidentified developer

    how to install elements 9 on a mac book pro? i click install icon but cannot start because it sais that is from unidentified developer
    any suggestions?

    Mac Unidentified Developer Issue
    Here's how to open apps that apple should not be blocking: 
    http://www.imore.com/how-open-apps-unidentified-developer-os-x-mountain-lion

  • How to display icon files in mac

    In JLabel how to add icon files with ext .ico from MAC OSX

    What temp files? Most are deleted automatically when an application quits or when you log in or restart.

  • TS4422 I don't have icloud icon @ my system preference to set it up even after software upgrade. how can I get icloud on my mac?

    How can i get icloud on my mac when I don't have icloud icon to set it up even after updating the software?

    You won't find iCloud in Snow Leopard. Upgrade to Mountain Lion.

  • How to embed the needed fonts in a pdf file

    Dear Sir/Mam,
    We had purchased licenced version of adobe acrobat x pro
    We are facing issues while embedding the font in the pdf file
    Please find the below mentioned requirement
    Requirement:
    We have a pdf file (template) with some static images and static text in it
    We need to populate dynamic data in the pdf file for this we may use text boxes
    We need to set the font name for the text box and embed that font in the pdf template (Eg:Font to be used in textboxes is "RotisSansSerif-Bold")
    Queries
    Please let us know how to embed the needed fonts in the pdf file?
    Once user exports the pdf file, even if user doesnot have the fonts installed in his system the text need to be displayed in the same fonts,how to acheive this?Eg:if we define "RotisSansSerif-Bold" as font in the textboxes,after exporting the data the text need to be in the same font.
    Note:
    Fonts will only installed in the application server and not in the client system
    The mentioned requirement need to work on below mentioned specifications
    OS:Windiows-XP,  Browser:IE
    OS:Mac osx, Browser:Safari
    Regards,
    S.N.Prasad

    There is a similar post just a few away from yours. I will suggest what I would try. Open your job settings file (press or print preferred to get all fonts) and then select the properties and the font tab. At your font to the always embed list and you will likely need to uncheck the subset box. Then save your job settings (give it a name that is meaningful to you, you can not use the settings file you started with as they are read only and I do not recommend changing that). Maybe that will do the job. Of course that is for the creation of the PDF, I forgot you were talking about a form. You might check the form field properties, but I suspect you have already tried that. Guess I don't play with forms enough. Others may be by to answer.

Maybe you are looking for

  • Junk Mail won't move to Junk folder after training+switching to automatic

    After training for months, I switched my preferences to automatic and now my existing junk mail doesn't move to the junk folder. Dual 2 GHz PowerPC G5   Mac OS X (10.4.3)  

  • How To Divide Source File Into Smaller Files Without Exporting?

    Hello Everyone, I'm a beginner with PPro CS4 and to video editing in general. I've done a lot of Googling and searching of these forums to get an answer to this question, but I haven't found a clear answer. Here's my problem: I have many hours of HDV

  • Mouse randomly moves around and clicks

    Ok, so ive had this problem for a few months now and it has led me to the point where my mac was in storage and i havent touched it in a month or two. What happens is no matter what i am doing my mouse will move around the screen clicking randomly an

  • Daisy chaining firewire problems

    Hello. So i'm working on a project where the client has 15 4TB firewire drives filled with footage. I've been working with all of them daisy chained together. As you can probably guess, this is causing some issues. Some days I can come in and work fo

  • Best Practice for Domain Controllers for a company of 500 users.

    Our company is expanding and is planning on having roughly 500 users managed by a domain controller. The question is, what sort of hardware do you actually need that will not be a bottleneck in the near future (3-5 years from now). We stick with Dell