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




Using A Hex Value And Creating A Darker Shade?



Hey all,

Is there a way to darken a colour that I have in a string with actionscript?

Without using AS3 or Flash8.

?

I remember reading somewhere how I could use the binary of the colour. I'm guessing I can find something there to darken it.

I know it's vauge, but I thought I'd throw it out here.



ActionScript.org Forums > ActionScript Forums Group > ActionScript 2.0
Posted on: 01-18-2007, 01:30 PM


View Complete Forum Thread with Replies

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

Making Something Darker Using AS
I want the entire scene of my movie to gradually fade out to black. How would I do that?

Help Images Appear Darker.
I am publishing a Flash site and throwing it onto the net at the moment but images etc are appearing a lot darker, and some distorted, than on the remote movie I am looking at.

This is a pain in the rear in that I am still waiting for my Internet connection at home, so I am uploading, finding errors and then having to go away to work on them in the hope that things will appear better the next time.

Any suggestions pleeeeease!

Gareth

Darker Bitmaps, Urgent
Hi, I am doing a site for a photographer and need urgent help. When I import the bitmap photos they look darker in flash and in the swf.
how can I fix that? it is not that my computer settings are wrong, cause I see the photo in another program and it looks ok, its just darker in flash.
thanks
dafna

Concerning The Darker Grey Work Area...
I'm doing numerous things on a FLA file dealing with zooming objects into larger and smaller sizes. The problem is: the objects have become so big in some scenes that I have difficulty actually moving them. This is because the work area outside of my stage area is very very small and limiting. Sometimes the symbols I make large overlap the grey work area and become covered up in a darker grey area which makes it difficult for me to see parts of the symbol. Is there a way in which I can get rid of this darker gray outer wall so that I can see all my symbols in large sizes?

If so, please respond as soon as possible.

[F8] Bitmap Data - Darker Than Png File ?
Hi Flashkit section Actionscript.

I have a strange issue with BitmapDatas.
I load external sheets which are stored in .png files and I want to remove their background color using Bitmap.treshold. The background color is 0x(FF)666666

The problem is that my threshold myFaceBMP.threshold(myFaceBMP, new Rectangle(0, 0, 32, 32), new Point(0, 0), "==", 0xFF666666, 0x00000000, 0xFFFFFFFF, true); wont work.
However, I found out the reason why by taking a screenshot of my running swf. For some reason, the 0x666666 is not displayed as 0x666666 but 0x656565 and that's why it wont disappear. If I set the parameter in threshold to 0x656565, it disappears (but the file contains 0x666666 !).


Has anyone encountered such a situation before ? Is there anyway to render the colors as they should be ?

Thanks for reading ^^

Generating Lighter Or Darker Colors Of Given Color?
Hi All,

How to do this ?

for any given color value say 0xFFAACC

I need to generate(value) lighter or darker color of the same .

Thanks in advance,

Wish you all a very Happy New Year !!!

regards
advika

Text And Shade
Hi,

I've been surfing the net and suddenly I saw the site
http://www.boeing.com/
I saw the buttons and then my question came! How do I let the text like that buttontext there have a shade?

Window Shade Pull Down Q
Hi - I have no hair left. For some reason, I can' t figure out this seemingly simple masking effect.
I had downloaded the .fla file for this great tool that I want to use, but for some reason, can't reproduce it. Any help would be hugely appreciated.
Here are my questions:
1> The registration points are strange (I'm not very up to date on the correct usage of reg. points, but this doesn't seem to make sense.) Nothing really lines up - the reg. point in the masked layer, and the draggable button have nothing to do with e/other.
What is the best way to understand why the reg. point in the maksed layer is off to the left side while the reg. point on the draggable button is off center to the left?
3> Where do they get the coordinates, then, when they were constraining the masked layer to a rectangle?

Also is there a way to import this .fla for instance into another movie, including the proper layers with everything working?

As I had downloaded this tut. a while back , I have no idea where it came from and thus have no notes on it. If anyone would be able to walk me through how to recreate this effect from the git-go, that would be incredibly helpful. Thanks very much - here is the .fla.

DRAG, SHADE, And ZOOM
I can't seem to find the link/post to this example....

