Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash




Using ColorTransform To Convert Colour Movieclip To B&W?



Hi,

is it somehow possible to use colorTransform to create a black and white version of a colour movieclip?

Thanks ;-)



FlashKit > Flash Help > Flash ActionScript
Posted on: 09-15-2005, 06:54 AM


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

As2 - Movieclip As Button + ColorTransform
hello all

i have found that you cannot target the content of a button (if you can, dont hesitate to correct me) like this.buttonName.mcInsideButton.

so i created a movieclip with frames and with AS i recreated the same principle as a button. i need my button content to be customizable, so via functions i change the colors of the movieclips inside the said button.

problem is, it seems that once the color is set, the x and y position of the mc inside the fake button is fixed. (in the library version, on the down frame, the images are on pixel down, while at runtime only the non colored images goes one pixel down)

anybody has some insight on this?

Applying ColorTransform To Animated MovieClip
Hello All,

Here's my situation. I have an animated movieclip that I apply a ColorTransform to programmatically with AS3. Applying the transform correctly changes the tint of the movieclip but the animation doesn't play anymore. What am I missing exactly? Is it not possible to apply a ColorTransform and still have animation play? Thanks in advance.

caskater4

Convert Number (0x000000) To Css Colour (#000000)
I know this should be simple but I just can't work out how to convert a number in a constants class (0x000000) to a colour that I can use inside a FONT tag (#000000)

I would just use CN.COLOUR_BLACK.toString() and remove the first 2 characters, but the string is being returned as 0, not 000000.

Any suggestions?

MovieClip Colour HELP
I am trying to use arrays to put a colour value in to a text box.


Code:
colorbg = new Color(backGholder);
colorbg.setRGB(bgArray);
backGholder is the movieclip and bgArray is the colour. The text in the array needs to come from a text box. I am colour values like 0xCCCCCC.

Changing Colour Of A Movieclip
Hi.

I am wanting to change the colour of a movie clip which I have in mt flash. At the moment it is completely empty with no symbols in etc. Can anyone suggest what I need to do in order to change the colour of this clip using actionscript?

If so what code will I need to use and will I need to make any changes to the MC in order for it to change colour.

Thanks

Immy

Movieclip Colour Change?
hi. i'm having a problem with changing the colour settings of a movieclip:

i have a menu system, which consists of many movieclips inside one main movieclip (which i'll call "menu") just to make the main timeline a bit neater and organised.

each of my sections (home, about, gallery, links etc) has a different colour scheme. (basicaly white and another colour) and all use the same menu movieclip. what i want is to have each section have a different colour menu system, to match the current section colour. but (as it took a loooooong time to make the menu system (as i'm not very good at actionscrip!t)) i dont want to have to make a new menu for each section and change the colour. it would also take a long time, and could get complicated (for me at least)
what i tried to do was use the movieclip colour settings. i've tried both tint and advanced, but i cant seem to get what i want., though advanced came close.
is there anyway of changing the colour of a movieclip without changing the actual movieclip so that it doesnt affect the other sections with the same movieclip?

so like, if i had two colours in a movieclip, white and, say, black. could i change it so one section has the movieclip as white and blue, and another section have the same movieclip but as white and red etc?

check out my website and look at the button menu. each section has a different colour of the movieclip (using the advanced settings) but i can only get a pastel version of the colour, not the exact colour. (the white always stays the same, which is great and just what i want for the white)

http://www.cartoonfox.hostrocket.com

thanks in advance for any help.

thanks

Changing Colour Of Movieclip
I have this piece of actionscript working


ActionScript Code:
var my_color = new Color("mymc");my_color.setRGB(0xFF0000);



This works when I call the actionscript say from a button on the same timeline as the movieclip. What I can't get my head round is how I change the colour of an object on a different timeline, say if the path to the movieclip was _root.mc1.mc2.mymc

What would be the actionscript then?

Tweening A MovieClip With Some Colour
I'm making a game which is based on a two-dimensional map of a rather small size (less than 32x32), I want to add some colour to each of the positions on this map, depending on that areas properties. All properties range from zero (0) to one (1).
For example, if an area has much of one property then I want to add some green colour to it, showing that it's a "good area".

How to do this with ActionScript 3.0?

Movieclip With Random Colour And Y Position
i'm creating a screensaver where a line of text containg four words will scroll from right to left. i like to know how to do the following:

1. the text should change its 'y' position randomly for each scroll
2. when the text changes its 'y' position for the next scroll should also apply four different specific colour to the specific word in the text
3. the next scrolling text should appear just before the previous one leaves the screen.....i.e. when the previous one is sticking out a couple of inches....

Change MovieClip Colour Buttons - Please Help
Hi,

I have a movie clip which I need to change the colour of -

So far I have little buttons which change the colour when I click them. But what I really want is for the buttons to be draggable and when I drop them over the Mc, they change the Mc to that colour.

Can anybody please help me?

Regards

Laurie

Setting A Movieclip Colour Dynamically
Howdy,

Nice looking forum.

I am having problems changing the colour of a movieclip dynamically, from an XML file.

I would appreciate it if someone could please point me in the right direction.

Many thanks,

Cheers,
John

Chaning Colour Of MovieClip In Actionscript
Hi, i have a movieclip within a movieclip placed on the main stage, when someone rolls over it, i want it to change the colour of another movie clip on the stage (its just text on the stage that i turned into a movieclip.) I have my roll over script and everything else working fine, just this. All i'm basically trying to do is highlight someones name from a list (i've turned each persons name into a movieclip) once they select that persons picture. So i'm looking for help with changing the colour on roll over, and reverting it to normal on roll out, if possible. Thanks!

Mass MovieClip Colour Change -- HELP
Hiya,

Right, i got an interface thet when the user goes to a section, everything changes colour.

I have managed to get 2 MC's to change colour using the following code:

stop();
id=3


boxcolour = new Color(_root.bottom.content_mc);
boxcolour2 = new Color(_root.bottom2.content_mc2);

but1.onRelease = function () {
_root.id = 1;
}
but2.onRelease = function () {
_root.id = 2;
}
but3.onRelease = function () {
_root.id = 3;
}


_root.bottom.content_mc.onEnterFrame = function () {
if (id ==1) {
boxcolour.setRGB(0x00FF00);
}else if (id ==2){
boxcolour.setRGB(0xFF0000);
}else if (id ==3){
boxcolour.setRGB(0xFF9900);
}
}
_root.bottom2.content_mc2.onEnterFrame = function () {
if (id ==1) {
boxcolour2.setRGB(0x00FF00);
}else if (id ==2){
boxcolour2.setRGB(0xFF0000);
}else if (id ==3){
boxcolour2.setRGB(0xFF9900);
}
}




that works for the 2 movies, but i dont particually want to repeat the code for everysingle MC i need to change, i want to create an array of some sort that lists the rout of all the MC's that need to change any ideas?

the source so far is here: http://intranet.mykindaplace.com/rob...lourchange.fla

swf here:
http://intranet.mykindaplace.com/rob...lourchange.swf


CHEERS FOR ANY HELP

Masked MovieClip Colour Property Probem
I have a movieclip instance that is set as a mask which contains a simple rectangle that changes shape with shape tweening. This then masks a movieclip that consists of just a rectangle. In actionscript i adjust the colour
of this masked movieclip depending on a colour the user selects.

The problem is that the colour of this masked rectangle movieclip reverts to the original colour after one loop of the mask movieclip, where i want it to stay as the selected colour.

I also have this problem using gotoAndStop. For example, there are 20 frames in the mask clip which starts on frame 10, and as soon as i change the frame with gotoAndStop the colour reverts. In both cases it is as though the masked instance is no longer recognised.

Any ideas?

[F8] Movieclip Actionscript Advanced Colour Control
Hey, i have made some colour sliders, so i can use actionscript to change the colour of the movieclip, but I dont just want to change the whole colour of the movieclip, I want it to keep its tones, as would happen if you used the advanced colour tool within flash.

Thanks for any help or suggestions.
Harro

Fade Movieclip Colour White Into Black..
How can I fade a movieclip colour white into black with action script? already thanks for your reaction!

Printing Movieclip Without Stage Background Colour
I need to print a movieclip with some text and images in it and it's working fine with the print button I created. My problem is that when it prints, it prints the background colour of the overall movie, which is black in this case and it will waste ink unnecessarily. I just want to print the contents without having to print the background colour.
Thanks in advance.
Frank

How Convert Swf To MovieClip ?
I have many *swfs and i want create one exe.
I have idea convert swfs to MovieClip, and next open them in root movie

anyMovieClip.attachMovie(/*params*/;

but i still don't know how to convert swf to MovieClip

please help me ...

Problems Changing Colour Of A Movieclip On A Button Press
hi, im coding a api drawing program in flash8 and im trying to create a colour preview box.

i was attempting to write code to change the hexidecimal colour value of a movieclip (which is a white square with the instance name of colour_mc) when a button is pressed.

The code for the buttons which when pressed will change the colour of the white square look like this:

//colour is a varible for hexidecimal colour of the linestyle command
//colour_mc is the white square which is ment to change colour.

a_btn.onRealease = function() {
colour = 0x000000;
colour_mc.transform.colorTransform = 0x000000;
};


I thought this code would work but it doesnt the movieclip doesnt change colour at all. Does anyone know were im going wrong? thanks

Help Changing The Hex Colour Number Of A Movieclip On A Button Press
hi, im coding a api drawing program in flash8 and im trying to create a colour preview box.

i was attempting to write code to change the hexidecimal colour value of a movieclip (which is a white square with the instance name of colour_mc) when a button is pressed.

The code for the buttons which when pressed will change the colour of the white square look like this:

//colour is a varible for hexidecimal colour of the linestyle command
//colour_mc is the white square which is ment to change colour.

a_btn.onRealease = function() {
colour = 0x000000;
colour_mc.transform.colorTransform = 0x000000;
};


I thought this code would work but it doesnt the movieclip doesnt change colour at all. Does anyone know were im going wrong? thanks

Fast Way To Convert Swf Into Movieclip
anyone know of a fast way to convert a whole swf file into a movie clip quickly? other than just cut and paste the tracks/layers into the movie clip ?

Can I Convert A Timeline Into A Movieclip?
I know this is gonna sound kinda special ed, but I'm desperate...

I created an intro animation in a new fla. Works good, looks good.

The problem is I have a Main.fla that I want to include the intro in as a movie clip element.

How the heck can I convert the timeline of a fla into a movieclip element to be used in another fla?

I should have created a blank movie clip in the Main, but like I said, I'm a lil special Ed this week...

Thanks and on the edge,

Brendang

Need To Convert A MovieClip Into A Bitmap
Hi guys!

I'm still new at AS3 but I'm slowly getting the hang of it.
I wanted to ask if anyone here knew how to convert a movieclip into a bitmap. I want to perform a function which is similar to getting a screengrab.

I'm then going to blur it using a filter, and then display the static image on the layer below the current layer.

I know its got something to do with BitmapData, but I just can't seem to get the code right (I've not used this class before).

Also, how do you target specific layers?

Can anyone shed some light on this? I'd appreciate any help. Thanks!

Convert DisplayObject To MovieClip.
How do you convert a displayobject to a MovieClip?

I am dynamically placing a list of buttons from the library. In the movieClips there are labels "open" and "close". I am trying to say gotoAndPlay("open"). I am getting a error:

#1034: Type Coercion failed: cannot convert "note_1" to flash.display.MovieClip.

I have tried this, it did not work.

Code:
var myVar:MovieClip = MovieClip(activeMovieClip);
myVar.gotoAndPlay("open");

How Can I Convert A Shape To A MovieClip?
Hello, guides!
I drew a shape with filling in AS 3.0 and now I need to convert it to a MovieClip. How can I do this? Maybe my algorithm of work is wrong and I must create the rectangle MovieClip from the beginning?
Thank you!

How Do I Convert A MovieClip To A Sprite?
Feeling a little overwelmed with the transistion from AS2 to AS3. I'm not a developer/coder, I wear the designer hat. I'm a graphics application instructor transitioning from AS2 to AS3 and I'm getting no where trying to figure out how to do a start and stop drag in the new version.

I have a simple exercise for my class that involves making movieclip symbols then using Startdrag & Stopdrag (or assigning via behaviors in Flash 8.0) to manipulate the movieclips in the player.

I need to be able to reproduce this in Action Script 3.0. I know it involves Sprites but I haven't been able to figure out how to set a Movieclip symbol as a Sprite.

Any assistance is greatly appreciated.

Convert Loader Into MovieClip
It probably has a simple answer but i can't figure it out, i've googled a ton.



Quote:




var imageLoader:Loader = new Loader();
var image:URLRequest = new URLRequest((location.text()[+t]));
imageLoader.load(image);
addChild (imageLoader);





When i trace it it says "object loader" and i can't manage depth with a loader object (i don't think)

or am i going to have to use another movieclip to contain it

Throws an implicity coersion error if i try to use this code


Quote:




setChildIndex(event.target,numChildren - 1);

Convert A Swf File To A Movieclip
Is it possible to convert a swf file to a movieclip and just use " tell targets " cmds ? i created a few swf files, loading them externally, however its not smooth.

do i have to import the swf ?

Group All And Convert To One Movieclip
hello,

I was wondering if it's possible with actionscript to
group all movieclips on the stage (on button action) and
give that movie a new name.

I am biting my head off on this, but can't figure it out..

anyone who can lighten my day?

thanks in advance,

derek wax

Convert To Movieclip Problem - Urgent
hi!

i am working on a massive animation and i realised that i actually want it to be a movieclip that i can overlay some of them. i have an animation using more than 1000 layers and about 1500 frames, but when i select all frames i cannot convert it into a movieclip. i tried to copy and paste all the frames into a movieclip but it doesnt work. is it because i have too many frames, empty frames, layers, etc in it? but i reckon there must be a way of converting it into a movieclip!?

please help! thanks a lot!

net_ta

Convert String Into MovieClip Instance Name
I want to do something like -
Code:
var theMC:String = "myMovieClip";
value(theMC).getBytesLoaded();
That is, I have a string of movieClip names, and want to get an object var with the same name.

How do I convert a string into an object ?

Thanks

Convert Sprite/MovieClip To Bitmap
I have a flash game, but it's too slow because there are to many instances on stage. So I got the idea that converting the Sprite/Movieclip containing the instances to a bitmap would speed it up.

Any Ideas?

Capture Screen And Convert To Movieclip
Hi,

What I would like to do is capture what is currently visible (its a 2000 pixel wide vector image and a 766 by 700 stage), I guess use the bitmap class, create a movieclip to put that capture into it, to then blur it with the FMP filter kit (http://www.flash-fmp.de/):

#include "FilterManagingPrototypes.as"
myClip.Blur_blurX = 0;
myClip.onEnterFrame = function(){
this.Blur_blurX ++;
if(this.Blur_blurX == 100) delete (this.onEnterFrame);
}

How can I do this capturing?

Thanks!

Convert Externally Loaded Swf To Movieclip
Hey

How do I load a swf and then assign it to a movieclip.

The code I have now is


Code:
var loader:Loader = new Loader();
loader.contentLoaderInfo.addEventListener(Event.INIT, loaded);
loader.load(new URLRequest("intro.swf"));


function loaded(event:Event):void {

var test_mc:MovieClip;
test_mc = MovieClip(loader.content);
trace(test_mc.totalFrames);

}
I've tried Event.COMPLETE and using loader.content to access properties but neither fixes the problem.

Right now the error is, " cannot convert flash.display::AVM1Movie@2ed3299 to flash.display.MovieClip"

How To Convert Multiple Frames Into A Movieclip?
I imported a swf having 800 frames to a layer , select all the 800 frames in the timeline and press f8 to convert it to a movieclip. Then test the movieclip. The movieclip doesn't have animation. How come? What's wrong? Thx!

How To Convert Movieclip Into Image At Runtime?
hi to all
i am using AS3 and i have developed an application in which i have 5 images in library and all of them are converted into symbol (buttons) and linked for action script as class.
what i am doing is when i click an image (one of these five ) on stage then i create a new instance of that images class and display that into another area which is unfilled rectangle (which is converted into movieclip).
there are also two text boxes and the text on these boxes appears on the new instance of image in rectangle. upto this there is no problem.

i have a upload btn i want that when i click that btn then the new created image and text upon that image can upload to desired directory as image file.
can it possible to convert these three (rectangle, image and label on image)
how can i do that?

bundle of thanks in advance

Convert TextField To Sprite Or MovieClip
Hi there,

All I want to do is something like fading out some text. As this is not possible using a TextField I googled around for some hours but only found solutions where I had to use the Flash GUI ("Select the TextField, transform it into a symbol ...") and Ready-To-Use-Classes around 30$ - 150$

I tried stuff like that:

ActionScript Code:
var myText:TextField = new TextField;
var textSprite:Sprite = new Sprite;

myText.text = "Would someone fade me please?";
textSprite.addChild(myText);
addChild(textSprite);
textSprite.alpha = 0.5;
But it doesn't work. As there are commercial classes that solve such issues, there must be a way.

Hope you can help me

Is It Possible To Convert Characters To Movieclip Symbols?
I want to do something like when ppl type in some texts, the program will convert every character of the text to a movieclip symbol, so I can animate individual characters. Is there a way to do something like that?
Thx in advance~

Is It Possible To Convert A Movieclip To A Bitmap Using Actionscript 3.0
I am interested in creating a flash player that enables the user to export the swf file as a bitmap of custom size/resolution and save it. Before I attempt to do it I would like to know if it's possible to do it exclusively with actionscript 3.0 or if I need an external program. I haven't found anything on the net that does this only using actionscript.

Convert Imported Bitmap To Movieclip
hi folks,

sorry this one is really urgent:

how can i via actionscript convert a imported bitmap into a movieclip?


thanks


firegambler

regards

Firegamler

PV3D: How To Convert Bitmap Into Movieclip?
does anyone know if there's a way to convert a BitmapFileMaterial into Movieclip with papervision3d?
Basically I want to convert a few JPEG files by XML parsing into some movieclips

the draw() function doesn't work...

How To Convert String To Object (movieclip Instance Name)
this is a function on my _root :


function callMsg(title,msg,btn) {
trace("_root.msgBox() is called");

_root.x += 1;
var newName = "x"+_root.x;
duplicateMovieClip("_root.msgBox",newName,_root.x) ;

//////////////////////////////////////////////
//Need to call function startMsg() in the created movieclip
//////////////////////////////////////////////

var xx = (Stage.width/2 - _root.msgBox._width/2);
var yy = (Stage.height/2 - _root.msgBox._height/2);
setProperty(newName,_x,xx);
setProperty(newName,_y,yy);
}


with that i added a line

_root.newName.startMsg();

but it wouldnt work, i thought the reason must be "newName" is a String hence it wouldnt refer to a _root.String but looking for a _root.object


example if newName is "x1", the duped movie clip would be named x1 too
hence i need to call out :
_root.x1.startMsg();

qns is how do i get it to refer newName as a movie clip ?
thx in advance, btw whats the difference between depth and level ? and can i delete my own post here ?

How To Convert Movieclip Data's Into Pdf File In Flash AS3.0?
Hi everyone,

How to convert movieclip data's into pdf file in flash AS3.0? Using save button i want to generate pdf file. Is it possible in AS3.0?

Convert A Movieclip To EPS Or Some Other Vector Format Dynamically By AS?
I'd already posted this question as a reply in a discussion of one of my own earlier posts.. But i needed to draw attention to this problem of mine particularly. so m posting this as a separate question..

I need to convert a movieclip dynamically into a vector or some picture format and save it to disk. is that possible? i have almost no knowledge what EPS format is..
so any links or help is appreciated.

Convert MovieClip To Bitmap And Save On Disk At Runtime
can anybody help me to solve my this problem
i want to save my movieclip as image file at runtime on disk
is this possible by using flash as3 or 2

Is There Any Option To Convert Movieclip In Flash To Save It As Avi File.
hi all,

I have done a flash xml slide show which is taking images from xml as usual, and the slide show ends with last image. what i want is to save this slide show to avi file format when we click save button at the end of the show.

Please help me to figure out if there is any possibility in flash or any other..

thanks in advance

Creating A Colour Dialogue Box For User To Select A Colour For Background.
Hi,
Any ideas how to create a colour dialogue box so the user can select their own pereference of background colour?
thx
shaf
(I mean inside the SWF as its running......)

16 Bit Colour Mode Problem With Alpha Fades On Colour
Please help me out. I have tried many other forums and people, but no one can give me an answer. Hopefully you can.

Have a look at a site I designed for a school.

http://www.brineleas.co.uk in 32-bit mode this is great, now try 16 bit colour mode and you will see my problem.

Please help if you know how

Trev:

Flash Colour/ Javascript Colour
Can anyone over here help with the following...

http://www.were-here.com/forums/show...hreadid=148509

Copyright © 2005-08 www.BigResource.com, All rights reserved