Pear to pear file sharing in Adobe Air

hello frndz can anybody guides me how to make pear to pear file sharing in adobe flex air.
is there any possibility for file sharing and text chat through p2p connection.
Thanks and Regards
  Vineet Sharma

One option is:
1. Create a TestCase class that extends
flexunit.framework.TestCase
package my.package
import flexunit.framework.TestCase;
import flexunit.framework.TestSuite;
public class MyTest extends TestCase
public function MyTest(methodName:String=null)
super(methodName);
public static function suite():TestSuite {
var ts:TestSuite = new TestSuite()
ts.addTest(new FileTest("test"));
return ts;
public function test():void {
assertTrue(true);
2. Pass the class name to flex compiler using -includes
argument
-includes=my.package.MyTest
You can add multiple classes separated by a comma.
3. Then dynamically instantiate it in TestRunner
var ts:TestSuite = new TestSuite();
var Clazz:Object = getDefinitionByName("my.package.MyTest")
as Class;
ts.addTest(Clazz.suite());
You can look for class names in a file and instantiate each
one inside a loop if you have many classes.

Similar Messages

  • Maximum file size for Adobe air for Androind and iOS compiled apps

    Hi All
    I am working on a project which has a few videos which I need to bundle into my mobile app for an Ipad app I am creating using Adobe Air for iOS. My question is simple is there a maximum file size limit on apps compiled using Adobe air for iOS? And if so what is it? Any help would be great.
    regards Mike

    Hi.  Im not a 100% sure this is correct.  I am able to make a large .IPA file (200+Mb) and it will go onto my iPad 1, but it does not work - Just quicts after a few secs.  If I run the same IPA on my iPad 2 it works.
    When I take out some of the assets so its a smalelr size then it does run on the iPad.

  • Installation file (package) with adobe air sdk

    I made an installation file with adobe air (javascript, html via AIRSDK) ,
    but when it's packed and I run the file, it sends an error message "This application cannot be installed because this installer has been mis-configured. Please contact the application author for assistance."
    I don't know maybe I should try dreamviewer? because I'm sure about the codes
    I want to make such a file (as below image)
    but via airsdk it makes this:
    with air written on it

    try to update your air runtime. This is popular issue when developers use newer sdk but old runtime. Or include runtime to your app

  • Kindle Fire MIDI file play via Adobe Air

    Kindle Fire can play MIDI files via native Amazon MP3 player, but couldn't got it to play in Air (as an external file, checked with MP3, works fine, used same method to load .mid too), what can you suggest? I definitelly need .mid file to be played, not converted it in mp3 etc.
    Thanks in advance 

    Hi,
    Video encoding is very important.
    For example, use baseline profile level 3.1 for H264 for mobile
    (and not High profile level 4.1 recommended for desktop).
    For more information, see the MAX session of Fabio Sonnati:
    "Encoding for Performance on Multiple Devices"
    And if you have an Android phone/tablet, there is my AIR application
    to watch Adobe MAX 2011 videos :
    https://market.android.com/details?id=air.fr.inway.maxVideos2011
    Search "Sonnati" for this session's video.
    (For info, i use a video player based on OSMF 1.6)
    The pdf presentation is available on Sonmati's blog:
    http://sonnati.wordpress.com/
    Philippe

  • 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!

  • How to get remote file properties in Adobe AIR

    Hi Folks,
    I am developing a desktop application in AIR wherein we have a requirement for Live Update. I need a mechanism by which I can check the last modified date time of a file and if a new version is available, I need to download it.
    I am able to download the file from remote server. But the main issue is reading the last modified date time. Is there any way to get this information in AIR.
    Any help/suggestions would be highly appreciated.
    Thanks,
    Hitesh Patel (India)

    This depends on the type of server from which you are downloading the files. For example, if you are downloading the files from an HTTP server, and the server provides "Last-Modified" values in the HTTP response headers, you could use the following ActionScript code to determine those values:
    var urlReq:URLRequest = new URLRequest("http://www.example.com/");
    var urlStream:URLStream = new URLStream();
    urlStream.addEventListener(HTTPStatusEvent.HTTP_RESPONSE_STATUS, statusListener);
    urlStream.load(urlReq);
    private function statusListener(event:HTTPStatusEvent):void
        for each(var header:URLRequestHeader in event.responseHeaders)
            if(header.name == "Last-Modified")
                trace(header.value);

  • Newbie : what is .fpt file extension for adobe air ?

    Hi all the master,
    Hereby i have attached the printscreen of what i got from my client recently.
    I have already install the .air file, and it prompts to open the .fpt files. So i click on the fpt file. It loads halfway, and automatic close the whole application.
    As im a super newbie to AIR, may i know what is .fpt file extention to air ? and what kind of editor i must use to edit the content in the .fpt ?
    Hope to hear from all the master soon
    thanks
    C.K

    This looks VERY similar to a project I created for a client!
    The .fpt file, as Joe suggests, a custom file type created for the use by the Air app. It's probably just a re-labeled zip file to be honest! Probably contains the slides of the presentation as a guess??
    You shouldn't need to worry about the .fpt files. You should open them from within the Air app and not by opening them outside of the app - the OS might not recognise them unless the Air app has registered the .fpt extension upon it's own installation.
    Hope that helps.
    Dave.

  • Video File Conversion and Adobe AIR

    Hello guys
    I want to work on a simple app which will actually convert large size video files to small size video files. It will be a multiformat (and atleast supports .flv)
    But i have no idea where to start!
    I mean how to achive this file conversion thing.
    Any blog, library or resource will be highly appreciated appreciated
    Bunch of Thanks

    Thanks a lot for the reply
    I have not yet tried Alchemey, Is it available to download?
    Secondly, I want to do all the conversion locally, So MERAPI might be a good choice, Let me try it
    Thanks once again

  • I need to check a value of variable which is in my php file in my adobe air application.

    please help

    The point of syncing is to have the same photos in albums as those on your computer. Being able to delete photos from a synced folder destroys the sync. If you want to be able to delete photos on your iPad then do not sync photos from your computer. Also the Photos app on an iPad is just one app. There are many other photo organizing and editing app in the App Store. Use the app the best suits your needs.

  • File Sharing (in Browser, not AIR)

    Hi,
    I have found previous discussions of rtmfp file sharing on this board helpful.
    http://forums.adobe.com/thread/563262?tstart=-2
    http://forums.adobe.com/thread/548858?tstart=0
    My question is about in-browser file sharing capabilities, not AIR.
    Would it be possible to send heavy animation swf files (300K+) to other clients using RTMFP?
    If not what are the specific hurdles?
    For example, would the following be possible?
    Client 1 loads swf file from web server.
    Client 2 requests swf file from php script.
    Php script tells Client 1 to send swf file to Client 2.
    Client 1 sends swf file to Client 2 via rtmfp.
    Client 2 loads swf file in memory and plays animation.

    Not possible?
    Should be able to pass bytearray and display as a swf, no?

  • Adobe air swf file error in browser

    my fla file setting
    version: adobe air 1.0 actionscript 3.0
    i able to compile without problem and when i load the swf file in browser, if my actionscript included this line "import flash.filesystem.File". My flash just show up "blank" . no error in flashlog. if i removed this line, my swf file able to run. what is wrong?
    p/s: i embeded the air app as swf and open with browser

    You can't load SWFs published for AIR in a browser. The Flash plug-in does not recognize the extra AIR APIs like File.
    AIR SWFs can only be used as part of an AIR application.

  • I accidentally added two .doc files, they show in iTunes file sharing, but don't show on iPad?

    I accidentally added two .doc files by dragging and dropping into itunes, under my device, then the app tab, then file sharing for Adobe Reader, they show in iTunes file sharing window, but don't show on iPad 3, and I cannot delete them on iTunes screen? Please help!

    First, I would advise you to apply Tao philosophy to this. Given the dysfunction of most software, if this was just an accidental copy and you don't want them on iPad and they are not showing up anyway, what's the problem? Forget it. It's not worth the hassles. I'm more concerned that you have psychological issues you need to be dealing with, not this. You are making much too unnecessary work and stress for yourself.
    As for deleting them, I'm assuming you highlighted them and hit delete and it didn't work. If not, it should. Works for me. But if it doesn't, my advice is also not to worry about it, as annoying as the clutter is. It will eventually resolve itself (like when your data files corrupt or your iPad crashes, LOL. (I apologize for my cynicism but I am fed up with dysfunctional software). It's not worth the hassles of trying to figure out petty issues.
    As for me, I have the opposite, and very serious problem. I've got Reader on my iPad too. But I can't move the pdfs out of it and onto my laptop with iTunes' dysfunctional file sharing. I get the error "file cannot be copied because you do not have permission to see its contents." I have hundreds of pdfs on my iPad that I converted from web surfing with other programs that also don't work and I can't get them off the iPad for backup and to have a synced library I can access from both laptop and iPad.
    I called iTunes twice and both times they blamed it on the app, saying iTunes file sharing doesn't support third party apps and that I should call Adobe and talk them into writing the code that will work with iTunes. Yeah, right. And Reader is not the only problem. This is happening with iAnnotate and Write PDF and other apps.
    I suspect that both of us have the root problem, perhaps Apple's greedy refusal to support the apps that it sells in the app store and are quasi-integrated enough to show up in the file sharing documents list, but can't be moved or deleted; and the apps that don't bother to make their apps fully work with iTunes file sharing.
    If anyone has any solutions ......

  • Adobe Air. Damaged installation.

    On start up I get a pop up  " The installation of this application is damaged. Try reinstalling etc."  Have tried reinstalling Adobe Air and get the same reply. I have now trawled  through my registery files, deleting all Adobe Air files in order to get a clean installation and have reistalled AA but still get a "Damaged Installation"  Can anyone suggest a solution?

    Hi,
    It's hard to determine exactly what is causing that error without knowing what app is causing it.  Since AIR is just a runtime, it by itself isn't the cause of the problem.  I think I'd try a couple of things.
    First, I'd initiate an uninstall of AIR via the uninstall programs control panel.  The first thing you'll be presented with is a list of AIR applications that are installed.  Here's what mine displays, note the 3 AIR applications I have installed on this system.  Click cancel once you've written down the list of applications.
    Next, launch msconfig and click the "startup" tab.  Examine the list displayed against the list you wrote down earlier to determine if you have an AIR application launching at startup.  If so, uncheck the app in msconfig and click apply.  Reboot and see if the error still occurs.  After resolving the error, I'd recommend uninstalling and reinstalling the offending application.
    Hope this helps,
    Chris

  • [advance question] loading a swf in adobe Air, which loads an image with "componentloader"

    Good evening all,
    I think this is a complex issue.
    I have adobe air application which loads a SWF I made.
    Inside this SWF I have used the "component LOADER" to load
    something with "ContentPath=image.jpg" for example.
    But the swf loaded in the Adobe air works, but does not load
    the "ContentPath image"...
    (it does load and display it when it this swf is run outside
    adobe Air)
    I need it to be dynamic like this, so if eventually I Include
    it in the package it won't help much...
    I just intend to replace an image background from this loaded
    swf file!
    Thanks!
    Edit:
    At this time of the editing, I fear and realize
    something....I have been using Actionscript2 for the .SWF file,
    could it be why it does not works???
    If its problematic, is there a simple way like telling it to
    read actionscript2, rather than transforming everything??
    edit2:
    I found this on the official AIR FAQ:
    Will Flash version 8 and below SWF files run in Adobe AIR?
    Yes. However, the Adobe AIR APIs are only exposed to Flash
    content via ActionScript 3 / AVM2, and thus Flash 8 / AVM1 SWFs
    will be able to run, but they will not have direct access to the
    Adobe AIR APIs.
    source:
    source
    faq Adobe
    it seems it should works!!??
    Edit3:
    nope I confirm at least some code made in Actionscript2
    works.
    I am sure this code needed to be changed for working in
    actionscript3, so "actionscript2" code works in Adobe Air.
    The problem of not loading my image must come from something
    else!!??

    Good Morning all!
    Hilarious....
    I tried so much to think maybe Adobe Air does not like a SWF
    using actionscript2, or it does not load any "external image from a
    swf", etc...
    None of that!
    I just in FLASH in the ComponentLoader....I did put simply
    the ContentPath at "myimage.jpg"....
    Of course I had to use the absolute path like
    "c:\\myfolder\\myimage.jpg"
    Of course aswell it works now!!!

  • Why is iTunes slow to transfer files to File Sharing

    The latest releases of Apple iTunes on Windows 11.1.4.62 and iTunes on Mac 11.1.4 (62) 64-bit is taking a few minutes per (200kb) file to transfer data via File Sharing into an application. This is a significant and very noticeable change in performance over the previous release -- certainly used be near instantaneous transfer. File deletion is also extremely slow. This is common across all Apps that support File Sharing including Adobe Reader, Quick Office, Google Earth, etc.
    I'm using iPad2 (MC979B/A), iOS7.0.4(11B554a).
    Is this is a bug?
    Thanks in advance for any information.
    Nick

    Hey there jbrensinger,
    It sounds like the attachment window in the Mail app is taking longer than normal to load. I recommend first performing a Safe Boot, then re testing the issue:
    OS X: What is Safe Boot, Safe Mode?
    http://support.apple.com/kb/HT1564?viewlocale=en_US
    To start up into Safe Mode (to Safe Boot), follow these steps.
    Be sure your Mac is shut down.
    Press the power button.
    Immediately after you hear the startup tone, hold the Shift key.
    The Shift key should be held as soon as possible after the startup tone, but not before the tone.
    Release the Shift key when you see the gray Apple logo and the progress indicator (looks like a spinning gear).
    After the logo appears, you should see a progress bar during startup. This indicates that your computer is performing a directory check as part of Safe Mode.
    To leave Safe Mode, restart your computer without holding any keys during startup.
    If the issue persists, I would next reindex spotlight with the following article:
    Spotlight: How to re-index folders or volumes
    http://support.apple.com/kb/ht2409
    Thank you for using Apple Support Communities.
    Take care,
    Sterling

Maybe you are looking for

  • Creating a link to make a pdf download

    Can anyone tell me how to make a link so that a pdf file will download? I currently have a button with a link to a pdf. I can get the pdf to open in a new window, but I really just want it to download automatically to the viewers' desktop, or at leas

  • Itunes cannot sync due to lack of space on iphone, but itunes also indicates 8GB free?

    So im trying to sync my phone to itunes, and it clearly says there's 7-8 gb free in the space bar on the itunes iphone window. However whenever i try and sync it tells me I need 500 mb of additional space. Anyone come across this problem before?

  • Some whites appear yellow

    Hi all, I have a macbook pro retina and in the past two months certain whites have started to appear very yellow. It happens randomly. At first I thought it had to do with the "Flux" programme (that turns your screen orange as night falls), and then

  • Guide for ABAP in HANA

    Hi all, I am very much new to SAP HANA and its development in ABAP. I have knowledge about ABAP, but now want to know and learn ABAP on SAP HANA. There are a lot of material available for the guidance but I am confused about where and how to start th

  • Unable to read my Nikon D80 formatted SD (Sandisk 2GB extreme 3) on any Windows 8 host (windows 7 works ok)

    Hi, I have found that my SDcard formatted in a Nikon D80 DSLR is unable to be read in any version of windows 8, I have tried different versions (including RT), different machines (including brand new Dell XPS laptop), USB converter...nothing works. I