fill an object by its name from the color?

I have created a palette of colors and each color a unique number and a name (for example, plum V123, Ruby V456). Also the names of color is loaded from a mysql database.

When the name of the color is loaded in a dynamic area, I want to fill an object in this color.

var mycol1 = plum V123;
V123 Plum = "0xFF6600."
colorchange.setRGB (mycol1);

var mycol2 = V456 Ruby;

V123 Plum = "0xFFCC00".
colorchange.setRGB (mycol2);

use the double equal (==) to test for equality:

Devotee wrote:

Here's what I've done so far. There always display the last color (000000) in B8. How can I do read the result (a [2]) and view the relevant color?

var senderLoad: LoadVars = new LoadVars();
var receiveLoad: LoadVars = new LoadVars();
receiveLoad.onData = {function (src)}
var a:Array = src.split (",");
Result1. Text = a [0];
Result2. Text = a [1];
CN1. Text = a [2];
CN2. Text = a [3];
CN3. Text = a [4];
CN4. Text = a [5];
CN5. Text = a [6];
CN6. Text = a [7];
CN7. Text = a [8];
ColorChange = new Color (B8); {
If (a [3] == 'V123 WHITE') {}
colorchange.setRGB (0 x 006666);
}
If (a [3] == 'BLUE V456') {}
colorchange.setRGB(0x000000) ;}
}
};

Tags: Adobe Animate

