473,800 Members | 2,640 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Unloading createEmptyMovi eClip

69 New Member
Hi,

I have a actionscript script that retrieves data from the database and creates a movie clip with a text field to store the data. I have next and previous buttons to navigate to show the next or previous ten database records.

When previous or next are clicked I want to remove the movie clips previously created using

Expand|Select|Wrap|Line Numbers
  1. titleMC = _root.sub_nav_mc.createEmptyMovieClip("articleTitleMC" + i, 
  2.      _root.sub_nav_mc.getNextHighestDepth());
  3. titleMC._x = 0;
  4. titleMC._y = yAxis;
  5. titleTF = titleMC.createTextField("articleTitleTF", 10, 0, 0, 82, 16);
  6. titleMC.articleTitleTF.text = articleTitle[1];
  7. titleMC.articleTitleTF.setTextFormat(titleFormat);
  8.  
.

Expand|Select|Wrap|Line Numbers
  1. articleTitle[1] contains data retrieved from the database.
. To remove these movie clips do I use unloadMovie or removeMovieClip ? Here's the code I have for that.

Expand|Select|Wrap|Line Numbers
  1. for( var property in _root.sub_nav_mc )
  2. {
  3.      if( typeof( _root.sub_nav_mc[property] == "movieclip" ) )
  4.      {
  5.         _root.sub_nav_mc[property].unloadMovie();
  6.         trace( "Unloaded " + property );
  7.      }
  8. }
  9.  
I'd really appreciate any help.

Thanks, Sean
Aug 28 '07 #1
1 2897
xNephilimx
213 Recognized Expert New Member
Hi Sebarry.
When the user navigates to previous or next records you may not need to remove the movieclips created, just update them with the new data.
Anyway, if for some reason or preference you want to remove them you should use the removeMovieClip method, since this method "deletes" a movieclip from the stage and the unloadMovie method just onloads a movie that was loaded into another one using the loadMovie method, leaving the target movieclip on the stage.

Kind regards,
The_Nephilim

Hi,

I have a actionscript script that retrieves data from the database and creates a movie clip with a text field to store the data. I have next and previous buttons to navigate to show the next or previous ten database records.

When previous or next are clicked I want to remove the movie clips previously created using

Expand|Select|Wrap|Line Numbers
  1. titleMC = _root.sub_nav_mc.createEmptyMovieClip("articleTitleMC" + i, 
  2.      _root.sub_nav_mc.getNextHighestDepth());
  3. titleMC._x = 0;
  4. titleMC._y = yAxis;
  5. titleTF = titleMC.createTextField("articleTitleTF", 10, 0, 0, 82, 16);
  6. titleMC.articleTitleTF.text = articleTitle[1];
  7. titleMC.articleTitleTF.setTextFormat(titleFormat);
  8.  
.

Expand|Select|Wrap|Line Numbers
  1. articleTitle[1] contains data retrieved from the database.
. To remove these movie clips do I use unloadMovie or removeMovieClip ? Here's the code I have for that.

Expand|Select|Wrap|Line Numbers
  1. for( var property in _root.sub_nav_mc )
  2. {
  3.      if( typeof( _root.sub_nav_mc[property] == "movieclip" ) )
  4.      {
  5.         _root.sub_nav_mc[property].unloadMovie();
  6.         trace( "Unloaded " + property );
  7.      }
  8. }
  9.  
I'd really appreciate any help.

Thanks, Sean
Aug 31 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

1
1634
by: LilleSkutt | last post by:
I want to use assemblies (Window Forms as .dll) so that I can replace the form while the main application is running. To accomplish this, I used Assembly.LoadForm to manually load the assembly when I need it from a .DLL file. I then use CreateInstance to create the instance of the class, and then use the instance like I would use is with a normal design-time included assembly. But the problem is, no matter how I try with closing the form,...
9
4429
by: Rom Marshall | last post by:
Hi. Once a LOB size goes beyond 32KB in size, I'm not able to use the LOAD utility to unload the data off the tables for DB2 7.1 on OS/390. Instead, the documentation refers to a sample C++ program -- DSN710.SDSNSAMP(DSN8DLPL) to use for this purpose. I'm wondering if anyone out there has a COBOL equivalent to this as I do not have a C++ compiler?
2
1846
by: Arthur Roodenburg | last post by:
Hello, I would like to unload an assembly after I finished my stuff. I tried to load the assembly in to an AppDomain like this: AssemblyName asmName = AssemblyName.GetAssemblyName(fullFileName); Assembly asm = helpAppDomain.Load(asmName);
5
1823
by: vineeth | last post by:
Hi I have GUI assembly which is loaded into a seprate Appdomain using AppDomain::Load method, after using it's function i unloaded the assembly by calling the AppDomain.UnLoad() method. But i can still use the UI components displayed earlier when i loaded the Assembly. How is this possible, it should not show up or throw some exception when i use the controls right? Please advice me how this behavior is possible even after i unloaded the...
2
1606
by: Guru Prasad | last post by:
Is there a delay involved in unloading assemblies once a virtual directory is "deleted" using IIS Manager ? At times even after the virtual directory is removed i cannot delete the backing physical directory and it looks like ASPNET runtime is holding on to the assemblies. Once i recycle the ASPNET process, i can delete this directory. Has this got anything to do with strong-named/signed assemblies ( even though deployed as private...
0
1101
by: Christian Wulff | last post by:
Hi, I have a problem regarding unloading AppDomains in a web service. When I use an AppDomain in a web service and unload it, the referenced assemblies are still locked. When I use the same code in a console or windows application, it works. What I want to do is to load a plugin into an AppDomain, work with the plugin through interfaces and then unload the AppDomain. I need to unload it because if I want to replace the plugin with a...
0
1569
by: ibenc | last post by:
Is there a way to prevent w3wp.exe from unloading a particular appDomain. Some parameters, config files? Here is some info about why I need this. I have a long running background thread in asp.Net application. Occasionaly, especially during peek CPU usage, the appDomain of the application gets unloaded by the w3wp.exe, and the background thread is terminated (we receive thread was being aborted exception). I guess the reason for...
3
4175
by: Tarik Monem | last post by:
Hi everyone, I am starting to dabble with using flash as an interface for php and mysql and, while I could do what I want to do in AJAX, it wouldn't be as pretty. So I grabbed some code and started hacking. What a surprise that it's not working! I know, I know, but everything is functioning except for one thing. I can retrieve the data with no problem using LoadVars via PHP and MySql, but my problem has to do with assigning a label of some...
0
1306
vdraceil
by: vdraceil | last post by:
Hi,i use VB6.0..is it possible to prevent a form from unloading ever? I know to set cancel=true in query unload event of the form..but this applies only to limited cases. If my exe is closed from the task manager-"Applications" tab,i can detect it and prevent it from unloading,but if it is closed from the task manager-"Processes" tab,the form will be closed even without passing through the terminate,queryunload and unload events... I'm...
0
9690
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9551
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10504
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10274
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10033
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9085
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6811
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5469
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4149
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.