Home Tutorials Forums Articles Blogs Movies Library Employment Press Buy templates

Go Back   ActionScript.org Forums > ActionScript Forums Group > ActionScript 2.0

Reply
 
Thread Tools Rate Thread Display Modes
Old 01-17-2006, 01:49 PM   #1
MikeHunt79
Registered User
 
Join Date: Jan 2006
Posts: 1
Default Can't get _x property when tweening

Ok, I'm trying to make an actionscripted clip follow a normal clip

I need to read the _x co-ord when the object is moving but I can't.
I've tried this:
Code:
trace(getProperty(_root.triple_logo, _x));
It works fine when the object is still, but when it tweens, I get "undefined" appear in the output window.

Now... how can I get the _x property when my clip is tweening.

I've tried
Code:
trace(_root.triple_logo._x);
without any luck as well.
MikeHunt79 is offline   Reply With Quote
Old 01-17-2006, 02:56 PM   #2
myFUD
GraphNick Design
 
myFUD's Avatar
 
Join Date: Jan 2006
Location: Utah
Posts: 107
Default

As this is Actionscript 2.0 forum your first example uses improper syntax. Use
PHP Code:
this.onEnterFrame =function(){
    
trace(triple_logo._x)

This is the better way to code. Also, make sure your movie is named the same at each keyframe in the animation.
__________________
myFUD
--GraphNick Design--

http://graphnickdesign.com

Last edited by myFUD; 01-17-2006 at 02:59 PM..
myFUD is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
use action script and not tweening. ameersak ActionScript 2.0 2 07-25-2005 02:37 AM
Director style property lists in Flash blankfist ActionScript 2.0 2 06-08-2005 07:18 PM
Database simulated with arrays on a cd-rom lecasn5 Components 61 09-07-2004 12:40 PM
tweening + set property AMiller099 Animation and Effects 1 06-11-2001 09:26 AM
Detecting drag and drop funkydesigner ActionScript 1.0 (and below) 4 04-11-2001 06:32 PM


All times are GMT. The time now is 10:50 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2009 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.