Hi, I have a bit of a problem, wondering if anyone can help. I am creating a button component in AS3, the idea of this button is that you can set its parameters to the name of movie clips you want to use as its images (mouse up/over/down etc). So basically it's a button that you can easily change the appearance of, and this would be reflected in the preview on the stage. I made this component in AS2 and it worked very well and was very useful. However there is a problem with this component in AS3 - When I create an instance of my button component and try to set images for it (remember these are the names of movie clips in the library which have been exported for actionscript), the preview of the button component does not show the images. When I compile the SWF the button component does show the images ok though. When my button component redraws itself, it looks at it's parameters and calls getDefinitionByName to create an instance of the correct movieclip. I am guessing that the problem occurs because the movieclip I am trying to instantiate is not in the component's library, it is in the library of the project I am using the button in, so maybe the component doesnt know what that movieclip is? But it's odd because when I compile/publish the SWF it works, like I said, it's just the preview of the component that doesnt work, and that's kind of the point, being able to get a preview of the button so it can be positioned and sized correctly. I know I could get it to work by putting the movieclips I want to use for the button into the button component's library, but that again defeats the purpose of this component. Any ideas why this would not be working? it seems a shame as this was working in AS2. Thanks, Greg Denness
... View more