Problems targeting swf loaded with loadClip()

Hi everyone,
I'm having a really weird problem that I hope someone will be able to help me with. I'm using Actionscript 2.0.
Basically, I have a main .swf, into which I am loading another .swf using loadClip(), on the click of a button. It loads into an empty movie clip on the timeline of the main .swf called container_mc. So far so good, this works.
The problem comes when I am trying to control a movie clip that lives on the timeline of the external .swf. This clip has the instance name test_mc, and I'm trying to control it using the reference _level0.container_mc.test_mc. I have also tried just plain old container_mc.test_mc.
Neither of these work, though when I apply a trace to test_mc with Actionscript on the timeline of the external swf (test_mc.onRelease = function () { trace(this); }), it returns the path _level0.container_mc.test_mc (when clicked on after being loaded into the main movie, obviously).
Can anybody give me any ideas as to what is going wrong here? I've attached a couple of files demonstrating the problem I'm having.
Cheers for any assistance!

Thanks for confirming that I'm not crazy or stupid in thinking that's what the reference should be (honestly, I was starting to imagine that I must be one of the two), however I definitely only have one each of container_mc and test_mc. I've just tested this by changing the instance names (one at a time) - if there was a duplicate instance with the same name, the code would presumably still work, which it doesn't.
Thanks for the suggestion, though.

