ActionScript 2.0 :: Creating A "tint-able" Clip Art Library?

Jun 8, 2010

I'm looking for a bit of advice. I'm in the process of developing a custom clip art library for an educational program (images of food, clothing, classroom items, etc.) for youngstersI'd love to make it possible to allow the end user to change/ tint the color of any given graphic in the library on the fly.For example, let's say the user first clicks on a shirt. The shirt comes up, and by default, it's red (as the artist originally made it). As the user is experimenting, they decide they'd like the shirt to be brown/ blue/ green/ orange instead of the default color. If I simply apply a blue tint to a red graphic with a ColorTransform, I'll end up with a purple shirt or a blue object with no detail (or some similar problem).

The challenge, it seems, is how to design the images so that they look good by default -- as the artist created them -- but still allow the flexibility for users to experiment and change colors as they see fit. Is there a recommended way to handle this kind of an issue? Perhaps a way to desaturate the image to grayscale (or a movie clip in the image that contains the essential color) before tinting it to a new color...?

View 1 Replies


Similar Posts:


ActionScript 3.0 :: Change The Colour / Tint Of A Movie Clip?

Feb 6, 2009

how you can change the colour / tint of a movie clip via code, and essentially via a RGB value specified in an external xml file.

Here is the xml file I'm working with right now...

PHP Code:

<Countdown year="2009" month="2" day="14" bgdcolour="0xFFFFFF" lcdcolour="0xFFFFFF" labelscolour = "0x000000" textcolour = "0x000000">
</Countdown>

[Code].....

The bits highlighted in red bold above is the section where I've got stuck.. I have tried code: var bgdcolour:uint = Countdown.@bgdcolour; , but no luck and all I get is '16777215' in the output panel..

View 4 Replies

ActionScript 3.0 :: Replace Tint Color In Movie Clip?

Jul 7, 2009

I have square box with simple animation. Now I want to change color of my movie clip. Is this possible to change my movieClip's box ? My square box instance name is "blueBox". I mean i want to specify tint value

View 1 Replies

ActionScript 2.0 :: Change Tint Of Movie Clip On Rollover Function?

Jun 29, 2006

I'm using a function to make a movie clip with text inside of it act as a button:

Code:
poly.onPress = function() {
clearInterval(intervalID);
_parent.vocab.play();
};

is there a way to add a onRollOver: change tint of 'poly' to red (poly is a mc)??

View 14 Replies

ActionScript 2.0 :: Change The Tint Of A Movie Clip Inside The Component?

Jan 19, 2007

I am trying to build a custom button component in flash 8... I am setting it up so you can change certain color values with the component inspector.I want to know how to change the tint of a movie clip inside the component...I searched all over the place, maybe I'm not looking right.I found out how to change the color in a text field but I am still stumped on how to change a movie clips tint.

View 3 Replies

ActionScript 3.0 :: Change Tint Of Movie Clip On Rollover, Play Sound File When Clicked?

Nov 9, 2009

Drag and drop game. I'd like the instance to tint red when rolled over after it's been successfully dropped. I'd also like to play a sound file when clicked after successful drop. Here's the code:

