Skip navigation
Currently Being Moderated

Problem: SWFLoader won't load by Array lists?

Apr 25, 2012 5:25 PM

Hey @all People,


I have been found nice tutorial from stackoverflow and i am trying for Flash Builder 4.6 ( Flex 4.6 SDK )

I want create simple 3 swfs in directory /install and /pages and i want try for main flash content -> it does not load - while swfloader gets error = /pages/screen_error.swf.

Look ölike this:


<?xml version="1.0" encoding="utf-8"?>

<s:Application xmlns:fx=""


                                 xmlns:mx="library://" creationComplete="ssbInit()">





                              private var ftp_cckec:Boolean;

                              private var db_check:Boolean;

                              private var admin_check:Boolean;

                              private var lang_check:Boolean;



                               *           Loading from template flash applications


                              private var swf_app:Array = ['install/screen_installer.swf', 'pages/screen_mainpage.swf', 'pages/screen_error.swf'];


                              protected function ssbInit():void


                                        var loader:Loader = new Loader();

                                        loader.contentLoaderInfo.addEventListener(Event.INIT, LoaderReady);

                                        loader.load(new URLRequest(swf_app[0]));


                                        function LoaderReady(event:Event):void


                                                  loader = swfLoader(;



                                                            loader.load(new URLRequest(swf_app[2]));







          <s:SWFLoader id="swfLoader" left="0" top="0" width="100%" height="100%"/>




pages/screen_mainpage.swf = Default page like same content website ( after completed writing process with data base )

pages/screen_error.swf like It couldn't found same currect flash content page... like this Forbidden 404 or anything

install/screen_installer.swf = If the page ( /pages/screen_mainpage.swf doesn't find written data base sql on data base server than screen-installer will be able installing process like phpBB or Wordpress or CMS Installer ( different installation type )...


I have been got error of security or unknown error :/


TypeError: Error #1034: Typumwandlung fehlgeschlagen: _screen_installer_mx_managers_SystemManager@10df2eb9 kann nicht in mx.controls.SWFLoader umgewandelt werden.

          at Function/index/protected:ssbInit/LoaderReady()[C:\Users\Jens\Adobe Flash Builder 4.6\ssb_mainpage\src\index.mxml:28]


How do i fix swfLoader?



I have been tried again and got no-way


How do i find result for Flex 4.6 SDK ?


Are you sure because SWFLoader works only Flex 3.6 or older SDK right?

Just wait, i have been found because same developers have been got nice trick with swfLoader like or any website with flash content pages with swfloader. Why does swfLoader not work for my FLEX 4.6 SDK? Or I must reinstall Flash Builder 4.6?


Do you know becasue swfLoader will switch loading currect external flash content page.


For Example:

Own Website was created / registered than it didn't write completed sql files by PHP Script than Flash Content Page will load source ( /install/screen_installer.swf ) and an admin will write completed your account once installing process ...


On the Website Flash Content Page find - if his data base was written completed on the website than flash content page will load default screen ( source: /pages/screen_mainpage.swf ) and an admin configured ready with his website. than any visitors come his website and sign up ur new account ( member ) - But Member shouldn't see administratived screen of flash content pages.


If you don't understand. Than i can show you like i will example of pictures? Is it okay?




EDIT // ... was edited by: Jens Eckervogt


More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points