Show an ico file in an HTML Air app

Hi,
I have an air app, of the HTML variety, and I'd like to be
able to show .ico files in it.
In Safari/Webkit you can do this:
<img src="
http://somedomain.com/favicon.ico"
width="16" height="16" />
But it doesn't work in Air.
I've seen this Flex app that can render ico files:
http://flexlib.googlecode.com/svn/trunk/examples/IconLoader/IconLoader_Sample.swf
Using the IconLoader custom Flex Component:
http://code.google.com/p/flexlib/wiki/ComponentList
Is there a similar workaround that anyone knows?
Thanks in advance

The icon loading code you reference is ActionScript, so you
could convert it into a utility for turning icons into png files --
along with a PNG encoder, of course -- which is also available in
an AS library on Google code. (You can load a SWF utility into a
page using the script tag.) You could then load the converted png
file for display.
ASFAIK, the only way to bridge the image gap between
ActionScript and JavaScript is through the HTML clipboard, and that
requires a user-generated paste event before you can access
it.

Similar Messages

  • How can i make the report previewer show a PDF file instead of HTML?

    Hi there,
    i made a report which can be called within a form by a button. This report is a PDF-report.
    I also have an option in the application to start the report from the menu. Then i get the Launch Report Form by Headstart. Here i can fill in for Desformat (in the options) PDF and Output to PREVIEW. Still it generates me a HTML report in my browser. How can i make it work so that the PREVIEWER will show me a PDF-report instead of the HTML?
    Kind regards,
    Dave

    You can not use PREVIEW as output type in webbased forms/reports. Try using as output type CACHE or FILE.

  • Existing files on drive connected to latest Airport Extreme do not show up, however files copied over the air to the drive do. Any ideas?

    I have the latest Airport Extreme with a Seagate drive connected. I copied files to the drive while it was connected to my MacBook Pro. The files do not show up when connected to the AE, but they appear when connected to the Macbook, Files copied over the network to the drive appear. The drive is formatted HFS+.

         After playing with this for the last few days, I found a solution. Under the "Disks" tab in Airport Utility, the "Secure Shared Disks" drop down needs to be set to "With device password". Mine was set to "With acounts", which even after correct authentication, none of the files would appear.
         Another interesting note:  The files that I could see, the ones I copied over the network, do not appear now. I can copy over new files, and they show up, but the ones copied prior to changing the "Secure Shared Disks" option, do not.

  • HTML AIR apps.. use XHTML and Doctypes?

    I was just wondering, as I'm looking through the documentation on how to create an AIR application using HTML, and the example shows html without a doctype declaration or xhtml syntax.
    I'm just curious if xhtml and doctype should be used or if it even makes a difference.
    I'm assuming that either way, once I get the layout to look the way I want it to, that visually after it's compiled it won't change since the runtime is the same on all operating systems?

    Updated my os
    Brand new Mac ... what exactly needed updating?
    Which OS X is installed?
    Click the Apple () menu top left in your screen. From the drop down menu click About This Mac.
    The version is noted there.

  • Loading swf files from an iPhone Air App

    Although the faq says its possible ( http://bit.ly/gyxmCo  )  I can't seem to load .swf files from my app.
    There's no .AS code in the .swf file I'm trying to load.
    PNG files load with no problems, swf's fail.
    A working example would be appreciated instead of suggestions, I've spent the entire day trying out suggestions
    regards,
    Martijn

    Because I can't see any library assets in an as2.0 file.
    I've discovered that the swf fails to load as soon as you make a symbol 'export for actionscript'
    probably because it will then create a class. So you can only load SWF's as simple pictures or animations, you cant use it as an asset library with multiple animations/images/sounds in it..
    As for you other questions:
    it doesnt matter if the file is local or on the web. same results
    I created the swf file from a fla in CS4,  and I'm compiling my air project that loads the swf  with FlashDevelop.

  • Launch Citrix ICA File or Link from AIR App

    I'm pretty sure that I cannot launch an ICA file on my PC (if
    possible please tell me how) from an AIR application, but I'm not
    quite sure why I cannot consistently launch the http link to the
    ICA file.
    URL is something like this:
    http://123.145.167.189/Domain/site/launch.ica?NFuse_Application=Citrix.MPS.App.LOCATION+DO MAIN+farm.Application+DOMAIN+LOCATION&NFuse_AppFriendlyNameURLENcoded=Application+DOMAIN+L OCATION
    If the web browser is already open to the address(sometimes
    just if the browser is open):
    http://123.145.167.189/Domain/site/default.aspx
    then the ICA file launches correctly. If the web browser is
    closed, then the link to the ICA file simply opens the browser to
    the base page,
    http://123.145.167.189/Domain/site/default.aspx.
    Any ideas?

    Hi,
    As specified by other people here in the forum, it is certainly possible to call a CSH AIR help from any AIR application. Please check the forum post http://forums.adobe.com/message/2272289#2272289
    You need to know your AIR Help application ID, and the publisher ID.
    Application ID is the one which was specified in the AIR SSL dialog in RoboHelp 8 AIR SSL dialog (Help ID).
    The publisher ID for an installed application can be found in the META-INF/AIR/publisherid file within the application install directory. This Publisher ID is generated using the digital certificate provided while generating the AIR Help in AIR SSL dialog.
    Once Application ID, and Publisher ID are known to the developer, he/she can call the AIR help by using the Following Flex code
    private function invocarAirHelp(tema:String):void {
          var appID:String = "abc";
          var pubID:String = "ashfksdhfkjsdfk.1";
          var mgr:ProductManager = new ProductManager("airappinstaller");               
         mgr.launch("-launch " + appID + " " + pubID + " -- -csh mapnumber 1");
    Hope this explanation will help you.
    Thanks
    Praful Jain

  • Show .ico file on title bar

    How can I show a .ico file on title bar? I have got a code but it shows only .jpg and .gif files on title bar.
    My code is here:
    ImageIcon image = new ImageIcon("symbol.jpg");
    setIconImage( image.getImage() );

    Hi,
    you can't display .ico file, only .gif, .jpg and .png. If there are any other file formats that you will display I don't know. So you have to transform .ico file into one of these formats.
    L.P.

  • Associate file extension with air app on Android

    Hi,
    I am trying to associate a file extension with my air app on Android. My goal is to be able to start my app by clicking on a file with a specific file type from either a file manager or mail app. I have found a solution that in theory would work in native, but does not with air somehow.
    In the .xml-file for the app, under the <android> tag I have written:
    <activity>
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />
                <category android:name="android.intent.category.DEFAULT" />
                <category android:name="android.intent.category.BROWSABLE" />
                <data android:scheme="file" />
                <data android:pathPattern=".*\\.csml" />
                <data android:host="*" />
            </intent-filter>
        </activity>
    Does anyone have an idea how this could be solved?
    Thanks in advance
    Jens

    If it works in a native app, it should also work in an AIR app in this case. Can you verify that it does work in a native app?
    See also:
    http://www.mail-archive.com/[email protected]/msg47862.html//www.mail-archive.com/[email protected]/msg47862.html
    http://stackoverflow.com/questions/1733195/android-intent-filter-for-a-particular-file-ext ension

  • Convert HTML/javascript AIR app to flex-based AIR app?

    Hi all,
    I've already built an AIR app using HTML/javascript that I
    would like to monetize.
    I would like to use O2app's E-Commerce framework, which right
    now only supports Flex-created AIR apps.
    My question: Is there a simple way to "convert" an
    HTML/javascript AIR app to Flex 3 format? I'd rather not have to
    rebuild the app from scratch in Flex 3 if I don't have to. :)
    Thanks,
    Al

    Hi,
    There's no simple way to convert an HTML AIR app to flex.
    But it is possible to create HTML Root windows from a Flex
    AIR App. By root window, I mean the same kind of window that is
    launched when you launch an HTML AIR App.
    For more info, look at the HTMLLoader.createRootWindow()
    call. (This will be available from a Flex AIR app as well)

  • Flash performance inside mx:HTML in a Flex AIR app

    Hi. I'm new to AIR development and after doing some basic tutorials I thought I'd make a little stream player app.
    The amount of tutorials on the web made me choose Flex / Flash Builder over HTML & JavaScript. When I built the player in Flex I saw performance was terrible when out of focus, I would say it drops to 3 fps if not less. Surprisingly when I downloaded someone else's similar app, his didn't have that problem. On closer inspection - he made it in HTML & JavaScript and HTML AIR apps dont suffer from the same problem.
    Is there a fix for this Flex performance problem?
    I've made a video demonstrating the difference between Flex & HTML for your convenience: http://www.youtube.com/watch?v=OU2mfELhSC4.

    Sure.
    1.
    Windows 7 Ultimate, 64bit, build 7600.
    Adobe AIR 2.0.3.13070.
    Unfortunately I only have machines with the exact same OS install at my disposal right now but I'll ask some people to test it on their boxes.
    2. http://pastebin.com/AsdmD3Yb
    When I point the mx:HTML to a youtube url instead of ustream.html the fps drops around to around 5 to 10. That's a lot more fps than when using ustream. Might be a clue to whats happening.

  • How to use expansion files for AIR app (flash cs6) on Google Play Store

    I am currently working on an app that will undoubtedly end up bigger than the maximum size of 50 MB for the APK, and I have no clue how to add files to an expansion pack, how to load expansion pack, what files need to be in expansion pack, or even what an expansion pack does/how it works. If anyone can point me in the right direction, that would be great, I want to make an expansion pack now before I get even more files.

    Haven't had a need to do this for file size purposes but since we can now download and use SWFs with ABC, I just specify my external SWFs when I compile and once my app is run it downloads the SWFs (with a pretty preloader) before the user can do anything. I have my own servers so I believe that's all that Amazon Bucket is actually used for. That user didn't have their own web servers to serve up the SWF content from.
    Aside that, check the answer here. Google will turn any extra files uploaded for your app into OBB for you. You just upload the SWF:
    Create expansion file for AS3 android Air App Flash cs6 - Stack Overflow
    It also outlines if you need to upload multiple files then .zip them up and use an AS3 .zip library to extract the files.

  • How to get external ip in adobe air app (as3 script)

    hey guy i am so sry if i am asking a repeated question but i could not fine any result i am creating a 2-player game by usinig socket in air (flash builder ide) and as u know one of the player need to connect to other one bye useing his external ip, becouse of that i need to show his external ip on the game (air app).
    i hope i could understand u my position and question, so here is my question :
    Is there any way in air to find external ip of that computer which the air application is running on that or not ?
    i will be w8ing 4 ur answers
    thx

    ops i am still w8ing i know how to find local ip but i need external ip

  • Install AIR app + native app simultaneously

    Hi everyone,
    I'm developing an Adobe AIR app but since AIR doesn't provide
    all the functionality that I need, I'm also developing a native app
    that does some system-level stuff and writes a XML file that then
    the AIR app reads. Since I want this to be as painless as possible
    for the end user, I'd like to make an installar that:
    - Installs the native app and sets it to autorun when the
    system starts (it's a background app).
    - Installs the AIR app, detect Flash version, etc (launch
    the Badge?)
    I think I'd need a separate installer solution for each OS
    (Windows and Mac) that, after installing the native app and adding
    it to the autorun list of the OS, launches the .air so that the
    badges continues with the installation.
    I don't really know if what I want to accomplish is doable at
    all, so any hints or links that may help me would be really
    appreciated.
    Best regards,
    Manuel F. Lara

    Hi Daniel,
    Could you post or send me ([email protected]) the entire crash log?  I'll at least need the binaries section so I can properly symbolicate the log.
    Thanks,
    Chris

  • HTML file loading in Adobe Air + ProgressBar?

    I am developing an AIR application. In that few reports I am showing. I am using HTML files to show the report.
    Action script is preparing/Writing the report contents into a file/
    I am using mx.controls.HTML to show the html file. Since the HTML file is little bigger in 512 MB RAM machine ( when I am running the air app)
    its taking 95%cpu when the page is getting rendered for a long time. Its making other applications unresponsive.
    Would it be possible to show progressbar when the HTML page is rendering?
    Regards
    Penugonda

    i created a similar thread a few weeks back http://forums.adobe.com/thread/619411?tstart=30. I was doing research on this topic for a quite long now but sadly there is no direct way of monitoring the progress of an html loader, it does not offer any progressEvent.Progress to monitor either. and what is more sad is that they haven't done anything about in the latest release of AIR either
    However all is not lost. What you can do is,monitor the progress of your URLRequest  using a URLLoader and once its complete you can use the (htmlloader object).loadString() function to render the html content loaded by the URLLoader :
    var browser:HTMLLoader = new HTMLLoader();
    var urlLoader:URLLoader = new URLLoader(new URLRequest("http://www.youtube.com/"));
    urlLoader.addEventListener(Event.COMPLETE, onUrlLoaderComplete);
    urlLoader.addEventListener(ProgressEvent.PROGRESS, onURLLoaderLoading);
    private function onURLLoaderLoading(e:ProgressEvent):void
         trace("progress = ",Math.round((e.bytesLoaded/e.bytesTotal)*100));
    private function onUrlLoaderComplete(e:Event):void
         browser.loadString(e.target.data);
    cheers!

  • If my Adobe Muse and Air apps are  both up to date as of today and I cannot open a Muse file, what are my options? I get an error message regarding the Progress Window showing and then Muse crashes.

    If my Adobe Muse and Air apps are both up to date (as of today) and I cannot open a Muse file, what are my options? While Muse is relinking assets I get an error message regarding the Progress Window "showing" and then Muse crashes.

    Hi there,
    Do you get this error while opening a particular file or all files?
    Please try opening a different .muse file, and check if it does the same?
    Ar you opening a .muse which is saved on a network drive?
    Thanks.

Maybe you are looking for

  • Getting Windows PC to see wireless Airport Express printer in mixed network

    I have a wireless network that has been working well. Base station is a SMC wireless router with two Macs connected via Ethernet, a MacBook and a Dell Windows XP joining in wirelessly. No problems. I recently added a Canon Pixma i4200 connected to an

  • Use of constructor in abs class?

    What is the use of writing constructors in abstract class?

  • Need to display fields based on first filed selection

    Hi All I am useing Apex 4.1 on 11gr2 I am building an application that needs to have some fields completed based on the selection of the first file that is a LOV pick list. I am using the display condition for the edit of existing records, but now ne

  • Help modifying example that sets screen resolution programmatically

    Hello, I'm wondering if anyone could help modify the following example: http://www.ni.com/example/27650/en/. Currently, it sets different screen parameters (ie: resolution, pixel depth and refresh rate) for a default screen. I'd like to use it with t

  • Suggested 802.11n/ac minimum data rates

    Good evening, We presently have some minimum data rates setup for our 802.11 deployment (.11b/g disabled below 9Mbps, required at 11Mbps and supported at 12Mbps+ and for .11a/n/ac  below 12Mbps disabled, 12Mbps required 12+Mbps supported).  Currently