Access class in SWC with AIR

Hi,
I work on a little AIR app to generate some AS class with AIR. I browse recursivly some folder and add the file found in a dataProvider to fill a ComboBox if the file extension is .as. I'm trying to do the same with swc file like some flash IDE software does but i don't know how to begin.
Any idea?
Thx.

Ok so I can simply load the swc file, unzip it with an as3 zip class like this class and parse the XML manifest file to get the class list.
Is it right?
Thx.

Similar Messages

  • Unable to access classes in third party jar files packaged with my ejb.jar

    I have packaged some third party jar files in my xxx_ejb.jar file.  The third party jar file contains classes that are accessed by some custom classes which are in turn accessed by my bean classes.  I get the following error when my custom classes attempt to use any of the classes in one of the third party jar files:
    java.lang.NoClassDefFoundError: com/Ostermiller/util/CSVParser
    Shouldn't I be able to access classes in jar files that are packaged with my xxx_ejb.jar file?  I see the xxx_ejb.jar file as a resource of the application classloader that contains it but I don't see the third party jar files.

    As per the Java EE specification, additional JAR files should be packaged on the EAR level. Only WAR files' WEB-INF/lib folder is scanned for JAR files to be added to the classloader.

  • Adobe AIR updater applicationupdater_ui.swc with Flash CS3 not working

    Hello AIR geeks,
    I have a project which is running in Flash CS3 with AIR.
    I would like to incorporate the functionalities which are available in applicationupdater_ui.swc
    Can any one please help me to make it available for flash cs3
    got a very nice code sinppet also
    http://www.fmajakovskij.info/air-updater-made-easy-with-scheduling/
    but Its not working with Flash CS3
    Thanks a lot
    Regards,
    Srinivas

    Use the Flex/Flash Component Kit to wrap your symbols for use in Flex
    Alex Harui
    Flex SDK Developer
    Adobe Systems Inc.
    Blog: http://blogs.adobe.com/aharui

  • Username with Access-Class

    R8 Configure
    username cisco access-class 10 passs 12345
    access-list 10 permit R7's seriel IP
    It don't work.Who can explane and how to do
    Tks!
    Configure R8 so R7 can telnet into R8 using the IP address
    of the serial 0/0/0 interface on R8 using the username cisco and the
    password 12345. No other routers or hosts should be able to telnet to R8
    using the same username and password.

    Can you try this
    username cisco pass 12345
    access-list 10 permit R7's serial IP
    line vty 0 4
    access-class 10 in
    login local
    transport input telnet
    line vty 5 15
    access-class 10 in
    login local
    transport input telnet
    HTH
    Hoogen
    Do rate if this helps :)

  • Native extensions with AIR 3.3

    Did someone successfully compile with ADT native extensions like com.adobe.Vibration with AIR 3.3 ?
    Thank you !
    (Since i've moved to 3.3, it doesn't work anymore)

    Hi,
    I have tried reproducing your issue but I am not able to reproduce it , following is the code which I am using in my app :
    package
    import flash.display.Sprite;
    import flash.display.StageAlign;
    import flash.display.StageScaleMode;
    import com.adobe.nativeExtensions.Vibration;
    import flash.events.*;
    import flash.utils.Timer;
    import flash.text.TextField;
    import flash.text.TextFormat;
    import net.hires.debug.Stats;
    public class TestVibration extends Sprite
    private var subsButton:CustomButton = new CustomButton("Press me!");
    private var tt:TextField = new TextField();
    private var tf:TextFormat = new TextFormat();
    public function TestVibration()
    super();
    addChild ( new Stats() );
    tf.size = 20;
    tf.bold = true;
    tt.x=0;
    tt.y =450;
    tt.height = stage.stageHeight;
    tt.width = stage.stageWidth;
    tt.border = true;
    tt.defaultTextFormat = tf;
    addChild(tt);
    // support autoOrients
    stage.align = StageAlign.TOP_LEFT;
    stage.scaleMode = StageScaleMode.NO_SCALE;
    var myTimer:Timer = new Timer(2000, 1);
    myTimer.addEventListener(TimerEvent.TIMER, timerHandler);
    myTimer.start();
    subsButton.x = 150;
    subsButton.y=10;
    subsButton.addEventListener(MouseEvent.CLICK,subsButtonHandler);
    stage.addChild(subsButton);
    public function subsButtonHandler(e:MouseEvent):void{
    trace("button pressed");
    tt.appendText("\n Button pressed!");
    public     function timerHandler(e:TimerEvent):void
    var vibe:Vibration;
    if (Vibration.isSupported)
    trace("1");
    trace("12");vibe = new Vibration();
    trace("13");vibe.vibrate(2000);
    trace("14");
    trace("15");
    I am using the ANE and SWC provided at
    http://download.macromedia.com/pub/developer/air/ane/Vibration.zip and I am using the target ipa-ad-hoc on device iphone4 .
    Can you please specify if you are doing something else in your app?It would be great if you can send your sample app with the steps to reproduce @ [email protected] ,so that we can reproduce the issue .
    Thanks,
    Nimisha

  • The three main hurdles to porting existing Flash projects to iOS with AIR

    The purpose of this discussion is to identify significant problems currently preventing AIR for iOS from being a viable solution for porting existing Flash apps.  These issues have been largely ignored by Adobe, so I hope that everyone will add to this discussion if you have also run into these roadblocks in targeting iOS with the AIR SDK.  I hope that Adobe staff will address and provide some much needed information with regard to fixing these problems.
    There are 3 main problems with targeting iOS currently, which are probably affecting anyone who is trying to port a project that is both medium to large in size and makes use of SWF loading.  Pretty much any project that has a MVC architecture is going to load SWF assets that are compiled against a view class, so this is likely affecting many people.
    1. Bug - ADT packager runs out of memory when packaging "large" numbers of SWF assets
    https://bugbase.adobe.com/index.cfm?event=bug&id=3511656
    This is a blocking bug that prevents packaging projects with a large number of SWF assets.  It is preventing me from being able to package all the needed assets for my project.  I provided Adobe with my project to package a couple months ago so this bug can be reproduced in house and fixed.  The Adobe employee who was handling this never tried to reproduce the issue and has stopped responding to email and comments in the bug.  Adobe, please have someone take charge of testing and fixing this bug.  It seems like it would be a straightforward fix once the failure is reproduced within a debugger.
    Has anyone who has encountered this problem determined the number of files or classes where it starts to fail.  I've spent some time trying to reverse engineer what the packager is doing when it runs out of memory, so think I can determine how many classes it's working with, but obviously the size of the classes will be variable and so this number will probably be more of a range where we start to get into the failure state.
    Please let me know if you can reproduce this issue with your project with many SWF assets and upvote the bug if you are already aware of this one.
    2. Bug - SWF reloading when doing a "real" (AOT) compile
    https://bugbase.adobe.com/index.cfm?event=bug&id=3636385 
    There is already a forum post that covers the history of this issue (http://forums.adobe.com/message/4920638) but that also covers some issues in older AIR builds with loading of any SWF asset (previously fixed), where this bug deals specifically with reloading of SWF assets that include compiled bytecode (ABC).
    The expectation here is that all versions of the Flash runtime should handle SWF reloading with ABC in the same way, so that a single codebase can be used to target web and iOS (or any other platform).  This is the only issue of the 3 that has a legitimate work around, in my opinion, because the assets can be cached within the app within a loading manager layer.  All the application code that makes loading calls can stay the same, and a compiler flag can be used to enable this caching for iOS builds, with subsequent requests returning a new instance of the cached asset.  This can potentially lead to a very bloated memory footprint for the running app after a period of time, though, which could make some apps perform poorly, so a bugfix is ultimately needed.
    3. Unimplemented feature (?) - The constraint that a single ApplicationDomain is used when running AIR for iOS 
    I did ask about this in the same forum post as SWF reloading but didn't get an Adobe response.  Why does this constraint exist?  My guess is that the AIR runtime for iOS simply hasn't implemented multiple ApplicationDomain support at this point, and that this was done to focus resources on other high priority features for the iOS runtime.  It's possible that there is some aspect of the iOS operating system that makes it difficult or impossible to implement this feature, which may be why it's been avoided to this point, but obviously this is all conjecture without hearing from Adobe on it.
    This is a major issue that needs to be addressed.  For us, the problem is that our SWFs for multiple instances of the same type of asset use the same name for the AS export.  For example, each item an avatar can equip is a single SWF with multiple sub assets -- the parts which comprise the item.  Each of the parts will have an AS export name based on the avatar facing and where it is equipped, like "fv_head".  This naming is consistent across all items, so we will load a lot of assets containing "fv_head" simultaneously.  This normally works fine because the default behavior for Flash has always been that each SWF is loaded into a new ApplicationDomain instance, but for iOS a single ApplicationDomain must be used, causing these names to collide.  The last SWF loaded containing a given AS export name overwrites the previous ones of that name.
    The work around for this, and I use that term loosely, is to go through and uniquely name every AS export in every asset where sets of assets with the same export name is used. For us that is hundreds of items with multiple exports.  Maintaining unique naming across all these parts is also a very error prone process, not to mention all the code that manipulates the parts needs to be modified to handle the new naming and make sure it's referring to the now uniquely named assets.
    The expectation here is that all versions of the Flash runtime should handle asset loading in the same way and place each loaded asset into its own ApplicationDomain container as the default behavior.  I'd like an Adobe employee to address my assumption that this is an unimplemented feature of AIR for iOS at this point, and let the community know if a solution for this will be implemented.
    Summary
    All three of these issues in combination are a major roadblock to porting existing Flash games to iOS with AIR.  Issues with one can make it hard to test and try to work around others.  All need to be fixed, but If I could only pick one of these to fix, it would have to be issue 3 -- that lack of proper ApplicationDomain support when loading assets.  This issue is completely inconsistent with standard Flash behavior and creates a major roadblock to ports of existing applications with no viable solution for a workaround.
    I look forward to Adobe's feedback on each of these issues and hopefully fixes that will allow those of us working with AIR for iOS to get our products to market.

    About the 3rd issue being an AoT design limitation, I'm not sure I understand why it's necessary to know during AoT packaging what the domain is that a child will be loaded into to be able to have SWF loading work as on the browser.
    Isn't the ApplicationDomain an internal construct in the AIR runtime that you guys define in order to manage namespaces of loaded SWFs?  To be clear, when I say "runtime" I know that the resulting code isn't being interpreted within the iOS app, but clearly you have a set of AIR libraries that get compiled into the IPA that provides support for all the Flash APIs.  If that's the case, then wouldn't it be possible for the iOS version of the AIR libraries to define a new ApplicationDomain on the fly when code that has been cross-compiled to iOS native code loads a packaged SWF?
    I don't have a clear picture of how ApplicationDomains are managed internal to the runtime of course, but a little more detail would be very helpful.  Thanks.

  • AIR-AP1252-AG-A-K9 with AIR-ANT5135D-R is not working

    Hi,
    Please find below the attachments of my Cisco AP1252AG-A-K9 Configuration with AIR-ANT5135D-R antenna.  I am very near to the access point but i am getting low signal and after some time i am loosing the signal.  How to fix this problem.  Can anyone help me in this issue.
    Thanks,

    Is there any configuration mistake or this antennas not supporting to this access point or what?
    You may want to call it a "configuration" mistake.  Aside from 802.11a (or 5.0 Ghz) inherit or designed limitation of short range it also has one thing "short" and that is the lack of penetration power.
    I have no idea what wisdom management has but I'm sure this is not going to work.
    Your options are the following:
    1.  Move the AP from the ground floor to the 1st Floor;
    2.  Get another AP for the 1st Floor; or
    3.  Enable 802.11b or 2.4 Ghz.

  • Error "Could not resolve s:ViewNavigatorApplication to a component implementation...", after overlaying with AIR SDK 13.0

    Just installed FB 4.7, overlayed with AIR SDK 13.0, started FlexMobileProject and I get this error "Could not resolve <s:ViewNavigatorApplication> to a component implementation...", which I can't get rid of. Tried 3-4 times, error stays.
    I overwrote the Flex sdk 4.6.0 with Air SDK 13.0.
    Is this a bug? Please help.

    Thanks for the reply. I tried changing to the airmobile-config.xml but then I got the same error with a different componenet.
    Error: Could not resolve <r:QContainer> to a component implementation. <r:QContainer id="d">
    Could this related to a missing SWC from my build path do you think?

  • Cannot access class java.nio.ByteBuffer

    Hi All -
    I'm trying to compile a java sample code.
    I keep getting the error described in the subject line
    cannot access class java.nio.ByteBuffer; file java\nio\ByteBuffer.class not found
    I have un-ziped the java sdk 1.4.1 src.zip to a directory under c:\ and added the java\nio directory to the project setting and compile with jdk runtime 1.4.1 and yet get the same error....
    I've tried by redirecting to src.zip and didn't work either....
    I would appreciate your feedbacks and sorry for the lame question, consider it as a newcomer to Java world.
    thanks in advance

    You test it by running the following line....
    java java.nio.ByteBuffer
    If it says "main not found" then your problem has nothing to do with the java install nor the classpath. The code you are trying to compile is wrong.
    If it says class not found then you use this line next....
    java -version
    If this returns nothing then you are not using the Sun VM (you are using the MS one.) If it returns a version below 1.4 then your PATH statement is wrong (and you should uninstall all sun versions then reinstall.) You can fix the MS VM problem by altering the path so the java path is first.
    If it does say 1.4 then you need to uninstall and reinstall because something is messed up.

  • Can we resize swf file created with AIR API in AIR application?

    Hi,
    I created a .swf file with AIR API.
    I want to open and resize it in AIR application. This .swf file taking dimensions as default in which it opens.
    I want to change its width and height.
    Is there any way to change its dimensions?
    Please suggest me the solution.
    thank you

    Loading a Flex WindowedApplication into another is not supported.  However,
    you might be able to access the WindowedApplication and size it.  Sub-Apps
    in AIR should be based on Application, not WindowedApplication.

  • FileStream problem with AIR deployment

    I use FileStream to load local XML file. When I test the desktop application directly from Flex everything is ok but when I install it with AIR, the application work but the file is not loaded. Here is the code I use:
    import flash.filesystem.*;
     var applicationDirectoryPath:File = File.applicationDirectory; 
    var nativePathToApplicationDirectory:String = applicationDirectoryPath.nativePath.toString(); 
    nativePathToApplicationDirectory +=
    "/config_poste_temps.xml"; 
    var file:File = new File(nativePathToApplicationDirectory); 
    var fs:FileStream = new FileStream(); 
    fs.open(file, FileMode.READ);
    var config:XML = XML(fs.readUTFBytes(fs.bytesAvailable)); 
    fs.close();
    plan.text = config.division;
    Regards

    I am having the same problem as simon_lucas although my config is slightly different:
    FlashBuilder 4 with SDK 4.6, Current app is with SDK 2.5.
    Trying to update with SDK 3.2, I double-checked per Horia Olaru that I do use the application updater swc:
             <path-element>D:\Program Files\Adobe\Adobe Flash Builder 4.6\sdks\4.6.0 - Air 3.2\frameworks\libs\air\applicationupdater.swc</path-element>
             <path-element>D:\Program Files\Adobe\Adobe Flash Builder 4.6\sdks\4.6.0 - Air 3.2\frameworks\libs\air\applicationupdater_ui.swc</path-element>
    But I still have the 16815 error.
    If I change the update.xml to be <update xmlns="http://ns.adobe.com/air/framework/update/description/2.5">
    instead of <update xmlns="http://ns.adobe.com/air/framework/update/description/3.2">, I am proposed to download the new app and then I get an error 16824.
    Please HELP!

  • HT204291 I do not have video, audio only with air play on my apple tv using my instant video form my iPad

    I do not have video, audio only with air play on my apple tv using my ipadusing instant video

    It needs to be in iTunes, with home sharing enabled on computer and Apple TV. When computer is on and running iTunes you will be able to access via the Computers icon on Apple TV
    File also needs to be in the correct format
    H.264 video up to 1080p, 30 frames per second, High or Main Profile level 4.0 or lower, Baseline profile level 3.0 or lower with AAC-LC audio up to 160 Kbps per channel, 48kHz, stereo audio in .m4v, .mp4 and .mov file formats
    MPEG-4 video up to 2.5 Mbps, 640 by 480 pixels, 30 frames per second, Simple Profile with AAC-LC audio up to 160 Kbps, 48kHz, stereo audio in .m4v, .mp4 and .mov file formats
    Motion JPEG (M-JPEG) up to 35 Mbps, 1280 by 720 pixels, 30 frames per second, audio in ulaw, PCM stereo audio in .avi file format

  • Embed + compiler define works different with air 3.7+ comparing to 3.5

    Hello.
    I've noticed that new compiler works differently when using construct Embed with conditional compilation (comoiler define option).
    It looks like new compiler always embeds files in output swf even if Embed construct is used in dead code. Here is full example:
    package {
      import flash.display.MovieClip;
      public class Main extends MovieClip {
        CONFIG::FOO {
          [Embed(source="foo.mp3")]
          public static var MusicTrack: Class;
        CONFIG::BAR {
          [Embed(source="bar.mp3")]
          public static var MusicTrack: Class;
    I have 2 files: foo.mp3 (~2MB) and bar.mp3 (~2.3MB). I want to embed only one of them defining CONFIG::FOO as true and CONFIG::BAR as false.
    When I compile it using AIR 3.5 with following command I get (as expected) file with size ~2.0MB:
    /opt/adobe_sdks/flex_sdk_4.6_AIR_3.5/bin/mxmlc -compiler.source-path . -swf-version 14 -define=CONFIG::FOO,true -define=CONFIG::BAR,false -o Main.swf -- Main.as
    /private/tmp/bug/Main.swf (2030814 bytes)
    But when I use newer AIR sdk (I tried with 3.7, 3.8 and 4.0 beta) I'm getting file with size ~4.3MB.
    /opt/adobe_sdks/AIR_4.0/bin/mxmlc -compiler.source-path . -swf-version 14 -define=CONFIG::FOO,true -define=CONFIG::BAR,false -o Main.swf -- Main.as
    4328386 bytes written to /private/tmp/bug/Main.swf in 9,634 seconds
    Is it expected behaviour? Is there any chance that new compiler will work in this case the same as older one?

    Another difference I encountered is that using compiler definition directly in Embed construction doesn't work. Here is example:
    public class Assets {
      [Embed(source=CONFIG::MUSIC_MP3_PATH)]
      public static var MusicTrack: Class;
    Then I pass option to the compiler:
    -define=CONFIG::MUSIC_MP3_PATH,"'sfx/music.mp3'"
    With AIR 3.5 SDK it works fine. With AIR 3.7, 3.8 and 4.0 beta I'm getting file which is smaller in size (by mp3 file size) and when running I get error: TypeError: Error #1007: Instantiation attempted on a non-constructor. (when it tries to create new instance of MusicTrack).

  • PDK 9.0.4 Error: cannot access class oracle.security.jazn.realm.RealmUser

    Dear Forum,
    we are developing portlets for Portal 3.0.9.8. We use the default JPDK version, that comes with the standalone Oracle OC4J 9.0.4 bundled with PDK.
    We want to improve our portlet by check the userid of the portal user. Therefore, we want to use oracle.portal.provider.v2.ProviderUser.getUser().getName()
    in a JSP.
    First - even before the method call - we included
    <%@ page import="oracle.portal.provider.v2.http.ServletProviderUser" %>
    But even this 1 statement gives in JDeveloper 9.0.4 with the libs pdkjava and ptlshare from the OC4J the following error:
    Error: cannot access class oracle.security.jazn.realm.RealmUser; file oracle\security\jazn\realm\RealmUser.class not found
    What is wrong here? What missing library we must include?
    Thank You in advance

    Problem solved. Need to include jazn.jar in project's lib-paths.

  • Cannot access class oracle.sql.BLOB;

    Hi,
    I am trying to save a .tif file into Oracle database. When I run the program in JDeveloper I get the following errors:
    Error(9,19): cannot access class oracle.sql.BLOB; file oracle\sql\BLOB.class not found
    Error(59,29): class BLOB not found in class mypackage1.ImageUpload
    package mypackage1;
    import java.io.File;
    import java.io.FileInputStream;
    import java.io.IOException;
    import java.io.InputStream;
    import java.io.OutputStream;
    import java.sql.*;
    import java.util.Properties;
    import oracle.sql.BLOB;
    Blob imgblob = rs.getBlob(1);
    OutputStream blobos = ((BLOB) imgblob).getBinaryOutputStream();
    ...................Any help is appreciated. Thanks

    What package do I need to include in my classpath for
    this. ThanksWhy don't you inspect your JAR files? Do you have WinZip? Open them with it and find the class.

Maybe you are looking for

  • How to make the common control button for all pages in TABCONTROL​?

    Dear all,            I'm using TABCONTROL for my application. I'm having STOP and SAVE control. I have to show this button to all pages  in TABCONTROL.. How do i make it? Kindly help me?.. Regards, Srinivasan.P Solved! Go to Solution.

  • Error when double clicking any field in Alv grid

    Hi All, I have created a custom container. To that custom container I am displaying an alv grid with all editable fields using oops concept. Hence when I am double clicking on any on the field of the table I am getting a dump " an exception condition

  • How to upgrade my mac os x 10.5.8 to 10.6.8

    i have no idea how to update this computer. can someone please help? i got a new i phone 5 but i cnat link it to itunes till have 10.6.8, but i cant do that till i have 10.6 update which i cant fond.

  • Powerpoint equivalent in Adobe Creative Cloud?

    I am a member of Adobe's Creative Cloud and need their equivalent of Microsoft's Powerpoint. Does this exist, and if so, what is it?

  • 9.3.1 update for Mac announcement messed up

    The security bulletin http://www.adobe.com/support/security/bulletins/apsb10-07.html has identical links for the Mac and Windows downloads.  Both of them links to Windows. Adobe Reader users on Windows can find the appropriate update here: http://www