How to see the .AS file that .MXML file is translated to before being compiled to SWF?

I am trying to dynamically load some other Applications in
one Application, use ActionScript but not SWFLoader tag, it looks
like:
<mx:Application>
<mx:Script>
<![CDATA[
private var loader:SWFLoader = new SWFLoader();
private function loadSWF(url:String):void{
var baseURL:String = this.url.substr(0,
this.url.lastIndexOf("/"));
var url = baseURL + "/"+ name;
//even if I did not add any event listener!
loader.load(url);
]]>
</mx:Script>
<mx:Button label="B" click="loadSWF('Top_2.swf');" y="10"
x="58"/>
</mx:Application>
then when me click the button, always occured an error like
this:(even if every method I add try...catch... )
TypeError: Error #1009: Cannot access a property or method of
a null object reference.
at mx.core::UIComponent/
http://www.adobe.com/2006/flex/mx/internal::updateCallbacks()[E:\dev\3.0.x\frameworks\proj ects\framework\src\mx\core\UIComponent.as:5043
at mx.core::UIComponent/set
nestLevel()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\core\UIComponent.as:2522]
at mx.managers::SystemManager/
http://www.adobe.com/2006/flex/mx/internal::addingChild()[E:\dev\3.0.x\frameworks\projects \framework\src\mx\managers\SystemManager.as:1583
at
mx.managers::SystemManager/initializeTopLevelWindow()[E:\dev\3.0.x\frameworks\projects\fr amework\src\mx\managers\SystemManager.as:2481]
at mx.managers::SystemManager/
http://www.adobe.com/2006/flex/mx/internal::docFrameHandler()[E:\dev\3.0.x\frameworks\proj ects\framework\src\mx\managers\SystemManager.as:2330
however, if I use <mx:SWFLoader source="Top_2.swf" />
tag, there is no such problem! So I think it must be I didn't init
SWFLoader correctly!
I hope someone can tell me how to crrect this mistake
directly, but I more wish someone to tell me how to view the .as
file that the .mxml file translated to before being compiled to a
SWF( If there is a such step!)
Thanks!

Maybe the SWFLoader must be one child of one DisplayObject!??
I found when the swfloader is been added to some
DisplayObject in actionScript like below, the problem didn't occure
any more.
swfloader.visible = false;
this.addChild(swfloader); // 'this' is current Application
swfloader.addEventListener(".....", someHandler);
swfloader.load("someurl");
Why? Is this a bug or not?
I am still waiting someone to tell me where a .mxml file can
be translated to a .as file which could be visited!