ActionScript Code:
addEventListener("dropped", dropper);
function dropper(e:Event):void {

[code]....

View 6 Replies

ActionScript 2.0 :: Load A Random Movie Clip From The Library To An Empty Clip On The Stage Called (bg_graphics)?

Oct 20, 2004

I want to load a random movie clip from the library to an empty clip on the stage called (bg_graphics). the clips in the library are called (green, blue, yellow).

View 5 Replies

ActionScript 3.0 :: Creating A Movieclip From The Library

Nov 14, 2010

[code]will create an instance of the movieclip "levelUp_mc" and play it.I have the same code in a function in a class, but it doesn't do anything. What is going on?

View 2 Replies

ActionScript 3.0 :: Dynamically Creating Buttons From Library?

Aug 3, 2010

figure out how I can create Button from Library dynamically ?

View 4 Replies

ActionScript 3.0 :: Creating Classes - Use Of Linkage And Library?

Oct 11, 2010

I am starting to create classes instead of using the timeline and I am learning a lot more even if mistakes happen more often. However I have a question about linkage & library. For example let say that I have a ball pic called Ball1.mpg. I copy and past that Ball1.mpg in my folder where the Fla file is as well as the as file. If I want to utilize this Ball1.mpg in my code using Flash do I absolutely need to import into my library and link it and export using linkage? Or can I use the object Ball.1mpg just using actionscript. Of course that implies that I would use an actionscript class not the timeline.

View 1 Replies

ActionScript 3.0 :: Dynamically Creating A .swf Using The Ming Library For PHP?

Mar 13, 2012

I am dynamically creating a .swf using the Ming library for PHP. It doesn't support sound objects but it does support streaming MP3 Files. I need to know what happens to a .swf with an exported .mp3? I am hoping that using something like swf2flv will embed the .mp3 into the .flvBefore we get into a debate about reasons NOT to convert a .swf to a .flv it is absolutely necessary for my project.

View 4 Replies

ActionScript 3.0 :: Shared Library Creating Programs?

Jul 5, 2009

So I've decided to at least have a fallback option outside of cs4 for all further projects by using a shared library (IE, my graphics in a separate swf)So, what are some programs that would allow me to do this? Preferrably something that can take illustrator files. Anything thats going to let me package graphics for as3/flash 9+I looked at swfmill, but does it function with as3? I couldn't figure this out, it looks like it was last updated in 2005 and the tutorial was still talking about attachmovie (which is deprecated)A program like this would be useful for new versions of HaXe as well. Having everything you're developing thrown in a single .fla is awful for a lot of reasons

View 4 Replies

ActionScript 3.0 :: Creating An As3 Media Library With Search Function

Dec 26, 2011

Im trying to create an online video library using xml and as3,My goal is to place a search bar onto the stage allowing the user to find a video from the project folder,My problem is i dont know how to search my video folder to retrieve a .flv video and display it from my .swf file using as3 and xml.

View 1 Replies

ActionScript 3.0 :: Creating Array Containing Multiple Library Movieclips

Mar 2, 2011

I'm trying to create a game where coloured items can be matched to coloured pegs on a washline but am having trouble with creating an array thet will place the pegs onto to the washline. I have 6 pegs and I wish to randomly attach 3 of them onto the line each time the swf is played.
 
Currently the pegs are labeled :
Blue_peg
Pink_peg

[Code]....

View 3 Replies

ActionScript 3.0 :: Creating Instances Of Clips From Library Dynamically?

Nov 19, 2010

hmm how do I describe what I'm trying to do.. well here it is: In my flash library I have a series of movieclip with names like clip00, clip01, clip02 they are set to export for actionscript as the same name.

Now in my as file I'm importing a xml file that has the names of the clips which to place on the stage. Now if it were just a regular case I would do

[Code]...

I hope I am somewhat clear, please let me know if I can explain further. My project is really complex and I tried simplify it here. Please help or suggest alternative method.

View 1 Replies

ActionScript 2.0 :: Creating Dynamic Buttons Without Library Instances?

Mar 31, 2005

why this sort of, but doesn't work?I'm just creating a group of buttons using imported pictures without having anything in the library.Here's the code I'm using:

[AS]clipArray = [];
posArray = [];
for (var k = 0; k<3; k++) {

[code].....

View 5 Replies

ActionScript 3.0 :: Creating Library Of Bitmaps At Compile Time

Feb 25, 2009

I have a large number of bitmaps, all of different shapes and sizes, and all with associated data (i.e. name, description, cost, weight etc). I want to get all these items into AS in a data structure.Based on what I know I could put together an XML file and parse that and then load each bitmap individually, but that could be very slow as it would mean loading lots of little bitmap files one at a time.I could put all the bitmaps into one big bitmap and store their xywidthheight in the xml as well so that I only have to load one bitmap but that seems a bit tricky, especially if I need to add or remove items.

I could embed all this into a class and have it load everything at compile time which is ok but not very friendly to people who aren't programmers and or don't have the source file to recompile.Is there something i can do using maybe flash to create bitmaps with additional properties and put them all in a swf that would be easy to edit by anyone using point and click?

View 8 Replies

ActionScript 3.0 :: Creating A Library That Holds A Bunch Of MyObjects?

Nov 13, 2009

im creating a library that holds a bunch of myObjects. I 'register' these objects and give them a label(String) so I can access them later. There's 2 ways I can do this easily:

[AS]var libraryictionary = new Dictionary();
//set reference (takes MyObject)
library[myObject.label] = myObject;
//get refernce (takes string, returns myObject)
return library["label"][/AS]

[Code]...

View 1 Replies

ActionScript 3.0 :: Dynamically Creating MovieClip From Library With External Class

Jun 10, 2010

I am making a Thumbnail class which is part of my Photo Gallery Package that I am building with the intent of automatically generating my thumbnails. I do not want to limit myself to just AS3 animations, I would also like the ability to use timeline animations. I have a system using "in" and "out" for frame labels which I find very efficient and I get stuff done quickly. So I created the thumbnails holder MovieClip with the animations and have it linked in my Library, however, when I try to pass it to my Thumbnail Class, I only get one instance and I need to create several instances.

Document Class
ActionScript Code:
var thumbCont:mcThumb = new mcThumb();
thumbNails = new Thumbnails(thumbCont);

Thumbnails Class
ActionScript Code:
var thumbContainer:MovieClip;
public function Thumbnails(thumbCont:MovieClip,) {
thumbContainer = thumbCont;
}private function createThumbs():void {
for (var i:int = 0; i < aThumbs.length; i++) {
[Code] .....

I eliminated most of the additional stuff. What this does is that it doesn't create several thumbContainers, rather it just uses the one. So how would I be able to generate several of them? I can obviously create an Array with them and create them in my document class, but if I can avoid that and have my thumbnail class do it by itself, that would be perfect.

View 2 Replies

ActionScript 3.0 :: Creating A New Object From Library With Custom Class Attached?

Mar 17, 2009

I have the following as code in a separate file placed in the root folder of the swf file. The as file is the class for a MovieClip in the library.When i manually place the library symbol on the stage, the MC works fine and draws the square with the nodes. However, when I try to create a copy using ' new sqMC();' code, I get an error.

Code:
package {
import flash.events.MouseEvent;
import flash.events.Event;
import flash.geom.Point;

[code]....

View 1 Replies

Actionscript 3 :: Instantiating Movieclips From Library And Also Creating Them Dynamically Is Stop() Needed?

May 2, 2011

In the past, we've put a stop() action in the timeline of movieclip symbols so that the timeline would not play and we would control all animations via code. We've also done that to the main timeline as well. Is this still needed for performance reasons? Is this needed for dynamically created movieclips? I know that the Sprite class should be used if there is no timeline associated with it.

View 1 Replies

ActionScript 3.0 :: Creating A Dynamic Scroll Panel Using Two Objects From Library And Accessing Images From A Folder Using Some Basic XML

Jul 12, 2009

Creating a dynamic scroll panel using two objects from my library and accessing images from a folder using some basic XML. The ScrollPanel loads fine, the 6 instances of the empty movieclip holders load. The function that traces the instance of the movieClip names is working. My trouble is accessing the instances of the movies to load the loaders in order to view the jpgs called from the folder. I receive an "access of undefined property" message if I type thumbLoad0.addChild(pic1ldr); etc, which you will see at the very bottom.

[Code]...

View 1 Replies

Move A Movie Clip From The Library?

Nov 9, 2009

from one flash .fla file to another .fla file? I would need all the different layers too. I tried to export it but it does not work.

View 2 Replies

ActionScript 2.0 :: Clip To Load From The Library?

Jul 23, 2003

I have my empty_mc, linkageID, instance names and so on. ButI can't seem to get this clip to load from the library.

The code I have on the button is:

[AS]
port_btn.onRelease = function() {
myBlank_mc.attachMovie(subMenu,attachedSubMenu,1);
};
[/AS]

View 8 Replies

ActionScript 3.0 :: Adding A Clip From The Library?

Mar 31, 2009

Is there any way to test if a clip exists in the library before you add it to the stage?

View 3 Replies

ActionScript 3.0 :: Target Clip In Library?

Aug 8, 2009

I have a clip that is manually dragged from the library and I simply want to target this movie clip in the stage but through library using actionscript.

View 1 Replies

ActionScript 3.0 :: Dynamically Add Clip From Library?

Mar 9, 2010

I have clips in my library (Slide1, Slide2, etc) and I want to add them dynamically, this is how I'm adding them at the mo;

Code:
switch (CS) {
case 1 :

[code]....

View 2 Replies

When Add Animation To Library, Movie Clip Goes Far From Center?

Jan 10, 2010

when i add my animation to library movie clip goes far from center, why is this happening and how can i fix it?

View 5 Replies

ActionScript 3.0 :: AddChild Not Working With Library Clip?

Aug 16, 2009

I'm having a problem adding a library clip to my stageI can do no problem if I have a testFLV.fla that has a library clip called test_clip with the linkage set to: com.attach_clips.Clip.

Code:
import com.app.views.mediaDisplay;
import com.attach_clips.Clip;

[code]......

View 0 Replies

ActionScript 2.0 :: Attaching A Movie Clip From The Library?

May 27, 2007

I am attaching a movie clip from the library with this code

PHP Code:

function movie_start(num){    for(i=0;i<num;i++){         var circle = attachMovie("k_circle","k_circle"+i,i)        with(circle){            _x = (-50);            _y = (-50);        }    }} 

So is there any way of placing Actionscript onto this clip using actionscript I want to place this:

PHP Code:

onClipEvent (enterFrame) {    _x += (_root.k_xpos-_x)/_root.k_speed;    _y += (_root.k_ypos-_y)/_root.k_speed;} 

I have tried a couple of things to no avail...

View 2 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved