Jump to content
GreenSock

Search In
  • More options...
Find results that contain...
Find results in...
list

1120: Access of undefined property mc

Recommended Posts

I keep getting the same error message—1120: Access of undefined property mc—when publishing.

com folder is in folder with fla. this continues to puzzle me?

 

code:

 

import com.greensock.*;

import com.greensock.easing.*;

TweenLite.to(mc, 1, {x:330, y:343});

Link to comment
Share on other sites

are you 100% positive that your Movie Clip that you intend to tween has an INSTANCE name of mc?

 

if you are still having problems, zip and upload a simplified fla, thanks.

 

carl

Link to comment
Share on other sites

I'm still having the same problem. com folder rest in folder with fla.

what is going on?

Link to comment
Share on other sites

even tried reinstalling software.

Link to comment
Share on other sites

i had trouble unzipping your file

Link to comment
Share on other sites

thanks. that file unzipped fine but I don't have cs5. let's try this.

 

I've attached an fla with your code and the greensock classes.

if working.fla does not export and animate a red box, then there is a real issue on your end.

 

 

please try it and let me know

 

carl

Link to comment
Share on other sites

its problem on my end. recreated the same file and it returned errors? might look at

installing cs4 for now?

Link to comment
Share on other sites

just curious. try this:

 

delete your movieclip from your file, copy the mc from my file and paste it into your file.

 

test.

 

--------------

 

if that doesn't work, cs4 might be worth a shot, but I'd contact adobe as Flash CS5 is too expensive to be giving you that type of trouble.

 

also try a simple piece of code without the greensock stuff like

 

mc.alpha = .5 and see what happens.

 

-c

Link to comment
Share on other sites

Carl's suspicion was correct about you forgetting to name the instance.

 

Open the FLA. Click once on the MovieClip to select it on the stage. Look in your properties palette. You should see a field with gray "" text appears. Click there and type the name "mc" (or whatever you want). THAT is what you feed to TweenLite when you tell it what you want to tween.

 

You also had some duplicate code INSIDE your MovieClip where it looked like you tried to reference itself by using the name of the library symbol ("dash_mc"). No good. I removed that altogether and posted a working file.

 

Don't forget to make sure the "com" folder is in the same place as your FLA when you publish so that Flash can find the TweenLite class file.

Link to comment
Share on other sites

Other code works but not the copy and paste w import code? About to try cs4

Link to comment
Share on other sites

Other code works but not the copy and paste w import code? About to try cs4

I don't understand - can you please restate in a different way?

Link to comment
Share on other sites

before you try CS4 can please confirm that

 

a) you understand what an instance name is

B) you followed GreenSock's instructions and the instance name you have in the properties panel matches the one you are using in the code.

 

unless we can get past this, CS4 is not going to make a difference and any further help we attempt to provide is not going to have any meaning.

 

thanks

 

Carl

Link to comment
Share on other sites

see attached

 

scroll the image down

Link to comment
Share on other sites

I tried various things before this post, prob why found mixing of things in file thus the extra code left where it shouldn't. Renamed clip from mc and changed the naming respectively around file in as, properties, made sure com folder was in fla folder. I do understand instance name. Tried alot things before posting? Done all of that-correctly named it at covert to symbol.

Link to comment
Share on other sites

Yes! Files are working properly now, thanks to a cs5 update.

 

Thank you for your time.

Link to comment
Share on other sites

hi list,

 

that is great to hear. It really helps us to know that the update fixed it as we can now better help other people.

that sounds like it was a really strange bug.

 

have fun using GreenSock there is a lot of cool stuff to do.

 

Carl

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×