Similar Messages

  • How to see the ms files attachment in outlook in iphone

    how to see the ms files attachment in outlook in iphone

    I believe JDK6 has the Desktop API which allows you to do this.
    Prior to that you can use the Runtime class. Read the HTML page that is displayed when running the example from this posting:
    http://forum.java.sun.com/thread.jspa?forumID=57&threadID=5123633

  • How to see the hidden files

    Hi,
    anyone provide the command for seeing the hidden files (or) dot files(Ex: .example.txt) in the unix.
    Thanks
    chelladurai

    Or if you want to list only the dot files, you can do "ls -d .*".
    Personally, I like to use "ls -d .* --color" as it then makes a color distinction between files and directories.
    Kurt
    Edited by: user11084799 on Mar 4, 2010 9:11 AM

  • How to see the other files in swing

    hi everybody,
    i hope all are fine.
    now i dont know how to see other type of files (like txt,doc...) on new frame in swing. for a example,
    now i'm run my program,thats open a menu window and click file on menubar and also click open menuitem.now i select one file and click open button. so this time that file open in other frame or notepad.
    Advance Thanks !
    RSK

    I believe JDK6 has the Desktop API which allows you to do this.
    Prior to that you can use the Runtime class. Read the HTML page that is displayed when running the example from this posting:
    http://forum.java.sun.com/thread.jspa?forumID=57&threadID=5123633

  • How to see the log file on the Reports Application server?

    Hi,
    I am new to this Reports, please correct me if i am wrong or in the wrong forum, we have a java based front-end application which calls oracle reports to display requested reports. We are using oracle reports (9i/10g). I need work on a report, It is working fine if i provide parameters on the report itself, but if i run from the application it is not running properly. I want to see the parameters the application is sending to this report, is there any way that i can some log file or any other one on the report server?
    thanks,

    Thank you.
    When you fire the processes to the report server you
    can trace the report with the following parameter:
    RWCLIENT.EXE SERVER=my_server
    TRACEFILE=c:\my_trace.trc
    TRACEMODE=TRACE_REPLACE
    TRACEOPTS=TRACE_ALL

  • How to see the whole file names in finder column view?

    Hi guys,
    I like to use finder in column view. However, most of the times, the file names get trunked and I have to redim the column to see the whole names. Other day, without wanting to, I must have pressed some key combination, and the column got redim automatically, so I could read the whole file names. So, my question is if does anybody know how to achieve this?

    I don't know what "redim" means, but if you double-click the column separator, it becomes wide enough for the longest name. If you Option-double-click it, all columns become wide enough for the longest name in each column.

  • How to see the sequential file for which data is uploaded.

    hi experts,
    here iam transferring data to  application server.
    just chk the code once...
    the output is sucess.
    in al11, in temp iam not in aposition to find this data. how to see it.
    open dataset dsn for output in text mode encoding default.
          if sy-subrc <> 0.
              write :/'dataset cannot be open'.
          else.
              loop at it_upload.
              transfer it_upload to dsn.
              endloop.
              if sy-subrc = 0.
              write :/'sucess'.
              endif.
              close dataset dsn.
          endif.

    What is the value of the variable 'dsn' (i.e. the filename?).
    If it uses directories (i.e. something like "/dir/dir/dir/filename"), you shouldn't look at the temp but follow the path that the variable 'dsn' has.
    If there is no path in the filename 'dsn' it usually is defaulted to the temp directory (DIR_TEMP ("/tmp") or often DIR_SAPUSERS "./"). If the filename doesn't show up in either, check your BASIS people.
    Remember though, the filename is CAPS sensitive the the name "filename" and "FILENAME" are seen as <i>two different names</i> and will show up at different places in in the directory (iirc CAPS are first before lowercase).

  • How to see the video file added in iTune in computer to the iPad?

    I want to transfer a video file from my Window based PC to the iPad2.
    PC OS : Windows 8
    iPad 2 OS : iOS 7.0.2
    Video file format : mp4

    Hi Kandaraj,
    you have to transport the KM Content separatly.
    The procedure is documented here:
    http://help.sap.com/saphelp_nw70/helpdata/en/46/7649426fd759dbe10000000a1553f6/frameset.htm
    When you automated the transport with CTS+ it might be possible to synchronize the transport of the PCD-Objects and the KM-Content (I have not tried this myself actually ...)
    Best regards,
    Stefan Brauneis

  • How do I see the specific things that take up space on my mac?

    How do I see the specific things that take up space on my mac? Because I want more specific than what I get if I click on the apple and storage.

    There is also another way to do this using spotlight. Lets say you want to know what is in other. You go to spotlight and type in other,then click show all. It will open a window showing what is other and when clicked on it will ,down at the bottom show the file path for anything in other that you click on.

  • How can I see the stored files in cache?

    How can I see the stored files in cache? I need them!
    Thanks for helping me.

    The History menu lets you revisit the page where you can drag any page element from it.
    How would you sort through thousands (tens of thousands) of files found in a cache?

  • How to see the table in se11 that has been created in oracle 10g directly

    hi,
    how to see the table in se11 that has been created at SQL> prompt in oracle 10g directly ?
    is there any procedure to attache directly created table  into sap ?

    I think you have to create it in SE11 first. Although you can probably use native SQL to access it from an ABAP program.
    Rob

  • I canno't see the menu:file;help;tools;downloads,they dessapear,how to show them back?Also,what's the tastature tab for forward/back and minimizing all pages at once?I am speaking for mozilla latest version under win 7

    I canno't see the menu:file;help;tools;downloads,they dessapear,how to show them back?Also,what's the tastature tab for forward/back and minimizing all pages at once?I am speaking for mozilla latest version under win 7

    I canno't see the menu:file;help;tools;downloads,they dessapear,how to show them back?Also,what's the tastature tab for forward/back and minimizing all pages at once?I am speaking for mozilla latest version under win 7

  • Operating Firefox 3.6.3 on a new net book w/windows8. How to install the .json file that I exported from home machine

    Operating Firefox 3.6.3 on a new net book w/windows8. How to install the .json file that I exported from home machine

    I have the same problem
    Use Bookmarks > Organize Bookmarks -> Import & Backup - Restore = Choose file....
    i have backup of 6 .json files
    when i choose 1st one
    This will replace all of your current bookmarks with the backup. Are you sure?
    then i click on ok
    but there is no chage in my new bookmark
    please help
    thanks in advance

  • How o you gift a particular song in the Apple store FROM and iPad.  I do not see the down arrow that I see when using my IMac .

    How o you gift a particular song in the Apple store FROM and iPad.  I do not see the down arrow that I see when using my IMac .

    Search for shared library is impossible, as far as I know.  Searches supported - are local and internet.

  • HT5035 how can i check or see the remaning balance that i have in my itunes account

    how can i check or see the remaning balance that i have in my itunes account

    On what device/computer?

Maybe you are looking for