Problem with volume handle and external SWF

Hello I'm having 2 problems.
The first is that when loading an external swf in my main SWF I get this in the output window:
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at audio_fla::list_1/frame1()
at flash.display::Sprite/constructChildren()
at flash.display::Sprite()
at flash.display::MovieClip()
at audio_fla::MainTimeline()
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at audio_fla::MainTimeline/frame1()
But it still works. Its an mp3 player.
The other problem is that the loaded SWF has a volume controller. When I test the external SWF by itself it works fine. When I load it on my main SWF when I start to drag the handle on my volume slider and MOUSE_UP outside the handle it still keep dragging the handle.
The code of my main SWF is:
import caurina.transitions.*;
var _currentCategory:String = "";
var percent:String = "";
var loader = new Loader();
loader.name="videoLoader";
loadermc.visible=false;
cat.addEventListener(MouseEvent.MOUSE_OVER, onOverCat);
cat.addEventListener(MouseEvent.MOUSE_OUT, onOutCat);
cat.addEventListener(MouseEvent.CLICK, onClickCat);
btnback.addEventListener(MouseEvent.MOUSE_OVER, onOverCat);
btnback.addEventListener(MouseEvent.MOUSE_OUT, onOutCat);
btnback.addEventListener(MouseEvent.CLICK, onClickBack);
cat.buttonMode = true;
btnback.buttonMode = false;
btnback.visible = false;
function onOverCat(e:MouseEvent):void{
     Tweener.addTween(e.target, {alpha:.5 , time:.5});
function onOutCat(e:MouseEvent):void{
     Tweener.addTween(e.target, {alpha:.25 , time:.5});
function onClickBack(e:MouseEvent):void{
     loader.unloadAndStop();
     loader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, ioErrorHandler);
     lcontent.visible = false;
     cat.visible = true;
     Tweener.addTween(cat, {alpha:1, time:1});
     btnback.buttonMode = false;
     btnback.visible = false;
     cat.buttonMode = true;
     toptxt.text = "SELECCIONE UNA CATEGORIA"
function onClickCat(e:MouseEvent):void{
     lcontent.visible=true;
     cat.buttonMode = false;
     Tweener.addTween(cat, {alpha:0, time:1, onComplete:function(){
                              cat.visible = false;                                                       
                              btnback.buttonMode = true;
                              btnback.visible = true;
                                   loaderTweenIn(e.target.name);
function loaderTweenIn (c:String):void{
     var category:String = c+".swf";
     trace(category);
     loader.load(new URLRequest(category));
     loader.contentLoaderInfo.addEventListener (Event.COMPLETE, movieLoaded);
        loader.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS, movieProgress);
function ioErrorHandler(e:IOErrorEvent):void{
     trace("ioErrorHanlder: "+e);
function movieLoaded(e:Event):void{
     trace("The movie has loaded");
     lcontent.addChild(loader);
     loadermc.visible=false;
function movieProgress(e:ProgressEvent):void{
     loadermc.visible = true;
//     percent=String(Math.floor(e.bytesLoaded / e.bytesTotal * 100)) + "%";
     trace("The movie is loading "+Math.floor(e.bytesLoaded / e.bytesTotal * 100));
The code on my external SWF is:
import caurina.transitions.*;
volume_mc.slider_mc.buttonMode = true;
var myXML:XML;
var thb:Thbs;
var myThumbs:XMLList;
var totalThumbs:Number;
var thumbHeight:Number=50;
var i:uint = 0;
var preloader:LoaderAnim;
var yCounter:Number = 0;
var container:MovieClip;
var musicReq:URLRequest;
var music:Sound = new Sound();
var sc:SoundChannel;
var currentSound:Sound = music;
var pos:Number;
var songPlaying:Boolean = false;
var songlist:XMLList;
var currentIndex:Number = 0;
mc_sound.mute.visible=false;
var xmlLoader:URLLoader = new URLLoader();
///////////////////////////PLAYLIST//////////////////
function initMediaPlayer(e:Event):void{
     myXML = new XML(xmlLoader.data);     
     myThumbs = myXML.*;
     totalThumbs = myThumbs.length();
     trace("The total thumbs are "+totalThumbs);
     createContainer();
     callThumbs();
xmlLoader.load(new URLRequest("audio.xml"));
function createContainer():void{
     container = new MovieClip();
     list.ch.addChild(container);
     container.y = 0;
     container.x = 0;
     container.buttonMode = true;
function onOver(e:MouseEvent):void{
     var t:Loader = Loader(e.target);
     Tweener.addTween(t, {alpha:.5, time:1});
function onOut(e:MouseEvent):void{     
     var t:Loader = Loader(e.target);
     Tweener.addTween(t, {alpha:1, time:1});
function callThumbs():void{
          var thumbURL = myThumbs[i].@thumb;
          var thumbTitle:String = myThumbs[i].@title;
          var thumbDesc:String = myThumbs[i];
          trace("Loading "+thumbURL);
          trace("Title "+thumbTitle);
          trace("Desc "+thumbDesc);
          var thumbLoader = new Loader();
          thumbLoader.load(new URLRequest(thumbURL));
          thumbLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, thumbLoaded);
          thumbLoader.name=i;
          thumbLoader.x=5;
          thumbLoader.y=5;
          thb = new Thbs();
          container.addChild(thb);
          thb.thb_title.htmlText = thumbTitle;
          thb.thb_desc.autoSize = TextFieldAutoSize.LEFT;
          thb.thb_desc.htmlText = thumbDesc;
          thb.y = (thumbHeight+2)*yCounter;
          preloader = new LoaderAnim();
          preloader.x = thb.x + 20;
          preloader.y = thb.y+ 20;
          container.addChild(preloader);
          yCounter++;
function thumbLoaded(e:Event):void{
     var thbx:Loader = Loader(e.target.loader);
     thb.addChild(thbx);
     thbx.addEventListener(MouseEvent.MOUSE_OVER, onOver);
     thbx.addEventListener(MouseEvent.MOUSE_OUT, onOut);
     container.removeChild(preloader);
     i++;
     if (i<totalThumbs){
          callThumbs();
     if (i==totalThumbs){
          startAudio();
xmlLoader.addEventListener(Event.COMPLETE, initMediaPlayer);
///////////////////////////////////////AUDIO//////////////////////////
function startAudio():void{
     songlist = myXML.*;;//this is the same as myXML.*;
     trace("This is the first song "+songlist[0].@song);
     musicReq = new URLRequest(songlist[0].@song);
     music.load(musicReq);
     sc = music.play();
     sc.addEventListener(Event.SOUND_COMPLETE, nextSong);     
next_btn.addEventListener(MouseEvent.CLICK, nextSong);
prev_btn.addEventListener(MouseEvent.CLICK, prevSong);
pause_btn.addEventListener(MouseEvent.CLICK,pauseSong);
stop_btn.addEventListener(MouseEvent.CLICK,stopSong);
function nextSong(e:Event):void
     if (currentIndex < (songlist.length() - 1))
          currentIndex++;
     else
          currentIndex = 0;
     var nextReq:URLRequest = new URLRequest(songlist[currentIndex].@song);
     var nextTitle:Sound = new Sound(nextReq);
     sc.stop();
     sc = nextTitle.play();
     songPlaying = true;
     currentSound = nextTitle;
     sc.addEventListener(Event.SOUND_COMPLETE, nextSong);
function prevSong(e:Event):void
     if (currentIndex > 0)
          currentIndex--;
     else
          currentIndex = songlist.length() - 1;
     var nextReq:URLRequest = new URLRequest(songlist[currentIndex].@song);
     var prevTitle:Sound = new Sound(nextReq);
     sc.stop();
     sc = prevTitle.play();
     songPlaying = true;
     currentSound = prevTitle;
     sc.addEventListener(Event.SOUND_COMPLETE, nextSong);
function pauseSong(e:Event):void
     pos = sc.position;
     sc.stop();
     songPlaying = false;
     play_btn.addEventListener(MouseEvent.CLICK,playSong);
function playSong(e:Event):void
     if(songPlaying == false)
          sc = currentSound.play(pos);
          sc.addEventListener(Event.SOUND_COMPLETE, nextSong);
          songPlaying = true;
          play_btn.removeEventListener(MouseEvent.CLICK,playSong);
function stopSong(e:Event):void
     sc.stop();
     pos = 0;
     songPlaying = false;
     play_btn.addEventListener(MouseEvent.CLICK,playSong);
///////////////////////////////VOLUME/////////////////////////////
var xOffset:Number;
var xMin:Number = 0;
var xMax:Number = volume_mc.track.width;
volume_mc.slider_mc.addEventListener(MouseEvent.MOUSE_DOWN, sliderDown);
volume_mc.slider_mc.addEventListener(MouseEvent.MOUSE_UP, sliderUp);
stage.addEventListener(MouseEvent.MOUSE_UP, sliderUp);
function sliderDown(e:MouseEvent):void{
     stage.addEventListener(MouseEvent.MOUSE_MOVE, sliderMove);
     xOffset = mouseX - volume_mc.slider_mc.x;
function sliderUp(e:MouseEvent):void{
     stage.removeEventListener(MouseEvent.MOUSE_MOVE, sliderMove);
function sliderMove(e:MouseEvent):void{
     volume_mc.slider_mc.x = mouseX - xOffset;
     if(volume_mc.slider_mc.x<=xMin){
          volume_mc.slider_mc.x = xMin;
     if(volume_mc.slider_mc.x>=xMax){
          volume_mc.slider_mc.x = xMax;
     var vol:Number = volume_mc.slider_mc.x*.01;
     var st:SoundTransform = new SoundTransform(vol,0);
     sc.soundTransform = st;
     trace("The volume is "+vol);
     if(vol==0){
          mc_sound.mute.visible=true;
     }else{
          mc_sound.mute.visible=false;
     e.updateAfterEvent();

I found the solution.

Similar Messages

  • Problem with Web Clipping and External Application

    When I use Web clipping with INLINE rendering on usual sites I can move under links, not leaving a portal.
    But if I try to make it via the self-made provider with External Application then links do not work.
    I press them and it appear in the same place!
    Authorization via External Application passes successfully, that is the page is displayed correctly.
    But links do not work.
    In what there can be a problem?
    Oracle Application Server 10g Release 2 (10.1.2)

    In order to prevent some urls and internal websites from being cached use url bypassing. This way these urls will not be cached and the users can directly use them without being asked to log in.
    To enable transparent error handling and dynamic authentication bypass, and to configure static bypass lists, use the bypass global configuration command. To disable the bypass feature, use the no form of the command.

  • Problems with animated masks and external images

    I have an instance of a movieClip on the stage and I load an external JPG into the movieClip.  The movieClip is masked by a layer that begins animating on a certain frame.  As soon as I reach that frame my externally loaded JPG disappears.  The movieClip doesn't mind being masked, but as soon as the mask animates the external image goes away.  The mask animation is shapes drawn frame by frame.
    It is interesting to note that if I create a Class and load the JPG into the movieClip (or do this in a constructor) I do not experience this problem - it is when the JPGs are loaded into an instance of the movieClip that lives on the stage that I encounter this. Unfortunately that is not an option in my project (since I have to get the path for the JPG from an xml file I am loading).
    Could someone please help me with this?

    that's a flash bug.

  • Problems with time machine and external hard drive

    Hi all
    In 2009 with my imac I bought a WD external hard drive which the computer says is 148GB formatted. I recall that the hard drive contained folders with files for the running of the hard drive when I bought it - and after it had been plugged in to a mac and used as a time machine, it no longer worked on windows computers.
    Now I have used 195 GB on my computer's internal hard drive and wish to stop using the external hard drive as a time machine and instead use it for swapping files between computers and the like.
    How can I wipe the time machine back ups and start using it as per usual again? do i need to obtain the WD files from somewhere?
    thanks in advance
    Nick

    Hi Nick,
    Avoid the WD files completely, not needed & often a problem.
    You need to erase the Drive, & to use it on both Format it MS-DOS/FAT32, on the Mac or PC, but will have a 4 GB filesize limit, as well as other limitations.
    One option not mentioned yet is MacDrive for your PCs... allows them to Read/Write  & Format HFS+, so no need to reformat it...
    http://www.mediafour.com/products/macdrive/

  • Problem with File Handler and log files

    I'm developing a polymorphic structure for file handling specially for the log file for a server based App... Its working fine except for one thing. The log file that goes into the File Handler comes as a parameter to the class, the problem is that when it writes de file, though it DOES know where it should go, it doesn't do it and it writes the message into some other Log file belonging to another process...
    Does someone know how to avoid this or fix it?? any ideas or tips would be great!!

    Immediately below the Tabs saying "Files" and Assets" is a small box 
    with arrow on the right to show the drop down list.        In the box 
    on the right there's an icon of two networked computers.  Then it 
    says, "ftp://Hill farm Web Site"  which is the name of my website.     
    If I click on the arrows to pull up the drop-down box,  I get four 
    options divided by a line.   Above the line the options are Computer, 
    HD and ftp://Hill farm Web Site.  Below the line it says manage sites.
    Below this is list of files that make up my website in a directory 
    structure.   The header for the first column reads, "Local Files",  
    which appears to be untrue, because the top line in the directory 
    structure below reads,  "ftp://Hill farm Web Site".
    Does this help?
    regards
    David

  • Problems with Speed, Accounts and External HD in Leopard

    *This is my setup:*
    Two Macs: 1. Macbook 2.2ghz with N capability
    2. Macbook Pro with N capability
    Router: Airport Extreme (802.11n) bought two days ago. Therfore new
    Software: All uppgraded & OS X Leopard
    Problem:
    - Could not connect to other accounts in the network after upgrading software with Leopard
    - Could not connect to airport disk
    Message: "Connecting..." in finder, but it never does, but both acc and hd shows up in finder doh.
    Also there is an issue with speeds, i have set it too 5ghz and only N. The speed is overall 0.5mb pr second or slower when i send fils. It should be around 5-10 mb pr second i think. So this is not funny

    Hi Nick,
    Avoid the WD files completely, not needed & often a problem.
    You need to erase the Drive, & to use it on both Format it MS-DOS/FAT32, on the Mac or PC, but will have a 4 GB filesize limit, as well as other limitations.
    One option not mentioned yet is MacDrive for your PCs... allows them to Read/Write  & Format HFS+, so no need to reformat it...
    http://www.mediafour.com/products/macdrive/

  • Problems with itunes 10 and external hard drive

    Hi
    I was recently forced to change the internal hard drive on my G5 Tower, and the external hard drive where I keep my music library.
    The new external drive had all my music files copied to it. I reloaded my itunes library files (that I had backed up from old computer) into my music folder and I named the new external drive as the media folder in Itunes preferences. The first time I used itunes it asked me if I wanted it to locate all files to which I pressed OK. itunes quickly found the majority of files and I cleaned up / organized the small mess left behind.
    Trouble is a few problems have occurred. Firstly, itunes seems slow – there’s a sluggish pause flicking between tracks – where as before it used to snap into response. Occasionally I’m asked to locate files which I thought was a task it had already done - and every now and again when I check the external hard drive music library I find files have been moved from there album locations to ‘untitled’ folders, etc. I can only assume itunes is doing this. I’ve also noticed I can’t remove the external hard drive from the desktop without closing itunes first which never happened before.
    This is getting somewhat frustrating. Can anybody advise?
    Much appreciated.
    K

    Hi Nick,
    Avoid the WD files completely, not needed & often a problem.
    You need to erase the Drive, & to use it on both Format it MS-DOS/FAT32, on the Mac or PC, but will have a 4 GB filesize limit, as well as other limitations.
    One option not mentioned yet is MacDrive for your PCs... allows them to Read/Write  & Format HFS+, so no need to reformat it...
    http://www.mediafour.com/products/macdrive/

  • Problems with Boot camp and External HDD's

    Hi, I recently installed windows XP using Boot Camp, and everything worked fine, until yesterday when I tried to reboot into MAC from WINDOWS. It restarts back into windows everytime, and now I can't get back to mac! (using leopard, not snow leopard) Whats wrong?
    Another thing, I have a 500gb Lacie ext HDD, and I can use it fine with mac, but when I tried to access it with windows, it won't work. It will appear in My Computer but when I log in it won't access the data. What can I do?
    Im using the HDD for backups with time machine, is this why windows cant access it?
    Thanks in advance

    FAT32 will accessible from both Windows and OS X
    If you don't want to reformat your ext drive you need something like http://www.paragon-software.com/home/hfs-windows/ or http://www.mediafour.com/products/macdrive/

  • Using techtool pro found problem with "volume structure".  What to do?

    Using techtool pro found problem with "volume structure" and this was not fixed by TECHTOOL PRO.  What do you suggest I do?

    I would boot from my gray install disk (put the disk in the drive and restart holding down the C key). Then choose Utilities and run Disk Utility and click Repair Disk. As always, be sure you have a back up of your data first.

  • I got problem with volume of calls...its on max and i still can hear person on other side really bad...i got 4s

    i got problem with volume of calls...its on max and i still can hear person on other side really bad...i got 4s

    Did you fix the problem? I have the same problem and it has been pain in the neck.

  • Error: There is a problem with the file and it cannot be copied

    I've been trying to copy (and essentially move) the contents of an NTFS-formatted external HDD to my iMac's internal HDD so I can then format the external HDD to Mac OS Extended. However, when I simply try to drag and drop, I get an error during the transfer that states:
    There is a problem with the file and it cannot be copied.
    I tried a basic cp command in Terminal to copy all contents of the external HDD to a folder on my iMac's desktop, and found that while there were no errors, there were many individual files missing full chunks of data (ie. original file would be 4GB on my external HDD, but only 350MB on my desktop).
    Any ideas on how I can successfully copy a large amount of data (approx. 170GB) from my external HDD to my internal HDD while avoiding this error, so I can ultimately format my external HDD to Mac OS Extended? ANY help is greatly appreciated.

    That's not a good error to see. It indicates something is very wrong. Pulled out of an old programming header file:
    ioErr = -36, /*I/O error (bummers)*/
    If Apple labelled it "bummers," they had a good reason! Unfortunately, that doesn't bode well for you.
    Try running Disk Utility again. Keep repairing over and over until one of two things happens: 1) Disk Utility says no repair was needed, or 2) Disk Utility reports the same error in two sequential repair sessions and is unable to repair it both times.
    If you hit the second case, or if you hit the first but still can't copy files, then you've got two basic options:
    = Buy a third-party disk utility or two and try them. Try TechTool as a first choice.
    = Recover what files you can and write the rest off as gone.
    = Send your drive to a data recovery service and hope they can extract more than you can.
    Of course, none of this is necessary if you have a backup of the contents of that hard drive. (If you don't, this is your learning experience. Once bitten, twice shy, so they say.) Also, regardless of the outcome, once you've got your data or have decided it's gone, you're going to want to wipe that drive completely clean. Reformat the drive with Disk Utility, then when it's done, select the drive in Disk Utility and hit command-i. (Don't select the new volume you just created on that drive, select the drive itself. Mine looks like "232.9 GB Hitachi ..." with the volume name indented underneath.) Look for an item that says S.M.A.R.T. Status, and if it doesn't say Verified, you might as well throw out the drive. Don't trust any more data to it.
    If all appears safe, you can start moving data back onto it. But, as always, make sure you have a backup of everything!

  • Problems with itunes 8 and ipod shuffle gen 2.

    Problems with itunes 8 and ipod shuffle gen 2.
    I recently upgraded from itunes 7 to itunes 8 on my windows XP PC. That's when i had issues syncing my 2nd gen shuffle.
    When i try to drag songs directly on it, itunes says i can't
    I made a playlist and use auto fill. But when I remove it from the dock, it's either not updated, or the new songs are at the bottom of the playlist when they are supposed to be up higher. I end up having to hit auto fill twice to make it sync correctly.
    Computer Specs
    Windows XP SP3
    384MB of Ram (works really good)
    USB 1.1 connection
    Pentium 4 clocked at 1.285 GHZ
    IPOD Shuffle Specs
    2nd Generation
    1GB (964MB)
    Version 1.0.4
    unchecked options: open itunes when ipod is attached, Sync only checked songs, convert higher bit rate songs to 128kbps AAC, Enable sound check, Limit MAX volume, enable disk use
    All those are NOT checked. Sometimes i enable disk use for seeing the IPOD_Control folder, but either way it still messes up.
    Itunes Specs:
    Version 8.1.1.10

    This is a well-known issue. Apple changed the internal file names used with iTunes 8, which makes the ordering on 2nd generation Shuffles behave differently. There is no good workaround, apart from moving the files with a hand-crafted AppleScript program.
    Apple has been silent on the issue, so nobody knows if we'll ever have a fix for it or not.

  • Macbook pro 15" mid 2010 i spilled water on keyboard now it wont power on if the battery is connected and the keys on keyboard doesnt work it works fine with no battery and external keyboard if i order a battery and new keyboard will every else work again

    macbook pro 15" mid 2010 i spilled water on keyboard now it wont power on if the battery is connected and the keys on keyboard doesnt work it works fine with no battery and external keyboard if i order a battery and new keyboard will every else work again lik it did before

    If you have records that show that you've taken your MacBook Pro in for a year to fix the machine, I would escalate the problem to Apple Customer Relations - unfortunately I don't have a number for Spain.
    It would only seem logical to me that if you've been trying to have the machine repaired during the time that the 'recall' was in effect that you should be eligible for a new logic board. But only customer relations will be able to make that call.
    Good luck - take the issue as high up the food chain as you can and see what happens.
    Clinton

  • Having a Problem with WMA DRM and Muvo TX FM - Upd

    No elapsed time problem with WMA DRM or other protected files from:
    Napster
    WalMart
    Audible.com.
    Elapsed time problem with WMA DRM from:
    Netlibrary.com
    This is an update on the problem that I described below:
    Windows Media Player
    One problem I had was that Windows Media Player would not recognize my muvo players. It turned out that because I was using a USB hub for the players to connect WMP was not recognizing the players. When I used a direct line to the USB port on the computer, WMP has no problem recognizing the player.
    Digital License.
    As a test, I bought a WMA song file from WalMart to see if its Digital Rights Management was compatible with Muvo. There was no problem with the correct elapsed time showing. I will also test a file from Napster and add its license details here.
    Here is something else I noticed - the differences in
    the license for the two types of WMA files:
    The one from WalMart - which works fine with the
    elapsed time on the MuVo:
    This file can be played an unlimited number of times
    Collaborati've play for this file is not allowed
    This file can be burned 0 more times<<<
    This file can be synchronized an unlimited number of
    times
    The license for this file can be backed up <<<
    For the one from netlibrary.com
    This file can be played until 4/9/2005
    Collaborati've play for this file is not allowed
    This file cannot be burned
    This file can be synchronized 3 more times until
    4/9/2005
    The license for this file cannot be backed up<<<<
    I have been able to copy WMA with DRM audiobook files to my TX FM, but the elapsed time doesn't change with either play or fast forward. The file is from Netlibrary.com which supplies audiobooks to public libraries. The file plays, but the display stays all zeroes.
    I have been sending information and getting replies and suggestions from both Netlibrary support and Creative technical support with no solution. I have the latest firmware and everything else. I have the problem on both Windows XP and Windows 2000 computers. I have downloaded several files, but none of them show elapsed time. I suspect it is something to do with the DRM, because I can play a preview file from Netlibrary - without DRM - with no problem. I also have no problem with other files copied over - from Audible, from CDs, etc.Message Edited by alex20850 on 03-30-2005 07:54 PMMessage Edited by alex20850 on 03-30-2005 08:4 PM

    I'm primarily using my TX FM for netlibrary.com audiobooks and also get all zeros on the display.
    I've been steadily complaining to netlibrary and my local library about problems/inconveniences, itcertainly is experiencing growing pains; we're the ones getting the pain, though!
    I'll post here if I find a (legal) resolution to this.
    What firmware version do you have? I have .2.04 and I see that .3.03 is available for download. I've read here that there are problems with .3 with volume limiting and I'm hesitant to change. I do notice that one of the listed fixes is:
    Updates the elapsed time displayed during navigation within a long recorded track
    so, maybe this is the answer?
    Dr Dave

  • Problem with the MenuBar and how can i delete a own component out of the storage

    Hello,
    I opened this thread in the category "Flex Builder 2", but
    under this category my questions fit better.
    I have a problem with the MenuBar and a question to delete a
    component out of storage.
    1. We have implemented the MenuBar, which was filled
    dynamically with XML data.
    Sporadically it will appear following fault, if we "mousover"
    the root layer.
    RangeError: Error #2006: Der angegebene Index liegt
    außerhalb des zulässigen Bereichs.
    at flash.display::DisplayObjectContainer/addChildAt()
    at mx.managers::SystemManager/
    http://www.adobe.com/2006/flex/mx/internal::rawChildren_addChildAt()
    at mx.managers::SystemManager/addChild()
    at mx.managers::PopUpManager$/addPopUp()
    at mx.controls::Menu/show()
    at mx.controls::MenuBar/::showMenu()
    at mx.controls::MenuBar/::mouseOverHandler()
    Here a abrid ged version of our XML to create the MenuBar:
    <Menuebar>
    <menu label="Artikel">
    <menu label="Artikel anlegen" data="new_article" />
    <menu label="Artikel bearbeiten" data="edit_article" />
    <menu label="Verpackung">
    <menu label="Verpackung anlegen" data="new_package" />
    <menu label="Verpackung bearbeiten" data="edit_package"
    />
    </menu>
    <menu label="Materialgruppe">
    <menu label="Materialgruppe anlegen"
    data="new_materialgroup" />
    <menu label="Materialgruppe bearbeiten"
    data="edit_materialgroup" />
    </menu>
    </menu>
    </Menuebar>
    It is a well-formed XML.
    2. Delete a component out of storage
    We have some own components (basically forms), which will be
    created and shown by an construct e.g.
    var myComponent : T_Component = new T_Component ;
    this.addChild(myComponent)
    Some of our forms will be created in an popup. On every call
    of the popup, we lost 5 mb or more, all childs on the windows will
    be removed by formname.removeAllChild();
    What cann we do, that the garbage collector will dispose this
    objects.
    Is there a way to show all objects with references (NOT
    NULL)?
    I have read in the Flex Help, that
    this.removeChild(myComponent) not delete the form and/or object out
    of the storage.
    Rather the object must be destroyed.
    It is sufficient to call delete(myComponent) about remove
    this object out of the storage as the case may be that the
    garbage-collector remove this object at any time?
    Or how can I destroy a component correctly. What happens with
    the widgets on this component e.g. input fields or datagrids?
    Are they also being deleted?
    Thanks for your help.
    Matze

    If you mena the "photo Library" then you cannot delete it.
    This is how iphone handles photos.  There are not two copies.  There a re simply two places from which to access the same photos.  ALL photos synced to iphone can be accessed via Photo Library.  Those same pics can be accessed via their individual folder.

Maybe you are looking for