Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 10-15-2005, 07:45 AM   #1
norfy
Senior Member
 
Join Date: May 2005
Posts: 112
Default What is the best method for a custom component

Hi there, I want to create a custom image viewer component that can be reused across a set of movies. Basically I want to create a diamond shape that randomly loads an external jpg into it from a folder using the Random() generator and then I apply a smaller diamond shape mask to it, so it looks as though my diamond shape image viewer has a border to it.

Is the best method to create a custom component? I will want to use more than one copy of the image viewer on the stage at one time... would this work, or would any code within it conflict with the other copy on the stage.

I then also need to use this image viewer on different movies, so need to export it either via the library or using the component viewer. Eventually I will reuse the image viewer about 20 times, so would rather create one lot of code than 20 lots of it.

Do you know if this is the best method, and if so how would I start to go about creating a custom component? Or if not, how would you do it?

Many thanks in advance for your help.

Regards
Mark
norfy 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


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

///
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.