Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Web Programming > Adobe Web Programming > Flash (all versions)
| Search | Today's Posts | Mark Forums Read
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Flash (all versions) section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old December 21st, 2004, 11:48 AM
Friend of Wrox
Join Date: Jul 2003
Location: York, , United Kingdom.
Posts: 142
Thanks: 0
Thanked 2 Times in 2 Posts
Default Movie Clip won't tween after colour changed

I have a movie clip that I set the colour of using actionscript, before it goes through a motion tween. For some reason, after the colour has been set, the motion tween doesn't take place. Anyone know what could be happening?
Old December 22nd, 2004, 05:59 AM
Authorized User
Join Date: Jun 2004
Location: chandigarh, , India.
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to vikas

One question: why dont you move it using _x and _y coords instead of tweening?
Now regarding your problem, could you paster your AS code over?

Old December 22nd, 2004, 06:56 AM
Friend of Wrox
Join Date: Jul 2003
Location: York, , United Kingdom.
Posts: 142
Thanks: 0
Thanked 2 Times in 2 Posts

I have already done the workaround to change the size (sorry, it's a 'size' tween!) by setting a function to fire every 100ms. Just wondering why the 'normal' flash tween stops working when you change the colour of a movieclip.

The actionscript I used to change the colour of the movieclip is as follows:

    new Color(_root.topbg).setRGB(colourValue);

Similar Threads
Thread Thread Starter Forum Replies Last Post
Changing Fore colour and back colour darrenb Access VBA 2 May 25th, 2007 07:10 AM
pixel colour shanthi85 Beginning VB 6 0 May 22nd, 2007 11:23 AM
Put a Video Clip on Web phungleon Flash (all versions) 3 September 6th, 2006 05:33 AM
form must be maximaized . dont have clip control haahoou Beginning VB 6 6 January 21st, 2004 05:42 PM
Motion Tween Problems Ben Horne Flash (all versions) 3 November 1st, 2003 10:09 PM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.