Attached MC loses scope

I'm loading an external swf (intro.swf) into my main movie
(test.swf). Strange enough the loaded movie seems to live in it's
own universe. It doesn't see any vers in the main movie.
Mind you: Only in Flash Lite this problem occurs, in Flahs
player it works fine.
Consider this: Take two fla's:
* test.fla
* intro.fla
In frame one of "test.fla" I have this script:
// SCRIPT TEST.FLA
_global.test = "Where am I?"
var container:MovieClip = createEmptyMovieClip("container",
getNextHighestDepth());
var mcLoader:MovieClipLoader = new MovieClipLoader();
mcLoader.addListener(this);
mcLoader.loadClip("intro.swf", container);
stop();
// END SCRIPT TEST.FLA
In frame one (or any other frame) of "intro.fla" I have this
script:
// SCRIPT INTRO.FLA
trace (_global.test);
stop();
// END SCRIPT INTRO.FLA
It traces 'undefined' when compiled in Flash Lite (2.0, 2.1,
3.0, 3.1), it works fine when compiled in Flash Player version x.
Any Idea's?

i don't think you can use the moviecliploader class in
flashlite, so if you're publishing that file for flashlite, i'm not
even sure why you see any trace statement.
try using loadMovie() and see if your problem
resolves.

Similar Messages

  • WHEN-VALIDATE-ITEM results at a block/form

    Hello friends at www.oracle.com ,
    as we know, WHEN-VALIDATE-ITEM is a trigger used for item validation. But if I use WHEN-VALIDATE-ITEM at a block, or even at a form (since Oracle Forms editor allows me to add a WHEN-VALIDATE-ITEM trigger at a block/form), what's the effect of it? How will WHEN-VALIDATE-ITEM behave in such situation?
    Thanks, and best regards,
    Franklin Gongalves Jr.

    From forms documentation (ever considered to read it?):
    A trigger must be attached to a specific object in the form, either an item, a block, or the form itself. The object to which a trigger is attached defines the scope of the trigger, and so helps Form Builder decide which trigger to fire when the corresponding event occurs. Not all triggers are relevant to all objects. For example a When-Button-Pressed trigger would not be attached to a display item.
    That means, a when-validate-item-trigger at block level fires for ALL items of the block,
    except those ones who have an own when-validate-item-trigger at item level that has the
    property "Execution hierarchy" set to "override".

  • Variable declaration in loop

    check the code:
    for (int i=0; i<10; i++) {
    int tmp = 0;
    i want to know whether the tmp variable would be created each time the loop repeats or just once the first time.
    another simple question. check it;
    Vector vect = new Vector();
    vect = null;
    declaring a variable (a vector actually) and after some lines vect is referenced to null. i want to know whether this line (referencing to null) would help the garbage collector to release the free memeory or not.

    Or am I wrong? I thought that the variable onlygot
    created once in the loop, but that it got assignedto
    a new value each iteration. Why would it getcreated
    each iteration? It's still in scope.I have no idea about compilers, but I'd guess that
    it'll lose scope at the end on an iteration.
    Otherwise, you wouldn't be able to re-declare it. All
    declarations would have to happen before the loop, or
    they'd be repeated. Then again, the compiler simply
    might ignore the re-declaration, recognizing the loop.Now I have to say that I'm on very thin ice. I'm not used to read the output of javap, but I will give it a try:
    class Test {
        public static void main(String[] args) throws Exception {
            for (int i=0; i<10; i++) {
                int tmp = 512;
                System.out.println(tmp);
    }javap -c -l -s -classpath . Test.class gives
    class Test extends java.lang.Object{
    Test();
      Signature: ()V
      Code:
       0:   aload_0
       1:   invokespecial   #1; //Method java/lang/Object."<init>":()V
       4:   return
      LineNumberTable:
       line 1: 0
       line 8: 4
      LocalVariableTable:
       Start  Length  Slot  Name   Signature
       0      5      0    this       LTest;
    public static void main(java.lang.String[]);
       throws java/lang/Exception
      Signature: ([Ljava/lang/String;)V
      Code:
       0:   iconst_0
       1:   istore_1
       2:   iload_1
       3:   bipush  10
       5:   if_icmpge       25
       8:   sipush  512
       11:  istore_2
       12:  getstatic       #2; //Field java/lang/System.out:Ljava/io/PrintStream;
       15:  iload_2
       16:  invokevirtual   #3; //Method java/io/PrintStream.println:(I)V
       19:  iinc    1, 1
       22:  goto    2
       25:  return
      LineNumberTable:
       line 3: 0
       line 4: 8
       line 5: 12
       line 3: 19
       line 7: 25
      LocalVariableTable:
       Start  Length  Slot  Name   Signature
       12      7      2    tmp       I
       2      23      1    i       I
       0      26      0    args       [Ljava/lang/String;
    }Now I'm not really sure of what to look for. But I think the interesting part is the lines that says code 8 and 11. To me it looks like the value 512 is just stored in slot 2 in the LocalVariableTable. Hmm.. that raises a question. Does that indicate that the variable exists all the time?
    /Kaj

  • Trying to understand variables in Edge Animate

    I am writing ALL my code in the document.compositionReady window and have a few questions.
    1. I am trying to understand the use of sym.setVariable() vs using the var keyword. It seems that if I declare
    var myVar = "test" then the variable myVar is available in all my functions further down the code. So when would I use sym.setVariable("myVar","test")?
    2. Since I am writing all my code on document.compositionReady is it possible to edit the code in Dreamweaver. (I like the find and collapse functions in DW). I tried opening the edgeActions.js file and making some edits but they did not seem to always work.
    3. Back to variables. If I define a variable within a function by using the var keyword, it seems to only be available within that function. Is that true? How do I define a variable in a function that is available globally?
    4. Clearly I am mixing javascript, jquery and edgeAnimate API in my code. Is that ok? I am making my animations work but concerned that I am not doing this efficiently/effectively.
    Thanks for any tips, advice, comments.

    Hi, Marlene-
    #2: You should be able to use any editor to edit the edgeActions.js file.
    #1,3: Variables can be declared for local scope (within the function) and attached to various scopes within the composition.  I tend to use variables attached to various symbols to maintain state within that particular scope.  For instance, in the floral sample file, I attached the game score to the game board symbol so that when it was destroyed and recreated, it would reinitialize to 0.
    http://html.adobe.com/edge/animate/showcase.html
    #4: That should be fine.
    Hope that helps answer some of your questions!
    -Elaine

  • Destructor method in Forte...

    Hi all,
    Does anyone know of a "destructor" method in Forte that will be called when
    an object is destroyed?
    Thanks,
    -Deva

    I'd have to agree with Dave Campbell - let Forte house-keep.
    If you can not wait for an object to lose scope and then for the garbage
    collector, I would use the destructive-like methods such as Close(),
    RecycleMemory(), ect. that usually come with the object and/or it's parent
    classes. Forte is very C++ like, except in the object creation/destruction
    arena.
    Kelsey PetrychynSaskTel Technical Analyst
    ITM - Technology Solutions - Distributed Computing
    Tel (306) 777 - 4906, Fax (306) 359 - 0857
    Internet:kelsey.petrychynSasktel.sk.ca
    Quality is not job 1. It is the only job!
    ---------------------- Forwarded by Kelsey Petrychyn/SaskTel/CA on 10/17/2000
    01:04 PM ---------------------------
    "Dave Campbell" <Dave.CampbellCaroSys.com> on 10/17/2000 12:51:33 PM
    Please respond to Dave.CampbellCaroSys.com
    To: forte-userslists.xpedior.com
    cc: (bcc: Kelsey Petrychyn/SaskTel/CA)
    Subject: (forte-users) destructor method in Forte...
    I don't think there is a destructor method that developers can call
    directly.
    garbage collection is done by forte all by itself.
    Although, you can on the Window side call Self.Window.RecycleMemory();
    to expedite this collection of Nil objects and other "finished" objects
    Regards,
    Dave Campbell
    Consultant,
    Caro Systems Inc.
    75 Sherbourne St., Suite 112
    Toronto Ontario M5A 2P9
    WebSite: http://www.carosys.com
    Phone:(416) 628-5675 Or Mailto:Dave.CampbellCaroSys.com
    -----Original Message-----
    From: Sagar, Devasena [mailto:DSagaradvanta.com]
    Sent: October 17, 2000 2:29 PM
    To: forte-userslists.xpedior.com
    Subject: (forte-users) destructor method in Forte...
    Hi all,
    Does anyone know of a "destructor" method in Forte that will be called when
    an object is destroyed?
    Thanks,
    -Deva
    For the archives, go to: http://lists.xpedior.com/forte-users and use
    the login: forte and the password: archive. To unsubscribe, send in a new
    email the word: 'Unsubscribe' to: forte-users-requestlists.xpedior.com
    For the archives, go to: http://lists.xpedior.com/forte-users and use
    the login: forte and the password: archive. To unsubscribe, send in a new
    email the word: 'Unsubscribe' to: forte-users-requestlists.xpedior.com

  • Serious SDK bug GetReferenceArt

    I detected a serious bug with GetReferenceArt:
    1. Get AIUIDREFRef of a path with NewArtUIDREF(art, &uidref);
    2. Access the art OK with GetReferencedArt using uidref stored in step 1
    3. Drag and move art some where, access it again OK with GetReferencedArtusing uidref stored in step 1.
    4. Undo the moved art, access it again with GetReferencedArtusing uidref stored in step 1, now the art handle becomes null, why?
    This has to be a bug! the undo operation looses the uidref and there is no way to get it back, you can no longer access the art no matter what you do.
    Am I confused or am I correct? An uidref is a reference to the art at all times, then why is it becomes invalid after an undo after the art is moved?
    I would be eternally greatfull if someone can solve this problem because I will be in deep trouble if I can't find away even a software patch would be good.

    I think I'm still a bit confused about the different uses of AIUIDRef vs. AIUIDREFRef.
    AIUIDREFRef seems to be an unnecessary extra layer on top AIUIDRef. I have been up until now using AIUIDREFRef for everything, though at this point I can't remember why I arrived at that solution. What is the purpose of using one vs the other?
    And also, is it necessary to release the reference here? Doesn't this get cleaned up automatically when the variable loses scope?
    I'm not clear on the use of AIUIDREFRef either, except for how what you mention and its similar use in dictionary code. That said, I can pretty much guarantee it doesn't clean itself up because its not a class with no destructor; its just a typedef to a struct, so I don't see how it could release itself.
    I have to admit my main use has been in refereing to layers -- I find that's a much safer way to hang on to a layer than its layer handle. Sometimes I get nasty results & crashes when I talk to layers that are deleted, and sitting somewhere in the undo stack. The AIUIDRefs seem pretty safe. That said, for me they're either stored in dictionaries or refer to layers so maybe that's why they work for me. I can say in those two cases I don't see any of this undo problem.

  • Consumer loop very slow, queue size grows. How to speed up my consumer loop? As the array grows the slower it gets.

    LabView version: 2012
    OS: Windows XP SP3
    Hardware: USB NI cDAQ-9174 NI-9221
    Application: Oscilloscope
    I'm relatively new to LabView and I'm currently experiencing some performance issues with my project. I guess it has something to do with the way it's programmed. I'm hoping to get some tips from you guys.
    This is my producer loop. It should be capable of acquiring 100 000 Samples/s. I guess I've done this the right way and can't really be improved. Or am I mistaking?
    This is (part of) my consumer loop. It's too slow, the number of elements in the queue keeps getting bigger. I'm doing two types of calculations on the queue data. One for changing the scalling (a multiplication), one for changing the y-position (a summation). Because each time there are 10 000 samples acquired I have added an extra loop (inner loop). This loop splits the array into x samples when the requested samples are smaller than 10 000 or adds them when the requested samples are bigger than 10 000. This depends on the user input (time/dev).
    For example: when the user request 100 seconds of data to be plotted on a graph we get an array of 10 000 000 x 8. Is this considered big? Enlarging the array to that size is very very slow, the queue builds up rapidly.
    I don't know what really slows it down or how to 'debug' this properly. Transposing the array twice seems avoidable?
    Maybe I'm doing this in an inefficient way? Any thoughts that might help me?
    The VI's are attached.
    Thanks for your input.
    Attachments:
    Scope.zip ‏199 KB

    Thank you for your replies so far!
    LV_Pro,
    I agree it is a bit silly to plot more than 2000 points. I will change this. But even without a graph, the consumer loop seems to be unable to handle the speed.
    tst,
    1. Ok, I will change this
    2. Thank you for pointing this out. I implemented your technique and have some increased performance.
    Still not the speed I would expect from LabView. The system is 'stable' with a sample rate up to 100 Hz, increasing this makes my queue overflow.
    I must be doing something else wrong... Anymore ideas?
    Latest version of program in attachment.
    Attachments:
    Scope 1.zip ‏211 KB

  • Another serious AI SDK bug!

    Yes, I found another one. This time it is the:
    AIAPI AIErr(*  CopyArtToEntry )(AIDictionaryRef dictionary, AIDictKey key, AIArtHandle art)
    AIAPI AIErr(*  CopyEntryToArt )(AIDictionaryRef dictionary, AIDictKey key, short paintOrder, AIArtHandle prep, AIArtHandle *art)
    the art is a placed art. These 2 APIs work only during the working session, it acts crazy when you save the file and reopen it.
    Instead of getting the image of the placed object, you will get its bounding box only. Just letting you know to not wasting much time on this bug.
    There is a work around for it, though, but quite nasty!

    I think I'm still a bit confused about the different uses of AIUIDRef vs. AIUIDREFRef.
    AIUIDREFRef seems to be an unnecessary extra layer on top AIUIDRef. I have been up until now using AIUIDREFRef for everything, though at this point I can't remember why I arrived at that solution. What is the purpose of using one vs the other?
    And also, is it necessary to release the reference here? Doesn't this get cleaned up automatically when the variable loses scope?
    I'm not clear on the use of AIUIDREFRef either, except for how what you mention and its similar use in dictionary code. That said, I can pretty much guarantee it doesn't clean itself up because its not a class with no destructor; its just a typedef to a struct, so I don't see how it could release itself.
    I have to admit my main use has been in refereing to layers -- I find that's a much safer way to hang on to a layer than its layer handle. Sometimes I get nasty results & crashes when I talk to layers that are deleted, and sitting somewhere in the undo stack. The AIUIDRefs seem pretty safe. That said, for me they're either stored in dictionaries or refer to layers so maybe that's why they work for me. I can say in those two cases I don't see any of this undo problem.

  • My daugther' iphone id under my wife's email and now all music and pictures are attached to that id.  Wife now has an ipad and looking at using the existing id for set up? Would like to establish new id for daughter and not lose or share music/photos?

    My daugther' iphone apple id is under my wife's email and now all music and pictures are attached to that id.  My wife now has an ipad and I am looking at using the existing id during set up?   Thus, I would like to establish new apple id for daughter, associated to her email account, however I do not want to lose or share her music/photos, nor share with my wife's id.  Is this possible, or is it best just to establish a new id for my wife, and then change the email address associated with the existing apple id?

    well if you establish a new apple id for your wife that would be best unless you email all of the existing photos to your email and then when you have established a new id then you log into your email on the new id and save all of your pics onto it by pressing on tthe pic for about 5-8 seconds then options will come up and you press the save to my album ..as for the music if you can copy and paste, through computer, the songs then awesome!

  • Out of scope error while attaching the attribute set and the operating unit

    Hi,
    Am getting the out of scope error when am trying to attach the attribute set "/oracle/apps/fnd/attributesets/HrOperatingUnits/OperatingUnitName_Transient"
    and the operating unit lov "/oracle/apps/fnd/multiorg/lov/webui/OperatingUnitsLovRN" from my page in JDeveloper.
    Can anyone help?
    Thanks

    Mostly
    It would just be a warning message you can proceed with it there are no issues.But if its an error please do as mentioned by Reetesh.
    Thanks
    AJ

  • Lightroom loses files on a Network Attached Storage (NAS) drive

    I am using Lightroom 5.7 on a PC in Windows 7 64-bit.
    A couple of weeks ago I installed a Network Attached Storage (NAS) system as I was running out of internal hard disk space.  I set up a logical drive on the NAS for Photos.  In Lightroom, I dragged the photo files over onto the new drive.  The catalogue and backup files remained on the internal hard drive.
    My photos are arranged chronologically, in directories (years) and subdirectories (days, named using the format "2014_12_31").
    Since moving the files to the NAS, Lightroom has been giving me error messages when in the Develop module that it cannot find files.  The previews view fine in the Library module, and the files are still there when I look for them in Windows Explorer.  The errors do not occur within entire directories (years) subdirectories (days) - only some files within individual subdirectories are affected.  And, only files from 2015 seem to have the problem.  And, when I drag the directories back to my internal hard drive (again, within Lightroom), the errors disappear and everything works fine.

    Yes, right clicking on the problem folders and showing in explorer does show the connection is to the correct folder location.
    A couple more points that may be worth mentioning:
    When I was having this problem earlier this week, the missing photos seemed to be spread randomly within different folders and subfolders (folders are year, with subfolders for each day I have photos).  I followed the advice in the document you referenced yesterday, and went back through each main folder (there are about a dozen of them, one for each year plus a few miscellaneous folders) and used the "update folder location" function.  This worked well I thought - except I realized later on that one year (2014) still had the photos missing - but this time, it seems to be all photos within that year folder, not just a few random ones.  There is no "?" on the folder, or "!" on the individual photos, they show fine in preview, but clicking on the develop module every photo has the message "cannot find file".  When I right click on the folder, or individual files to follow the location of the file in explorer, the location is correct - and as far as I can tell the locations and structure is consistent with the folders for all the other years which Lightroom has no problem finding.  That is, I can see nothing "unusual" about the folder for 2014 in the way it sits within my filing structure.
    And here's the kicker - last night I made a copy of the entire 2014 folder that was on the NAS external drive (where Lightroom can't seem to locate the files) back on to my internal drive (this took a couple of hours).  This morning, I forced Lightroom to lose the link to the folder on the network drive by simply changing the name of the folder from within windows explorer, and then the "?" and "!" warnings popped up in Lightroom indicating it could not find the folder and files.  I then used "update folder location" to point Lightroom at the copies that were now on the internal drive, and the problem disappeared (all files were located).
    Finally, I then broke the link to the folder on the internal drive by changing the name of the folder on the internal drive from within explorer, renamed the folder on the NAS drive back to "2014", then opened up Lightroom again (and of course it indicated the files were missing) and used the update feature again to point Lightroom back to the folder on the NAS.  And, again, the missing files errors pop up for every photo within that folder - but no "?" or "!" warnings are shown  (recall these are an exact copy of the files that it had no trouble finding on the internal drive).
    I tried playing various games with Lightroom last night, forcing it to break linkages by renaming folders, etc, and every time when I use the update file location feature it has no trouble reconnecting, whether the folders are on my internal drive or the NAS.  So, this functionality seems to be working within Lightroom and I know how to use and abuse it. BUT, it steadfastly refuses to reconnect with the 2014 folder when it's on the NAS, but has no trouble reconnecting when pointed to an exact copy of the same folder on my internal drive.
    I'm kind of at my wits end here.  There seems to be some sort of bug in Lightroom that makes it lose it's wits when connecting to photos on a NAS drive.  Or, I'm doing something really wrong that isn't obvious......

  • I have a Mac osx 10.8.3 and the magnetic cable no longer attaches to my computer.  Is it possible it can just lose that magnetic attraction?

    I have a mac osx 10.8.3 and the magnetic cable no longer attaches to the computer.  Is it possible for the computer or cable to just lose its magnetic attraction and any suggestions on what to do(or do I need to buy a new cable).
    Thanks

    Buy a new AC adaptor after you verify that the problem isn't the mag-safe connector on your computer. Take it in for service.

  • I currently have the 2 gig data plan for $50, plus a free 1 gig promotional attachment but Verizon is currently offering the 3 gig data plan for $50, but if I upgrade will I lose the free 1 gig promotion I currently have attached to my account?

    I currently have the 2 gig data plan for $50, plus a free 1 gig promotional attachment but Verizon is currently offering the 3 gig data plan for $50, but if I upgrade will I lose the free 1 gig promotion I currently have attached to my account?
    I understand I will still be getting 3 gigs of data for the $50, I would just like to continue to have the free 1 gig promotion I was already getting, if you Verizon was willing to do it before then why can't they continue to do it now?

    Like Ann154 said, changing plans often results in the loss of any promos you may have.  In your case, it makes no difference to the price you will pay - you'll have 3 GB for $50.  Whether you have 1GB free, or a better price on the 3GB plan is a wash.  I'd leave things alone....

  • HT4623 i have pressed start to install updates, but now my iphone 4 will not stay on, screen showing picture of cable & itunes sign when i attach to computer it only ask me to restore to factory setting and i dont want to lose my photos ect, Thanks Angela

    i have pressed start to install updates, but now my iphone 4 will not stay on, screen showing picture of cable & itunes sign when i attach to computer it only ask me to restore to factory setting and i dont want to lose my photos ect,
    Thanks Angela

    Your phone is in recovery mode.  All your data are already gone.

  • Mail.app - Moving email with attachment to a subfolder causes the email to convert to text format and lose the attachment

    I am Lion on Mac Book pro.
    When I move a mail with attachement to a folder, sometimes, it loses its mime-type and becomes a text formatted message. Hence the contents of the attachments are added as text to the mail and I cannot download the attachments then.
    This does not happen always, but almost 3/10 times.
    Thanks.
    Regards,
    Viraj

    What type of mail account is this (POP, IMAP, .Mac)? If IMAP or .Mac, what are your Preferences > Accounts > Mailbox Behaviors > Drafts settings?
    Go to Apple Menu > System Preferences > Network, choose Network Port Configurations from the Show popup menu, and make sure that the configuration used to connect to Internet appears at the top of the list. Turn OFF all the port configurations except the one needed to connect to Internet and see whether that helps — if it doesn’t, turn ON again the ones you want enabled.
    Open Keychain Access > Keychain First Aid and verify/repair the keychain.
    Try also turning OFF the Search For Certificates options in Keychain Access > Preferences if any of them is ON — take a look at the following articles for more information on this particular issue:
    http://www.hawkwings.net/2006/07/18/apple-mail-phones-home-too/
    http://www.macgeekery.com/tips/mailapp_doesnt_phone_homeeither/

Maybe you are looking for

  • IPod PRO

    OK, we all love the iPod, but there are a large number of users that don't think a $3 Digital to Analog converter (that CAN'T be bypassed) is acceptable audio quality in 2008 while the audio on the iPod hard drive is much better if you use Apple loss

  • Is my internal hard drive dead?!? (iMac mid-2007)

    Hi everyone, My aluminum iMac (mid-2007) is behaving strangely recently. I'm suspecting some internal hard drive failure. Here are the symptoms: 1) Difficult wakeups from sleep mode: two times out of three, the spinning beachball appears on each open

  • Why Is the top staff of score not shown?

    Hi and sorry, more wierdness in Logic. No matterr how many times I move this project to a new template something gets screwed. And it was just working perfectly, now i have exported the top staff of the score from an old backup and keep a copy in the

  • CO product..How to allocate the cost

    Hi, Anybody can guide me and thro' some light on how can i allocate the cost to a Co-Product from the main header materials. What is the use of the tab " JOINT PRODUCT " in costing view in the material master,in the same tab  we have something called

  • LR4.3, Import D700 .NEF, settings don't match Nikon Transfer

    Hello, I'm trying to use Lightroom for the first time. I've always used Nikon Transfer / View to import images from the camera and was trying to import my pictures into LR4. I've tried several methods to import: 1). download to computer with Nikon Tr