External SWF slow on iOS device.

Hi! I would like some advice for loading external SWF on iOS devices because it is very slow, and also sometime when I load external SWF there is always message 'Uncompiled ActionScript' showing. Please tell me how to avoid this msg.

This is not Adobe Air limitations. This also affect on any software. Android don't have such issues.
In your case - you can use external assest but only if you link external files as I said above. Adobe Air during compilation will rip source code from SWF and embed it to the app. Your server files can be used for app. Read this more details http://blogs.adobe.com/airodynamics/2013/03/08/external-hosting-of-secondary-swfs-for-air- apps-on-ios

Similar Messages

  • Wifi gone slow on ios devices connected to AEx

    I have the current gen airport express which is using both 5ghz and 2.4ghz. i have a mbp mid 2010, ipad mini and iphone 5 connected to it. i assume all the three devices are capable of 5ghz networking. my AE connects to my ISP via pppoe.
    i am on a 10 mbps line and i get a full 10 mbps (1.2mBps) on my macbook pro. for some reason iso devices are experiencing a terrible slow down. even the apple tv 3rd gen is experiencing lags. i barely get about 400kbps (50kBps) of speed from the ios devices. this is when there is no active download running on the macbook. i got this app from the mac app store called systempal and it doesn't indicate any activity on the mac.
    to confirm if this has nothing to do with the "speed test" app on the devices, i ran the test from different speed testing apps. all reported same results. and the speed test app on an android device on my network reported full download speed!
    also, when transfering some movie files to my ipad over wifi from my mac via itunes, the speed was terribly slow. it took about 20 minutes to transfer a 900 mb movie to my app via itunes file sharing.
    i have done the usualy troubleshooting like rebooting the devices and the router, resetting the network settings on my devices and resetting the router, etc.
    no go!
    can someone help please?

        Hi JBelcher!
    Thanks for troubleshooting your device with Samsung regarding the hotspot and iOS devices. I see that you mentioned you have no problem with Android or Windows devices, and the only issue is with Apple devices.
    Have you tried the hotspot in different areas with the iOS devices? Please do so and check the speeds in different areas.
    Please also complete a master reset on the Charge and let us know how this works for you. Here's a link on the master reset. http://bit.ly/w21WpW
    Thanks!
    Christina B
    VZW Support
    Follow us on Twitter @VZWSupport

  • What is or isn't possible on iOS?  (Not having Loader, loadBytes(), external swfs, etc)

    My basic question is:  "What are the classes which we should not use for iOS using the packager."
    I have been trying for a few days trying to get a simple Flash app to run on the iPad.  A very simple app (with sound!) with just 2 classes works fine (Performance is a whole other issue.  We will get to that).  But if I try anything else, all I get is a white/black screen on the iPad.  So it would be really nice to know what classes, functions, etc we CANNOT use for the Packager.
    I have fairly simple app (not as simple as 2 classes) which loads some art assets via URLRequest/Loader, puts them on the stage.  Fairly common standard practice in AS3.
    I've read about not able to load an external file using the Packager.  So to fix the situation of loading assets, I have looked into the [embed] tag, which seems to work.  I hope the blogger doesn't mind, but this page is an excellent source on what works and doesn't work with the [embed] tag in it's various flavors:  http://www.richardleggett.co.uk/blog/index.php/2010/03/08/flash_builder_and_flash_pro_asse t_workflows.  For example, AS3 in a swf is stripped out from an external swf using [embed].
    The best way to load an external swf file for iOS seems to be using [embed] with "application/octet-stream" and load the swf through ByteArray (Option #4 in the link above).  This works great on the PC.  HOWEVER, on iPad, it fails.  The [embed] tag works on the iPad with the other ways, so my guess is that loadBytes() does not work.  Is this true Adobe/Flash guys?  Can you confirm this?
    My initial question is "why is this not allowed on iOS?".  If it is because of the fact that it uses a Loader, can it be changed so it's not using a Loader to construct a MovieClip?  I have a ByteArray with the raw swf/MovieClip data.  Why can't I construct a MovieClip from it without going through Loader?
    This loadBytes() failure seems to be the only thing preventing me from using the normal pipeline of Flash development in loading external assets.  If there are other ways people have found, please share!
    Now on to performance.  Adobe, can you post some examples/samples of code which runs at decent performance?  Like a "tech demo" of what is possible using the Packager running on iPad/iPhone.  That would be extremely helpful for everyone.  I have done a lot of the optimizing suggestions on various sites and pages ( and by Adobe http://www.adobe.com/devnet/flash/articles/optimize_content_ios.html), but I am not seeing the 30 fps performance that is MORE than possible on iPhone/iPad.  Displaying and moving around Bitmaps (I don't use any vector graphics) should be blazing fast.  Quake runs on iPad without any problems and that code is 10 years old.  Moore's law dictates that drawing Bitmaps using CPU should be faster than a 3D engine written 10 years ago...  I am trying out the new iOS 4.2 which is supposed to be "significantly" better, but I am still stuck on loadBytes().
    So at this point, I am blocked on loadBytes() and my performance for a simple app which draws a few Bitmaps and MovieClips is terrible.  I am hopeful some people out there have figured out some solution (there are lots of clever people out there) and I will stumble on to something.  But being forced to go native Objective-C seems to be my only option at this point.
    In summary, here are the questions I would like to ask the Adobe/Flash group for some more help/information/advise:
    - Why is Loader not allowed on iOS?  Is it a technical limitation of the hardware/os/Flash?  Will it never be supported?  What is the future of this class on iOS?
    - Why is loadBytes() not allowed on iOS?  I have the raw embedded data in memory.  I don't need to make a remote call so security should not be an issue.  Can I create a MovieClip without using Loader?
    - Why is AS3 stripped from the timeline when a Symbol is retrieved using [embed]?  Maybe this is the same reason loadBytes() fails, but if I could use [embed] and get a copy of the Symbol, that is what I need.  (There are issues with the mx.core.MovieClipLoaderAsset/Asset, but it is better than being blocked by loadBytes())
    - What are some apps you guys have written that we can use to compare PC vs iOS?  Again, a "tech demo" or sample code of what you as experts in Packager for iOS have done which runs at decent framerate (30+fps) would be of tremendous help.  If the Adobe/Flash group hasn't gotten the current Packager for iOS to handle more than 50+ 2D Bitmaps on screen running at 30+fps, that would be good to know.  Please let us know what the experts and owners of your software are capable of getting the most throughput using the Packager.  I'd hate to sound a bit fed up/angry, but I think you are wasting a lot of people's time and energy with a piece of software that, to me, seems like it was a bit early to release.  Flash can do some great things.  If it can do it on iOS, even better.  But PROVE it to us that it's possible, before having your customers run into barriers imposed on us by trial and error.
    Thanks.

    I have hardly ever seen a post here from someone at Adobe, so you may need to be patient.
    Read this article, and get its associated demo files, to see some good performing tech demos:
    http://www.adobe.com/devnet/flash/articles/optimize_content_ios.html
    Back to your main point, loaders are working, what isn't working for you is accessing of things in the library of a successfully loaded swf, that have been set to Export for ActionScript. That means that the swf you have loaded has an ActionScript Class, to represent the library symbol. iOS Flash apps are native ARM code, and don't include the virtual machines that a browser plugin has, and so it's not able to interpret ActionScript. That may be why it would fail.
    Now, I can think of at least a couple of reasons why you might want to have external swfs with elements that you want to reuse in the main swf. One would be if you're intending to make a lot of them, like say if you wanted to have an Asteroids game and the ability to use artwork from a set of different swfs. Another reason might be if you want to skin your interface, by taking specific elements from the loaded swf and using them in the main swf. That way you could have artists preparing those swfs for you, and you just include them in your package, and load the one you want.
    There is a way to do either of those things. The second one can be done by having the item as a named symbol on the stage of the loaded swf. With a to-be-loaded swf named "inner.swf", that has a movieclip on its stage named "mc1", this script in the main swf would load that external swf and use its symbol on the main swf's stage, without having to make the inner swf's symbol use ActionScript:
    var req:URLRequest = new URLRequest("inner.swf");
    var ldr:Loader = new Loader();
    ldr.contentLoaderInfo.addEventListener(Event.COMPLETE,loaded);
    ldr.load(req);
    function loaded(e:Event) {
    var mc:MovieClip = e.target.content as MovieClip;
    var innermc:* = mc.mc1;
    innermc.x = 50;
    innermc.y = 50;
    addChild(innermc);
    For the other case, you can take the item off the stage of the loaded swf and draw it into a bitmapdata, and then make as many bitmaps from that as you like. Here's the above example, only it adds the original movieclip to the main swf stage, and also creates a bitmap that looks the same:
    var req:URLRequest = new URLRequest("inner.swf");
    var ldr:Loader = new Loader();
    ldr.contentLoaderInfo.addEventListener(Event.COMPLETE,loaded);
    ldr.load(req);
    function loaded(e:Event) {
    var mc:MovieClip = e.target.content as MovieClip;
    var innermc:* = mc.mc1;
    innermc.x = 50;
    innermc.y = 50;
    addChild(innermc);
    var bmd:BitmapData = new BitmapData(innermc.width,innermc.height);
    bmd.draw(innermc);
    var bm:Bitmap = new Bitmap(bmd);
    bm.x = 150;
    bm.y = 150;
    addChild(bm);
    So, the thing to learn is that a native ARM code application does not have an ActionScript interpreter in it, and if you need to do something that normally requires interpreting ActionScript, find another way to do it.

  • Spark VideoPlayer issue with streaming in iOS Devices

    Hi,
    I’m working in a mobile application using Flex which needs playing remote videos.
    So, we are having some problems with the streaming of FLV videos in iOS devices. When we play a streaming video on iPhone or iPad, after some time (about 1 minute), the application just crashes and closes.
    We are using:
    - FLV video format;
    - Flex 4.5.1;
    - Flash Media Server 3;
    - Spark VideoPlayer component.
    It doesn’t occur when we are using Android devices neither when we are accessing medias located in our local network (including in iOS devices). The problem occurs only when we are accessing medias located in an external FMS server through iOS devices.
    I would really appreciate if someone could give any help about this problem.
    Thanks,
    Luis Vasquez

    FMLE Settings as follow:
    Video:
    Format H.264
    Frame Rate: 29.97
    Input Size: 320x240
    Bitrate: 200 kbps
    Profile: Main
    Level: 3.0
    Keyframe Frequency: 3 Sec
    Audio:
    Format: AAC
    Channels: Stereo
    Sample Rate: 44100
    Bitrate:56 kbps
    FMS URL: rtmp:server/livepkgr
    Stream: livestream?adbe-live-event=liveevent
    I try to access the web using http://server:8134/index.html and no luck and also try IP address and no luck eather.
    The modules are enable, the one you mention in the link provided (4a).

  • Adobe Air 3.7 External SWF IOS

    im using Air 3.7 to call external swf from server to main swf  , but i got this warning after publishing Air for IOS "ActionScript contained in externally loaded SWF files will be ignored on IOS devices" please what i miss i know that the SDK 3.7 support this features all my extrnal swf contain actionscript 3 ??

    This warning is thrown by CS6 as CS6 was published when AIR iOS didn't have multiple SWFs support. Please ignore it as the feature will work in your app and SWFs will load on your iOS devices with AIR 3.7.
    Thanks,
    Nimisha

  • External Swf on Android Air and IOS Air

    Hello
    Can android AIR and IOS AIR app download and play external SWF with code inside?
    I have created android AIR app(SDK version 4.0) which load external swf with simple movie clip on the scene.
    var loader:Loader=new Loader();
    loader.contentLoaderInfo.addEventListener(Event.COMPLETE, onLoaded);
    loader.load(new URLRequest("2.swf"));
    function onLoaded(e:Event):void
         addChild(loader);
    I have installed this android AIR app on device but i do not see external swf on the scene.
    Thanks in advance

    So for ios as3 code must be like this one.?
    var _urlRequest:URLRequest = new URLRequest("2.swf");
    var _loader:Loader = new Loader();
    var _lc:LoaderContext = new LoaderContext(false, ApplicationDomain.currentDomain, null);
    _loader.load(_urlRequest, _lc);
    addChild(_loader);
    One more question: How exactly  i can add the external swf to the included files?
    Can you give link with information or some sample? Also, does it work on Android Air?
    If you have sample for ios Air or for Andoid Air i will be very appreciative.
    Sorry for my english.

  • [ISSUE] Load external .swf into an AIR for iOS app

    I want to load an external .swf which is included theme objects of the application. The loader class finishes loading but after this when I try to get objects in the swf I get this error.
    Device is iPad v.2 iOS v5.1.
    ReferenceError: Error #1065: Variable MenuHome is not defined.
        at adaptive.controls.thememanager::ApplyTheme/applyStyle()[D:\ConsumerProductInterface\Consu merProductBusiness\src\adaptive\controls\thememanager\ApplyTheme.as:41]
        at adaptive.controls.thememanager::ApplyTheme/apply()[D:\ConsumerProductInterface\ConsumerPr oductBusiness\src\adaptive\controls\thememanager\ApplyTheme.as:54]
        at adaptive.controls.thememanager::ThemeManagerSystem/checkIfAllLoaded()[D:\ConsumerProductI nterface\ConsumerProductBusiness\src\adaptive\controls\thememanager\ThemeManagerSystem.as: 139]
        at adaptive.controls.thememanager::ThemeManagerSystem/backgroundImageLoadHandler()[D:\Consum erProductInterface\ConsumerProductBusiness\src\adaptive\controls\thememanager\ThemeManager System.as:119]
        at adaptive.controls.thememanager::ThemeManagerSystem/backgroundImageLoadHandler()
        at flash.events::EventDispatcher/dispatchEvent()
        at adaptive.controls.thememanager::ThemeManagerImageLoader/loadImageCompleteHandler()[D:\Con sumerProductInterface\ConsumerProductBusiness\src\adaptive\controls\thememanager\ThemeMana gerImageLoader.as:60]
        at adaptive.controls.thememanager::ThemeManagerImageLoader/loadImageCompleteHandler()
        at flash.events::EventDispatcher/dispatchEvent()
        at adaptive.controls.imageloader::ImageLoader/imageCompleteHandler()[D:\ConsumerProductInter face\ConsumerProductControls\src\adaptive\controls\imageloader\ImageLoader.as:32]
        at adaptive.controls.imageloader::ImageLoader/imageCompleteHandler()
    Steps are:
    1- Create a .fla file and one object in it (like below):
    2- In Flash Builder 4.6
    Load the external swf:
                    var swfLoader:Loader = new Loader();
                    var url:URLRequest = new URLRequest("themes/DefaultTheme/DefaultTheme.swf");
                    var loaderContext:LoaderContext = new LoaderContext(false, ApplicationDomain.currentDomain, null);
                    swfLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, completeHandler);
                    swfLoader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, ioErrorHandler);
                    swfLoader.load(url, loaderContext);
            private function completeHandler(event:Event):void
                var evt:LoadThemeSWFEvent = new LoadThemeSWFEvent(LoadThemeSWFEvent.COMPLETE);
                if (AdaptiveHelper.getInstance().platform == PlatformType.DESKTOP)
                    evt.swfLoader = SWFLoader(event.currentTarget);
                else
                    evt.loader = Loader(event.currentTarget.loader)
                dispatchEvent(evt);
              // load is OK
            private function ioErrorHandler(event:IOErrorEvent):void
    After load is complete I tried to get the object from the swf file and use it as a skin class of a button.
    cssSelector.setStyle(property, Class(content.loaderInfo.applicationDomain.getDefinition("MainMenu")));
    I am stuck here. Any ideas what the problem is?
    My Best,
    Suat

    Hi Suat,
    Can you send me a sample application  @[email protected] with which I can reproduce your problem and can look into the issue?
    Thanks,
    Nimisha

  • My iCloud drive is slow to save and share Pages documents with my IOS devices

    My iCloud drive is slow to update and share my Pages documents with IOS devices.  When I save a document to the iCloud drive I get a Cloud symbol in the Name line (behind the document name) and a bar in the Size column (like it's trying to save the document but is unable to do so).  When I see the document in the document list on the Pages app on my IOS device it has a gray line along the bottom and I can't open the document in the Pages app.

    Same for me, too - for the last few days.  Reminiscent of a few weeks back when iTunes and Apple TV ground to a crawl.  Of course Apple system status is green.  After several days it just started working again.  At least with Mac iCloud I have tried to use multiple networks/carriers so now there's no blaming AT&T on this one.
    Called support and got the extended wait time message.  Gave up.
    Love my devices and software, but Apple really has poor cloud support.  They won't even own up to the issues.  If my employer didn't block dropbox, absolutely done deal I'd be off iCloud back with Dropbox.

  • External swf movie loading slow

    Hello,
    I am working on this site and I am doing a video page. I am
    loading video externally by creating an empty movie clip. I then
    assign a video to a button to call the external swf video. This
    works great locally but when I upload it to production it is SUPER
    slow.
    My purpose of loading it externally was to make it load
    faster. The video is 3 minutes long. The external swf file I
    created for the video is 5.2 MB.
    I would appreciate any help you can provide.
    Thanks

    Here are a couple of references that might help:
    http://www.adobe.com/devnet/flash/articles/video_guide_03.html
    http://livedocs.adobe.com/flash/mx2004/main_7_2/wwhelp/wwhimpl/common/html/wwhelp.htm?cont ext=Flash_MX_2004&file=00000338.html
    Using the video as a SWF file means it has to load the entire
    movie before it plays anything. As a FLV file, it starts to play as
    the file is still being loaded. I would recommend trying to use the
    File -> Import -> Import Video and look a Progressive
    Download option. I don't recall off-hand if it's available that
    easily in MX2004, but that's how it works with CS3. If that doesn't
    work, the second link has some code to try.

  • How to make external SWFs garbage collected in Air for iOS?

    My app uses lots of external SWFs( well they are actually included in the app with a folder but they aren't embeded ) and they do not contain any bitmapdata, only vector graphics. The problem I'm having is that they seem to be never garbage collected and System.privateMemory keeps increasing as the app loads more SWFs.
    Since those SWFs only contain vector graphics, I simply nullify all the variables that are holding reference to SWF file and call System.gc().. But it doesn't seem to be working. What would I need to do for the garbage collector to clean the SWFs?
    I'm using Air for iOS 3.5.0.1060 and ActionScript3.0.

    Yes I'm calling System.gc() twice. I tried using loader.unloadAndStop(true) and it seems SWFs are being garbage collected but another problem has surfaced. When repeatedly loading and unloading SWF in a short period, the air garbage collector sometimes fails to work.
    I've tested loading and unloading same SWF 50k times and checked trace.  Occasionally, garbage collector misses to collect garbage like below( swf #45119 is not being garbage collected).
    [UnloadSWF] main.swf/[[DYNAMIC]]/45115
    [UnloadSWF] main.swf/[[DYNAMIC]]/45116
    [UnloadSWF] main.swf/[[DYNAMIC]]/45117
    [UnloadSWF] main.swf/[[DYNAMIC]]/45118
    [UnloadSWF] main.swf/[[DYNAMIC]]/45120
    [UnloadSWF] main.swf/[[DYNAMIC]]/45121

  • If I back up my iOS devices on my iMac in the US, then do a time machine backup to an external HD, will I be able to plug the external HD into a brand new iMac in the UK and restore the new machine as per the old one, and restore my iOS devices?

    If I back up my iOS devices on my iMac in the US, then do a time machine backup to an external HD, will I be able to plug the external HD into a brand new iMac in the UK and restore the new machine as per the old one, and restore my iOS devices?

    Since you don't really have a question, I will give you a very broad information source for the next time you have a Time Machine question.
    Please visit Pondini's Time Machine FAQ for help with all things Time Machine.
    Oh, you cannot use a computer whose only disk drive is the target of a an OS X cloning operation regardless of what software is used for the clone. You can, however, use the source drive except if you try to clone using Disk Utility.

  • Loading external swf fonts created with fontswf, loaded with a Loader, compatible with iOS

    Let me immediately start out by saying that I do in fact have a current working solution for using embedded fonts, generated by fontswf and working in an AIR ActionScript mobile application, and also currently working fine with iOS.
    My current app needs CFF fonts, so I currently use the fontswf tool to pre-generate the .swfs using:
    fontswf -4 -a [SomeAlias] -o [SomeFont.swf] [SomeFont.ttf]
    and then I am currently embedding them in my app source code .as for compilation using:
    [Embed(source="/swf/SomeFont.swf", symbol="SomeAlias")]
    public static var SomeFontClass:Class;
    I then have no problem registering them using Font.registerFont(SomeFontClass) and everything works fine.
    However, I would prefer to take the use of these swf fonts one step further and load them dynamically using a Loader so that I do not have to take the hit of having multiple CFF font swfs embedded in the main compiled SWF and so that I could even load an unknown future set of fonts without having to supply them as part of the app build.
    Now I have seen and read many blogs and tutorials where people have exported font swf from Flash Builder where you add an explicit 'Class' name or even made standalone .as static files compiled into standalone swfs only including the two lines:
    [Embed(source="/swf/SomeFont.swf", symbol="SomeAlias")]
    public static var SomeFontClass:Class;
    so that you also have a 'Class' involved. Then people use some form of appropriate applicationDomain.getDefinition("className") as Class
    to pull out the class for the font registration.
    My question is, how does one perform the same font loading and registration of fonts using a Loader only loading the .swfs produced directly from fontswf?
    It seems only a DefineFont4 is tagged in the swf, there doesn't seem to be a 'Class' per se to call on.
    More importantly, iOS apps cannot load external swfs with code in them, so my understanding is any extra wrapped swf that would contain a custom Class technique would fail the iOS requirement of only having one main SWF with any ActionScript compiled code.
    Is there an alternative to the 'Class' technique by grabbing the DefineFont4 tagged resource from the swf and instantiating a proper working Font class from that? One that would still be compatible with the restrictions placed on AIR mobile apps running on iOS?

    Ironically, just after posting this, Adobe released AIR 3.5 beta onto labs, and added multiple SWF support for iOS.
    While this new support makes it easier to manage your content across multiple SWFs and technically allows you to use the class based separate .swfs for each font if desired, the system still requires that all these SWFs be present at compile time when making the final app .ipa for iOS.
    So this still doesn't solve trying to load fonts after the app is already built. For example, as part of a downloaded in-app purchase mechanism.

  • Very slow music download with iTunes match on iOS devices

    For some time now I experience very slow performance downloading music with iTunes match on my iOS devices.
    Downloading music takes ages now. Not so long ago download music with iTunes match was as fast as buying music from the iTunes Store.
    I tried to restore my iPhone but nothing changed.
    The download itself is quite fast but after that the blue progress bar is full and the statut is "en cours" (french) something like busy/ongoing in english . The other tracks have a status wating;
    Any idea how to solve the issue?
    Thanks

    Same here. It seems to be better when the device has been set up from scratch. A delete and restore does not the trick. So I learned to live with it

  • Slow speeds on iOS devices but not on Macbook Air

    Have 2 iPads in the house together with 2 iPhones - 1 iPhone still has iOS 6 as a comparison - all the other devices have iOS 7.
    Problem is download speeds for all these devices. whilst I get 10-12 mbps on Macbook Air over Wi-Fi, all of the above devices only achieve 3--5mpbs.
    Have tried renaming SSID, rebooting router etc but no improvement.
    There is no difference between any of the iOS devices in terms of spec. etc.
    This has only happened in the last couple of months. I have a speedtest result from the start of October which shows 10+ mbps on iPad, so there was no problem back then.
    Any thoughts gratefully received

    Thanks Texas
    I had seen these posts and don't have WMM or QoS on my modem. Have tried making the changes to G and N but this doesn't make much difference.
    I was on another wifi network today with the iphone and there was no problem on that, so I know it's something to do with my set up
    FI
    Netgear modem
    Airport Extreme dealing with wi-fi
    Wired cat 5 throughout house
    Thanks

  • Load and unload the external swf file using AS3(for window, IOS and android)

    For the external swf file loading, I use this code
    load2.addEventListener(MouseEvent.MOUSE_DOWN, newvid);
    function newvid(event:MouseEvent) {
              trace("you clicked me");
              var loadit = new Loader();
              addChild(loadit);
        var _lc:LoaderContext = new LoaderContext(false, ApplicationDomain.currentDomain, null);
        loadit.load(new URLRequest("scene02.swf"), _lc);
    its working great but I don’t know how to unload the loaded swf files (looking: unload one by one and unload all)
    in AS2 we have
    on (release) {
              loadMovieNum("scene2.swf", 1);
              unloadMovieNum(2);
              unloadMovieNum(3);
    but i need in AS3

    Now I use this code and this time I got these compiler errors
    package {
                    import flash.display.SimpleButton;
                    import flash.display.MovieClip;
                    import flash.events.MouseEvent;
                    //import flash.display.URLRequest;
                    //import flash.display.Loader;
                    import flash.events.Event;
                    import flash.system.ApplicationDomain;
                    import flash.net.URLRequest;
                    import flash.system.LoaderContext;            
                                    public class load1 extends SimpleButton {
                                                    var loadit:Loader;              
                                                    public function load1() {
                                                                    this.addEventListener(MouseEvent.MOUSE_DOWN, loadfile);
                                                    private function loadfile(event:MouseEvent):void {
                                                                    trace("you clicked me");
                                                                    loadit = new Loader();
                                                                    this.parent.addChild(loadit);
                                                                    var _lc:LoaderContext = new LoaderContext(false, ApplicationDomain.currentDomain, null);
                                                                    loadit.load(new URLRequest("s01.swf"), _lc);
                                                    private function unloadfile(event:MouseEvent):void {
                                                                    loadit.unloadAndStop();

Maybe you are looking for

  • How to track iPhone3GS without app

    I recently lost my iPhone 3GS yesterday on my way home from school. It doesn't have the mobile me app or icloud or any of that. Is there anyway I could find it still?

  • Import Declaration wrt to Returns Delivery ( Customer Returns)

    Hello, I need some help with regard to Import declaration in case of 'Returns delivery' Business wants to create Import declaration before GR (US as receiving country). I tried with different document type assignment both in ECC and GTS but not able

  • Osql.exe as a standalone utility?

    I have an installer which installs the application files and creates a sql server database by running a .sql file with the osql.exe utility.This approach works fine if the installer in running in a machine which has sql server/express 2008 installed.

  • Cannot change profit center in profit segment

    i have a problem while changing profit center in profit segment via t-code VA42. system is not allowed changing them after the contract item was billed. by checking characteristic derivation rules in t-code KEDR. system issue message "This derivation

  • Itunes want to upgrade songs that have been deleted.

    Itunes is offerning me the option to upgrade songs to iTunes Pluss. However some of these songs were deleted a long time ago. How do I remove any reference to previously purchased but now deleted songs Thanks Antony