Similar Messages

  • Problem using SQL Loader with ODI

    Hi,
    I am having problems using SQL Loader with ODI. I am trying to fill an oracle table with data from a txt file. At first I had used "File to SQL" LKM, but due to the size of the source txt file (700MB), I decided to use "File to Oracle (SQLLDR)" LKM.
    The error that appears in myFile.txt.log is: "SQL*Loader-101: Invalid argument for username/password"
    I think that the problem could be in the definition of the data server (Physical architecutre in topology), because I have left blank Host, user and password.
    Is this the problem? What host and user should I use? With "File to SQL" works fine living this blank, but takes to much time.
    Thanks in advance

    I tried to use your code, but I couldn´t make it work (I don´t know Jython). I think the problem could be with the use of quotes
    Here is what I wrote:
    import os
    retVal = os.system(r'sqlldr control=E:\Public\TXTODI\PROFITA2/Profita2Final.txt.ctl log=E:\Public\TXTODI\PROFITA2/Profita2Final.txt.log userid=MYUSER/myPassword @ mySID')
    if retVal == 1 or retVal > 2:
    raise 'SQLLDR failed. Please check the for details '
    And the error message is:
    org.apache.bsf.BSFException: exception from Jython:
    Traceback (innermost last):
    File "<string>", line 5, in ?
    SQLLDR failed. Please check the for details
         at org.apache.bsf.engines.jython.JythonEngine.exec(JythonEngine.java:146)
         at com.sunopsis.dwg.codeinterpretor.k.a(k.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.scripting(SnpSessTaskSql.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.execScriptingOrders(SnpSessTaskSql.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.execScriptingOrders(SnpSessTaskSql.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTaskTrt(SnpSessTaskSql.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSqlC.treatTaskTrt(SnpSessTaskSqlC.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTask(SnpSessTaskSql.java)
         at com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep(SnpSessStep.java)
         at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java)
         at com.sunopsis.dwg.cmd.DwgCommandSession.treatCommand(DwgCommandSession.java)
         at com.sunopsis.dwg.cmd.DwgCommandBase.execute(DwgCommandBase.java)
         at com.sunopsis.dwg.cmd.e.i(e.java)
         at com.sunopsis.dwg.cmd.h.y(h.java)
         at com.sunopsis.dwg.cmd.e.run(e.java)
         at java.lang.Thread.run(Unknown Source)

  • Problem targeting a loaded MC (easy answer?)

    Hi, thanks in advance. I'm lame and can't figure out how to
    target an external swf that I've loaded via AS. I have one main
    swf, and in that swf I'm creating an empty movie clip (called
    'countryClip') and loading an external swf ('usa.swf'). So far, so
    good, the swf loads and it looks great. But when I try to click on
    the loaded swf, I get nothing. My usa.swf ('countryClip.usa'?) is
    just unclickable, and that's my problem. Any ideas why? What am I
    overlooking?
    [begin code]
    _root.createEmptyMovieClip("countryClip", 1);
    countryClip.loadMovie("usa.swf");
    // everything above works great. but then...
    _root.countryClip.onPress = function() {
    // has no effect at all.
    // so I put this into frame 1 of usa.swf
    onClipEvent (enterFrame) {
    trace(this._target);
    // and that showed me this output:
    "/countryClip/usa" (no quotes)
    // which led me to believe that the following
    // should work...
    _root.countryClip.usa.onPress = function() {
    trace("pressed");
    // but it does not work. Why?
    [/end code]

    Hi,
    the loaded swf is accessible via the instance name of the MC
    that loaded it, so _root.countryClip.onPress should work. Now when
    you look at the Flash Help for loadMovie(), you'll find this:
    quote:
    Using event handlers with MovieClip.loadMovie() can be
    unpredictable. If you attach an event handler to a button by using
    on(), or if you create a dynamic handler by using an event handler
    method such as MovieClip.onPress(), and then you call loadMovie(),
    the event handler does not remain after the new content is loaded.
    So this should be the reason it's not working. One solution
    would be checking the loading progress, and assign the event when
    the clip is fully loaded. You can use something like the attached
    code, or use the MovieClipLoader class to load the swf and use it's
    events (e.g. onLoadInit) to assign the onPress event.
    greets,
    blemmo

  • Xcelsius Parent/Child SWF Loader with BICS Connections

    We have several Xcelsius Dashboards that use BICS connections to retrieve data from BW queries that we'd like to combine into one Parent/Child tabbed dashboard. I can't seem to find solid information on if this is possible using a SWF Loader component due to the BICS requirement of being published through BW Portal and not InfoView. Does anyone have any ideas (short of combining them into one huge dashboard due to the volume of data)? Thanks!

    Hi Chris,
    I have been working with SWF loader on the SAP portal using the BICS connection type. It was not supported last time I asked about a year ago. However, it can work if you specify the URL in the SWF loader in this way:
    http://sapwebdisp.vestas.net:8103/bicsremotebex?SWF=XXX&TIMESTMP=1318867468000
    XXX is the name you publish your child dashboard under. Data can be exchanged between the parent and child dashboard by using the custom component "Data sharer" from Inovista which can be downloaded for free:
    http://www.inovista.com
    Besides the fact that this setup is unsupported there are some limitations so from my point of view it should only be applied under the following conditions:
    1. It is not possible to build eveything into a single dashboard.
    2. A solution having several independent dashboards does not make sense.
    An alternative might be the setup described in note 1526291. The way I understand it, it binds the dashboards together in a similar way as on a BO server with flash variables.
    Regards,
    Michael

  • Problem using swf loader

    When i try to run the mxml individually, It run correctly. As soon as i include it in another mxml using SWFLoader , the components stop working properly. It reflects the data sometime while sometime it doesnt. If i press browser refresh button , the components starts working
    again.
    here is the code snippet for the mxml where i load another swf file using swf loader.
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
    xmlns:views="com.views.*" viewSourceURL="srcview/index.html" styleName="AppBack" height="100%" width="100%" initialize="init()" layout="vertical">
    <mx:Style source="assets/css/Main.css" />
         <mx:TabNavigator id="tn" height="100%" width="100%" top="-1" right="0" left="0" paddingTop="0" >
         <mx:Canvas label="Home" paddingTop="0" paddingLeft="0" paddingRight="0" paddingBottom="0">
             <mx:SWFLoader id="loader0" source="AddDeleteAccess.swf" height="100%" width="100%" x="0" y="-15"/>
         </mx:Canvas>
         </mx:TabNavigator>
    </mx:Application>
    The Home.swf contains a conbo box and a datagrid.
    The combo box stops working sometime and after the browser refresh is click it starts working.
    if required i can also paste the code of the file which is being loaded.

    scale your loader so it fits the way you want.  ie, if your loaded swf is 800x600 (with nothing on the back-stage) and you're loading into a 350x375 swf, after loading is complete, use:
    loader.width *= 350/800;
    loader.height *= 375/600;

  • Problem in delta load with Z field

    Hello Experts,
    We have CRM 5.0 system and as per the requirement we have
    added ZFIELD to BUT000 table. This field is added to BUT000 via EEWB – Easy
    Enhancement Workbench. This field is also BW enabled.
    BW enabled means – this field is used / available to BW
    extractor for further analysis.
    We update this ZFIELD with custom program – FM BUPA_CENTRAL_CI_CHANGE.
    When full load is done – data flows to BW correctly, ZFIELD
    values are reflecting correctly. But when we are doing delta load it is not
    working.
    If we use BP t-code delta works perfectly. So issue from BW
    side is ruled out. The FM BUPA_CENTRAL_CI_CHANGE is not triggering the change
    record for this BP. But then I don’t see any other FM / BAPI to use so that
    change record is also created.
    Could you please provide any pointers or any checks to
    overcome this problem?
    Thanks in advance.

    Hi Ashtankar,
    When you are changing the attributes(say ZFIELD) and save the transaction in BP, Is this updating the CHDAT(Change date) in BUT000?
    If the change date is being applied, then Delta shouldnt be a problem - if you are using datasource 0BPARTNER_ATTR.
    In order to check if the delta is being captured or not, you could use TCODE RSA7. Also, this brings the Doubt when you say Full load works while delta doesnt, try Re-initializing the datasource from BW after Datasource replication - because there have been some changes effective in Source system which the BW system/Delta queue might take into consideration.
    Regards,
    Thejas K

  • 9 slice scaling on swf loaded with loadmovie

    If you load a swf into another swf that has a MC on the stage with 9 slice scaling setup, should 9 slice scaling work within that loaded SWF and MC? I've tried it and it doesn't in my case but wanted to be sure that this isn't a bug or limitation?
    Thanks,
    Paul.

    Because realtime non-bitmap rendering is far slower on iPad1 I ended up just bitmapping everything possible. I only draw what's absolutely necessary now. I gave up on 9-slice, there is no way to outline it in any way that's performance friendly on ipad1.
    Chalk it up to a bug.

  • Problem during swf load

    Hello, All.
    We are getting problem while loading our swf in IE6. Loading
    swf results flickering in IE 6. And we have not observed the same
    in IE7/IE8. We tried to change the internet options etc to overcome
    the problem. We are still facing the issue. Could some body point
    out what could be the issue...
    Thanks a lot in advance,
    Prasanna.

    Hi,
    Can you please explain what this flickering is?

  • Problem in Sql Loader With Win2000 Professional

    Hi,
    I am using Win-2000 prof. while loading data with sqlldr I am not comming out from the prompt after inserting all the data in the table.
    c:\>sqlldr system/manager@scs party.ctl silent=ALL --enter
    ^c
    c:\>
    I have to press Ctrl+C to come out from the prompt.
    help me

    he guys no reply for this topic

  • Problem in Sql*loader with specifc characters like "ù,°,€ ...."

    Hello,
    I have problems by loadinf a flat file which contains specific characters.
    These characters multiplies by 2 the size of the zone.
    For example, in chains of 10 characters.
    If the value is :
    ' ABCDEFGHIJ' OK (10)
    ' ABCDEFGHI° ' NOK (9 + 1*2) 11 > 10
    ' Aù°?° ' OK (2*5)
    ' A°°°°° ' NOK (1 + 5*2) 11 > 10
    For your information :
    PARAMETER     Base     Instance     Session
    NLS_CALENDAR     GREGORIAN          GREGORIAN
    NLS_CHARACTERSET     AL32UTF8          
    NLS_COMP     BINARY          BINARY
    NLS_CURRENCY     $          F
    NLS_DATE_FORMAT     DD-MON-RR          MM/DD/YYYY HH24:MI:SS
    NLS_DATE_LANGUAGE     AMERICAN          FRENCH
    NLS_DUAL_CURRENCY     $          €
    NLS_ISO_CURRENCY     AMERICA          FRANCE
    NLS_LANGUAGE     AMERICAN     AMERICAN     FRENCH
    NLS_LENGTH_SEMANTICS     BYTE     BYTE     BYTE
    NLS_NCHAR_CHARACTERSET     AL16UTF16          
    NLS_NCHAR_CONV_EXCP     FALSE     FALSE     FALSE
    NLS_NUMERIC_CHARACTERS     .,          ,.
    NLS_RDBMS_VERSION     9.2.0.4.0          
    NLS_SORT     BINARY          FRENCH
    NLS_TERRITORY     AMERICA     AMERICA     FRANCE
    NLS_TIMESTAMP_FORMAT     DD-MON-RR HH.MI.SSXFF AM          DD/MM/RR HH24:MI:SSXFF
    NLS_TIMESTAMP_TZ_FORMAT     DD-MON-RR HH.MI.SSXFF AM TZR          DD/MM/RR HH24:MI:SSXFF TZR
    NLS_TIME_FORMAT     HH.MI.SSXFF AM          HH24:MI:SSXFF
    NLS_TIME_TZ_FORMAT     HH.MI.SSXFF AM TZR          HH24:MI:SSXFF TZR

    On my PC with these parameters we have no problem:
    NLS_CALENDAR     GREGORIAN          GREGORIAN
    NLS_CHARACTERSET     WE8MSWIN1252          
    NLS_COMP     BINARY          BINARY
    NLS_CURRENCY     $          F
    NLS_DATE_FORMAT     DD-MON-RR          MM/DD/YYYY HH24:MI:SS
    NLS_DATE_LANGUAGE     AMERICAN          FRENCH
    NLS_DUAL_CURRENCY     $          €
    NLS_ISO_CURRENCY     AMERICA          FRANCE
    NLS_LANGUAGE     AMERICAN     AMERICAN     FRENCH
    NLS_LENGTH_SEMANTICS     BYTE     BYTE     BYTE
    NLS_NCHAR_CHARACTERSET     AL16UTF16          
    NLS_NCHAR_CONV_EXCP     FALSE     FALSE     FALSE
    NLS_NUMERIC_CHARACTERS     .,          ,.
    NLS_RDBMS_VERSION     9.2.0.1.0          
    NLS_SORT     BINARY          FRENCH
    NLS_TERRITORY     AMERICA     AMERICA     FRANCE
    NLS_TIMESTAMP_FORMAT     DD-MON-RR HH.MI.SSXFF AM          DD/MM/RR HH24:MI:SSXFF
    NLS_TIMESTAMP_TZ_FORMAT     DD-MON-RR HH.MI.SSXFF AM TZR          DD/MM/RR HH24:MI:SSXFF TZR
    NLS_TIME_FORMAT     HH.MI.SSXFF AM          HH24:MI:SSXFF
    NLS_TIME_TZ_FORMAT     HH.MI.SSXFF AM TZR          HH24:MI:SSXFF TZR
    So, what is the solution ?

  • Problems using SQL*Loader with Oracle SQL Developer

    I have been using TOAD and able to import large (milllions of rows of data) in various file formats into a table in an Oracle database. My company recently decided not to renew any more TOAD licenses and go with Oracle SQL Developer. The Oracle database is on a corporate server and I access the database via Oracle client locally on my machine. Oracle SQL Developer and TOAD are local on my desktop and connected through TNSnames using the Windows XP platform. I have no issues with using SQL*Loader via the import wizard in TOAD to import the data in these large files into an Oracle table and producing a log file. Loading the same files via SQL*Loader in SQL Developer, freezes up my machine and I cannot get it to produce a log file. Please help!

    I am using SQL Developer version 3.0.04. Yes, I have tried it with a smaller file with no success. What is odd is that the log file is not even created. What is created is a .bat file a control file and a .sh file but no log file. The steps that I take:
    1.Right click on the table I want to import to or go to actions
    2. Import Data
    3. Find file to import
    4. Data Preview - All fields entered according to file
    5. Import Method - SQL Loader utility
    6. Column Definitions - Mapped
    7. Options - Directory of files set
    8. Finish
    With the above steps I was not able to import 255 rows of data. No log file was produced so I don't know why it is failing.
    thanks.
    Edited by: user3261987 on Apr 16, 2012 1:23 PM

  • Rendering of SWF Loader child SWFs

    I am using the swf loader with an Xcelsius OpenDoc link (http://<server>:8080/Xcelsius/opendoc/documentDownload?sIDType=CUID&iDocID=<CUID>&sKind=Flash&CELogonToken=<CELogonToken>)  and it works beautifully so long as the parent swf is also opened using and OpenDoc link.  However, if the parent swf is opened via InfoView, the child swf does not render properly (either way too large or too small).  Has anyone else come across this or have any ideas for resolution?
    Regards,
    Alison

    "whomba" <[email protected]> wrote in
    message
    news:glq6j0$b20$[email protected]..
    > Hello all,
    > I have a Flex app that loads in a swf using 'SWFLoader'
    tag. the SWFloader
    > and
    > the swf being loaded in are the same height and width
    (see attached code)
    > Now,
    > the SWF getting loaded in is also 468 X 351 however the
    designers that
    > made it
    > have crazy amount of random Movie Clips EVERYWHERE that
    isn't on the
    > stage. My
    > guess is that the actual height and width of the SWF is
    close to 1000 X
    > 1000.
    > When I load this SWF in to my SWFLoader it scales
    everything down so all
    > of the
    > MovieClips are inside of this SWFLoader rather than just
    the SWF's Stage.
    > Any
    > Suggestions?
    >
    > <mx:SWFLoader id="mainMovieSWF" height="351"
    width="468"
    > source="{mainMovieSrc}" scaleContent="false"/>
    Try wrapping it as a component with the Flex component kit.
    That way you
    get to specify the bounding box.
    HTH;
    Amy

  • Problem with external swf loading

    this is the code I'm using that works
    onClipEvent(load){
    this.loadMovie ("2.swf", "b");}
    Text
    and when I use another swf to load, it won't work anymore.
    Any help would be apreciated

    you can't decrease the total time it takes for you external swfs to load.  you can start those swfs loading in the background (while on frame 1, for example) but you need to be careful to preload only 1 swf at a time and not restart its download if it's already been started.

  • Problem loading .swf embedded with HTML

    Hi All,
    I have embedded .swf file with HTML. It is working fine with
    win xp and win 2003. But not working on win 2000 server.
    I have set the MIME in IIS for .swf.
    Please let me know what setting I should configure.
    Thanks,
    Aung

    does container exit on the timeline that contains your code?
    is master.swf in the same directory with your flash swf and
    html?

  • Problem with loadclip

    the probelm is once game.swf loaded. this button can't be
    clicked any more.
    what is worng?check the code:
    on (release) {
    _root.createEmptyMovieClip("game_mc",
    this.getNextHighestDepth());
    var _mcl:MovieClipLoader = new MovieClipLoader();
    myListener = new Object();
    myListener.onLoadInit = function(target_mc:MovieClip) {
    target_mc._x = -Stage.width/2;
    target_mc._y =-50;
    target_mc._width = 900;
    target_mc._height = 600;
    target_mc._lockroot = true;
    _root.quitgame_mc.onRelease = function() {
    game_mc.unloadMovie(_mcl);
    _mcl.addListener(myListener);
    _mcl.loadClip("game.swf", "game_mc");
    _root.quitgame_mc._visible = true;
    please help:.thanks

    well, not sure really,
    but if the 'quitgame_mc' resides on the root I would put the
    onRelease handler code in that MC and not assign it every time.
    I think I'd go with:
    _root.createEmptyMovieClip('game_mc',
    _root.getNextHighestDepth());
    also I'd target a MC instance name path rather than by string
    value, as in:
    _mcl.loadClip("game.swf",
    _root.game_mc);
    and it seems like the 'quitgame_mc._visible = true' call
    could be in the onLoadInit handler (but that won't effect anything
    significant)

Maybe you are looking for

  • Creative Cloud for Teams Invitation Not Received

    I invited a team member to use Creative Cloud for teams and the Adobe site indicates the invitation was sent but the user never received it.  I deleted that account and used an email I have access to, and I never received it.  How long does it take t

  • Error while starting resin 3.0.14  after installing coherence evaluation

    I am getting the following error... java.lang.SecurityException: The necessary license to perform the operation is not available; a license for "com.tangosol.run.xml.SimpleParser@e3 570c" is required. As I see the license file is in the tangosol.jar,

  • If not live updating when DO smart playlists update?

    I have so, so many smart playlists that I think my iTunes is starting to drag. So I'm starting to uncheck "Live Updating". So when do these playlists update? When I view them? Is there some trigger I don't know about? Is there a way to do a playlist

  • Restore Time Machine to new Macbook?

    A co-workers mom's macbook was stolen but they left the external drive with hopefully backups of photos. Attempted to plug into another machine and the drive is not responding at all. Is there a chance to restore to another machine, or just send the

  • JSP Project

    Dear Fellow Programmer,           My name is Brett, and my company is Daveations. INC. We have started           a new division in our company called Course Creation, and we have           already signed up with a lot of schools and big corporations.