LOADING
Loading
Hi , welcome back.
LogoutLOGOUT
 
  Lost password?  
Hi
 


Prev Previous Post   Next Post Next
  #1  
Old 04-25-2003, 01:42 PM
pespesx pespesx is offline
Registered User
 
Join Date: Apr 2003
Posts: 6
Rep Power: 0
pespesx is on a distinguished road
Thumbs down removeMovieClip syntax?

hi,

I have little problem with understanding the removeMovieClip syntax. I'll show it on this sample scenario:

there's movie clip named "aa" on the stage. there's also button "cc". there's button in the library "bb", with name "bb" exported for actionscript.

in first frame of the movie is this code:
PHP Code:

aa.attachMovie("bb""manas"1); // create instance of "bb" as "aa.manas"

aa.manas.remove = function () {
trace(this); // shows _level0.aa.manas
removeMovieClip(this); // works
//this.removeMovieClip(); // don't work (when swapped with line before) - WHY?

on "cc" button is this script:

PHP Code:

on (press) {

_root.aa.manas.remove();

when "cc" button is pressed, instance of "bb" (named manas) in movie clip "aa" is removed. but only when there is this line: "removeMovieClip(this);"

when i comment it out and uncomment this: "this.removeMovieClip();", the instance in NOT removed

WHY? I thought that there should be no difference between "this.removeMovieClip();" and "removeMovieClip(this);"

I also tried this syntax "_root.aa.manas.removeMovieClip();" or "_level0.aa.manas.removeMovieClip();" but they don't work either.

anyone knows the difference between these two types of calling removeMovieClip ?? I mean between something.removeMovieClip() and removeMovieClip(something);
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
eval VS array syntax marcushouse Flash MX 2004 2 08-04-2005 06:24 AM
Undocumented Color Syntax 2.0 Scottae Advanced Flash 2 01-01-2005 03:04 AM
Easy php question about syntax pigpen Server Side 3 12-21-2004 10:02 PM
syntax syntac syntax 3d-rules Actionscript 2.0 4 11-18-2004 11:43 AM
removeMovieClip help... brighamgraff Flash MX ActionScript 2 11-05-2002 05:25 PM




All times are GMT. The time now is 07:55 AM.