Click on the color button and write in textarea with this font color
Hello world
I want to do the following:
- Click on a "red" button
- write in the text box with a red font
- Click the 'blue '.
- write in the text with a font color blue box
Does not use this possible in flash 10 AS3?
I tried to use setTextFormat but the problem is that I have the text before inserting on this format.
Please someone tell me how to do?
Thank you very much in advance
Concerning
:
Import fl.controls.Button;
Import fl.controls.TextArea;
import flash.text.TextField;
import flash.events.MouseEvent;
var tf2:TextField = createTextField (100,100,200,22,true);
TF2.Type = "input";
TF2. Background = true;
TF2. BackgroundColor = 0 x 777777;
TF2. Width = 400;
TF2. Height = 200;
TF2.x = 100;
TF2.y = 100;
var df1:TextFormat = new TextFormat();
DF1. Bold = false;
DF1. Align = "center";
DF1. Color = 0xffffff;
DF1. Size = 14;
TF2.defaultTextFormat = df1;
TF2. Text = "[text]";
TF2.setTextFormat (df1, 0);
addChild (ta2);
TA2. Move (150,100);
TF2.addEventListener (Event.change, f);
function f(e:Event):void {}
TF2.setTextFormat(DF1,TF2.caretIndex-1);
}
var btn_Colour_Red:Button = new Button();
btn_Colour_Red.label = "Red";
btn_Colour_Red.addEventListener (MouseEvent.CLICK, btn_Colour_Red_Clicked);
btn_Colour_Red.setSize (40: 20);
btn_Colour_Red.move (350, 0);
addChild (btn_Colour_Red);
var btn_Colour_Blue:Button = new Button();
btn_Colour_Blue.label = "Blue";
btn_Colour_Blue.addEventListener (MouseEvent.CLICK, btn_Colour_Blue_Clicked);
btn_Colour_Blue.setSize (40: 20);
btn_Colour_Blue.move (250, 0);
addChild (btn_Colour_Blue);
function btn_Colour_Red_Clicked(e:MouseEvent) {}
DF1. Bold = false;
DF1. Align = "center";
DF1. Color = 0xFF0000;
DF1. Size = 14;
TA2. SetFocus();
internship. Focus = tf2;
}
function btn_Colour_Blue_Clicked(e:MouseEvent) {}
DF1. Bold = false;
DF1. Align = "center";
DF1. Color = 0x0000FF;
DF1. Size = 14;
TA2. SetFocus();
internship. Focus = tf2
}
function createTextField(x:Number,_y:Number,_width:Number,_height:Number,_border:Boolean):TextField {}
var result: TextField = new TextField();
result.x = x;
result.y = y;
result. Width = width;
result. Height = height;
result. Background = true;
result. Border = border;
addChild (result);
return the result;
}
Tags: Adobe Animate
Similar Questions
-
I a s 6 more and when using the phone, if my face touches the screen it clicks on the logout button and the phone hangs up the call. Is it possible to prevent this without holding the phone away from my face when calling?
iPhones have a proximity sensor which is supposed to automatically turn off the screen when you hold it in your face. If this is not the case you can take the phone and have it checked.
-
I use PS extended 6. It works well, but it will not be updated. I'll take a notice in my application creative cloud he has an update waiting. I'll click on the UPDATE button and it works 100% and then give me a update failure message.
I fixed the old-fashioned way. Uninstall - reinstall. Works fine now.
-
I just installed Lightroom CC 2015 and when it opens after 5 or 10 seconds video flashes up "" look at an overview of Lightroom and its features". It is not possible to cancel or return to Lightroom. I can just click on the play button and after that, Lightroom crashes.
I uninstalled Lightroom, re-installed, but everything remains the same. After clicking on the play button, the video window is black. I can only kill Lightroom in the Task Manager.
I use Windows 7.
Thank you for helping me.
OK guys, I have a solution. Press escape [ESC] to close the video window. Yes I know... It took less than hour of my time to understand this. If Adobe please, no matter how lucky you could focus on the provision of a useful product, not to invent unnecessary mess that have zero impact on your username? And Holy shit, employ a specialist UX, this is catastrophic!
-
After I restart my iMac and double-click on the hard drive, a pop up appears with this message: 'the 'Hard drive' file cannot be opened because you don't have permission to view its contents.'. What is the problem?
Is the name of an external drive or internal one?
-
Whenever I press and my left click without releasing, it atomically highlights everything from this point to the top of the page. Also, note if I'm now left click on the scroll bar, it goes back to the original location, even when I try to drag it upwards or downwards.
Open internet Explorer and the problem does not occur there.
Try Firefox Safe mode to see if the problem goes away. Firefox Safe mode is a troubleshooting mode that disables certain parameters, disables most Add-ons (extensions and themes).
If Firefox is open, you can restart Firefox Safe mode in the Help menu:
- In Firefox 29,0 and above, click on the menu button
click Help
then select restart with disabled modules.
- In previous versions of Firefox, click on the Firefox button in the upper left of the Firefox window and click help (or click on help in the Menu bar, if you do not have a Firefox button) and click on restart with disabled modules.
If Firefox is not running, you can start Firefox in Mode safe mode as follows:
- On Windows: Hold down the SHIFT key when you open the desktop Firefox or shortcut in the start menu.
- On Mac: Hold the option key during the startup of Firefox.
- On Linux: Exit Firefox, go to your Terminal and run firefox-safe-mode
(you may need to specify the installation path of Firefox for example/usr/lib/firefox)
When the Firefox Safe Mode window appears, select "start mode safe."
If the issue is not present in Firefox Safe Mode, your problem is probably caused by an extension, and you need to understand that one. Please follow the section Troubleshooting extensions, themes and problems of hardware acceleration to resolve common Firefox problems to find the cause.
To exit safe mode of Firefox, simply close Firefox and wait a few seconds before you open Firefox for normal use again.
- In Firefox 29,0 and above, click on the menu button
-
When I double click the bookmark (star) button a window still down so I can change the bookmark or place it in the folder I want. Now, after the last update of FF13 (June 2012), I can click once and the page is a bookmark in the "home" folder, but when I double click nothing happens. (1) I restarted FF, did not help 2) I rebooted the computer, did not help.
You just click on the star once if the star is high already turned on to indicate that a site is bookmarked. Normally, you would click once to bookmark the current site, then click once, if you want to change the new bookmark. If you double-click and you open and close the pop-up edition.
After you enable hardware acceleration can cause problem with edit op - up doesn't work does not correctly, so in case of problems, you can disable hardware acceleration.
-
I can't right click or click firefox, or one of the menu buttons. If I disable the Add-ons, it works fine. How can I fix it?
If your problem is not moved in Mode without failure, likely due to an acceleration of the extension, theme or material. Follow the steps in Troubleshooting extensions and themes:
- Disable hardware acceleration
- Put yourself in the default theme
- Disable all extensions
- Test for faulty extensions
... while checking after each step to see if the problem persists.
-
The details are in the question.
Try to download the new version and install it from:
http://www.Mozilla.org/en-us/Firefox/all.html
See also: Installation of Firefox on Windows
Thank you
Please check 'Resolved' the answer really solve the problem, to help others with a similar problem.
-
How can I solve this error u43m1d204?
Hi Atul,
Camera raw issue 9.
Thank you for your interest to help me.
Very difficult to solve this problem, but is resolved.
I manually installed camera raw and then I disconnect it login creative cloud again and worked.
Might work for some people.
Thank you very much
Arlindo Codinha
-
Photoshop Elements 12
Adobe Photo Downloader has encountered a problem and needs to close. We are sorry for the inconvenience.
Error code: c0000005
Address: 75e32f71
I clicked on the OK button and the closed Downloader.
I did a search on this (c0000005) error code and it seems to be a work around, but no solutions, why is this? I ask that because that this problem seems to be years and years, dating back to at least 2005 (math is 10 years do).
I don't even have the hanging camera and I get this error on download. I have redownloaded everything and reinstalled. I allso see AVI issues reported with this problem, so I've updated Quicktime that without the camera being hung when I get this error I wasn't expecting it to work. I tried to support and they would not help because I bought it in March this year. Quite frustrating because I bought elements about every 2 years. I think I might need a new codec? I had this problem on an earlier version and I think I remember that being the fix, but it may be something completely different
Finally, I found it lacking a photo so the catalogue was "corrupted". I just deleted the image and it started working.
I hate Adobe and their total lack of support - thanks for nothing Adobe. Also get this - they offered me to upgrade to 13.0 (12.0 My is only 6 months old but they still can't stand on errors. Install only the errors!
I've upgraded and buy this product 4 times now. I'll find something else next time!
-
Authenticate when the user clicks on the "back" button after disconnection
Hi all
Is there a way that the user can be required to authenticate, if simply disconnected, then click on the back button.
I have a situation where a user who works on relatively sensitive data disconnects (yeees they should close the browser and all, but they never obey instructions...) and someone else can come around and click on the back button and see it as what he had worked on.
Is it possible to disable this behavior, or otherwise force a reload/re-authentication.
Thank you.Hello
You can do this by writing this code in each page of your application
Write this in the html header:
and write it in the Page HTML Body attribute:
onunload="javascript:history.go(1)";
It will not allow users to go back.
Thank you
Tauceef -
When I click on the menu button, why I can't see the historical option?
According to the help instructions, in order to remove all or part of the history of my search, I'm supposed to click on the menu button and then select the option of history. However, when I click on the menu button, the story is not listed as one of the options.
Hi, the button can be in 'other tools and features' in the section Customize the menu. If so, you can drag it to a location of your choice. If it is not visible, try clicking on Restore Defaults - more information - controls customize Firefox, buttons, and toolbars.
You also bring up history by pressing Ctrl + H. Or you can bring up the menu bar (History tab) temporarily by pressing Alt, or if you want to stay there all the time, then right-click in the tab bar (but not on a tab) and a tick/check bar menu.
If your question is resolved by this or another answer, please take a minute to let us know. Thank you.
-
UPDATE: following instructions provided by cor - el; they worked. Thank you! Interestingly, after doing that once, choose 'Options' became visible and remained so.
Running Win7. Firefox instructions say:
"Prevent Firefox from storing form entries.
If you do not want Firefox to remember what you have entered in the form fields, you can turn off the automatic form fill feature:
1. at the top of the Firefox window, click on the Firefox button, and then click Options. [* There is NO other CHOICE 'OPTIONS', so it's impossible and the process can take place as described.*]
2. Select the Privacy panel.
3. set Firefox will: to use the custom settings for history.
4. remove the check mark from the box that says search and shape Remember history.
5. click OK to close the Options window. .THE PROBLEM: in the order above, there is no choice 'Options', while the process can not be run as described.
How should I complete the process?- Press F10, or press the Alt key to bring up the 'Menu Bar' temporarily if the menu bar is hidden.
- Use "Firefox > Options" instead of "tools > Options" If the menu bar is hidden.
- Tools > Options > privacy > Firefox will be: "Use the custom settings for history" > "don't forget to search and form history."
- https://support.Mozilla.com/kb/form+AutoComplete
-
How remove <; empty Menu >; when click on the menu button?
Hello
In my makeMenu() application method, I use menu.deleteAll () to remove all of the default menus. If I run this code in 9530 (storm Simulator), it shows only to see the keyboard and button application menu, it's good.
But if I run the code in other simulators it shows
. Where the focus is anywhere in the screen, it shows the empty menu when I click on the menu button. I need to remove this
also. What I want, if I click on the menu button, it should not show anything (means it should not show
, but in the storm if I click on the menu button, it should show (show the keyboard application and switch).) It is anyway to solve this problem...?
Thank you
MINDUS
You can use the DeviceInfo class to determine the model number of BlackBerry and then return false in your keyDown method.
Maybe you are looking for
-
All my content music disappeared. When I open iTunes, I get the generic home page & no library. I have a third (I think) generation iPod Nano and Iphone 3GS (which I use as an iPod Touch) and iPhone 4S (soon to be replaced). The content of my phon
-
How to disable the backlight on the keypad for the Qosmio X 70-A-120
Please, do you know how to disable the backlight on the keypad for the QOSMIO X 70-A-120? Concerning
-
Windows update fails-G62-225DX - bad startup a factory?
My nephew came to me recently with a G62-225DX HP, concerned about safety. Given this machine is several years old (recently handed down from his father - I quickly understood why), I was surprised to see she was always being basic Windows 7 Home Pr
-
confidentiality of message notification
Hello! I use Iphone 6plus. I have a problem. I searched the internet but I couldn't find any solution. My problem on the privacy of messages setting. When I receive a message from a friend, I would like to see reviews on my lock screen without name,
-
TouchSmart 520-1060la: 520-1060 SM Bus driver
Hello I had to reinstall my HP 520-1060la without the HP discs from scratch. All right, but the SM Bus driver is missing. Can you help me? Greetings.