Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 11-17-2009, 06:52 PM   #1
Registered User
Join Date: Nov 2009
Posts: 2
Default CS4 Custom component live preview problem

I have made a simple custom component, just a textfield with a background.
During runtime it seems to work fine but inside of the flash IDE it's completely messed up.

I followed the example from here:
and what I have is not much different.

Firstly it doesn't size properly, it doesn't seem to use the setSize method.
Then it doesn't update when I change any of the parameters and sometimes it becomes invisible, I can still select it nothing shows up but the bounding box.
If I save and then reopen the FLA file the component is updated and looks the way it should.

I have added a setSize method and I have overriden the width and height getters/setters.
What am I missing? Is there anything else that needs to be added, maybe some kind of initilization method. Or is this just a bug becuase the component works perfectly fine when I run the swf.

Last edited by cmann; 11-17-2009 at 07:29 PM.
cmann is offline   Reply With Quote

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

All times are GMT. The time now is 04:40 AM.

Follow actionscriptorg on Twitter


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