Changing Hue And Saturation Of PNG File?
Jun 30, 2009
We are working on a pretty robust "shirt design" application that allows users to create custom t-shirt designs, create vector output automatically and send the files to a printer.
Inside of the application, you can select high resolution artwork in PNG format and add that to your shirt design. We would like to add the functionality to :
1) Change the Hue and Saturation of the PNG in question (probably using the ColorMatrixFilter class, or something along those lines). 2) Be able to change the hue of different parts of the PNG... (I know , this is probably tricky).
For example, if you have a PNG of a Red Convertible with black tires, how would we even go about changing the color of the convertible and the tires seperately?
View 1 Replies
Similar Posts:
Feb 20, 2009
How can I change the saturation and brightness of a picture using a tween ?
View 1 Replies
Aug 20, 2009
in the filters panel, there is an "adjust color" option.. and inside of it, there is an option there for "saturation".. setting it to the lowest (-100) will turn the movieclip / whatever object you're applying the filter to, to grayscale..i was wondering, how would i go about this using code?
for example, if there was a movieclip on stage called "thePic" and i wanted to decrease its saturation slowly every enterframe until it finally becomes grayscale, how would i go about it?i know how to manipulate the other filters like GlowFilter and BlurFilter through code, but it seems like there is no "AdjustColorFilter".. there is a ColorMatrixFilter, but i dont event understand how it works..
View 2 Replies
Aug 16, 2011
John Ulliman uses actionScript3 with Flash CS3 and I have Flash CS5 which is the main difference. It appears he uses a classic tween (from CS4 and CS5's perspective).I have a thumbnail which is created as a movie symbol and when I double click on the timeline I have a tween of zero saturation (frame 1) to 100% saturation (frame 10) back to zero saturation frame 20. When I scrub the timeline the classic tween fades up and down correctly. But when I trigger the rollover (and rollout) event from the main timeline which should goto the movie instance called mThumb0.gotoAndPlay(2) starting at frame 2 for ROLL_OVER and Thumb0.gotoAndPlay(11) for the ROLL_OUT event it seems to only change the saturation a little but not touch the saturation filter.
I don't know if there is something about the different tweens (Classic and Motion) that I need to know. I don't know what the sync checkmark does but I tried it on and off with no help. I put trace statements that indicate the ROLL_OVER and ROLL_OUT events are being triggered and the functions the events trigger are being called correctly but I don't know how to debug what is happening with the timeline after the mThumb0.gotoAndPlay occurs.
View 2 Replies
Nov 10, 2009
I'm working on the example attached trying to get my css to alter the colour of my xml links. Despite doing what the forums say you should it's not working. What am I doing wrong?
[Code]...
View 9 Replies
Oct 8, 2010
I have changed the "src=filname.swf" in the <embed> tag as well as the "name=filename" part of the <embed> tag however to no avail. The video still no longer plays after I rename the file. It was built in ActionScript3 I think.
View 1 Replies
Jan 27, 2011
I'm trying to change the font within the flash file of this site. Its one single swf, with a series of .txt files loaded through actionscript 2.0. How do I change the font of the text within the scrolling box at the right?
View 1 Replies
Mar 11, 2011
I have a simple button function that changes the selectedIndex on a view stack without using the menu bar component. I call the function from the click property on the button and pass an int as the index I want to jump to. When I had the code on the application MXML file everything worked fine. After moving my actionscript to a separate file, I get access of undefined property errors:
protected function changeView(index:int):void
{
myViewStack.selectedIndex = index;
[code].....
View 2 Replies
Apr 22, 2010
I have made an animation that has an external AS file. I want to be able to just edit the AS file and the animation to update. Right now the way I have it set up is in the action script of the fla i have the following:
include "regionMap.as" I am pretty new to Flash so i'm not sure if this is the best way to do this. The way it is now if i edit the AS file and save it..nothing happens unless i go into the fla and publish it again. Is there another way of doing this so that all the user has to do is edit the AS file? I'm sure there is, but I just am not sure how.
View 7 Replies
Nov 26, 2004
I have a simple button function that changes the selectedIndex on a view stack without using the menu bar component. I call the function from the click property on the button and pass an int as the index I want to jump to. When I had the code on the application MXML file everything worked fine. After moving my actionscript to a separate file, I get access of undefined property errors:
protected function changeView(index:int):void
{
myViewStack.selectedIndex = index;
}
How do I get the .as file to recognize the myViewStack component? Do I need to reference Main.MXML somewhere in the .as file? Thanks.
Here is the rest of my code:
<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
[code]....
And finally the .as files with the function in question:
import mx.containers.ViewStack;
protected function changeView(index:int, myViewStack:ViewStack):void
{
myViewStack.selectedIndex = index;
}
View 3 Replies
Feb 3, 2010
I made a banner that will appear at the top of a website, though I just found out I need to decrease the width of it. I would like to export it at a smaller size, so I go to Publish Settings and I notice I can change the width and height. How can I do this while maintaing its proportions? It is currently 791 x 275. Using CS3.
View 5 Replies
Sep 2, 2010
I am uploading videos to my new site (aspirin creative) and the player will not recognize any .f4v videos. I changed the extension on one to .flv and it now appears to recognize and play the video. Also, I didnt build the site myself and the developer not Define terms of video playback (which has been less than great so far) the player seems to be a rather strange resolution (600x340) which is not native 16:9 and wont recognize 4:3 encodes without stretching and warping. I have tried to encode close to this in media encoder but as soon as I select .flv over .f4v in the options my ratios seem to go mad, not keeping the preset and not letting me set to anything that is actually 16:9?!
View 2 Replies
Sep 28, 2010
Basically I have media being parsed and played by reference of an XML document using AS3. These media files are gonna be seperated into seperate XML files then what I was planning was to just dynamically change which XML file is being referenced. Problem is, the code only fires once on frame 2 and I can't seem to figure out how to switch out the XML file for a different one upon an event trigger. "new URLRequest [URL]" isn't working...do I need to reload a whole other string of code to change to a different XML document?
View 2 Replies
Oct 21, 2003
how can i change the color of a movie clip by a text file
i want to give option to user that he can pass a color code (0Xrrrrrr) and it got reflected in the swf.
View 10 Replies
Nov 19, 2009
Whilst I did some flash YEARS ago, I am now needing to get back into it. And whilst I have a course booked, I need to do something now. I have downloaded a flash file with a mask from an image website. I want to double the size of the file, but the masking now only highlights part of the image.
View 6 Replies
Oct 21, 2003
how can i change the color of a movie clip by a text file.i want to give option to user that he can pass a color code (0Xrrrrrr) and it got reflected in the swf.
View 10 Replies
Dec 4, 2006
Creating a non-interactive status display: I want to have theflash display reflect data in a server-based XML-file. So far thisis easy. But I want the display to change everytime the XML filechanges-- in order to reflect status changes. I've used anXMLConnector and specified it and the trigger in the first frame.The Flash code catches and shows the XML values initially . Butwhen I edit the XML file, the new values are never picked up byFlash- its almost as though the values are cached. How do I getFlash to regularly be updated from a changing XML file? I've alsotried putting the trigger in a loop- but that doesn't workeither.
View 8 Replies
Sep 16, 2011
I would like to have flash www page with dimentions 960x653 pixels. There will be 5 scenes navigated by buttons and each of the scene will have different background color. I would like to have fullscreen background also (filling the rest of the space), and to make it I used "Auto-Resizing and Centering Content", based on tutorial:
[URL]
To make it working with my existing animation I made 960x653 UILoader instead the centerRectangle, and I loaded my swf animation there. Fullscreen background is working - when I scale window of the viewer the main scene keeps its dimentions and background fills the rest of the space, what is what I wanted to. My included animation is working perfectly.
But I still have one issue to solve. How to change my fullscreen background while switching scenes? Is it possible to change it from included swf animation?
View 10 Replies
Jun 7, 2010
I have written an Air program that mirrors a directory tree. The problem is that the destination folder structure and content need to be identical - right down to the creationDate and modificaitonDate file attributes. How can I change these file attributes using Adobe Air? I'm able to READ them both just fine, but the properties are read-only. How do I change them?
View 1 Replies
May 7, 2011
I have edited the pageflip script and file to suit what I need to do and my issue is not related to the usual addition of pages or content etc... but is to do with publishing the file. I have increased the sizes of the page from what they are in the original file and this is where the issue lies because when I come to publish the file as an exe the content no longer seems to fit the window when published and you have to expand the viewer. The instructions for quite a lot of the pageflip is there and pretty easy to decipher however outputting/publishing the file seems to be unclear.
Can somone please point me in the right direction for resizing the stage or changing the settings so that the published file shows all the content without the need to resize the window?
View 1 Replies
Jun 27, 2003
[code]That is the code used to solve the cache problems, but i dont' really get the second line. How does changing the level or target of the new movie stop the old file from playing?!i also searched what "?" does in flash, but i couldn't seem to find it.
View 3 Replies
Aug 11, 2009
I am new to flash and decided to start out using templates to gain a beter understanding. I grabbed a template - that when I went to save it said it was an MX version - once I began to make changes in it re-save and publish it I noticed that some of the elements were missing. I thought it was something I did so I copied the entire directory and just opened the .fla and saved it without making a change and then published it and the items were gone again. I saved it in the same directory only changing the output .swf file and used all of the same html files
View 5 Replies
Aug 14, 2009
How do I change the corner radius of a Label component in Flex. Tried applying style name, and the setStyle('cornerRadius',9) methods, but doesn't work. How can I change the arrow image in the combo box control to a different image?
View 4 Replies
Aug 31, 2009
I want to create another button on the main menu of my flash site. I want to take one of the existing buttons (which are set as movie clips) and modify it to show a different menu name and page link. BUT when I go into my library and "duplicate" my movie clip, change the instance name, drag it to the stage and attempt to modify it, the original changes as well. I need to keep the original the same and create a new one with the same code, frames, etc but with different static text. I keep going in circles
View 1 Replies
Feb 1, 2006
basically when you load the .swf it changed everytime u re-load it , i want it to keep on changing even when the user hasnt reloaded the image
[Code]...
View 1 Replies
Jan 25, 2012
I am changing image through flex every time i change it saved into server directory with same name(which i am referring to show). So when i refresh my page my browser didn't send new request to server since it's already in request.so didn't getting new image.Tip:- when i clear browser history it will come with new image
View 2 Replies
Sep 12, 2009
I can't seem to remove / unload the external swf files e.g when the carousel.swf (portfolio) is displayed and I press the about button the about content is overlapping the carousel (portfolio) . How can I remove / unload an external swf file from the main flash file and load a new swf file, while at the same time removing garbage collection from memory?
View 15 Replies
Feb 4, 2010
I am trying to write a class file using a .as file instead of writing code into the script tab of a .fla file.When I write stage.addChild(img); I get an error that stage is null. When I take out stage, and just write addChild(img); the code runs fine, but nothing appears on stage. Do I need to do something to set a stage active?
Is this because I don't have a Main class? My class is named after the file and I don't have a file named Main.Here is the code. As it is, it runs and I get the two trace outputs, but no graphic on my screen.
package { import flash.display.DisplayObject; import flash.display.Sprite; import flash.display.Loader; import flash.events.*; import flash.net.*; public class HelloWorldImage extends Sprite { private var background:DisplayObject, foreground:DisplayObject; private var url:String = "hw_jpg.jpg"; private var loader:Loader = new Loader( ); public function
[code].....
View 7 Replies
Nov 9, 2009
I've got a flash template, and was just messing around to see how tough it is to work with. Anyways, I changed some text, saved it, exported, and in the SWF, it did not change, it stayed as what it used to say.
I then changed some other text to see if the same thing would happen, and it did. I also added in a text field to see if it would appear, and it did.
why certain text does not show as changed in the SWF?
View 2 Replies
Apr 30, 2009
I am customising a Template Monster template that has a flash menu.When I changed the getURL code (using AS2) of my flash menu buttons they work for an external URL but do nothing in my site. EG.THIS WORKSgetURL("index.html");THIS DOESNTI have everything in the same root folder and the animated menu bar works perfectly in-situ, just wont go from page to page.
View 2 Replies