Debugging SWF from WebKit

I have a SWF that normally runs from a website. However, now
I need to deploy it on a stand alone CD without internet so I'm
essentially building an air app that would host my SWF. Since my
swf uses ExternalInterface extensively, I decided it would be best
to have my air app use webkit to embed the SWF in an html file.
This way, I can use javascript the html to talk to my SWF and my
air app, creating a kind of bridge.
In principal this seems to be working fine. However, I can't
figure out a way to debug my SWF when it's being host this way in
my air app. Does anyone have any ideas on how to get it running in
the debugger? Having a debugger available really saves time when
you encounter stuff that's not working.
Thanks,
Mark

Hi Mark,
When using AIR 1.5 and starting with a HTML AIR app (the root
is a html file) it tries to start the debugger for the html/js
part.
In order to debug the swf that's embedded in html you need
to:
1) use the debug version of the swf
2) have the IDE started in debug mode. You're using Authoring
tool, right?
2) start the application with adl with -nodebug to prevent
starting of the debugger for the AIR HTML app. Instead, the debug
swf will be the one that will connect to debugger.
Hope this helps,
Dragos Georgita

Similar Messages

  • How to debug swf file

    Hi,
    Is there any way to debug the swf file? i am having a swf which is running on different server. i want to debug it from my system. Please let me know if anyone have the solution to debug the swf.
    Thanks
    Thilsen.

    I cannot use firefox since the swf is running in different server.
    that's not correct.
    And integrated with .net application and ruuing in different devices.
    makes no difference.  unless it's an air app or exe, it runs in ff.
    I used to trace but the problem is some times my swf (having multiple scnes) got stuck with unknow reason. Based on the variables which am getting from .net application am navaigating the scnenes.
    trace still can pinpoint the problem.

  • Importing swf from bin-release to Flash Professional..

    Hello,
    I'm trying to take a .swf from the bin-release folder from Flash Builder and import it into Flash Professional CS5 and it doesn't work. Here are the steps I have taken:
    I'm using the following simple code in FlashBulder
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application 
    xmlns:mx="http://www.adobe.com/2006/mxml" width="
    1200" height="450" backgroundColor="
    #cc5500" 
    >
    <mx:Canvas color="#ffffff"backgroundColor="
    #000000"width="
    100%" height="100%" 
    >  
    </mx:Canvas>
    </mx:Application>
    I create a project (Project->Export Release Build)
    I copy the .swf from the bin-release folder to my desktop.
    Finally I open Flash Professional CS5 create a new .fla and try to import the swf using File->Import->Import to Stage but nothing happens.
    I can import other swfs that I have created from Flash Professional successfully.
    Does anyone know what I might be doing wrong?
    Thanks in Advance.

    The solutions is to navigate to the Flex Compiler tab
    (Project>Properties) and add the
    “-use-network=false” argument to the “Additional
    compiler arguments” line.

  • How to call one .SWF from another?

    How do I call one .SWF from another. I built a very beefy
    base .SWF, and want to add music overlay, and an intro slide show
    to the exsting Flash animation, but put it in a second .FLA/.SWF
    file. How do I call one from the other?
    This will be embedded in an HTML file but I assume this is
    superfluous to my question.
    F.Z.

    I think you should open that Another SWF (FLA),
    and add some actionscript..
    For example, you could create a movie clip, and write
    actionscript in the
    first keyframe:
    loadMovie("
    http://www.somewebpage.com/movie.swf",
    this);
    "FredZimmerman" <[email protected]> wrote in
    message
    news:ftnjas$mj5$[email protected]..
    > How do I call one .SWF from another. I built a very
    beefy base .SWF, and
    > want
    > to add music overlay, and an intro slide show to the
    exsting Flash
    > animation,
    > but put it in a second .FLA/.SWF file. How do I call one
    from the other?
    >
    > This will be embedded in an HTML file but I assume this
    is superfluous to
    > my
    > question.
    >
    > F.Z.
    >

  • How to remove plug in ._v1_.swf from safari

    How to remove plug in ._v1_.swf from safari. Can't do it the usual ways.

    Please post the crash report.

  • How to output debug text from script?

    How do you output some debugging text from a script? I'm looking for the equivalent of <c:out> from JSTL. I would like to be able to output the value of a "#{variable}". Thanks.

    Isn't h:outputText sufficient? Furthermore, if you're using JSF 1.2 / JSTL 1.2 with unified EL, then c:out will also work for "JSF EL".

  • How to effectively remove a loaded SWF from the stage?

    I can not figure out a proper coding to remove a loded SWF from the stage.
    Here is my set up.
    I have a layout segmented into labeled section. In the section labeled "products" I have a layout consisting of product images acting as buttons which bring a user to another labeled section "prdctsPopUps"
    In the "prdctsPopUps" section I have placed an instance of LoaderMax placed into an mc container. Placing LoaderMax into an mc container automatically resolved an issue of clearing loaded SWFs from stage when I come back to "products" section.
    I specified the variable in the "products" section with the following set up:
    var sourceVar_ProductsPopUps:String;
    function onClickSumix1PopUp(event:MouseEvent):void {
                        sourceVar_ProductsPopUps="prdcts_popups/sumix1-popup_tl.swf";
                        gotoAndPlay("prdctsPopUps");
    So each button has its own "....swf" URL and they all open fine and I can come back to "products" section without any issues.
    However inside the swf (which loads through LoaderMax which is placed into an mc) there are other buttons which bring a user to labeled section "xyz". Which also functions properly. It opens as it is supposed to be and without any previously loaded "...swf" on the stage.
    At the labeled section "xyz" there is a limited set of buttons repeating from section "products" which has to bring a user back to the same set up in the "prdctsPopUps" labeled section and open a corresponding "...swf" .
    However only the last opened "...swf" will appear in that section. Effectively the one which was originally opened from the "prdctsPopUps" section and not the one which was supposed to be opened from the "xyz" section.
    I can not understand why it would work from one labeled section and not from another. I can not figure out on which section which code/function needed to be placed.
    Here is the set up from a button from the "xyz" section whcih supposed to bring a user to the same "prdctsPopUps" section but to load a different "...swf"
    var sourceVar_ProductsPopUps_fromXYZ:String;
    function onClick_floralytePopUp_fromXYZ(event:MouseEvent) :void {
                        sourceVar_ProductsPopUps_fromXYZ="prdcts_popups/floralyte-popup_tl.swf";
                        gotoAndPlay("prdctsPopUps");
    Here is the code set up for the LoaderMax from the "prdctsPopUps" section:
    var loaderProductPopUps:SWFLoader = new SWFLoader(sourceVar_ProductsPopUps,
                                                                                                        estimatedBytes:5000,
                                                                                                        container:holderMovieClip,
                                                                                                        onProgress:progressHandler,
                                                                                                        onComplete:completeHandler,
                                                                                                        centerRegistration:true,
                                                                                                        alpha:1,
                                                                                                        scaleMode:"none",
                                                                                                        width:540,
                                                                                                        height:730,
                                                                                                        crop:true,
                                                                                                        autoPlay:false
    function progressHandler(event:LoaderEvent):void{
              progressBarPopUp_mc.gradientbarPopUp_mc.scaleX = loaderProductPopUps.progress;
    function completeHandler(event:LoaderEvent):void{
              var loadedImage:ContentDisplay = event.target.content;
              TweenMax.to(progressBarPopUp_mc, 1.5, {alpha:0, scaleX:0.25, scaleY:0.25});
    loaderProductPopUps.load();
    Is there something which needs to be imported, or specific function needs to be specified in a specific labeled section?

    actually, i think you'll need to use something like:
    var loaderProductPopUps:SWFLoader;
    if ((loaderProductPopUps){
    if(loaderProductPopUps.content)){
       loaderProductPopUps.unload();
    loaderProductPopUps= new SWFLoader(sourceVar_ProductsPopUps, //the value of sourceVar_ProductsPopUps allows to load mulitple SWFs from the products page.
                                                                                                         estimatedBytes:5000 ,
                                                                                                         container:holderMov ieClip,// more convinient and easier to manage if to place the LoaderMax into an empty mc (holderMovieClip)
                                                                                                                                                                         // if not will work as well. Then the line container:holderMovieClip, has to be replaced with container:this,
                                                                                                                                                                         // can be any size, can not be scaled as it distorts the content
                                                                                                         onProgress:progress Handler,
                                                                                                         onComplete:complete Handler,
                                                                                                         centerRegistration: true,
                                                                                                         //x:-260, y:-320, //no need for this is if used: centerRegistration:true,
                                                                                                         alpha:1,
                                                                                                         scaleMode:"none",
                                                                                                         //scaleX:0, scaleY:0,
                                                                                                         //vAlign:"top",
                                                                                                         width:540,
                                                                                                         height:730,//scales proportionally but I need to cut off the edges
                                                                                                         crop:true,
                                                                                                         autoPlay:false
    function progressHandler(event:LoaderEvent):void{
              progressBarPopUp_mc.gradientbarPopUp_mc.scaleX = loaderProductPopUps.progress;
    function completeHandler(event:LoaderEvent):void{
              var loadedImage:ContentDisplay = event.target.content;
              //TweenMax.to(loadedImage, 1.5, {alpha:1, scaleX:1, scaleY:1});//only need this line if corresponding values are changed in SWF loader constructor
              TweenMax.to(progressBarPopUp_mc, 1.5, {alpha:0, scaleX:0.25, scaleY:0.25});
    loaderProductPopUps.load();

  • How do I Re enabled the Buttons in MainMovie.swf from a Button within SecondMovie.swf???

    I have the following situation
    MainMove.swf is doing a loadmovie of SecondMovie.swf
    The Button that loads SecondMovie.swf also disables other buttons in MainMovie.swf
    on (release) {
        _root.intro_btn.enabled = false;
        loadMovieNum("SecondMovie.swf", 2);
    How do I Re enabled the Buttons in MainMovie.swf from a Button within SecondMovie.swf???
    Using AS2 is this current project
    Thanks

    lol Sorry bout that I'm brand new here and was looking for the option to remove the post from the other location.

  • How to unload swf from anather swf

    I am calling 3 different swf in to test.swf.
    now i want to unload only 1 swf from test.swf
    can any 1 tell me how it is possible i am trying
    with removeMoviClip() and unloadMovie()
    but its of no use.
    regards
    Justbipin

    Maybe that's not really what you're doing?
    I would guess you rather have
    loadMovieNum("myFiLe.swf",99);
    This would be unloaded with
    unloadMovieNum(99);
    Good luck
    Wolf
    PS Or do you have a container movieClip called "99" to fool
    us all? :-)
    PPS watch your capitalization. If you call a file "myFiLe"
    (and mis-spell it somewhere) it might work on Windows, but not on
    Unix-derivatives. A potential source of "Why did it work when I
    tested it but not when I uploaded it?"

  • Cfpresentation with a swf from captivate 3

    I have a swf file that I created with captivate 3 for some
    user training. I thought it would be a good idea to include it in
    the new cfpresentation tag. When I run it, the cfpresentation tag
    starts and then I see the captivate starting icon comes up and then
    it is a white screen. I can run the swf from the browser and the
    file runs find. I put a cfpresentationslide before this slide and
    that one comes up fine but then it goes to this next slide and I
    again only get a white screen. THe swf file runs about 30-45
    seconds. Am I doing something wrong? Here is the code. I just have
    the basic since I just want to see it run.

    I built a SWF in a program called Articulate and tried to
    include it in a cfpresentation and it had the same result.
    I also included a SWF built in Adobe Flash that included
    sound and the sound does not make it into the cfpresentation.
    I think the <cfpresentation> tag is a good start, but
    it certainly isn't the jaw-dropping, WOW, this changes everything
    tag that I initially thought it was.

  • Need a way to protect SWF from decompilers (as they can extract the SWF from Android's APK)

    I'm working on an Android app that will be used in competitions, so protection from cheating is very important. I've noticed that Flash places the SWF file inside the APK file, which can be extracted as APK is just a ZIP file.
    Is there any way to protect the SWF from decompilers?

    What you mean under 'cheating'? Increase game money or scores? Or stole game?
    You can't protect if above is yes because if you can protect from decompilers - you can't protect from dissassemblers. I wokring on security in flash and I can hack any flash and I know that I'm saying.
    Let me know from what you want protect exactly?

  • Working with a developer of a mobile site and want to export the debug log from android!

    Hi have an HTC incredible and I am working with the developer of and would like to send him the error logs generated. Is there a way to export them to a text file.
    Thanks,
    Matt

    Sorry, there's not an easy way to copy or share the entire error log from Firefox for Android. To copy an individual log entry, you can press-and hold on the text to bring up a menu.
    This add-on has support for exporting various other debugging data from Firefox mobile. We've talked about adding support for the error logs in a future version. If you would like to help add that support, the source code is on GitHub:
    https://addons.mozilla.org/mobile/addon/nightly-tester-tools-for-mobil/

  • Animation SWF from Keynote doesn't work in iWeb???

    Hi,
    I've found some info about create the Animation SWF from keynote ... What i'm trying to do is, Crate a Animation Moving Button and at the Last position ,Visitor might able to click on it and go to my next page of Website...it was work well when i open it with Safari and click on the Button to open the link to the next page...
    But,After published iWeb with HTML Snippet code of SWF player, the animation work but i can't click on the Button that i've create the the next page Link...why?and how s'ld i do it to make it work?
    Thanks and appreciate!!

    So, mean, i purposely use the Animation Button as Hyperlink to link up the next page!
    Do any expert here using Keynote to build the swf flash hyperlink here?might need your helps!!
    Hope to meet up helpful user here...Thanks very much!

  • Debug info from ZAction not visible in log file

    Hi,
    i am trying to see debug info from my Z ActionClass in the log file. Debug messages from the standard actions from crm~avw applicaiton are visible. My ZAction is in the package com.customer and i have maintained this entry in VisualManager\LogManager in property SingleTraceFile_UnrestrictedLcoations. Part of the code is pasted below. Pls help.
    public class ZAction extends BaseAction {
          private static final IsaLocation log = IsaLocation.getInstance(ZAction.class.getName());
             public ZAction()
              public ActionForward doPerform(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response)
                  throws ServletException, IOException
                log.debug("Entered ZAction");

    Hi,
    I had also faced similar issue.
    Try giving this way.
    Give this inside the doperform
         IsaLocation log =IsaLocation.getInstance(com.sap.isa.core.BaseAction.class.getName());
    Hope this helps
    Regards
    Antony

  • Stopping loaded in swf from streaming in when preloaded?

    So! Here's there no way to stop a loaded in .swf from
    streaming in, through the use of the loader, other than having a
    stop action on the first blank keyframe of the loaded in movie
    itself?
    I can always get the video to not show up, but what about
    sound? How can I keep it from being heard, streaming in, during the
    preloading process?
    Thanks in advance.

    Nevermind! Issue sorted out!
    My last question above got me thinking and I found a
    workaround!

Maybe you are looking for

  • How to capture excise in MIGO and refer the same excise invoice to customer

    Hi experts,                I am doing STO manufacturing plant to depot... i am creating STO order where No excises duties are there .Then , i create delivery by processing VL10B and create proforma invoice which is where i maintain all the condition

  • ICloud Drive Folder not showing up in Finder

    Hi, I have a Macbook Air (2013) and I'm running the most up to date BETA Version of OS X Yosemite. I read somewhere that is is essentially the exact same as the newly released Yosemite. My iCloud Drive Folder is NOT showing up in my favorites in Find

  • Why Mac getting much slower internet than PC?

    I'm on ultimate package from Rogers - it was great till 3 weeks ago, I got my 49Mbs download and 2Mbs upload. 2 weeks ago it's dropped to 1/2. After hours on the phone with Rogers they sent technician. After checking all cables and everything else, h

  • Crystal Integration with BW - Without CE

    Hello Would like to know if some was successful in setting-up Crystal Reporting Business content without implementing Crystal Enterprise Server. We want to use Business Content Crystal Templates and run the Crystal Template using Crystal Designer to

  • Installer camera raw sur photoshop c6 64 bits

    Photoshop C6 pour win 64 bits n'accepte pas les fichiers camera raw. Où est l'Upgrade ? Merci