Someone did a great example of this drag zoom...

Description:

Let's say there is a picture. And you want to zoom the picture...but you want to zoom in on a particular area.

Move the mouse to the area you want. Hold the mouse down and drag... this will creare a square shaded box. Drag / Size the box to the area you want zoom.

When you let go...that area is zoom.

If anyone knows what I am talking about...and know the link / post... post here please.

Here is an example of what I did...but I want to apply the above method instead.

CLICK HERE

Adding Shade / Shadow In Flash
ok ive seen various websites that have shadow in there main stage. or square..
and i now there not pictures..

take a lookt at this site.. maybe you'll understand better http://www.webfeatsdesign.com

now notice in the main square if you zoom in you will se some kind of shadoww.. is it done with the soften fill edges , expand fill or how?! any tutorial or example.. thanks alot.

Shade A Movie Clip With ActionScript?
Hi,

I'm trying to shade a movie clip using ActionScript. For example, when a particular frame is entered, something like the following would occur:

movieClipName.setProperty.brightness = "50%";

Originally, I tried to accomplish the same thing by creating a simple button, but for reasons I won't go into, that won't work. Its possible to control the alpha and some color values of a movie clip in this manner, but that won't work for me either. I just want to darken the clip slightly. If you've got any suggestions, I'm all ears. Thanks in advance..

Chris

Import Images And Make A Shade Motion Between Them
Hi all...

I have a small problem... That's about importing images in a flash movie and then make them to a shade motion between them...

Understand me; i want Images 1 to shade into images 2 and from images 2 to images 3...

I hope you can understand me, thats the best way i can explane it to you without writting a novell...

I know that you may not can explane how in this forum, but if anyone know a good tutorial on that subject I would be very happy...

Draggable Window Shade Menu Problems
Hi - This is a very FUNctional menu that I'd like to incorporate, but am running into some trouble.

