Red screen on the page with the embedded swf file

My application refused:

I am testing your app on the BlackBerry Dev Alpha Device (OS version 10.0.9.1675). When I try to open the sub category of your app, it's only showing a red blank screen appears and does not respond.

It works very well in ripple, but I can't get the Simulator working and I don't have an alpha of dev, so I can't test it myself. The subcategory is just a HTML with a built-in .swf file.

Download the full source code

Any suggestions?

Hello

You have this function in your config.xml file?

Tags: BlackBerry Developers

Similar Questions

  • Communicate with the embedded SWF files

    So if I have several external swf into one big, how can I communicate with each other?

    More specifically,.

    -the swf principal needs to know when the keys were pressed in a shipped, and he needs to tell you all the other included those on this subject.

    -embedded SWFs must intelligently resize and shuffle around each other, while keeping their origins coordinated in the upper corner.

    How can I go about it?

    As long as you mean by "shipped" you load swf files in you main file dynamically, then there is hope for all that you have planned.  If you mean that import you into the library by embedded and plant them in the chronology of the main file, that does not work.

    The other event and the event or Manager is coded in the main SWF.  Are the code loaded SWF to displatch events than the main file of the headphones for.  If simply scream of the loaded swf when they will, not for mutual assistance who hears him... allowing them to compile without dependence on the master file.

    If in the film loaded, which triggers the need to rehabilitate the main file in action would send an event as follows...

    dispatchEvent (new Event ("eventName")); name of the event you want to

    To add the listener in your main swf file, listen for the complete event of load on the Loader.contentLoaderInfo which is used to load the file.  In the complete event handler, add the listener for the event on the loaded swf file.

    function loaderCompleteHandler(e:Event) {}
    MovieClip (e.currentTarget.content) .addEventListener ("eventName", eventHandler);
    }

    function eventHandler(event:Event):void {}
    trace ("load swf triggered event");
    }

  • Flex: PB filters can be used in an embedded SWF file?

    I use the image tag to display an embedded - image filter PB works fine

    But if I replace the image embedded with an embedded SWF - filter PB does not apply

    Filter PB works with an embedded SWF file?

    to change the amount that the filter is running, you set the new value to shader.data.amount.value and then you reapply the shader object:

    Shader.Data.amount.Value = [newvalue];

    Map.filters = [filter];
    See page 31 in my MAX laboratory specifications:
    you might want to try to change the settings and see if that makes the right thing now, I see nothing wrong with the code snippet you posted.
  • Pass the variable to the embeded swf format

    Hello

    I have a flash movie that uses a loader to load another flash animation. How can I pass variables from one film to the other, without using global variables?  For any help or suggestion would be greatly appreceated.

    If you load another as3 swf, you can reference variables using the correct path.  the main scenario for the loaded swf file is the property of content of your charger (cast as a movieclip).

    If you load an as2 swf, you must use localconnection to communicate between the two rulers.

  • control the loaded swf file

    Hi all

    I am loading a swf into another SWF, I want to controll loaded swf such as play and pause the swf. The loaded swf file is an animation file, all animations are kept in a movieclip, then please tell me how I can control the animation.

    In your first assignment, you tell the animation is present in a movieclip.  If this movieclip is in the loaded swf file you will probably need to target this movieclip to tell him to play rather than the SWF itself, as in...

    currentSWF.movieclipName.play ();

    where movieclipName is replaced with the name of the instance of movieclip in the loaded swf file.

  • Resizing of the imported swf files...

    I have a clip I want to import a swf file, the swf file is larger than area of the clip. I tried to use a resize code for the import of images that I found, but it makes the very small swf. Is there a way to control the size of the imported swf file?

    Maybe something like this should work, based on what you say.

    My code was a bit more complicated because my equivalent of the charger clip changed size and shape sometimes and I had to accommodate that.

    There is also an another gotcha with this... it's easier if the content inside your charger clip has its top left corner at 0,0. Otherwise, you must assign target_mc _x and FLF properties in the onLoadInit region where I mentioned also.

    To help understand the target_mc is just a reference to the element of the view inside "loader" that is passed to the listener, onLoadInit function after that the swf file is loaded.

  • How to unload the external .swf file when pass the other section?

    Hello

    The following code provided by Mr. kglad works very well to load an external .swf file on stage. Now, when I click on Contact (button), the file external .swf to disappear completely. How to encode on contact (button) to get by.

    Gallery.addEventListener (MouseEvent.CLICK, GalleryClick);

    function GalleryClick(e:Event):void {}

    If (currentClip! = Gallery_mc) {}

    currentClip.visible = false;

    Gallery_mc. Visible = true;

    currentClip = Gallery_mc ;}

    var loader: Loader = new Loader();

    loader.contentLoaderInfo.addEventListener (Event.COMPLETE, ClipLoaded);

    Loader.Load (new URLRequest ("Gallery.swf"));

    function ClipLoaded(e:Event):void {}

    Gallery_mc. AddChild (Loader);

    Loader.x = 0;

    Loader.y = 120;

    Loader.Width = 1000;

    Loader.Height = 700

    }}

    I tried the following code for Contact_btn unload the Gallery.swf file that launches an error message: 1120: access of undefined property loader.

    Contact.addEventListener (MouseEvent.CLICK, ContactClick);

    function ContactClick(e:Event):void {}

    If (currentClip! = Cotnact_mc) {}

    currentClip.visible = false;

    Cotnact_mc. Visible = true;

    currentClip = Cotnact_mc;

    Gallery_mc.removeChild (loader);}}

    unloadAndStop() is supported by flash player 10 or higher (fp 10 +).

    p.s. Please check the useful/correct, if there is.

  • How the get function is available or not on the loaded swf file

    I have 100 swf file in one of my projects. And there is a common feature in some of the SWFs. All these files are loadded in the file main.swf. Here's my Question, "If have the common function is the swf file that is loaded, int how to trigger this funciton of the main.swf.

    Quite simply,.

                if(movieclip.test){
                    movieclip.test();
                }
    

    ('movieclip' is the loaded SWF file and "test()" is the function)

  • Too late to load the new SWF after unloading the current SWF file

    Hello

    In our application, we use more than 10 sovereign wealth funds. When you cross one SWF to others try to unload currently load SWF and load a new. We were successful to unload the existing SWF, but the problem, takes too long to load SWF again (more than 5 seconds). Please suggest a useful method to overcome this time for best performance.

    get an idea of the following code snippet.

    Thank you


    public void SwitchSWFs (): void

    {

    If (null! = SystemAgent.getInstance () .currentSWFLoader)

    {
    SystemAgent.getInstance ().currentSWFLoader.unload ();
    SystemAgent.getInstance () .currentSWFLoader = null;
    trace ("HomeUI: previous swf unloaded!");
    }
    on the other
    {

    }
    addChild (SystemAgent.getInstance (.swfLoaderSecondSWF));
    SystemAgent.getInstance () .currentSWFLoader = SystemAgent.getInstance () .swfLoaderSecondSWF;

    }


    will call by clicking a button
    public void LoadSecondSWF (): void

    {
    SystemAgent.getInstance (). swfLoaderSecondSWF.load (new URLRequest ("Second.SWF"));
    SwitchSWFs();

    }

    The delay is when you test locally?

    One thing you might try is to load all Chargers present you at the front they are needed so that there is more likely that they are ready to be added to the display list when it is called for.  So instead of having the button trigger loading the SWF, just it call the switchSWFs function.

    Another thing, you could try if you keep it where the Triggers button load the corresponding file to assign an event listener for the charger to detect when it has finished loading and then have this listener event handler function calls the switchSWFs function.  At least this way, the current swf file is not unloaded until a replacement is ready and waiting.

  • How to determine the total number of images in the external .swf file loaded

    I have to be able to load both external .swf files and make them play in order. To do this, I need to know the number of images in the first .swf file so I can check _currentframe against _totalframes to determine when he is finished playing so that I can load another.

    Most of the stuff I see indicate that _totalframes on an external .swf can be determined by loading the .swf in a container clip and then check using a listener in the .onLoadInit. Like this:

    ------------------------------------------------------------------------------------------ ----------------------------

    this.createEmptyMovieClip ("tester_mc", 1);
    var mcListener:Object = new Object();

    mcListener.onLoadInit = {function (target_mc:MovieClip)}
    target_mc.onEnterFrame = function() {}
    If (this ._currentframe > = this ._totalframes) {}
    trace ("total frames =" + this ._totalframes);
    delete this.onEnterFrame;
    } else {}
    trace (target_mc._currentframe + "OF" + target_mc._totalframes);
    }
    }
    }

    var test_mc:MovieClipLoader = new MovieClipLoader();
    test_mc. AddListener (mcListener);
    test_mc.loadClip ("Ad_Group.swf", tester_mc);

    ------------------------------------------------------------------------------------------ -------------------------------------

    Unfortunately, this doesn't seem to work. The trace will always return a total number of frames of 1.

    I guess it's because the container clip has only 1 frame, and the external .swf timeline seems to be ignored.

    I would appreciate any ideas on how to raise the total number of frames of an external .swf file or, Alternatively, put it another way when it's done playing. (Not only the loading, but play until the end.)

    TIA,

    C

    I guess it's because the container clip has only 1 frame, and the external .swf timeline seems to be ignored.

    I wouldn't imagine. My guess is that the main scenario for the external swf file has only 1 frame and the rest of the animation is inside a movieclip in this timeline. You publish this swf? Can you open the FLA and check how many images is open on the main timeline?

    The approach that you have mentioned is about what there is. But he knows check a chronology. If there are many nested movieclips, it may be impossible to understand what timeline you really want to be 'THE' full chronology.

    If you have the FLA, you can have the video call function on the _root timeline which tells the main swf that has completed a movieclip or something like that.

    Also, I have in my head somewhere that I recently saw something that someone made similar to this one, but do not remember... If it appears in my head that I will post.

  • Preloader which modifies the external SWF files every 5 seconds

    Hello

    I made a web banner in flash that loads an external swf and another external swf changes after 5 seconds. The banner have a preloader, but the problem becomes when you load the first time. As sovereign wealth funds are not cached in the cache of the browser and yet, time 5 seconds start counting from the preloader, and when the external swf file, shows only 1 second rest and it is replaced by another. There is a way to 'freeze' the time for each external swf until it loads completely?

    The code that loads SWFs every 5 seconds (this code is placed in a layer of action):

    start of the code:

    var intervalId: number;
    var: number = 0;
    var maxCount:Number = 23;
    var duration: number = 0;
    var banners: Array = new Array)
    "abatrade.swf,"
    "bancobrasil.swf,"
    "caparao.swf,"
    "cedro.swf,"
    "cesama.swf,"
    "copasa.swf,"
    "damatta.swf,"
    "emtel.swf,"
    "engedrain.swf,"
    "extel.swf,"
    "feedback.swf,"
    "iti.swf,"
    "intermedium.swf,"
    "magnesita.swf,"
    "maquenge.swf,"
    "maxxdata.swf,"
    "orteng.swf,"
    "paiva.swf,"
    "paraibuna.swf,"
    "paraopeba.swf,"
    "sabesp.swf,"
    "serpro.swf,"
    "soll.swf,"
    'thawte.swf '.
    );

    function executeCallback(param:String) {}
    var duration: number = 5000;
    loadMovie (banners [count], loadmovie_mc);
    loadmovie_mc._x = 0;
    loadmovie_mc._y = 0;

    clearInterval (intervalId);
    if(Count < maxCount) {}
    Count ++;
    intervalId = setInterval (Thi, "executeCallback", duration, banners [count]);
    }
    else {}
    Count = 0;
    intervalId = setInterval (Thi, "executeCallback", duration, banners [count]);
    }
    }

    If (intervalId! = null) {}
    clearInterval (intervalId);
    }

    intervalId = setInterval (Thi, "executeCallback", duration, banners [count]);

    end of the code
    ----------------------------------------

    And the code to the preloader (this code I place in the movieclip that loads external SWF files):

    start of the code:

    {onClipEvent (enterFrame)}
    var gtT:Number = this.getBytesTotal ();
    var gtL:Number = this.getBytesLoaded ();
    var gtP:Number = int ((gtL/gtT) * 100);
    If (TWG > gtL) {}
    This ._alpha = 0;
    _root. Loader._alpha = 100;
    _root. Loader.bar._width = gtP;
    clearInterval (intervalId);
    } else {}
    This ._alpha = 100;
    _root. Loader._alpha = 0;
    intervalId = setInterval (Thi, "executeCallback", duration, banners [count]);
    delete onEnterFrame;
    }
    }

    end of the code

    Note that I tried to freeze the time using a clearInterval does in the second code, but he simply doesn't work...

    Any ideas? Thank you

    Edson

    Here's the correct code kglad send me. Thank you very much!

  • How can you embeded SWF file in the Web site?

    Hello

    I have a swf file, how I embeded Web site whose code is used.

    Thank you

    Maury

    If you have Flash, then having Flash publish an html page to your file and then copy / paste the code for this file in your html page.  If you do not have Flash, try to use swfobject to embed the swf file in your html page.  Here is a link to get and to explain...

    http://code.Google.com/p/SWFObject/

  • Can I publish documents Indesign to Ipad with the included SWF files?

    Thinking of buying Adobe CC at $50 per month. My immediate desire is to turn my website http://www.VisionSimulations.com in an iPad app. The site is built around the SWF file created in Swish. InDesign can include of these sovereign wealth funds in the documents published to the iPad?   I don't mean with a ton of hard coding, either. 

    Also, I could put a forum on my website. InDesign are something like an iFrame in my document, so that people can see my forum through the app?

    Thank you!

    Roger

    Transferred to DPS forum.

    Lol SWF is completely supported.

    Yes, you can use an overlay of web content to view the site, but before start you on this you should most definitely get acquainted you not only with the DPS, but with Apple requirements for applications submitted to them.

  • 3 with the old SWF files

    My site has multiple SWF files running with AS2. Now, I plan to spend my new AS3 files. My main as2 swf file load other SWFs as2 using load() and places them at different levels.

    This master file can load as3 swf files?

    If I change my main as3 file, it would then be able to load as2 swf files?

    Files must communicate for example disable buttons on the lower level swf files.

    as3 and AS2 files can communicate using the localconnection class.  so, Yes, it's the answer to your question.

  • Load the local swf file with flash

    Dear my friends

    I have a big problem with as3. I have two .swf file: Index.swf - 1 and 2 - page1.swf. Index file has a frame with the following measures:

    var loader_mc:Loader = new Loader();

    addChild (loader_mc) ;// add the loader to the display list
    loader_mc. Load ("d:\\page1.swf"));// loads the file

    I have download the Index file in my site and it can't load page1.swf.

    Please help me.

    Best regards

    For that you must have a web server if you are using Windows you can have IIS or you can choose a free like Apache

    You start the Web server and place the swf file in the wwwroot directory, then you will be able to access using

    http:// page1.swf

Maybe you are looking for