Need to change color of a symbol with a custom slider
I'm pretty new to Flash and am not sure if it is the right app to try to do the following:
I need to create an interactive piece. It's much more involved than this but fundamentally I need to create a slider on the left side of a window that is the color spectrum. I'll put a small triangular pointer beside it that can be moved up and down beside the spectrum. I want whatever color the slider is next to to show up in a symbol on the right. I've attached a simple image that illustrates it.
So to restate it again, I'd slide the triangular symbol up and down beside the spectrum gradient on the left and whatever color it is pointing to would just show up in the symbol on the right, real time.
Is this possible in Flash and if so I'd appreciate some guidance about how to start coding it? I'm not a programmer but do know and understand how code works fundamentally. I understand that Flash uses Action Script and I assume that with Action Script it's most likely possible to do this.
Thanks,
Rob
http://www.flashandmath.com/basic/colors/
http://kirill-poletaev.blogspot.com/2010/08/how-to-create-color-picker-with-sliders.html
http://tutorials.flashmymind.com/2009/02/actionscript-3-color-picker/
http://active.tutsplus.com/tutorials/actionscript/create-a-custom-color-picker-in-flash/
Similar Messages
-
Need to change my Country. Appalled with Adobe Customer Service
I am absolutely shocked at how far Adobe's customer service has fallen. In the past i could simply call up their toll free line and get an answer to my question or have my isse resolved. It seems those days are LONG gone.
On Black Friday I wanted to buy lightroom which was on sale. I live in Canada. I always have. For some unknown reason my country was set to the US. When i tried to buy Lightroom none of my payment methods (paypal, creditcard) could go through because my payment methods indicate I live in Canada.
I immediately tried to contact Adobe. First i must comment on their terrible phone system. I have to wade through menu after menu, none actually representing my need to change my Adobe information. Finanlly i got to an option where i could talk to a live person - but wait - there are callers ahead of me and i'll have to wait an estimated 2 hours (is that a joke?). Lucky for me they have a call back option. But the call back option DOES NOT WORK! After i enter my number the automated message says my number can not be regonized. I tried it every way possible, multiple times and it never went through.
Eventually I gave up. I chalked it up to Adobe being busy because of Black Friday and just created a new account to buy Lightroom. That went through no problem (it seems Adobe is good at TAKING my money). I figured i'd try back next week and have my Country changed and consolidate both my accounts into one.
MORE THAN A MONTH HAS PASSED. I have tried several times over the weeks. THERE IS NO WAY FOR ME TO REACH CUSTOMER SERVICE IN A TIMELY MANNER!! The phone situation is the same as above. Often the 'Chat with a live rep' option is not even available. When it is I CONSTANTLY get this message in the chat window :
We are still assisting other customers, thank you for your patience. You can also try ourcommunity forums, where experts are online 24/7.
Even as i type this message i have been on hold on the phone for 30 mins, and still no response in my chat window. This is ridiculous.
WHY IS THERE NO OPTION TO EMAIL CUSTOMER SERVICE???!?!?!?
At this point I'd be happy with returning my Lightroom purchase and changing my country to Canada on my original Adobe ID. I have lost all faith in Adobe.Hi,
I am trying to get Adobe to rerelease the software and registration number for my CS4 suite but my email & ID has changed from [email protected] to [email protected] for some reason the ID link now says I am in the US not Australia. I get the same message:
To change your country, contact Customer Service.
But that has not been possible online.
Do you have an email contact for them please?
I only want the dreamweaver and adobe pdf creator & editing software but the links on US site don't work either.
I already paid for the whole suite a few years back so don't want to pay again after I had to replace a HDD in a windows 7 machine.
So do I send a letter via Australia Post to:
Adobe Systems Pty. Ltd.
Tower 2, Level 27
201 Sussex Street
Sydney, NSW 2000
Australia
Tel: +61 2 9778 4100
or how about technology that was 300+ years old and FAX'em
Fax: +61 2 9778 4190
Surely email is not too much to ask??? -
I need to change the phone number associated with my iCloud account
I need to change the phone number associated with my iCloud account. My home phone is being used and I need to change it to my cell phone since I am not home during the day.
Welcome to the Apple Community.
You can do that at...
My Apple ID -
I am creating a web form from a template and I need to change a field. It is just a text field at the moment but I need to change it to a field that the customer can fill in. How do I do this?
See this thread:
http://answers.acrobatusers.com/Is-add-instructional-text-text-field-disappear-clicked-q19 5078.aspx -
Need to change color of template
I directed a client to a template site and they picked a template that was a PSD (attached) and I turned it into a working website. Now they tell me they want it to be blue instead of the green that it is. I am not sure where to start. I guess I need go to each layer and change the color to a variation of blue. Is there a quick way to do this? I am not even sure how to change colors. Any help would be greatly appreciated.
Thanks!You do not need to do this for each layer. Just the ones with the color elements of the webpage,and only those that are visible. (eyeball on in layers panel)
When you select the layer,then you go to the Image menu,Adjustments,and select Variations. You can interactively experiment until you find what's best.
My layer thumbnails are large so I can see at a glance what element I'm looking at. Use the Layers Panel menu to get to Panel Options and select Large Thumbnails.
Of course back up that template before loading into PS in case you need to do it over.
That should get you started. -
Pacman now needs to change color, but the types are incompatible ...
Hi, my book sucks and I need your help again , Thanks In Advance !!!
OK, now pacman can move in all directions and make a random move, but there needs to be a button to make him change color...
I have come up with the following code but when I try to compile I get incompatible types for my new Pacmancolors...
package pacman;
import java.applet.*;
import java.awt.*;
import java.awt.event.*;
public class Autopacman extends Applet implements ActionListener
boolean Packleur1;
boolean Packleur2;
boolean Packleur3;
boolean Packleur4;
boolean Packleur5;
boolean Packleur6;
int klikken = 1;
int x = 200, y = 200; //beginpositie pacman
int width = 50, height = 50; //formaat pacman
int stap = 20; //standaard stapgrootte
int stapVerander = 10; //stapgrootte wijziging
int angleA = 5; //beginhoeken pacman
int angleB = 345;
public void init(){
Button links = new Button("links"); //knoppen worden gemaakt en gelabeld
Button rechts = new Button("rechts");
Button omhoog = new Button("omhoog");
Button omlaag = new Button("omlaag");
Button harder = new Button("harder");
Button zachter = new Button("zachter");
Button random = new Button("Random actie");
Button kleur = new Button("Kleur veranderen");
links.addActionListener(this); //action events worden aan knoppen gekoppeld
rechts.addActionListener(this);
omhoog.addActionListener(this);
omlaag.addActionListener(this);
harder.addActionListener(this);
zachter.addActionListener(this);
random.addActionListener(this);
kleur.addActionListener(this);
add( links ); //knoppen worden op canvas gezet
add( rechts );
add( omhoog );
add( omlaag );
add( harder );
add( zachter );
add( random );
add( kleur );
public void paint(Graphics g){
g.setColor( Color.black);
g.drawLine( 0, 34, 600, 34 );
Packleur1 = g.setColor( Color.yellow );
Packleur2 = g.setColor( Color.red );
Packleur3 = g.setColor( Color.blue );
Packleur4 = g.setColor( Color.green );
Packleur5 = g.setColor( Color.white );
Packleur6 = g.setColor( Color.black );
g.fillArc(x, y, width, height, angleA, angleB); //teken de pacman voor het eerst
public void actionPerformed(ActionEvent e){
String str = e.getActionCommand();
if( str.equals("Kleur veranderen")){
klikken++;
if( klikken = 2 )
{Packleur2 = true;}
if( klikken = 3 )
{Packleur3 = true;}
if( klikken = 4 )
{Packleur4 = true;}
if( klikken = 5 )
{Packleur5 = true;}
if( klikken = 6 )
{Packleur6 = true;}
return false;
if(klikken == 7)
{klikken = 1;}
if( str.equals("Random actie") ){ //Die stomme random functie
int i = (int)(Math.random() * 10);
switch(i){
case 1: case 7 : str = "omlaag"; break;
case 2: case 8 : str = "omhoog"; break;
case 3: case 9 : str = "links"; break;
case 4: case 10 : str = "rechts"; break;
case 5: case 0: str = "harder"; break;
case 6: str = "zachter"; break;}
if( str.equals("harder") ){ stap = stap + stapVerander;} //stap wordt 10 groter
if( str.equals("zachter") ){ stap = stap - stapVerander;} //stap wordt 10 kleiner
if( stap < 0){stap = 1;} //Stapgrootte wordt nooit negatief of nul
if( str.equals("links") ){ x -= stap; //linksknop laat pacman links kijken en bewegen
angleA = 185;
angleB = 345;}
if( str.equals("rechts") ){ x += stap; //rechtsknop laat pacman rechts kijken en bewegen
angleA = 5;
angleB = 345;}
if( str.equals("omhoog") ){ y -= stap; //omhoogknop laat pacman omhoog kijken en bewegen
angleA = 95;
angleB = 345;}
if( str.equals("omlaag") ){ y += stap; //omlaagknop laat pacman omlaag kijken en bewegen
angleA = 275;
angleB = 345;}
if( x <= 0){ x = 0;} // houdt de pacman tegen als hij links/rechts wil verdwijnen
if( x > 550){ x = 550;}
if( y <= 35){ y = 35;} // houdt de pacman tegen als hij boven/onder wil verdwijnen
if( y > 550){ y = 550;}
repaint(); // zet de pacman opnieuw op het canvas
Can anyone help me with this?
Thanks a bundle!
Menno.Thanks a lot!
Say if you want to see how it works just compile this source :
/* Autopacman spelletje
Menno Hagens, I108
2001
Autopacman.
Maak via overerving van de klasse Packman uit week 4 een nieuwe klasse 'AutoPackman'.
Deze klasse moet de volgende extra functionaliteit bevatten.
De kleur van de Packman moet kunnen worden ingesteld.
Er moet een methode komen die een willekeurige opdracht aan de Packman geeft.
(naarLinks, naarRechts, gaSneller, gaTrager, etc.)
Maak vervolgens een applet met vier Packmannetjes en ��n knop 'Beweeg'.
Als je op deze knop drukt, moeten alle Packmannetjes ��n stap in een willekeurige
richting doen.
Programmeer dit efficient met arrays en loops.
Als je na afloop nog moed hebt kun je de klasse en de applet zo aanpassen dat een
spel ontstaat, waarbij een Packman die op de positie van een andere komt, de andere
Packman opeet. Degene die overblijft heeft gewonnen.
package pacman;
import java.applet.*;
import java.awt.*;
import java.awt.event.*;
public class Autopacman extends Applet implements ActionListener
boolean Packleur1;
boolean Packleur2;
boolean Packleur3;
boolean Packleur4;
boolean Packleur5;
boolean Packleur6;
int klikken = 1;
int x = 200, y = 200; //beginpositie pacman
int width = 50, height = 50; //formaat pacman
int stap = 20; //standaard stapgrootte
int stapVerander = 10; //stapgrootte wijziging
int angleA = 5; //beginhoeken pacman
int angleB = 345;
public void init(){
Button links = new Button("links"); //knoppen worden gemaakt en gelabeld
Button rechts = new Button("rechts");
Button omhoog = new Button("omhoog");
Button omlaag = new Button("omlaag");
Button harder = new Button("harder");
Button zachter = new Button("zachter");
Button random = new Button("Random actie");
Button kleur = new Button("Kleur veranderen");
links.addActionListener(this); //action events worden aan knoppen gekoppeld
rechts.addActionListener(this);
omhoog.addActionListener(this);
omlaag.addActionListener(this);
harder.addActionListener(this);
zachter.addActionListener(this);
random.addActionListener(this);
kleur.addActionListener(this);
add( links ); //knoppen worden op canvas gezet
add( rechts );
add( omhoog );
add( omlaag );
add( harder );
add( zachter );
add( random );
add( kleur );
public void paint(Graphics g){
g.setColor( Color.black);
g.drawLine( 0, 34, 600, 34 );
g.setColor( Color.yellow);
if( klikken == 1 )
{g.setColor(Color.yellow);}
if( klikken == 2 )
{g.setColor(Color.red);}
if( klikken == 3 )
{g.setColor(Color.blue);}
if( klikken == 4 )
{g.setColor(Color.black);}
if( klikken == 5 )
{g.setColor(Color.green);}
if( klikken == 6 )
{g.setColor(Color.white);}
g.fillArc(x, y, width, height, angleA, angleB); //teken de pacman voor het eerst
public void actionPerformed(ActionEvent e){
String str = e.getActionCommand();
if( str.equals("Kleur veranderen")){klikken++;}
if(klikken == 7)
{klikken = 1;}
if( str.equals("Random actie") ){ //Die stomme random functie
int i = (int)(Math.random() * 17);
switch(i){
case 1: case 7 : case 11: case 15 : str = "omlaag"; break;
case 2: case 8 : case 12: case 16 : str = "omhoog"; break;
case 3: case 9 : case 13: case 17 : str = "links"; break;
case 4: case 10 : case 14: case 0 :str = "rechts"; break;
case 5: str = "harder"; break;
case 6: str = "zachter"; break;}
if( str.equals("harder") ){ stap = stap + stapVerander;} //stap wordt 10 groter
if( str.equals("zachter") ){ stap = stap - stapVerander;} //stap wordt 10 kleiner
if( stap < 0){stap = 1;} //Stapgrootte wordt nooit negatief of nul
if( str.equals("links") ){ x -= stap; //linksknop laat pacman links kijken en bewegen
angleA = 185;
angleB = 345;}
if( str.equals("rechts") ){ x += stap; //rechtsknop laat pacman rechts kijken en bewegen
angleA = 5;
angleB = 345;}
if( str.equals("omhoog") ){ y -= stap; //omhoogknop laat pacman omhoog kijken en bewegen
angleA = 95;
angleB = 345;}
if( str.equals("omlaag") ){ y += stap; //omlaagknop laat pacman omlaag kijken en bewegen
angleA = 275;
angleB = 345;}
if( x <= 0){ x = 0;} // houdt de pacman tegen als hij links/rechts wil verdwijnen
if( x > 550){ x = 550;}
if( y <= 35){ y = 35;} // houdt de pacman tegen als hij boven/onder wil verdwijnen
if( y > 550){ y = 550;}
repaint(); // zet de pacman opnieuw op het canvas -
Need to change colors of lines in an Omniportlet Line Chart
I am running Oracle Portal on a 10g Web server. I have created an Omniportlet and I am displaying data in a line chart. Is it possible for me to define the colours of the lines in the linechart?
Hi I didn't changed colors in line chart but I managed to redesign lot of omniportlets.
What you can do is to re-define CSS.
Add an HTML portlet in your page with some CSS embedded.
To catch wich class are to be re defined, I recommand you to use firefox with the extension Webdevelopper.
Use the "Informations - display element information" functionnality to catch wich class are used for your chart.
Then redefine those classes in your custom CSS.
Hope that will help -
What display settings do i need to change to use hdmi cable with macbook pro
what display settings do i need to change to what tv and display my macbook pro with hdmi cable connected to computer.
Well, if it's 1080p TV, then go into System Preferences > Displays.
Sometimes you have to click on detect displays & a PreferencePane should appear on each display device for you to change the resolution.
Also decide if you want it mirrored, or extended. And also move the display to the correct position for extended so you are moving the mouse in the direction of the 2nd display being the TV.
Option + F1 = Brings Display preferences up immediately.
Command + F1 or F2 = from memory that's the shortcut to switch back & forth between mirroring & extended. -
Need help changing colors in a photo.
I am trying to help some artists in mexico with their weaving. We are using elements 11 on vista 7. We would like to change colors in a piece to see if they are pleasing to the eye. Is it possible to change colors thoughout the whole piece at once? Using a brush to paint over each and every area would be so time consuming as their work is quite intricate. If this is not possible on Elements does Adobe have another sotware that would accomplish this task. Thank you for your time.
I did not know I had to go to expert as i have never used this type of program before.The help was just telling me the tools were on the left side. I thank you for pointing me in the right direction. I have a feeling it will be easier for me to learn Chinese.
-
How do I change the email address associated with my icloud account?
The OP asked how to change the email address that is associated with their iCloud account.
To sign into your iCloud account you use your Apple ID.
Therefore if you want to change the email address or Apple ID you sign into iCloud with, you need to change your Apple ID.
If your question is how to change your primary iCloud Mail email address, AFAIK, you cannot as it is linked to and is an alias for your Apple ID. You can create an email alias. Alias can be changed and deleted.
iCloud: Create or change email aliases -
I don't want to change my Apple ID, I just need to change the e-mail address that is attached to my icloud account. I changed the Apple ID to my new e-mail, but icloud still has the old address.
Did you get a resolution to this? I have the same problem.
-
Need to change the VAT number associated with my account.
Hi, who do I have to ask for changing the VAT number associated with my account?
Hi Calin ,
I would request you to please get in touch with the Adobe Technical Team in order to get your query resolved. Here is the link for the same.
https://helpx.adobe.com/adobe-connect/kb/connect-chat-support.html
Regards
Sukrit Dhingra -
Change Color Label of File with Javascript
I need to be able to run a JS script from within Photoshop and when it's complete, change the color of the file in Finder to indicate it has been processed. I'm talking about the red, orange, yellow, etc. highlights you can give the files in Finder.
I know how to change these file colors in Applescript. But I cannot figure out how to initiate the process from JS when run inside Photoshop.
So I was curious if there was:
A. A way to run an Applescript from Javascript
or
B. A way to define the property of a file from JS such that Finder would interpret it into a color highlight?
Any ideas?
ThanksHere is some code from X that might be of use...
//myscript.sh MUST exist with execute permissions!
var script = new File("~/Desktop/myscript.sh");
script.length = 0;
script.lineFeed = "unix";
script.length = 0;
script.open("e");
script.writeln("#!/bin/bash");
script.writeln("osascript ... whatever");
script.close();
script.execute();
Of course you would need CS3 orr better. -
I am attempting to take a path item that is on its own layer and change its color multiple times, saving it each time.
I was able to do it with javascript however can't get it to work in applescript.
Javascript:
(Items are already selected that I intend to change.)
var iL = app.activeDocument.pathItems.length;
var colorSwatches = app.activeDocument.swatchGroups.getByName('newColors');
var allColors = colorSwatches.getAllSwatches();
var colorNames = Array();
for (var i = 0; i < allColors.length; i++){
colorNames.push(allColors[i].name);
for (x = 0; x<colorNames.length; x++)
var currentColor = allColors[x].name;
for (i=0; i<iL; i++)
var myItem = app.activeDocument.pathItems[i];
if(myItem.selected)
myItem.fillColor = app.activeDocument.swatches.getByName(currentColor).color;
(I then go on to save each one)
When trying to cross over into applescript I have the following so far:
set iL to count every path item of document 1
set colorSwatches to swatchgroup "newColors" of current document
set allColors to get all swatches colorSwatches
set swatchCount to count every item in allColors
repeat with i from 1 to swatchCount
set currentSwatch to item i of allColors
repeat with x from 1 to iL
set myItem to path item i of document 1
here is where I have no idea what I am doing... I can't figure out how to test if an item is selected
if myItem's has selected artwork is equal to true then
set fill color of myItem to {swatch:currentSwatch}
end if
end repeat
end repeat
Or better yet is there a way I can select every path item of a layer and change its color that way?
Something like the following:
set fill color of every path item of layer "art" of document 1 to {swatch:currentSwatch}
Thanks for any input!I'm throwing it into a Applescript OBJc project I am working with. I currently have it in a javascript file within the actual project however this is the slowest part of my project and I'm going to attempt to speed it up some.
Let's say I'm changing the color of a path item 35 times... this starts to eat a ton of time up.
My applescript save illustrator file as jpeg is much faster than the javascript one for some reason...
It's also something I have needed to do numerous times in the past and never got around to asking. -
Need Help: Changing Colors in Template for Flyer
I am trying to create a flyer from a template. I chose a template that has a colored border, but want to change the colors....I cannot figure out how to?
Also,
How to change the background color on a template too?
Thanks so much for the help!!!
PS: I am using the iWork, Pages...for thisHi Streater
Welcome to the forum.
There are 3 possiblilities:
*1. It is locked* and shows small grey crosses on the corners
+Menu > Arrange > Unlock ( option command l)+
*2. It is grouped*
+Menu > Arrange > Ungroup ( option shift command g)+
*3. It is a scan or pdf*
+Inspector > Metrics > File Info+
Need to edit it outside Pages in a graphics program.
If you can get at the object the colors and strokes etc are at:
+Inspector > Graphic > Fill / Stroke+
Double click any color fields to get the color picker.
Peter
Maybe you are looking for
-
Questions about the future directions of InfoPath and Microsoft Access
Because I have been confused about the future directions of InfoPath and Access, I wrote a short blog post, which I have pasted below. My question is, can Microsoft provide some more guidance on Access vs InfoPath? If Access is indeed the the futur
-
Hi, Recently I have noticed an issue with how the Roles function on our server works. We have two Roles per computer in the Database. One role specifies the Task Sequence and any other specific details and the other role specifies any additional appl
-
Boot camp assistant ignores legit disks if the boot disk has a raid slice
I don't know if this is the right place to post... sorry if not. Here's my setup: disk0 Mac OSX HD OS Share Mirror (RAID slice) disk1 Mac Fast Windows Fast Mirror (RAID slice) disk2 Time Machine (one big Journaled HFS+ partition, that's it) I wanted
-
How's my error handling?
I'll keep this short. I have TONS of CFTRY/CFCATCH blocks encapsulating different logic. In the event an error throws, I send the CFCATCH data and usually a descriptive message along with the invokation to a custom tag called cf_errorhandler. I hav
-
Watermark image w/transparent borders and raindrop in pool effect
Hi there, I have learned how to place a transparent image in iMovie using Quictime Pro but I can't seem to place an image with transparent borders. What I have is an icon with rounded corners and a transparent center. The icon looks very blocky right