The first layer is the draggable bar (which is converted to a button, with start/stop drag actions - therefore with no reference to an Instance Name. The next layer is a rectangular mask and the third (masked layer) works like a window shade that you can pull down to reveal the copy or buttons, etc. This is a movie clip with a nested button - start/stop drag & constrain to rectangle actions are added.

When these elements are together alone on screen - they work fine when I test the movie. However, the big problem is, even when I recreate this menu window from scratch in another movie, it does not work on its own. When tested, the first layer (draggable bar) ends up being able to drag the entire content window.

Why is this happening? I would imagine it should retain its properties to work as it supposed to. I've tried turning the first layer's draggable bar into a movie clip, then nest the drag action in a button, but that only succeeds in liberating it from the window shade masked layer - which is now not draggable, but does go up & down.
HELP? Anyone? Thanks!

Calculating A Lighter Shade From A Passed Color
Hi everyone! This place is great and the website is a big help.

I'm trying to write a function for the purpose of generating a gradient fill from only one passed color. How can you take a passed color (0x0066cc, a blue, for example) and calculate a much lighter (almost white) shade of blue from it?

Any help would be much appreciated! Thanks again for all the previous aid I've gotten from you guys.

Draggable Window Shade Menu Trouble
Hi - first time "caller" to Kirupa! Thanks - thanks very much - good to be here!

My problem is this: I've found this great, useful menu system that allows the user to both drag it around, and pull down a masked layer to reveal either content or buttons, etc.

It's comprised of 3 layers - the first is the draggable bar or graphic out of which the window shade effect is pulled. It's a button with a drag action attached (not made into a movie clip first, then assigned a button behavior - a button from the start with no reference to instance name.

The 2nd layer is the rectangular boxed mask layer and the 3rd is the masked layer that contains the image to be pulled down in the window shade effect. This is a movie clip with a nested button. The MC has a start/stop drag action on it, with constrain to rectangle checked - with l,r,t & b coordinates.

Test the movie, works great! Both the draggable bar or grahic, AND the window shade layer are connected and able to be dragged together. (somehow, as I don't understand how they are linked to one another with no real reference to each other)

The main problem is this: when I add another layer containing another draggable MC or anything else, go to test the movie and for some reason, now the draggable menu bar is either separated from it's window shade and can be dragged around independantly (which I don't want) and/or it is now connected to the other MC and drags everything around on stage, at the same time.

Would anyone have the answer to how I can implement this great menu system into my project without it forcing everything else to be dragged around? I'm sure it's a quick fix, but I need the fix...man! Help is greatly appreciated!

Typewriter Class Delay "shade" Text For 2 Seconds
Hi All,

Im using this group94 style typewriter class which loads it's text from an xml file.

The class is almost perfect...exept for one thing.
I would like to delay the "old" text with a few seconds...

At the moment the old text (reversed typing..) is finished typing at the same time the new text is..

I want to delay the old text with a few seconds so that when a new text is loaded
and is finished typing you'll see the old text typing out for an extra 2 or 3 seconds..


Can somenone help me out to modify the Class file?..


ActionScript Code:
import mx.utils.Delegate;class StrMotion{        private var textoIn:String;    private var textoOut:String;    private var indexIn:Number;    private var indexOut:Number;    private var textfield:TextField;    private var speed:Number;    private var id:Number;    private var duration:Number;    private var time:Number;    private var changeIn:Number;    private var changeOut:Number;    private var styles:TextField.StyleSheet;            public function StrMotion(target:TextField, v:Number){        textfield=target;        duration=80;        speed=v;        styles = new TextField.StyleSheet();        styles.setStyle("in",           {color:'#c4c4c4'}        );        styles.setStyle("out",           {color:'#666666'}        );        textfield.styleSheet=styles;    }        private function tw(t:Number, b:Number, c:Number, d:Number):Number {        return (t==d) ? b+c : c * (-Math.pow(2, -10 * t/d) + 1) + b;    }        public function showText(str:String):Void{        time=0;        clearInterval(id)        textoIn=str;        changeIn=str.length;        textoOut=textfield.text;        changeOut=textoOut.length;        id=setInterval(Delegate.create(this,setText),speed);    }    private function getChar(str:String, index:Number):String{        return str.substr(-index,index);    }    private function setText():Void{        time++;        indexIn=Math.floor(tw(time, 0, changeIn, duration));        if (textoOut!=""){            indexOut=Math.floor(tw(time, 0, changeOut, duration));            //trace(getChar(textoOut,(textoOut.length-indexOut)))        }        //trace(indexIn+" :: "+" :: "+indexOut+" :: "+(textoOut.length-indexOut));        textfield.htmlText="<in>"+getChar(textoIn,indexIn)+"</in>"+"<out>"+getChar(textoOut,(textoOut.length-indexOut))+"</out>";        if (time>=duration){            clearInterval(id);        }    }}



put this in the fla.



ActionScript Code:
miniyo.autoSize = "left";miniyo.wordWrap = true;miXML = new XML();miXML.ignoreWhite = true;miXML.onLoad = function() {          var mystring:String = this.firstChild.childNodes.toString();          var str:StrMotion = new StrMotion(miniyo, 40);          str.showText(mystring);      };miXML.load('texto.xml');




Many thanks!


best

Arn

Tutorial: Creating A Flash Form + Creating Php To Send Email
I came across a great tutorial for those of you who do not know how to create a flash "contact" form and how to create the php file to go with it.

http://www.kirupa.com/developer/acti..._php_email.htm

Enjoy!

Creating A Tunnel Effect/ Creating Snow On Tv
I'm trying to create two effects and I'm new to using swish. Anyone have some hints on how to make a 3D tunnel effect- as if the person viewing is entering a winding hole going down.

I'm also trying to make an effect of snow on television (the static you get when you don't have any reception). Any hints?

Thanks

HELP-creating Links To .doc's And Creating Forms In Flash 5
right, how do i create a button in flash 5 that when pressed downloads a .doc file onto their desktop?(and how do i link to the .doc file?)

also how do i create a form in flash 5?

hope someone can help!!

mavis

Creating Animations / Creating Websites In Flash 8
I am trying to find some advanced animations for Flash 8 as well as information on how to build a website in Flash.

I am not exactly sure where i can find these questions out. I need websites that have tutorials that go step by step for beginners because I tried a simple custome scrollbar tutorial on here and got lost. It integrated all this actionscript but never told me where to put it or anything.

Get back at me asap if you can help.

Thanks

cd2502

Creating Arraey And Creating Element
i am trying to creat an array dynamicly by need using action script,
i made a new arrey by:

set("Names"+Number(i+1), new Array());

now i want to put, dynaimcly, elements into the array:

set("Names"+Number(i+1)+"["+z+"]", "myElement"); <-this one this not work! i try to use eval in many ways but nothing...

i am stack!
anyone?

Creating A CD ROM
I would like to create a CD ROM with an *.swf file in it (or several). I think I need Flash Projector. Could someone point out the details on how to obtain/use this function? Thanks a ton!

Creating A Txt And Swf From Swf
I have posted this up last time but received no reply, I hope that I at least got a " can't " reply.

1. How to save texts as a *.txt?

2. How to create a swf with variable animations and script? I mean create by using a pre-made swf.

Creating A
I know I'm taking you guys back to elementary school on this one, and I'm sure it's already been addressed, but I'm new to developing Flash for the web. Whenever you go to a site and it is Flash built, there is always the opening screen that says "Loading".

I would love to create a screen that shows the loading progress. Could you please tell me how to create a "Loading" screen and how it acutally works? If it's an answer that would take way too long to explain, could you please point me to a site that can help? Thanks a bunch!
ECF

Creating A .exe
Hey. . . im having problems creating a .exe in mx, i`ve allways done it with f5 but since im using video i have to use mx. Ok here`s the thing: my swf player plays my files but when it loads the player also loads the fmx (like when you are working and hit ctrl enter to view the movie), so when it plays the file it wont give me any options to create a .exe however i`ve downloaded the swf player, and all the player possibles from macromedia . . . still the same.
Any help appreciated.

Creating A Jpg From A Swf
I know you can create an image of a swf frame by right clicking and using print to file, but is there a bit of actionscript you could use to create a jpeg of an image created in a swf file?

cheers chaps

Creating A Swf From A Swf
Can anyone tell me if this is possible?
I'm wanting to create a music mixer in flash that would allow a user to select a few base tracks and then add some beats to it, record it, and save it out to send to a friend etc. Is it possible to make a movie that would allow the user to customize and save a swf file?

Creating Jpg Or Gif
is it possible to create a single gif or jpg from online movie? I am trying to build an online designer where text, clipart, or uploaded images can be used to make a design. I would like to produce a flattened image as the final output. I am using php as a scripting language if that helps.

Thanks
Anthony

Creating A Gif?
ok.......

simple one?

can i using actionscripting ona a website have the user import a picture, draw on it then save it as a gif to their desktop for email?

thanks

james

Creating .fla From .swf
I have an old Flash4 .swf file, but no corresponding .fla file, and I need to access it's actionscript. It's a protected .swf but I can unprotect it using third party software, but this doesn't show all the components, just the graphics. I'd really appreciate any ideas.

Creating PDF From .fla
I created a nice graphic with text for a book cover in Flash. Its on a web site but now I need to export it to a PDF. I exported to an .eps file and then imported it using Adobe Illustrator but the fonts aren't there. Is there some way to export directly to PDF from Flash or does anyone have any other suggestions? Thanks.

Pop Up Creating?
how to creat pop up? pleas reply

Creating Mc
How do i make a button that when clicked creates a mc at a certain spot?

Creating CD
Hello, I'm creating a CD and I am have one problem. How Can I be sure or better what must I do, that someone who doesn't have flash installed on his computer can be able to see this presentation.
Is it enough to make exe file?

Creating A Pop-up
My boss has a site completely done in Flash. The premise behind his site is to post his personally done Music and literature. Well what he wants to do is make it so you can click on the text name of a song and a normal, although small, HTML window will pop-up showing the lyrics of the song. Could someone tell me how to do this, or wether its possible?

Creating
i was wondering if anyone knows how to make an action script for a site so its sort of like the one in http://www.site06.com i like the way the images switch and creates the impression that its moving but i'm really puzzle as to how its done so the pictures goes backwards. is there an action script like that??

Creating MC
I have created a flash file that does do contain MC's can I turn this whole file into a single movie clip. I was wondering this because I have another file where I have created buttins and on release it is to play the other file. I have used the code


b6.onRollOver = over;
b6.onRollOut = out;
b6.onRelease = b6release;
b6.buttText.buttonText.text = "External Mode";
function b6release(){
geturl("externalmodemovie1.swf");
}

I was wondering if there was a way to do this without using geturl.

Thanks,,

Jenn

How Would I Go About Creating This?
http://www.pavelantonov.com

The resize, color change and sub menu - is there a tutorial that can get me off to a good start?

Creating An XML Doc With AS2
I've not used XML in Flash before. I would like to create a .swf that allows people to type in several words and their definitions, and then create an XML doc from that data. I want to save the XML as a file that can then be reaccessed and used by another .swf to generate flashcards.

Currently I am trying to make a prototype on my computer without connecting to a server. Is it possible for Flash to create an XML file that can be stored locally (in the same folder as the .swf)? If so can you tell me more on how to do it?

Thanks so much for your help.

Creating URL's
so i needed a button to create a " send to a friend" link. i think that the problem has to do with the spanish characters that are being used. i tried using different ascii code instead of the actual character but it still didn't work. here is the code:
link_clip.onPress = function(){
getURL("javascript:urchinTracker('spreadtheword_se nd_email_"+_parent._parent.activeID+"');");
getURL("mailto:"+
escape("El correo electrónico de tu amigo/a")+
"?subject="+
escape("&iexclMira esto en A Todo Lo Que Da!")+
"&body="+
escape(link_clip.linktext));
//copytoClipBoard(link_clip.linktext);
}

any help would be greatly appriciated.

thanks
kris

Creating 3d
Can u create 3d with actionscript. I am a total beginner so I wanted to know how, if u can, make 3d animations with (only) flash.

Thanx

Creating The Set-up
Hello,

I have created one application in Flash .This application calls some other exe.So that i have created the exe file of the application .
As it is necessary to have the Fscommand folder for calling the fscommand,
I want to create the Set-Up of this application....which will install the application exe as well as the fscommand folder and some other files that i want to install....
so please reply if anyone knows how to create the set-up of Flash Exe file.

Thanking in Advance........

[CS3] Creating Hqx On Pc
Hi,

I just was trying to create a mac projector from my pc but instead of a
hqx file flash generates a complete folder named hqx with many files. Am
I doing something wrong or is that a new bug?

Thanks for any help?

Anyone Help In Creating Something Like This
I'm trying to create a menu like this in CS4...can anyone help me plz...
http://www.diorhomme.com/content/homeen2.html

enter website and you will see the menu i'm talking about.

Creating Mc
I have learrned to create mc with as3, but how would I do to create and place stuff inside of that mc?
Like a textfield for example.. This is how I create my mc:








Attach Code

var mc:MovieClip = new MovieClip();
mc.graphics.beginFill(0xFF0000);
mc.graphics.drawRect(0, 0, 100, 80);
mc.graphics.endFill();
addChild(mc);

Creating Something Like This ...
Hi ... I was goin thru some of the sites on FWA's list ... and came across: dunun

The navigation at the bottom ... it looks nice and simple yet there are two elements I'd like to get your input on.

1) The sliding hover piece. I know this is just actionscript ... but what about actionscript for MX2004 ?! I've seen lots of codes for MX on sliding and inertia etc ... but not 2004.

2) The actual hover piece graphic. How did they get such a cool, translucent / blurry look to it? That's sweet!

If anyone could help, I'd really appreciate it!

Tyler

Creating An Gif
I want to change my swf file to a gif. How do i change it?


Thanks James

Creating A CD-ROM
This is the first time I have tried to create a CD-ROM. I am using Flash MX 2004 Professional.

To get it to display full screen should I set the Stage size to 800x600? Also, should I use Scenes for each new section (ie. the next item on the Menu) or just use the one Timeline?

Any help with getting started would be very much appreciated.

Creating JPG's On The Fly Of Your Swf
Hi all,

Just wondering if theres anyway to convert your swf to a jpg when its on a website...

Like say u have a form to fill out that u want to email to someone, u just click a button and it converts the active swf into a jpg so u can save it and send it off to someone...is this possible?

I know there is other alternatives but just wondering if this was possible

thanks

Jaymie
jaymiejones@triversedesigns.com

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