Flash Advisor logo
:: Desktop Shortcut
:: Flash Help
Advice from Experts

Closed Thread
Results 1 to 7 of 7
  1. #1

    Default move a dynamic movie clip instance

    okok- heres my problem: i need to move a movie clip instance that was created using attachMovie(). Since its a dynamic instance, i cant use something like:

    onClipEvent(enterFrame){this._y+=1}

    Because the instance is not even on the stage. Anyone have an answer for me? I know somebody out there knows something... cmon, give it up!!


    bla bla bla, and thank you.

  2. # ADS
    Join Date
    Always
    Posts
    Many
     
  3. #2

    Default

    If you are using Flash MX or newer then you can simply put something along these lines on the main timeline:

    Code:
    myNewInstance.onEnterFrame=function(){
    this._y+=1;
    }
    If you are still in Flash 5, then you will have to add the script to the instance, place it inside another "holder" type MC and attach that I think.

    Tbh, I cant remember how I used to do that, or even if i ever needed to. I probably would have just placed it off the stage and then moved it on as and when I needed it .

    Taff

  4. #3

    Default still a problem....

    thanks for the reply, but im having a problem implementing clip.onEnterFrame = function(){}. heres my code:

    attachMovie("exp_drop","dupe"+i,i);
    _root["dupe"+i].onEnterFrame=function()
    {
    _root["dupe"+i]._y+=5;
    }

    "exp_drop" is an identifier of a movie clip in the library.
    "i" is just an index that increases its value by one every time the codes are called.

    any ideas?

  5. #4

    Default

    So what is the "problem"?

    That code will work as it stands there.

  6. #5

    Default hmm

    well- the problem is, it didnt work. I tried putting just a trace inside the function, nothing happens still.

  7. #6

    Default sorry

    hey sorry Taff, for all the hassle. I appreciate all the help. I tried making just a sample project to test .onEnterFrame(), and it seemed to work perfectly. So I guess my problem must lie somewhere else that Im not seeing. I'll continue to work on this problem on my own, that is, once i find the problem... well, thanks again for your help.

  8. #7

    Default sorry

    hey sorry Taff, for all the hassle. I appreciate all the help. I tried making just a sample project to test .onEnterFrame(), and it seemed to work perfectly. So I guess my problem must lie somewhere else that Im not seeing. I'll continue to work on this problem on my own, that is, once i find the problem... well, thanks again for your help.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Similar Threads

  1. Movie Clip Problem
    By wisper in forum General Flash
    Replies: 6
    Last Post: 12-12-2006, 01:43 PM
  2. dynamic target (clip created with attachmoovie)
    By skydrake in forum Flash Scripting
    Replies: 1
    Last Post: 06-27-2006, 06:29 PM
  3. Actionscript in a movie clip
    By jettlandcharles in forum General Flash
    Replies: 1
    Last Post: 03-22-2006, 12:42 AM
  4. Replies: 1
    Last Post: 09-03-2005, 07:13 PM
  5. movie clip help!!!
    By sahaj in forum Newbies
    Replies: 1
    Last Post: 05-10-2005, 01:08 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
Sponsors
Create Speaking Characters for your website and Flash movies. 15 Day Free Trial