Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 180525
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T14:36:06+00:00 2026-05-11T14:36:06+00:00

I just finished a small task for school in Flash and I’m wondering about

  • 0

I just finished a small task for school in Flash and I’m wondering about about the reasons to put Some actionscript in the scene and other in the movie clip.

Info: I’m using Flash CS3 and ActionScript 2.

I uploaded the file here, for anyone who wants to take a look: http://www.mediafire.com/download.php?2z2mivtmokg

Now, I did all the actionscript in the movie clip and I’m wondering, why doesn’t it work when I try to do it from the Scene? Suppose I take all the code from the Actions layer in the clip, copy it, delete that layer, go to the scene, make and Actions layer there and past the code, why doesn’t it work?

I’ve tried adding circle_mc(the name of my clip) to the code, but to no avail…

Can someone help me here? Trying to make it so that no code appears in the movie clip, cause I think that was my original assignment.

To further dig in: how should I go about deciding which code goes into the scene and which goes into the movie clip?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T14:36:07+00:00Added an answer on May 11, 2026 at 2:36 pm

    If you are inside of a movieclip and you can use ‘this.something’ it reffers to the movieclip you are working in…ie: ‘circle_mc’, but if you go to the root timeline and create an actions layer you can’t use ‘this’ anymore, you have to reference the movieclip name. So, if you created a new layer on the root timeline called actions, you could paste this code in and it will still work (delete your old code, inside the mc too):

    var stoppedOn = 2;  circle_mc.onPress = function() {     circle_mc.startDrag(); }  circle_mc.onRelease = function() {     circle_mc.stopDrag(); }  circle_mc.onRollOver = function() {     circle_mc.gotoAndPlay(stoppedOn); }  circle_mc.onRollOut = function() {     circle_mc.stop();     stoppedOn = circle_mc._currentframe; } 

    I personally think your code stays more maintainable if you put all of your code on the root timeline. It will also prep you for working with Classes down the line. I would also reccomend learning AS3 in your spare time as it’s really the way to go.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I just finished a small project where changes were required to a pre-compiled, but
Just finished read this post by Greg Young, where he is talking about Microsoft
I just finished a medium sized web site and one thing I noticed about
I just finished a small project written in C, where I read a data
I just finished a Django app that I want to get some outside user
I just finished my exam in an introductory C course about 20 minutes ago.
I've just finished designing a small android app and have now come to a
I just finished what I would call a small django project and pretty soon
I'm relatively new to Windows development, but have just finished a small project. I
We just finished a small project for a client (~35k), and the client would

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.