Similar Questions

  • How to access button object through its name of the example?

    Hello

    I have a button called "mybutton" and on a certain range (No. 10), I wrote this code in the action script:

    MyButton.Height = 500;

    It does not work and the button size remains the same. Looks like I can't access button like that!
    I want it's on a certain range I want to increase the height of the button. How can I do this?

    Thank you guys! :)
    I used _height and it worked.

  • How can I remove my name from the top right of the screen. I have a 2015 13 "MacBook Pro running 10.11.4

    How can I remove my name from the top right of the screen. I have a 2015 13 "MacBook Pro running 10.11.4

    At the top right of the menu bar shows the current user who is logged in and allows quick change of user accounts.

    You can disable the display of menu bar in system preferences > users and groups. Or order just drag it out of the bar.

  • I can't change my name from the computer to the printer mp160

    I can't change my name from the printer about printing to the new printer and I put the disc with no response

    Download a new set of drivers on the Canon website at: http://www.usa.canon.com/cusa/support/consumer/printers_multifunction/pixma_mp_series/pixma_mp160#DriversAndSoftware, install the software and do NOT connect the printer to the PC until the Canon software tells you to do.

  • Can after get values a RGB pixel, hoe I write the name of the color?

    Team,

    I'm quite new to LabVIEW and I'm working on an application using USB webcam to capture the color of the object.

    So far, it's finished, but now I need to write the name of the color on the screen.

    Please, could someone help identify if IMAQ or Labview have this feature?

    For help in understanding:

    Below you can see the example.

    R = 236

    G = 0

    B = 116

    And the name of the color is pink.

    But the problem is how to get the name by using certain features available.

    Thank you.

    Kind regards

    JCG

    There is not such a function, but you can create a pretty easily.

    I would divide each color component by 64 and to get a value of 2 bits for each color.  Combining these (multiply/shift and add) would give you a 6-bit integer, which gives you 64 color combinations.  Create an array of 64 strings with the names of the colors and the correct name indexes.  You need to browse manually the first time and assign a name to each color, but that wouldn't be too bad.

    Bruce

  • The computer desktop is not very clean, it looks like a wave that moves from the color

    Please I have a problem with my desktop computer is not clean, it looks like a wave that moves from the color. It is not cleaned.

    Thank you to everyone.
    * original title - could someone help me! *

    Hello

    If you mean that when you scroll to the top or the bottom of the page, it's all wavy you the latest graphics drivers to fix

    try going to your graphic card manufacturers site or computer and are looking for the driver download section

    Search your computer or graphics card model number based on what you have and download and install the latest graphics drivers for vista

    ___________________________________________________________

    and if you have more problems with these English language forums, microsoft supports several languages

    read this information:

    To make sure you receive support appropriate for your location information, select your region setting from the list in the link below, and then click the arrow button.

    ·                         https://support.Microsoft.com/common/international.aspx

  • WMP changes its name at the time where I change the names in the playlists

    Hi people, to support

    I have XP and WMP 11. I love working with WMP very much but I have a big problem with the creation of playlists.

    First, he must know that. If I make a playlist of different artists like this and sync it to my MP3 player, the player will put all the artists and the album separately names in its lists of an artist folder and album that creates a huge long folder to browse to the 'normal' CD That's why I change at least the various names of artists in 1980, for example has a slow. A brilliant solution, was it not for the fact that WMP is very difficult to accept these changes in the mine. He continues to change the names of 'my' name of origin found in their records. After changing several times later he accepts it, most of the time. But... the problem is worse when I want a particular song appear in more than one playlist, as Slow 1980 and slower. He even sometimes change the names I put in the original name in the original records. I hope you understand what I'm trying to explain, and it drives me nuts keep changing the names. (You probably also I know I have change the names in WMP or in the files folder.)

    How can I solve this? Thanks a lot for help.

    Hello

    To resolve this problem, delete the Windows Media Player database. To do this, follow these steps:

    Step 1:

    Exit Windows Media Player.

    For Windows XP:

    (a) click Start,

    (b) click Run,

    (c) type %userprofile%\Local Settings\Application Data\Microsoft\Media Player,

    (d) and then click OK.

    Note You don't have to remove the folders that are in this folder.

    (e) restart Windows Media Player.

    Note Windows Media Player automatically rebuilds the database.

    Step 2:

    If this does not resolve the problem, disable the Windows Media Player database cache files. To do this, follow these steps:

    (a) output Windows Media Player.

    (b) If you are running Windows XP, click Start, click run, type %userprofile%\Local Settings\Application Data\Microsoftand then click OK.

    Note Windows Media Player automatically rebuilds the database.

    See also:

    Create and use your own customized reading lists

    http://Windows.Microsoft.com/en-us/Windows-XP/help/Windows-Media-Player/11/playlists

    Add or edit media information

    http://Windows.Microsoft.com/en-us/Windows-XP/help/Windows-Media-Player/11/album-info

  • Removing the names from the list of my blocked with Outlook Express email sender program Version 6.

    I use Outlook Express Version 6.  I have a list of names in my blocked senders list I want to remove.  I remove them.  Then when I close my e-mail program, the names reappear in my blocked senders list.  Is there a bug in this e-mail program that does not allow me to remove a few names from my blocked senders list?  I don't want to mess around with the registry key.  Does anyone else have this problem?  Has anyone been able to remove some names from your list of blocked senders?

    If they come back, it's a damaged registry key, but it is not very difficult to fix.

    1. close OE, then in Regedit, navigate to this key:

    | - HKEY_CURRENT_USER
    | - Identities
    |-{GUID}
    | - Software
    | - Microsoft
    | - Outlook Express
    |--------------------5.0

    where GUID is the Global Unique identifier for your identity.

    2. under this key, you will find the following between subkeys
    others:

    | - Block senders
    |-----------------------Rules
    | - Signatures

    Select the senders to block key and delete it. Publishers will be empty, but you can rebuild now.

    You can also create a new identity and import all of your messages and address book. The new identity will empty a list of blocked senders, but IMO, the registry key is much easier.

    Bruce Hagen ~ MS - MVP [Mail]

  • How to remove names from the address book in Windows Live Mail

    I want to remove some names from my Windows Live Mail account but can't find a way to do it?

    Hi DawnAdley,

    Thank you for visiting the Microsoft answers community.

    The question you have posted is bound using Windows Live and would be better suited in the Center of Windows Live Help solutions. Please visit this link to find a community that will support what ask you

  • How can I get my name from the access point?

    Since I bought a modem Arris 228 G and spent my 2 wireless, printers Canon WIFI unable to connect at Optimum!

    Canon said to contact my router creator (Apple Airport Extreme) for the name of the access point get return wireless, WI - FI printers.

    Help, please.

    W.W.

    (Mac Pro 10.6.8)

    The name of the access point is simply the name of the wireless network that provides AirPort Extreme.

    You can see the name of your wireless network by clicking on the WiFi icon at the top of the screen of your Mac and by checking that the name appears.

    There will be a check mark next to your wireless network name.. which is also known as a wireless access point.

    It would be the same name that you had before... unless you have changed some settings on the AirPort Extreme.

  • HOW CAN I CHANGE MY NAME FROM THE LAPTOP

    MY LAPTOP IS NOW smiley52 not ticktock

    Hello, tommyhaines,

    To change the name of the notebook, open the Control Panel. Select system and security. Then select System. Under the computer name, domain and workgroup settings, on the right, select change settings. In System Properties , on the computer name tab, select change. Then Type in the preference name you want (you can also change the computer Description). After you have finished, click OK.

  • Activate the layer by name from the Clipboard

    It's just a quick follow-up to "move the layer to cursor" - I try to activate a particular layer, and the name of the particular layer will be on the Clipboard.

    So, for example, say that the active layer is "Layer 1"

    and 'Layer 5' on the Clipboard

    So, I want to be able to switch to the tier 5. The reason is that the Clipboard can contain names of different layers at one time. Is it not as easy as simply to write a script to switch to 5 layers. I need to move to some layer is in the Clipboard at any given time. The reason for this is a bit tedious so I'll leave that part for now

    Here's a script that I was hoping to change and make it work:

    #target photoshop
    
    var layerRef = app.activeDocument.layers.getByName( 'Layer1' );
    
    app.activeDocument.activeLayer = layerRef;
    
    
    

    but I was hoping to change it to something in this direction:

    #target photoshop
    
    var layerRef = app.activeDocument.layers.getByName( 'WHATEVER IS IN THE CLIPBOARD' );
    
    app.activeDocument.activeLayer = layerRef;
    
    
    
    #target Photoshop
    var SCRIPTS_FOLDER =  decodeURI(app.path + '/' + localize("$$$/ScriptingSupport/InstalledScripts=Presets/Scripts"));
    var libPath = decodeURI(SCRIPTS_FOLDER) + "/psClipboard64.dll";
    var  psClip = new ExternalObject("lib:" + libPath);
    var clipData = psClip.getClipboard();
    app.activeDocument.activeLayer = activeDocument.layers.getByName (clipData); 
    

    You must use activeDocument.layers.getByName ();

  • How to find the name of the color for a PDEElement space

    Hello

    I'm trying to find the color for each PDEElement space in my PDF file. While doing this,
    I put some (cost stmts) debugging statements that print the color_space as of integer values. I gave this list
    After the code.  I think that color space must be something like CMYK, DeviceRGB and DeviceGray... etc.

    How can I know the name of actual color space corresponding to these numbers printed in the instructions for debugging.

    Please please help me...

    Sub ProcessElementDetails (PDEElement element)
    {
    PDEGraphicState gfx_state;
    ASInt32 pdeType = PDEObjectGetType (reinterpret_cast < PDEObject > (item));
    ofstream outfile("E:\\temp\\test.txt",ios::app);
    outfile < < "ProcessElementDetails\n";

    If (pdeType is kPDEText)
    {
    outfile < < "text PDE type\n";
    PDEText pde_text = (PDEText) element;
    ASInt32 num_run, i.;
    num_run = PDETextGetNumRuns (pde_text);
    outfile < < "number of tracks for PDEText: ' < < num_run < < '\n'; '"
    for (i = 0; i < num_run; i ++)
    {
    PDETextGetGState (pde_text, kPDETextRun, i, & gfx_state, sizeof (PDEGraphicState));
    ASAtom color_space = PDEColorSpaceGetName (gfx_state.fillColorSpec.space);
    outfile < < "color space:" < < color_space < < '\n ";
    }
    }


    If (pdeType is kPDEImage)
    {
    outfile < < 'Image PDE type\n ";
    PDEElementGetGState (element, & gfx_state, sizeof (PDEGraphicState));
    ASAtom color_space = PDEColorSpaceGetName (gfx_state.fillColorSpec.space);
    outfile < < "color space:" < < color_space < < '\n ";
    }

    If (pdeType is kPDEContainer)
    {
    outfile < < "PDE container type\n";
    Content PDEContent = PDEContainerGetContent (reinterpret_cast < PDEContainer > (item));
    NumElem ASInt32 = PDEContentGetNumElems (content);
    for (ASInt32 i = 0; i < numElem; i ++)
    {
    item = PDEContentGetElem(content, i);
    ProcessElementDetails (element);
    }

    }
    }

    Debugging statements with color numbers:
    ====================================
    ProcessElementDetails
    Image type of PDE
    Color space: 700
    ProcessElementDetails
    Type of text PDE
    Number of tracks for PDEText: 63
    Color space: 388
    Color space: 390
    Color space: 390
    Color space: 390
    Color space: 390
    Color space: 390
    Color space: 390
    Color space: 390
    Color space: 390
    Color space: 390
    Color space: 390
    Color space: 390
    Color space: 390
    Color space: 390
    Color space: 390
    Color space: 390
    Color space: 390
    Color space: 388
    Color space: 390
    Color space: 390
    Color space: 390
    Color space: 390
    Color space: 390
    Color space: 390
    Color space: 390
    Color space: 390
    Color space: 390
    Color space: 390
    Color space: 390
    Color space: 390
    Color space: 390
    Color space: 390
    Color space: 390
    Color space: 390
    Color space: 390
    Color space: 388
    Color space: 390
    Color space: 390
    Color space: 390
    Color space: 390
    Color space: 390
    Color space: 390
    Color space: 390
    Color space: 390
    Color space: 390
    Color space: 390
    Color space: 390
    Color space: 390
    Color space: 390
    Color space: 390
    Color space: 390
    Color space: 390
    Color space: 390
    Color space: 390
    Color space: 390
    Color space: 390
    Color space: 390
    Color space: 390
    Color space: 390
    Color space: 390
    Color space: 390
    Color space: 390
    Color space: 390
    ProcessElementDetails
    ProcessElementDetails
    Type of text PDE
    Number of tracks for PDEText: 38
    Color space: 389
    Color space: 700
    Color space: 390
    Color space: 388
    Color space: 390
    Color space: 388
    Color space: 390
    Color space: 390
    Color space: 390
    Color space: 390
    Color space: 390
    Color space: 390
    Color space: 390
    Color space: 390
    Color space: 390
    Color space: 390
    Color space: 390
    Color space: 390
    Color space: 390
    Color space: 390
    Color space: 390
    Color space: 390
    Color space: 390
    Color space: 390
    Color space: 390
    Color space: 390
    Color space: 390
    Color space: 390
    Color space: 390
    Color space: 389
    Color space: 700
    Color space: 700
    Color space: 700
    Color space: 700
    Color space: 700
    Color space: 700
    Color space: 700
    Color space: 700
    SeparateColorPlates
    PDF file exists
    Number of Pages: 1
    Number of items: 5

    You need to read some more on what is a "ASAtom" and

    How to use them.

  • Rub the editing workspace behaviour, inherited from the color workspace?

    Work on a standard calendar, about 18 minutes long, a video track to date. Had all cuts, then switched over color workspace to start the color correction. While in the color workspace, scrub through the timeline automatically changes the selection to some clip the read head is complete. However, somehow this behavior has now been inherited in any workspace. It simplifies editing a little more a chore like rub will hang up often as it tries to load the effects for each clip and all controls. I don't know if it's some setting I went with a shortcut of an accident or a bug. It occurs in this project any project, the behavior of friction acts as usual.

    Here is a video showing what I'm talking, first in the project involved with the problem, then load another project to illustrate the behavior acting normally:

    Any suggestions, what am I missing?

    Go to the menu sequence and uncheck (toggle) selection follows playhead.

    MtD

  • Match does not work... whatelse can we expect from the colors of MicroSoft MS... use of IE

    http://www.scbadasscoffee.com/play.html

    NOTE the use of IE: ' * ' image is a bit fuzzy. The color that surrounds the small picture is supposed to be the same as the background color of the page 'CD9933 '. It goes same for color on the small image of the radio. The color is set to "CD9933".

    NOTES using all OTHER browsers like Firefox, Safari, Opera: the "*" image is strong and the background colors for the ' * ' and 'radio' harmonize perfectly with the background of HTML color.

    Please explain to me how MS is screwing me and there away around this?

    Thank you, - bill

    I would say the only thing you screw is you. They are exactly the same
    for me in IE6 and FF1.5x.

    But the color around the radio is definitely off in two (#CD9038).

    For sure, IE and FF rendering colors even...

    --
    Murray - ICQ 71997575
    Adobe Community Expert
    (If you * MUST * write me, don't don't LAUGH when you do!)
    ==================
    http://www.dreamweavermx-templates.com - template Triage!
    http://www.projectseven.com/go - DW FAQs, tutorials & resources
    http://www.dwfaq.com - DW FAQs, tutorials & resources
    http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
    ==================

    "bdaul" wrote in message
    News:ea77uq$J18$1@forums. Macromedia.com...
    > http://www.scbadasscoffee.com/play.html
    >
    > NOTE using IE: ' * ' image is a bit fuzzy. The color that surrounds the small
    > image
    > is assumed to be the same as the background color of the page 'CD9933 '.
    > Even
    > applies to the color on the small image of the radio. The color is set to
    > 'CD9933 '.
    >
    > NOTE using all OTHER browsers like Firefox, Safari, Opera: the «*»
    > image
    > is strong and the background colors for the ' * ' and 'radio' match
    > perfectly
    > with the background of HTML color.
    >
    > Please explain how MS is screwing me and if there there around
    > This?
    >
    > Thank you, - bill
    >
    >

Maybe you are looking for