Solved

How to Cover duplicate movie clip.

Posted on 2004-04-13
8
294 Views
Last Modified: 2012-08-13
I got one movie clip name "mc", i duplicate it, i set each duplicated movie clip with unique name and depth, and the _y is from 80 to 640.

so now my movie size is 640x480. so the duplicated movie location is over 480. Then i create a scroll to set each movie clip change _y = _y - 10. At my top got one banner, Now my problem is when i scroll movie clip up, why it will at the top of the banner, how i can make it at the bottom of banner? (when movie at banner position is cover by banner)
And why the duplicated movie clip when i invisible it, the button inside it still got function?
Thanks
Max
0
Comment
Question by:MaxTo
8 Comments
 
LVL 9

Expert Comment

by:j3one
ID: 10819996

-> not realy following you here... could you post what you have so far or a sourse file?

-> by invisible it do you mean hide it in your timeline or alpha tween it out or somthing?
0
 
LVL 9

Expert Comment

by:krishnaprathab
ID: 10820172
Hi,
 
Yes I agree with j3one you need to give more explanation or better post your source file.

For the second part of your button still accessible what you have to do is, aprat form making it invisible you have make it disabled like.

myMc._visible=false;
myMc.enabled=false;

Now your button in the invsible movie will not be accessible.

Thanks,
KP
0
 

Author Comment

by:MaxTo
ID: 10820345
// scroll bar function
function scroll(value) {
      switch (value) {
      case "down" :
            if (bottom>410) {
                  bottom = bottom-10;
                  scrollMC(-10);
            }
            break;
      case "up" :
            if (bottom<y) {
                  bottom = bottom+10;
                  scrollMC(10);
            }
            break;
      }
}
function scrollMC(value) {
      for (i=1; i<=mcNow; i++) {
            mcRef = eval("mc"+i);
            mcRef._y += value;
      }
}
// duplicate for the question * operand
function duplicateMC() {
      if (x>460) {
            newLines();
      }
      mcNow++;
      mcRef = mc.duplicateMovieClip("mc"+mcNow, mcNow);
      mcRef._x = x;
      mcRef._y = y;
}
// new line
function newLines() {
      x = 10;
      y += 80;
      bottom = y;
      if (y>400) {
            bUp._visible = true;
            bDown._visible = true;
      }
}

when i press btn1 it will call duplicateMC to duplicate new movie clip.
when i create many movie clip, some movieClip _y will more than 480.

Then now if i click scroll bar btn it will scroll the movieClips which _y is more that 480 to up, so i call scroll("Up"); or scroll("Down");

I got one banner is on the top of movie. WHen scroll, the movie clip will at the front of banner, how i can make it at the back of banner?

How i send the source file to both of you? can give me email, then i send, if still not sure what i said.

Max
0
Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

 
LVL 2

Expert Comment

by:BobFett
ID: 10821677
Why don't you put the file on that interwebnet thing and give us the address?
0
 
LVL 9

Expert Comment

by:krishnaprathab
ID: 10822659
Try placing the scroll in a layer under the banner movielcip layer. In other words place the banner movielip in a higher layer stack than the scroll. This may help. Its better you post the file to some place rather than the code.

Thanks,
KP
0
 

Author Comment

by:MaxTo
ID: 10829697
For all the experts, especially krishnaprathab, Thanks for helping me. Sorry, cause i had solve this problem. I didn't provide a proper description, cause i can't descript it in clear. But lucky, i solve this problem. Cause i just swapdepth the banner movieclip. Thanks to all.

i will close this question.
Bye
Max
0
 
LVL 5

Accepted Solution

by:
Netminder earned 0 total points
ID: 10830475
User resolved; closed, 100 points refunded.

Netminder
Site Admin
0

Featured Post

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Sometimes you know that one object has a specific child in it, but you can't find the child. This happened to me when I was trying to code some actionScript to make a toolbar work with its embedded buttons.  My partner had created the toolbar usi…
I have been doing hardcore actionscripting for some time; and needless to say I have faced a lot of problems in just understanding others' code rather than understanding what the code executes. A programmer's life can become hell when there are a lo…
The goal of the tutorial is to teach the user how to how to record live broadcast.
The goal of the tutorial is to teach the user how to select which audio input to use. Once you have an audio input plugged into the laptop or computer, you will go into the audio input settings and choose which audio input you want to use.

776 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question