FontSize Picker
Hi,
I wonder why this fontSize picker is working when publishing in flashplayer 6 but not anymore in 8.
I hope you can take a look,
thanks,
Jerryj.
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
ComboBox FontSize
i have a comboBox that has a defined fontSize for the choices inside which is 10, (myComboBox.fontSize = 10. How can i change the initial value, label I'm guessing, to be a fontSize of 10 as well?
Get Current FontSize
Hi,
I have a dynamic text box called artOne that I want to allow the user to decrease and increase the text size whenever they want. I can set up small, default and large options but I would prefer to have - & + buttons to decrease/increase the current font size by 2 points.
I know a bit of flash and understand using new TextFormat() like below
Code:
myLargeFormat = new TextFormat();
myLargeFormat.font = "Arial";
myLargeFormat.size = 34;
myLargeFormat.color=0xCCCCCC;
artOne.setTextFormat(myLargeFormat);
so I throught I could get the current font size
Code:
interval = 2;
tempSize = artOne.size;
then in the code above have the line
Code:
mytextFormat.size = tempSize + interval;
but artOne.size returns no value so how would I get this value to use in the code.
ComboBox FontSize
i have a comboBox that has a defined fontSize for the choices inside which is 10, (myComboBox.fontSize = 10. How can i change the initial value, label I'm guessing, to be a fontSize of 10 as well?
Changing Fontsize At Runtime
hello,
i think i got a little problem there.
is there any way to change the size of every font
used in a flash movie at runtime? background is
a personalisation option that lets you change the
font size. the changes should affect the movie
when the option is checked, not after a reload of the
main movie..
anybody with a clue?
url is dev.puresin.net
thanks
Font / FontSIZE Of The Panels
jou.
so the problem is that all the FONTS in the panels (the selection areas) are about 14 and my 17" monitor makes the situation even better for my working area. So anybody?!
this happened after i deleted some fonts and obviously the One that Flash uses went with the others..
i also REinstalled flash but didnt help. fak
danke,
TextArea Component Fontsize
How can i set the font size of one single component like the textarea
component ?
I can't seem to set the font size
With globalstyle i can but then all components get that size
thanx in advange...
Assenoost
FM04 Help-Screen Fontsize?
Hey,
Is there a way to make the fontsize of the help-screen bigger in FMX04? It's hardly readable like it is now
Bad Linebreaks When Maximizing Fontsize
I have a dynamic textfield that will display different text everytime and I want the font of the text to change so that the dynamic textfield always is filled.
I have tried the code below and sometimes I get linebreaks in the middle of a word.
function fitText(field) {
var h = field._height;
var tf = field.getTextFormat();
tf.size = 100;
field.setTextFormat(tf);
while(field.textHeight > h - tf.leading*2) {
trace(field.textHeight);
tf.size -= 1;
field.setTextFormat(tf);
}
}
tf.wordWrap = true;
tf.text = "Världensssss sämsta gris"
fitText(tf);
Here you can see what comes out of all this:
http://www.hultsfredsfilmen.se/testFont.html
The word "Världensssss" is cut in half and I dont know why. Anyone that have any solutions to this? I would be greatly appriciated.
Change Textfieldsize Keep Fontsize Constant
Every time I change the width and length of a textfield in Flash the fontsize I defined changes. How can I stop this and really get the fontsize I need, that is, how can I stop the size of the letters inside the field change when I change the size of this textfield.
Thanks,
Mark
Change FontFamily And FontSize In Combobox Component
I am having some trouble changing the fontFamily and fontSize in the combobox component. I want to create a combobox where the items are displayed in the tahoma font size 9.
I have seen the macromedia style guides and tutorials and how they explain such parameters as: mycomboBox.fontFamily and mycomboBox.setStyle but I still have no idea. I already know how to skin the component but i am still lost at this.
Can someone throw some code for me and explain were to insert it? Please help!!
Help Please...XML Fontsize Attributes And Dynamic Text Fields
I have 10 dynamic text fields on my stage named , xmlTxt1, xmlTxt2, xmlTxt3,,etc.
I'd like to loop through and assign a fontsize attribute from an XML file to each dynamic text box.
I'd like to use a variable , myTextField = xmlTxt, and loop through adding 1 each time to xmlTxt to access the dynamic text field names.
Something like this:
var textFieldName = "xmlTxt";
myFormat=new TextFormat();
total = xmlNode.childNodes.length;
for (i=0; i < total; i++)
{
myFormat.size= Number(xmlNode.childNodes[1].attributes.fontsize); /* set text field size from XML - no problems with this */
textFieldName.text=xmlNode.childNodes[i].attributes.textCopy; /* This is where it goes wrong. */
textFieldName.setTextFormat(myFormat);
var textFieldName = "xmlTxt" + i;
trace(textFieldName) /* this shows variable is, xmlTxt1, xmlTxt2, etc. What's wrong here? */
}
Formula For Textbox Size/lines/fontsize?
hi all - I was wondering if there was a formula for textbox size/lines/fontsize. eg given a textboxes size and the fontsize could you calculate how many lines would fit, for deciding whether you show a scrollbar etc? Or given an amount of lines and a fontsize know how big to make the textbox? I hope there is one, I'm using custom bodgejob stuff atm x.x' _________________________________
Leozack
CODEMakeUniverse($infinity,1,42);
Change FontFamily And FontSize In Combobox Compone
I am having some trouble changing the fontFamily and fontSize in the combobox component. I want to create a combobox where the items are displayed in the tahoma font size 9.
I have seen the macromedia style guides and tutorials and how they explain such parameters as: mycomboBox.fontFamily and mycomboBox.setStyle but I still have no idea. I already know how to skin the component but i am still lost at this.
Can someone throw some code for me and explain were to insert it? Please help!!
Alert With Non-standard FontSize Doesn't Resize Buttons
//Okay, if you set these style changes in place:
_global.styles.Alert.setStyle("backgroundColor", 0x9BCAE1);
_global.styles.Alert.setStyle("fontWeight", "bold");
_global.styles.Alert.setStyle("fontSize", 18);
_global.styles.Alert.setStyle("color", 0x000000);
//and then try to create an Alert
var message:String = "Are you sure you want to clear the data from your schedule?";
var title:String = "Confirm Deletion";
var options:Number = (Alert.YES | Alert.CANCEL);
Alert.show(message, title, options, this, clearHandler);
// The Yes and Cancel buttons are too small for the contained text.
// Is there a way to either make them bigger, or to not have the button fonts
// be affected by the font-size change?
// Also, anyone know how to change the background color of the title bar?
Color Picker?
Can someone please look at this .fla file and tell me why my movie clips won't change color when I use the the .setRBG function????? I want each button to use it's own color picker to change the color of each movie clip.
http://www.epsoa.com/frame.fla
Thanx,
Joel
Color Picker
Hi,
I need to make a color picker. I have an image in my flashmovie which the user can color. So they can color the hair brown or yellow, etc.
I can make them choose from 20 colors ( I attach the hexadecimal code to the colorbutton), this I can do. I can also make a textfield in which you can type the code yourself. But I want the user to choose from all colors from a colorcircle. This are 6 million colors or something, so I don;t want to do it manually.
Is it possible to substract the color from an image? In this image will be all the colors. Can anyone help???
thanks in advance.
greetz Persoon
Color Picker?
how can i make a button, thats when its clicked, the movie changes to a different color?
thnx
Color Picker
Is it possible to create a color picker in flash? I want a user to change the color of a box by using a color picker. Thanks.
Colour Picker
Hi
While trying to sort out a car colour picker I stumbled on to this example (that is attached) and I was wandering how would be this converted to work on any level , like for example if I placed these frames into another movie instance - empty clip called "car". The problem seems to be with the sliders , is that to do with "this" used to refference the sliders ? Um if anyone understands the concept please let me know. Also would anyone know how they created the car so it looks like it's out of glass and it's easy to manipulate it's colour.
CHeers
About A Color Picker
Hello,
I am tring to make a color picker where the user slides a bar and a movie clip changes color and also a text box will ahve the color value in it like #FF0000 once the user has finished moving the slider, Does anyone know how to do this or have a .fla file, I know about the flash mx colorpicker but that is not what i want !
Thank you, please !
Color Picker
i am working on a project at the office. i am making a visual display aid where the customer can change the color of their car to simulate paint jobs. what i did was i took a picture of a car and then convert it to semi transparent png. and then i took the car's shape on a new layer and filled it with a solid black.
and then in macromedia flash, i superimposed the transparent image over the black one and then change the black image to a movie clip so the user can change the value of the color via three sliders (much like the one in the flash tut).
the problem in that the transparent image doesnt act solely as a highlight/shadow layer. it also carries with it the original color of the original car.
which is very annoying because if i make it too tranparent, the car would lose its contour and if i raise the opacity, the final color of the car wouldnt be right.
how do i seperate the highlights (and shadows) and the color of the car so i can make the color of the car totally tranparent?
i have been at it for so long my eyes are getting blurry....
[CS3] Help With The Color Picker
i don't know what the hell is the problem. i have a color picker component and a movie clip. i want the movie clip to change color once i use the picker. and have a easy variable to store the color value as well. i'm trying to get the movie clip textX to change color when the color picker's changed. and to have tempColor equal the value as well. this is just a text .fla file to get the code down at least. if someone could spend a minute to take a look i'd really appreciate it. i basically followed the tutorial linked below but i need to change movie clip colors when i click on it. someone please tell me what i'm doing wrong. only 20 or so lines of code. thanks.
the tutorial:
http://livedocs.adobe.com/flash/9.0/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Parts&file=00000431.ht ml
the .fla file:
http://www.sendspace.com/file/x4q6u5
[CS3] I Need A Color Picker, Please.
hellooooo. i'm havin a real hard time tryin to find a color picker that i can easily use. I'm making an interactive flash file that has a color picker for different colors of an object. the object would most likely be a bunch of individual movieclips. for instance, if the object was a smiley face, one color picker for the circle color, one color picker for the eyes, and one color picker for the smile. it would be great if i could have a variable that has the RGB color value of the last color clicked to keep for other uses. i've used many. if someone could point me in the right direction or show me some code that'd be AMAZING. thanks all.
Color Picker
I want to load an image into my swf using loadmovie and be able to pick color where i click on the image. Can someone plz help me with the code for that.
Thanks
I Need A Color Picker
hellooooo. i'm havin a real hard time tryin to find a color picker that i can easily use. I'm making an interactive flash file that has a color picker for different colors of an object. the object would most likely be a bunch of individual movieclips. for instance, if the object was a smiley face, one color picker for the circle color, one color picker for the eyes, and one color picker for the smile. it would be great if i could have a variable that has the RGB color value of the last color clicked to keep for other uses. i've used many. if someone could point me in the right direction or show me some code that'd be AMAZING. thanks all.
Colour Picker?
Hi guys,
I'm looking for some examples of an AS3 colour picker/palette tool, where the user can select from a range of colours and then itd return a hex/rgb value that I could use.
Does anyone know of any examples of this that they could point me to?
Cheers.
Color Picker
Hey there,
Is there any way possible to have a color picker that works in Flash Player 6? All the components I can find only work in 8 and from what I can see getPixel only works in 8. Do I have any other options???
Thanks!!!
Date Picker
please helpl me I have really tried to sort this oout but Im just getting confused?
how would I use the date field component to get a start date and an end date but then work out how many days had gone by??
please some one help me!!!!!!!!!
Color Picker
Does anyone know how to create a color picker in flash so that you could pick any color from the color palette and change a movieclip color to the selected color? Something like Color Swatch panel.
Color Picker
can we create color picker tool using flash action script.
Color Picker
I want to load an image into my swf using loadmovie and be able to pick color where i click on the image. Can someone plz help me with the code for that.
Thanks
Help With Color Picker
Hello everyone,
i want to make something like this http://www.crownpaint.co.uk/colour/6...mer-yellow.htm
I have downloaded color picker from http://www.jumpeyecomponents.com/Fla...ker-Pro-V3-37/
So with this i have made thing similar like i want, when i choose color my object change color. My question is how can i make like here http://www.crownpaint.co.uk/colour/6...mer-yellow.htm that my walls change color, how can i expound walls on different parts so that looks like on example i show it to you.
any suggestion would be helpfull.
Smart Color Picker
I'm trying to create 3 cubes, each one has 1 color:
blue
yellow
and green.
and there's 1 big cube.
When I'll click the green (for example)
cube a varaible will be set with
the hexa color value and will have a name like "activecolor"
then when I'll click on the big cube it will change it's color
to the "activecolor" value (which changes from cube to cube).
Any help is needed
thanks
elad
:: Live Color Picker :: U R G E N T ::
hi all
i am from NID
i am working on flash with web cam
i have some problem regarding the actionscript there is any method to pick the live color (if somebody stand infront of webcam it detects the persons wearing cloths color)
plz help me regarding this issues
Manish
[F8] Color Picker For Text
I am wanting to make a color picker for my CMS so that I can change the color of the text. I dont really know where to start with this. I have made a bold, italics, and underline button but I dont really know how to make the color changer would really appriciate if some one could lend some advice or flick a good tutorial my way.
cheers
Color Picker Sample
I'm using the script from the color picker sample to change the color of a movie clip at runtime.
I have a picture of a car with an overlay that changes to create the appearance of a changing paint color. I have everything working except i need to set the alpha for the movieclip lower so you can see the picture behind it.
I want the alpha to be set permanently at 35% without a slider. I used a "setProperty" command to change the movieclip but it changes to solid. how do set a permanent alpha?
Code:
// create colors
carColor = new Color(car);
color1 = new Color(previewbox);
color2 = new Color(chip.chipfill);
//
this.onEnterFrame = function() {
// set c1, c2, c3, hc1, hc2, and hc3 equal to the positions of their respective faders and vice versa
for (i=1; i<=3; i++) {
this["color"+i].setRGB(rgb);
this["hexc"+i+"Text"].onKillFocus = function() {
hexMode = false;
};
this["hexc"+i+"Text"].onSetFocus = function() {
hexMode = true;
};
fader = this["fader"+i].knob;
if (dragging) {
this["c"+i] = fader._y;
this["hc"+i] = this["c"+i].toString(16);
} else {
if (hexMode) {
fader._y = parseInt("0x"+this["hc"+i]);
this["c"+i] = parseInt("0x"+this["hc"+i]);
} else {
fader._y = this["c"+i];
this["hc"+i] = Number(this["c"+i]).toString(16);
if (this["c"+i]>255) {
this["c"+i] = 255;
}
}
}
}
//
// combine c1, c2, and c3 into one variable using bitwise left shift and bitwise OR
rgb = (c1 << 16 | c2 << 8 | c3);
};
//
// make color chip draggable when preview box is clicked
//
// hide color chip and stop dragging when mouse button is released, and set car color if chip is
// droppped on the car or the apply button is clicked
previewBox.onRelease = swatchDrop;
previewBox.onReleaseOutside = swatchDrop;
//
function swatchDrop() {
with (chip) {
if (car.hitTest(_x, _y, true)) {
carColor.setRGB(rgb);
}
_y = -20;
stopDrag();
}
}
apply.onRelease = function() {
carColor.setRGB(rgb);
};
//
// set color values equal to the color of the clicked button
swatch1.onRelease = function() {
c1 = 127;
c2 = 0;
c3 = 97;
};
swatch2.onRelease = function() {
c1 = 130;
c2 = 0;
c3 = 0;
};
swatch3.onRelease = function() {
c1 = 10;
c2 = 106;
c3 = 0;
};
swatch4.onRelease = function() {
c1 = 0;
c2 = 51;
c3 = 51;
};
swatch5.onRelease = function() {
c1 = 0;
c2 = 51;
c3 = 102;
};
swatch6.onRelease = function() {
c1 = 127;
c2 = 127;
c3 = 127;
};
Color Picker Code
I want to load an image into my swf using loadmovie and be able to pick color where i click on the image. Can someone plz help me with the code for that.
Thanks
Creating A Color Picker
hello, what im basicly tring to make is this http://www.clydesheds.com/template/Quaker.swf however i dont know how to start it i found something that will do somewhat the same thing but not really because it uses colors instead of the images, what i want to do is bring my image and be able to change the color of the roof and so on using symbols or whatever
myColor = new Color(_root.carColor);
//Declare path and function for 4 color button objects
_root.blue.onRelease = function(){
myColor.setRGB(0x0000ff)
}
_root.red.onRelease = function(){
myColor.setRGB(0xff0000)
}
_root.green.onRelease = function(){
myColor.setRGB(0x00ff00)
}
_root.black.onRelease = function(){
myColor.setRGB(0x000000)
}
this is what i found but it uses colors only, i want to be able to click on the button and replace what is there for a graphic symbol. any help is appreciated
Help With Color Picker Component Please?
I am using a friends computer and he has flash cs3. I am just trying to teach myself how to put a "colorpicker" component on my webpage and use it as a UI for the person veiwing my page to change the color of an object.
For instance:
I want to use this colorpicker component, instance name - cPa
to change the color of this box dynamically box instance name - boxa
I don't know anything about action script.
I don't know how to get the rgb value from cPa after somebody chooses a color and apply it to the movie clip boxa. I know this is very simple but I can't figure it out. I am very new to flash. About all I can do is make tweened animations.
As you can see I can get the color picker on the stage and draw a box then convert it to a "movie clip" but, that's about all.
Colour Picker With An Image [HELP]
Ok, i have looked all over the internet to find, what i though would be a simple easy script compared to the ones i have seen but i cant find it.
i have flash CS3 and am useing the colorpicker tool from the components but i need to link it to movie clip so that when i chose a colour it changes the colour of the image. i dont know if the image is ment ot be a movie clip of what but what do i need to do or what script do i need to do this?
any help would be excellent
i need it for a project my teacher didnt have a clue about it lol
dan
Color Picker Issues
hey guys,
OK, so i have this problem. i am working with a couple of color pickers. and i can select the colors just fine but i can't change them after i have made a selection.
VerifyError: Error #1107: The ABC data is corrupt, attempt to read out of bounds.
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at fl.controls::ColorPicker/onSwatchClick()
now i have read about this being common, but i need a workaround... here's what i have that works the first time but as i soon as i got to change the color spaz's:
var fmt:TextFormat = new TextFormat();
cp.colors = new Array(took out the long array )
cp.selectedColor = cp.colors[0];
cp.addEventListener(Event.CHANGE,
function changeHandler(evt:Event):void {
var tf:TextField = outputTB1 as TextField;
fmt.color = cp.selectedColor;
tf.setTextFormat(fmt);
}
);
any help is again appreciated
Random Movie Picker?
hello everyone
so i am just trying to have a random movie play everytime someone comes to the website..and as usual i am trying to cobble it all together from bits of actionscript that worked in so other sitatuation which was similar but of course different in one particular and deal-breaking way..
everytime the site is loaded or the frame visited i want it to pick a movie from a choice of ten - check it wasn't the same as before and then when that movie is finished pick a new one..
the code i have right now is this..
Code:
myMovie = new Array();
myMovie[0] = {name:"headache.swf"};
myMovie[1] = {name:"reflux.swf"};
myMovie[2] = {name:"sports.swf"};
function playMovie(MovieNum) {
this.MovieNum = MovieNum;
headache.gotoAndPlay(2);
};
function selectNextMovie() {
nextMovie = random(myMovie.length);
if (nextMovie != oldMovie) {
playMovie(nextMovie);
oldMovie = nextMovie;
} else {
selectNextMovie();
}
}
where it says 'headache' is where i want to put the variable that corresponds to the movie instance i want to target - taken from the array..
i'm kinda lost at the moment - i could achieve the same result by making lots of different frames and using this 'choice' thing that i have seen but i want to try do it economically..
any help people?
thanks,
sandy
Color Picker For Drawing API
I used Color Picker components from Flash CS3 on the stage for allowing me to pick any colors for drawing api.
I put the codes:
ActionScript Code:
import fl.events.ColorPickerEvent;
addEventListener(Event.ENTER_FRAME, onEnterFrame);
function onEnterFrame(event:Event):void
{
graphics.moveTo(mouseX, mouseY);
stage.addEventListener(MouseEvent.MOUSE_DOWN, down);
cpColor.addEventListener(ColorPickerEvent.CHANGE, changeHandler);
}
function down(event:MouseEvent):void
{
graphics.lineStyle(1,0x000000,1);
removeEventListener(Event.ENTER_FRAME, onEnterFrame);
stage.addEventListener(MouseEvent.MOUSE_MOVE, startDraw);
stage.addEventListener(MouseEvent.MOUSE_UP, up);
}
function startDraw(event:Event):void
{
graphics.lineTo(mouseX, mouseY);
}
function up(event:MouseEvent):void
{
addEventListener(Event.ENTER_FRAME, onEnterFrame);
stage.removeEventListener(MouseEvent.MOUSE_MOVE, startDraw);
}
clear_btn.addEventListener(MouseEvent.MOUSE_UP, clearCanvas);
function clearCanvas(event:Event):void
{
graphics.clear();
}
I played the screen and I didn't see the error output, but color change is not working when I picked to draw on the screen.
can you tell me why it does not work? thank you
Color Picker Upgrade?
Is there any way to get a better color picker for flash?
Its ridiculous how primitive the current one is.
Add-on Color Picker / Space
Does anyone else agree that the color picker in flash is weak?
I am colorblind and need all the help I can get when choosing colors. I don't understand why they don't just integrate the same color picker that is in photoshop.
Is there any kind of add on or upgrade for cs4 that will give me a more sophisticated color picker? One with sliders, HSB RGB CMYK and LAB (ideally)
Color Picker Code
I want to open an image using loadMovie and than be able to pick color where I click on the image. Can someone plz help me with the code to achieve that.
Issue With Color Picker
I have a coloring book functionality. The user can select a color from a color picker palette and apply it to part of a person on the stage.
The color the user chooses is bleeding or the borders of the picture.
For example if the user chooses purple to paint the persons face the color bleeds over the outline of the character's eyes a few pixels.
or
the chosen color of the shirt bleeds into the color of the buttons a little.
Thanks in advance for your assistance
|