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

Similar Messages

  • 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.

  • Please can anyone help? My brother has given me his old 1st generation iPod and, while I love some of the music on it, some of it is awful!! How do I delete individual songs without having to reset and lose everything?? There must be an easy answer.

    Please can anyone help? My brother has given me his old iPod 1st Gen 30GB. It has loads of music on it that I love and don't want to lose however there is quite a bit of stuff that I really don't want. How can I remove the songs I don't like without having to reset the iPod and lose the songs I do like. I'm sure there's an easy answer but I just can't figure it out!!

    Hi there, there doen't seem to be any option to "select songs and videos" so this hasn't helped I'm afraid. I guess I'll just have to accept the fact that I'm going to have to reset and lose the lot.

  • Problem with image loading in flex (with web dynpro ABAP integration)

    Hi,
    I am working with integration of flex and web dynpro abap. I am facing unusal problem while loading the images. I have the images in the MIME folder of web dynpro application. Since my swf file and all the images that I want to use are in the same folder(MIME), I am accessing them giving just the image name as source for the image in flex.
    By this method I get the images sometimes, but not everytime. So could anyone suggest me alternative method.
    Regards
    Prashant Chauhan
    Edited by: Prashant8809 on Jul 17, 2011 11:56 AM

    Hello Prashant,
    you need to mention the full path as source for the image in flex.
    ex. if your WD application name is Z_TEMP and image file name in mime folder is 'image.jpg' then you need mention the source in flex as
    http://servername:50001/sap/bc/webdynpro/sap/Z_TEMP/image.jpg
    Hope this solves your problem.
    BR, Saravanan

  • Problem in the load, all data skipped

    Hello,I have a problem when I load data, the message (WARNING) is:"Aggregate storage applications ignore update to derived cells. [209774] cells skipped"All my data are skipped, and this is the only message I have, I do not have any errors in my *.err file. Does this mystery can be explain?

    Are you sure you're not trying to load to a non-level 0 member in one of your dimensions? Unlike a block storage database all AS data must be loaded at level 0.Mark Rixonwww.analitica.co.uk

  • Problems with Safari Loading Sites and Photos

    For the past week (Feb. 2015) I've experience problems with Safari loading websites on my 2009 20" iMac desktop. Running version OSX Lion 10.7.3  4 GB.   Intel Duo Core 2.66 GHz
    Mac also will frequently not upload photos at websites like Yahoo News or Facebook.   It does this throughout the day.
    So, I downloaded Chrome, thinking it would be a better browser if Safari is not functioning.  Chrome is just slightly better, and when it won't load a website I get the following error message from Chrome: DNS_PROBE_FINISHED_NO_INTERNET.
    I'm debating taking the Mac to the Apple store for diagnosis or repair today, but if anyone else is experiencing similar problems, could you please offer some solutions as to what is going on.
    Thank you.
    AngieRK

    Non-responsive DNS server or invalid DNS configuration can cause long delay before webpages load - Apple Support
    Unless you have a good reason not to, you should update the OS to version 10.7.5.

  • Problem during hierarchy load from ECC 6.0 to BW

    Hello,
    I encountered a problem during hierarchy loads from ECC to BW:
    I get the following in BW:
    Error when updating Idocs in Source System
    Diagnosis
    Errors have been reported in Source System during IDoc update:
    Once I go into ERP and look at the IDocs I get the following message:
    Idoc Error 26:
    EDI: Syntax error in IDoc (segment cannot be identified)
    Message no. E0078
    Diagnosis
    The segment E1RSSH does not occur at the current level of the basic type (extension ).
    This error can have several reasons:
    The segment E1RSSH is assigned to a group whose header segment does not occur.
    The segment E1RSSH does not exist in the syntax description of the basic type  (extension ).
    The sequence of segments in the group in which the segment appears is incorrect.
    Previous errors ('mandatory' segment or group missing) may be due to this error.
    Procedure
    Please check the IDoc or the syntax description of the basic type  (extension ).
    Can anyone help?

    The most basic setting in a BW system is its connectivity with the R/3 system (which is a basis team activity, but BI consultant can always help).
    Issue: While creating source system, I am getting an error "Segment E1RSSH does not exist".
    Diagnosis
    Segment E1RSSH is in the syntax description, but it does not exist.
    The issue was that some of the entries in the table EDISEGMENT were missing.
    As this a standard table, it is recommended to restore the table from Backup or from another BI system. (Please ask your basis team to do it.)
    Now, the significance of the segments: We all know that we require 3 message types in total to communicate with R/3 system. RSRQST, RSSEND and RSINFO.
    Now each of the message types has some segments which help in communication.
    You can see this segment types in the t-code we30. Just enter the basic idoc type and click on display.
    This error is not a common error, but can be useful if at any stage of implementation or support, the table gets disturbed and you have issues with source system connectivity.
    Thanks
    SM

  • Problem with delta load urgent!!

    Hi,
    I have a problem with delta load
    We have an IP, which loads data from R/3 system daily, its a delta load to the ODS and it updates to the cube with the selection on Company Codes and 0FISCPER
    we are in 3.5 system
    For a couple of company codes A & B, the init was done for the period 07.2010 to 12.2099 and after tht the deltas are loaded from 07.2010 till 12.2099 and there's no pblm with tht
    Now, there was some updation in R/3 system and the data was maintained for the company codes in A& B for the FISCPER 001.2010 to 006.2010, for which init wasnt maintained...
    now how shall we need to load the init in this case? dnt ask me how the postings was done in R/3, but my pblm is purely related to the loading data in BW from R/3, as its very imp for the customer to see the data from 01.2010 to 12.2010 in reports, but the data was only available in reports from 07.2010 onwards
    do i need to create another IP and maintain the init for 01.2010 to 06.2010? so tht this selection will automatically appear in the ODS delta loading infopackage
    pls throw ur inputs ASAP
    thank you

    Hi Prince,
    No need to maintain any Init for this data, It will be enough if you can load the data from jan 2010 to jun 2010 into your Info Cube.
    Follow the below steps:
    1)create full load IP for this data source.
    2) give the selection as A and B company codes and 0FISCPER as 001.2010 to 006.2010
    3) in menu bar, click on scheduler --> select full repair request
    4) In the next screen check the check box and save
    5) Now execute the IP, it will the data with out disturbing your daily delta.
    follow the same procedure to load data till to your Info Cube.
    Please revert if you have any questions
    Regards,
    Venkatesh

  • 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 in data loading through UD Connect.

    Hello All,
    i have problem in data loading...I have created the UD connect source systen and its working properly,then i have created UD Connect InfoSources and DataSources, But when i am trying to create Infopackages then its giving following error..
    "Error occurred in the source system" and "no record found".
    Thanks
    Shivanjali

    Hello Shivanjali,
    Mostly UDC is used for RemoteCube to access data outside of SAP. What is your external system? Make sure that there is data in the source system.
    Please check following links
    [Transferring Data with UD Connect|http://help.sap.com/saphelp_nw04s/helpdata/en/43/e35b3315bb2d57e10000000a422035/frameset.htm]
    [SAP BW Universal Data Integration SAP NW Know-How Call|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/f094ba90-0201-0010-fe81-e015248bc5dd]
    [SAP BW and ETL A Comprehensive Guide|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/11e1b990-0201-0010-bf9a-bf9d0ca791b0]
    Thanks
    Chandran

  • Problems with the load of Deliveries

    Hi experts,
    I am having some problems with the load of Deliveries from R/3 into BW.
    In LIPS table of R/3, there are 41412 records. I delete the setup tables and realize the extraction with the transaction OLI8BW. After that I launch a simulation with RSA3 but only 6765 records are taken into account.
    Apart of that, there is a range of deliveries documents (between 180000000 and 1084000000) that is not be taken into account.
    Has someone have similar problems with the load of deliveries?
    Thanks.

    Matute,
       you can try comparing those missing records with those already extracted. I found in my side that some records with document category of "H"(Returns) don't be extracted by 2lis_12_vcitm.
    Jin Ming

  • Problem with dynamically loading the dropdown list from database

    Please help me,
    i am having a jsp page which contains a form
    with a textfield ,two dropdown list
    and a submit button
    when i select a list from first drop down, second drop down has to
    be loaded from the database dynamically according to the
    selected one in the first drop down.
    i gave onselect event for the first drop down and
    gave this one
    temp=first dropdown selected value
    self.location='currentfile+query='+temp;
    after this current page is reloading, but the already existing
    values in textfield and first selected value in drop down list is
    missing.
    how to solve this problem? and the rest of the problem. i mean
    loading the data into second drop down list.
    plz help me......

    in first <selcet> tag write Onchange and submit to the jsp then the values will return in second select box.

  • I have a problem when I loading application. It shown your payment method was declined due to last payment problem which I've already  paid.

    I have a problem when I loading application.
    It shown your payment method was declined due to last payment problem
    which I've already  paid.

    iTunes Store Support
    http://www.apple.com/emea/support/itunes/contact.html

  • I am having problem to down load adobe 10.1 what should i do

    i am having problem to down load adobe 10.1 what shold i do?

    You can start by telling us a lot more detail about where and how you are trying to download Reader and exactly what happens.

  • Session Stickness problem on weblogic load balancer

    Hello All
    I having trouble related to session stickiness for weblogic load balancing, am using httpclusterservlet on a proxy server that forward requests to 3 managed server that are members of the same cluster.
    I tried to search for a solution to this problem and I found two links that are talking about the same problem but there are still not answered!!.
    Here are the links:
    https://forums.oracle.com/message/11158966#11158966
    https://forums.oracle.com/message/11158964#11158964
    Based on oracle link Using Sessions and Session Persistence, the documentation says under the "HTTP Session Properties" section that there is a change in how the sessions are formatted and this might cause a problem
    for some load balancers (the documentation did not say if weblogic httpclusterservlet is one of them), I tried to do the suggested workaround and I got "java.lang.IllegalStateException: Response already committed" error same as what happens with the user in link https://forums.oracle.com/message/11158966#11158966.
    Does anyone knows how to fix this??, I search for a very long time on this problem and with no luck, please help!

    Hi,
    Can you please give me some more information about your setup ...
    Something like ...
    F5/LB --> Apache or OHS --> WebLogic Cluster..
    If you are using F5/OHS directly to WebLogic cluster you can try enabling the session persistence and this problem should go away..
    If you are using plain Apache or OHS try putting "DynamicServerList" off.
    Let me know something more about setup so that i can contribute to help ..thanks.

Maybe you are looking for

  • Is there a better way to position a flash movie than ap div?

    I'm creating a new website(not yet active) and have a great flash movie for the home page.  I've place it in an ap div and of course it moves to a different position in different browsers. Is there any way I can get it to display correctly, or is the

  • Lightroom won't recognise all my colour management profiles

    I can't get Lightroom to recognise all the colour profiles I have saved in the Library profile file. I have downloaded them from a printing service and Lightroom is only picking up a random 6 out of 13. I am trying to do this in the color management

  • Best battery usage I've had so far...

    I've been through about 5 cycle charges now, and the phone is a lot better. 3g on, push off, location services on, autobrightness at 40% Phone RARELY ever goes to EDGE (less than 1% of the time). It uses nothing buy WIFI and 3G. Usage: 6 hours, 57 mi

  • Making Business Place and Section Code compulsory entry in Posting Invoice

    Hi How do we make Business Place and Section Code Compulsory while posting Invoices for a vendor Regards Sanil Bhandari

  • Design view corrupted?

    I've been working on a few web pages in DW 9 on both my laptop (running mac OS 10.5–leopard) and my workstation (OS 10.4-tiger) I opened up the pages on my laptop after working on them all day on my workstation. Now the design view looks un-designed,