How I remove previous MC created with createmovieClip() and attachMovie()

Hello.
i have another problem today, :-)
my little application contain a combobox and a MC "filmstrip" in my _root. the combobox work with an xml file containing links to other xml files. Inside my MC "filmstrip" i have a script loading with a for loop the xml file selected in the combobox on the _root .
In this loop i createEmptyMovieClip an attachMovies with the data  of the xml selected.
evrything works exept that evrytime i change my selection in the combobox it load the data  on top of the previous load.
I would like to delete  the previous load before load the new one... if someone can help me???
On my scene 1st frame i have only a code for scroll the movieclip filmstrip but i think is not nescessary that i show it.
here is the code inside the MC fimlstrip (sorry but i put all the code). i attach an example aswell
var link1:Array = new Array();
var url:String;
var theUrl:String;
var whoOn:Number;
whoOn = 1;
//load the  xml containing the link for T.Load() function
    var x:XML = new XML();
    x.ignoreWhite = true;
x.onLoad = function(success) {
        var photos:Array = this.firstChild.childNodes;
        for (i=0; i<photos.length; i++) {
            link1.push(photos[i].attributes.link1);
        url = link1[whoOn];
        theUrl = url;
        _root.filmstrip.Tload(theUrl);
        _root.lengthscroll(theUrl);
    x.load("category.xml");
//create the Listener object
var cbListener:Object = new Object();
//create tee change function
cbListener.change = function(event_obj:Object) {
    if (_root.select.selectedItem.label == "Last updated") {
        whoOn = 0;
    } else if (_root.select.selectedItem.label == "Special") {
        whoOn = 1;
    trace(_root.select.selectedItem.label);
    url = link1[whoOn];
    trace("url is "+_root.filmstrip.url);
    theUrl = url;
    _root.lengthscroll(theUrl);
    Tload(theUrl);// set the url to load in the T.load()
_root.select.addEventListener("change",cbListener);
function Tload(theUrl) {//function that load the url selected in the combobox
    var T:XML = new XML();
    T.ignoreWhite = true;
    var thumb:Array = new Array();//create array
    var thTxt:Array = new Array();
    var DescTXT:Array = new Array();
    var priceTXT:Array = new Array();
    var linkTXT:Array = new Array();
    var Modelink = "http://www.windi.no/catalog/advanced_search_result.php?keywords=";//1st part of the link for when you click on the tumbnails
    var Spc = 0;// space between thumbnail default 0
    var posX = 0;// thumbnail position x
    var posY = 0;//thumbnail 1st position y
    var tl:MovieClip = this;
    var whoIsOn:Number;
    whoIsOn = 0;
    T.onLoad = function(xml) {
        var photos:Array = this.firstChild.childNodes;
        //loop the php Xml for the thumbnail
        for (i=0; i<photos.length; i++) {
            var Num = i+1;
            var WhoIsOn = Num;
            var TXTCLIP = "TXTCLIP"+Num;
            var TXTCLIP2 = "TXTCLIP2"+Num;
            var TXTCLIP3 = "TXTCLIP3"+Num;
            var Clp_name = "clip"+Num;
            var Bt_name = "Bt"+Num;
            var container = (container+Num);
            //put each attributs of thumbnail for each photos node
            thTxt.push(photos[i].attributes.thumbtext);
            thumb.push(photos[i].attributes.thumbnail);
            DescTXT.push(photos[i].attributes.thumbdesc);
            priceTXT.push(photos[i].attributes.thumbprice);
            linkTXT.push(photos[i].attributes.thumbmodel);
            _root.Text_Thumbnail(thTxt[whoIsOn]);
            _root.bigphotos.loadMovie(thumb[whoIsOn],1);
            var fullink = (Modelink+linkTXT[i]);//the 2nd part of the "Modelink"
            //display Tiles
            var TXT:MovieClip = tl.attachMovie("TXTCLIP", TXTCLIP, tl.getNextHighestDepth());
            TXT._x = posX+120;
            TXT._y = posY+Spc+13;
            TXT.titleTXT.text = thTxt[i];
            //desccription
            var TXT2:MovieClip = tl.attachMovie("TXTCLIP2", TXTCLIP2, tl.getNextHighestDepth());
            TXT2._x = posX+120;
            TXT2._y = posY+Spc+30;
            TXT2.titleTXT.text = DescTXT[i];
            // display prices
            var TXT3:MovieClip = tl.attachMovie("TXTCLIP3", TXTCLIP3, tl.getNextHighestDepth());
            TXT3._x = posX+120;
            TXT3._y = posY+Spc+90;
            TXT3.titleTXT.text = priceTXT[i];
            //display thumbnails
            var container:MovieClip = tl.createEmptyMovieClip(Clp_name, tl.getNextHighestDepth());
            container.loadMovie(thumb[i],1);
            container._yscale = 30;
            container._xscale = 30;
            container._x = posX;
            container._y = posY+Spc;
            //for the OnRelease function on the thumbnail
            var BT:MovieClip = tl.attachMovie("Btb", Bt_name, tl.getNextHighestDepth());
            BT._x = posX;
            BT._y = posY+Spc;
            BT.whoIsOn = i;
            BT.onRelease = function() {
                stopAllSounds();
                getURL((Modelink+linkTXT[this.whoIsOn]));//this is the link when you click on the thumbnail
            BT.onRollOver = function() {
                _root.Text_Thumbnail(thTxt[this.whoIsOn]);//display the title of the thumbnail by rolling over
                _root.whoIsOn = this.whoIsOn;
                _root.bigphotos.loadMovie(thumb[this.whoIsOn],1);//Display the poto of the thumbnail by rolling over
            BT.onRollOut = function() {
                _root.Text_Thumbnail("");
            Spc = Spc+160;//for the space betwen the clips           
    //load the xml file selected in the combobox
    trace("the url loaded is: "+theUrl);
    T.load(theUrl);//Load the url selected in the combobox

created a function for remove the movieClips bu it dont wotk :
var link1:Array = new Array();
var url:String;
var theUrl:String;
var whoOn:Number;
whoOn = 1;
//HERE MY FUNCTION
function reset_all() {
    _root.filmstrip.removeMovieClip();
//<---TO HERE
//load the  xml containing the link for T.Load() function in filmstrip movie clip the xml file
function loadCat() {
    var x:XML = new XML();
    x.ignoreWhite = true;
    x.onLoad = function(success) {
        var photos:Array = this.firstChild.childNodes;
        for (i=0; i<photos.length; i++) {
            link1.push(photos[i].attributes.link1);
        url = link1[whoOn];
        theUrl = url;
        _root.filmstrip.Tload(theUrl);
        _root.lengthscroll(theUrl);
    x.load("category.xml");
loadCat();
//create the Listener object
var cbListener:Object = new Object();
//create tee change function
cbListener.change = function(event_obj:Object) {
    if (_root.select.selectedItem.label == "Last updated") {
        whoOn = 0;
    } else if (_root.select.selectedItem.label == "Special") {
        whoOn = 1;
    trace(_root.select.selectedItem.label);
    url = link1[whoOn];
    trace("url is "+_root.filmstrip.url);
    theUrl = _root.filmstrip.url;
    _root.lengthscroll(theUrl);
    Tload(theUrl);// set the url to load in the T.load() function in filmstrip
_root.select.addEventListener("change",cbListener);
function Tload(theUrl) {//function that load the url selected in the combobox
    var T:XML = new XML();
    T.ignoreWhite = true;
    var thumb:Array = new Array();//create array
    var thTxt:Array = new Array();
    var DescTXT:Array = new Array();
    var priceTXT:Array = new Array();
    var linkTXT:Array = new Array();
    var Modelink = "http://www.windi.no/catalog/advanced_search_result.php?keywords=";//1st part of the link for when you click on the tumbnails
    var Spc = 0;// space between thumbnail default 0
    var posX = 0;// thumbnail position x
    var posY = 0;//thumbnail 1st position y
    var tl:MovieClip = this;
    var whoIsOn:Number;
    whoIsOn = 0;
    T.onLoad = function(xml) {
       reset_all(); /// HERE I APLY IT
        var photos:Array = this.firstChild.childNodes;
        //loop the php Xml for the thumbnail
        for (i=0; i<photos.length; i++) {
            var Num = i+1;
            var WhoIsOn = Num;
            var TXTCLIP = "TXTCLIP"+Num;
            var TXTCLIP2 = "TXTCLIP2"+Num;
            var TXTCLIP3 = "TXTCLIP3"+Num;
            var Clp_name = "clip"+Num;
            var Bt_name = "Bt"+Num;
            var container = (container+Num);
            //put each attributs of thumbnail for each photos node
            thTxt.push(photos[i].attributes.thumbtext);
            thumb.push(photos[i].attributes.thumbnail);
            DescTXT.push(photos[i].attributes.thumbdesc);
            priceTXT.push(photos[i].attributes.thumbprice);
            linkTXT.push(photos[i].attributes.thumbmodel);
            _root.Text_Thumbnail(thTxt[whoIsOn]);
            _root.bigphotos.loadMovie(thumb[whoIsOn],1);
            var fullink = (Modelink+linkTXT[i]);//the 2nd part of the "Modelink"
            //display Tiles
            var TXT:MovieClip = tl.attachMovie("TXTCLIP", TXTCLIP, tl.getNextHighestDepth());
            TXT._x = posX+120;
            TXT._y = posY+Spc+13;
            TXT.titleTXT.text = thTxt[i];
            //desccription
            var TXT2:MovieClip = tl.attachMovie("TXTCLIP2", TXTCLIP2, tl.getNextHighestDepth());
            TXT2._x = posX+120;
            TXT2._y = posY+Spc+30;
            TXT2.titleTXT.text = DescTXT[i];
            // display prices
            var TXT3:MovieClip = tl.attachMovie("TXTCLIP3", TXTCLIP3, tl.getNextHighestDepth());
            TXT3._x = posX+120;
            TXT3._y = posY+Spc+90;
            TXT3.titleTXT.text = priceTXT[i];
            //display thumbnails
            var container:MovieClip = tl.createEmptyMovieClip(Clp_name, tl.getNextHighestDepth());
            container.loadMovie(thumb[i],1);
            container._yscale = 30;
            container._xscale = 30;
            container._x = posX;
            container._y = posY+Spc;
            //for the OnRelease function on the thumbnail
            var BT:MovieClip = tl.attachMovie("Btb", Bt_name, tl.getNextHighestDepth());
            BT._x = posX;
            BT._y = posY+Spc;
            BT.whoIsOn = i;
            BT.onRelease = function() {
                stopAllSounds();
                getURL((Modelink+linkTXT[this.whoIsOn]));//this is the link when you click on the thumbnail
            BT.onRollOver = function() {
                _root.Text_Thumbnail(thTxt[this.whoIsOn]);//display the title of the thumbnail by rolling over
                _root.whoIsOn = this.whoIsOn;
                _root.bigphotos.loadMovie(thumb[this.whoIsOn],1);//Display the poto of the thumbnail by rolling over
            BT.onRollOut = function() {
                _root.Text_Thumbnail("");
            Spc = Spc+160;//for the space betwen the clips           
    //load the xml file selected in the combobox
    trace("the url loaded is: "+theUrl);
    T.load(theUrl);//Load the url selected in the combobox

Similar Messages

  • How do I delete sites created with iWeb and posted with .mac after a format

    I am confused about how to delete a couple of sites that I created with iWeb and posted with my .mac after I did a format reload?
    I have tried everything. The original files are not on my MacBook Pro because of the format.
    I also see them in my idisc, but I is my understanding that on my MacBook Pro that I can delete the files, but they are hosted online. On the online idisk I cannot delete them because there is no option. Please help!!!

    Using the file menu in Finder:
    Go/iDisk/My iDisk/Web/Sites/iWeb/YourSitesAreHere
    Highlight selected files and Command/Delete. You will receive a drop down asking you if you are sure; click OK and the files/sites will be deleted immediately from the iDisk.
    Mark

  • How to remove previous owner's Apple ID request from App Store?

    When I try to update an app App Store asks for the previous owner's Apple ID and not for my Apple ID. How can I change it to ask for my details?How to remove previous owner's Apple ID from App Store?

    Before buying a second-hand computer, you should have run Apple Diagnostics or the Apple Hardware Test, whichever is applicable.
    The first thing to do after buying the computer is to erase the internal drive and install a clean copy of OS X. You—not the original owner—must do that. Changes made by Apple over the years have made this seemingly straightforward task very complex.
    How you go about it depends on the model, and on whether you already own another Mac. If you're not sure of the model, enter the serial number on this page. Then find the model on this page to see what OS version was originally installed.
    It's unsafe, and may be unlawful, to use a computer with software installed by a previous owner.
    1. If you don't own another Mac
    a. If the machine shipped with OS X 10.4 or 10.5, you need a boxed and shrink-wrapped retail Snow Leopard (OS X 10.6) installation disc from the Apple Store or a reputable reseller—not from eBay or anything of the kind. If the machine is very old and has less than 1 GB of memory, you'll need to add more in order to install 10.6. Preferably, install as much memory as it can take, according to the technical specifications.
    b. If the machine shipped with OS X 10.6, you need the installation media that came with it: gray installation discs, or a USB flash drive for a MacBook Air. You should have received the media from the original owner, but if you didn't, order replacements from Apple. A retail disc, or the gray discs from another model, will not work.
    To start up from an optical disc or a flash drive, insert it, then restart the computer and hold down the C key at the startup chime. Release the key when you see the gray Apple logo on the screen.
    c. If the machine shipped with OS X 10.7 or later, you don't need media. It should start up in Internet Recovery mode when you hold down the key combination option-command-R at the startup chime. Release the keys when you see a spinning globe.
    d. Some 2010-2011 models shipped with OS X 10.6 and received a firmware update after 10.7 was released, enabling them to use Internet Recovery. If you have one of those models, you can't reinstall 10.6 even from the original media, and Internet Recovery will not work either without the original owner's Apple ID. In that case, contact Apple Support, or take the machine to an Apple Store or another authorized service provider to have the OS installed.
    2. If you do own another Mac
    If you already own another Mac that was upgraded in the App Store to the version of OS X that you want to install, and if the new Mac is compatible with it, then you can install it. Use Recovery Disk Assistant to prepare a USB device, then start up the new Mac from it by holding down the C key at the startup chime. Alternatively, if you have a Time Machine backup of OS X 10.7.3 or later on an external hard drive (not a Time Capsule or other network device), you can start from that by holding down the option key and selecting it from the row of icons that appears. Note that if your other Mac was never upgraded in the App Store, you can't use this method.
    3. Partition and install OS X
    a. If you see a lock screen when trying to start up from installation media or in Recovery mode, then a firmware password was set by the previous owner, or the machine was remotely locked via iCloud. You'll either have to contact the owner or take the machine to an Apple Store or another service provider to be unlocked. You may be asked for proof of ownership.
    b. Launch Disk Utility and select the icon of the internal drive—not any of the volume icons nested beneath it. In the  Partition tab, select the default options: a GUID partition table with one data volume in Mac OS Extended (Journaled) format. This operation will permanently remove all existing data on the drive.
    c. An unusual problem may arise if all the following conditions apply:
              OS X 10.7 or later was installed by the previous owner
              The startup volume was encrypted with FileVault
              You're booted in Recovery mode (that is, not from a 10.6 installation disc)
    In that case, you won't be able to unlock the volume or partition the drive without the FileVault password. Ask for guidance or see this discussion.
    d. After partitioning, quit Disk Utility and run the OS X Installer. If you're installing a version of OS X acquired from the App Store, you will need the Apple ID and password that you used. When the installation is done, the system will automatically restart into the Setup Assistant, which will prompt you to transfer the data from another Mac, its backups, or from a Windows computer. If you have any data to transfer, this is usually the best time to do it.
    e. Run Software Update and install all available system updates from Apple. To upgrade to a major version of OS X newer than 10.6, get it from the Mac App Store. Note that you can't keep an upgraded version that was installed by the original owner. He or she can't legally transfer it to you, and without the Apple ID you won't be able to update it in Software Update or reinstall, if that becomes necessary. The same goes for any App Store products that the previous owner installed—you have to repurchase them.
    4. Other issues
    a. If the original owner "accepted" the bundled iLife applications (iPhoto, iMovie, and Garage Band) in the App Store so that he or she could update them, then they're irrevocably linked to that Apple ID and you won't be able to download them without buying them. Reportedly, Mac App Store Customer Service has sometimes issued redemption codes for these apps to second owners who asked.
    b. If the previous owner didn't deauthorize the computer in the iTunes Store under his Apple ID, you wont be able to  authorize it immediately under your ID. In that case, you'll either have to wait up to 90 days or contact iTunes Support.
    c. When trying to create a new iCloud account, you might get a failure message: "Account limit reached." Apple imposes a lifetime limit of three iCloud account setups per device. Erasing the device does not reset the limit. You can still use an iCloud account that was created on another device, but you won't be able to create a new one. Contact iCloud Support for more information. The setup limit doesn't apply to Apple ID accounts used for other services, such as the iTunes and Mac App Stores, or iMessage. You can create as many of those accounts as you like.

  • Plz help me how i remove previous id that is stuck in activation process and me not know password and id  plzzzz help m,

    plz help me how i remove previous id that is stuck in activation process and me not know password and id  plzzzz help m

    Read this: http://support.apple.com/kb/PH13695
    If it is locked with your ID, then re-set the password at https://iforgot.apple.com

  • Why iCloud only allows store documents created by Pages, Numbers or Key Note ? How can I "iCloud" documents created with Word Mac or Excel mac??

    Why iCloud only allows store documents created by Pages, Numbers or Key Note ? How can I "iCloud" documents created with Word Mac or Excel mac??

    Oscar66 wrote:
    Why iCloud only allows store documents created by Pages, Numbers or Key Note ? How can I "iCloud" documents created with Word Mac or Excel mac??
    iwork for ios accepts for upload and also happily opens all your Microsoft office files, from Office97 standard doc/xls/ppt to the 2011 versions of docx,xlsx,pptx and various other of these format extensions.
    Notice : the upload feature in www.icloud.com is only active if you in fact own these apps on your iPhone/Pad/pod. it is not a feature of iWork for the Mac ( iwork09 ) which itself is not icloud capable at all.

  • How many statements can be created with one connection?

    how many statements can be created with one connection?

    and on available memory. At some point, even were the database to allow an infinite number, you'd run out of memory.

  • My website created with Iweb and hosted on mobileMe is not showing well on all computers. What could be the problem ?

    My website created with Iweb and hosted on mobileMe is not uploading well on all computers. What could be the problem ?

    I got a chance to look at it on a PC.  Totally hosed up. It loads incorrectly then parts of it go blank.
    I have a site that is based very much on one of the built-in templates and it works fine on the same PC.  It contains only text boxes, image placeholders, and images with "picture frame" borders.  Nothing fancy, no overlays, no extra code or anything. I haven't looked much at the other templates so I don't know if yours is mostly a template or how much you may have modified one or what tricks you may have done to get the look you wanted.  Whatever it is, IE does not like it.  Unfortunately, you can't really ignore them as was suggested; they make up a large part of your audience.

  • Don't know how to sync music on mac with iphone and ipod

    don't know how to sync music on mac with iphone and ipod
    need to also know how to recover original library of ipod as it seems as though
    it has now sync'ed with iphone & lost all my music

    Start HERE

  • How do you deal Iphone 5 with LTE  and at&t

    how do you deal Iphone 5 with LTE  and at&t

    I can make no sense of your message.

  • TS5376 11.1.4 issue.  If I remove eveything to do with iTunes and reinstall as suggested will I loose all my playlists etc?

    My profile on Windows 7 home is set to Administrator and always has been i.e. before iTunes was originally installed.  I haven't backed my phone up in a while but found my 3GS stating that it needed to be updated before I could make any more calls.  I've got home to find that my iTunes won't run due to a missing .dll file and the suggested solution is to remove everything to do with iTunes and reinstall "with sufficient privelidge".  If I'm already an administor then why is it still broke and if i remove everything am I going to loose all my dearly loved playlists etc??

    Your playlists are saved as part of your library, and it should not be lost at all as a result of the program uninstall/reinstall.
    You can always backup your library just to be sure: http://support.apple.com/kb/HT1751
    Please do respond with results/questions.

  • Services created with WSADMIN and SOAMANAGER

    Hello gurus!
    Ihave a question about the WS created in the transaction SOAMANAGER. we have 5 webservices to operate our system, 4 of them were created with WSADMIN and one with SOAMANAGER. The problem is that in EPP we only can download the WSDL of the WS created in SOAMANAGER, and the other four cannot be found. Do we need to re-create them in SOAMANAGER in order to get them in EPP??
    Regards IA

    Hello,
    For old Web service definitions, if you have created End Points using WSCONFIG, you do not need to recreate it in SOAMANAGER. In WSADMIN, once you place cursor on your service, you can download WSDL using WSDL icon in Application Tool bar.
    Thanks,
    Venu

  • How to remove the old icloud apple id and password to activate my ipad

    how to remove the old icloud apple id and password to activate my ipad

    If it is still using IOS 6:
    You can force iPad into Recovery Mode. Follow step 1 to 6 very closely.
    http://support.apple.com/kb/HT1808
    Note: You may have to repeat the above a few times.

  • How to eliminate windows partition created with bootcamp

    Instrucdtions for how to eliminate a windows partition created with bootcamp.  thanks

    Go back and reread and open the application you used.
    though most Mac Pro owners choose to dedicate a drive to Windows.
    Even Disk Utility will remove and then stretch the adjoining partiton it is best to use Boot Camp Assistant.
    Best place to ask, Boot Camp forum, of course.

  • Remove UDO/UDT created with SDK from windows menu

    Hi,
    When I create my UDT/O with C# and SDK this created some menu options in the menu SAP. how can I to remove then without any database changes?
    I want to hide them.
    Regards.

    this created some menu options in the menu SAP
    This is rather vague as SAP has well over a hundred products. Even CR has a number of variations, and questions on some of the variations may belong here, others may belong elsewhere. E.G. CR for Business One, etc. So, what product are you using?
    - Ludek
    Senior Support Engineer AGS Product Support, Global Support Center Canada
    Follow us on Twitter

  • How many website can I create with iWeb?

    How many different webpages can I create with iWeb? I just created a site to show friends a slide show from a recent trip, but I need to create another webpage that will have video on it. It would be a totally different subject matter. I do have a .MAC account and not sure if I need to do anything with that so I can have more webpages.
    I guess what I am saying is that I am going to need different URL's for the webpages I am going to need to create and want to know how many you can have or create using iWeb.

    You can have multiple websites, each with multiple pages depending on the need. To make managing multiple sites easier, take a look at iWebSites. The limiting factor, as was pointed out, is the available space on your iDisk. I use iWebSites to manage multiple sites.. It lets me create multiple sites and multiple domain files.
    If you have multiple sites in one domain file here's the workflow I used to split them into individual site files with iWebSites. Be sure to make a backup copy of your Domain.sites files before starting the splitting process.
    This lets me edit several sites and only republish the one I want.
    Do you Twango?

Maybe you are looking for

  • Reusing Screen Recordings in Captivate 6

    Hi: I have created a screen recording (software demo) in one captivate project that I want to reuse in another project.  Is there a way to import the slides from one project into another project in Captivate 6? I am running Windows 7, Captivate 6.1 W

  • Hyperion Planning: Reporting tools

    Hi! I am using Hyperion Planning and I want to know which reporting tools I could use. I know Smart View but there are other options? Thanks!

  • Lost shared calendars from all computers, iphones, mobileme, etc

    After setting up some shared calendars for my husband and I to use, I realized he had duplicates.  When I started deleting them suddenly the entire set of duplicates were gone.  The really big problem is that they are also gone from my iCal (everywhe

  • Offline Activation problems with Photoshop CS6 - ver 13_LS16

    I have a computer that cannot be connected to the internet. Adobe advises in its support pages under Offline Activation a number of steps to activate the software. Step 1 is 1. Follow the installation or product launch screens until you see a link th

  • Playing videos in apple website.

    I can't open videos from apple website, it asks me to download quick time which is built in my macbook, then it asks me to update software, when i tried to do so, i got a message that everything is up to date?