Flash 9 :: Create A New Background As Vertical Gradient?
Aug 8, 2008i am trying create a new background as vertical gradient. but i can not find such a option. only horizontal gradient in Flash CS3 ?
View 1 Repliesi am trying create a new background as vertical gradient. but i can not find such a option. only horizontal gradient in Flash CS3 ?
View 1 Repliesmy first time trying to draw a multi-color gradient in actionscript 3. So I got this code from the help docs, but I can't seem to get a vertical gradient, whatever formula or number I use for rotate, it stays stuck on the default horizontal gradient :(
[Code]...
I'm trying to create spinning rays in actionscript to use in my website.Below is the rough idea of what i'm trying to create.Is it possible to create absolutely with 0 images.Following is the actionscript code in which i couldn't figure out how to add gradient, transperant background and little radial gradient to create glow effect.
Code:
function CreateRays():Shape {
var ray:Shape = new Shape();
ray.graphics.beginFill(0xFF9900,.5);
ray.graphics.lineStyle(1,0xFF9900,.5);
[code]....
If you paste above code in 1st frame of your scene with nothing on your scene, it will give you sweet rotating rays!
How to create vertical gradient in flex. What i currently have is a horizontal color gradient. And its working fine. But I am unable to figure out how should I make it vertical (which ofcourse is the requirement)I use styleName = "chatWindowLeftGradient".[code]This give a gradient from top to bottom. How i can make from left to right??
View 3 RepliesThis seems to be a very straight forward thing to do and there are loads of tutorials about the subject. None of them are helping me get this right though, and I can't for the life of me figure out what's wrong. I'm trying to create a simple Flash AS3 GUI component that has a vertical gradient. I create the sprite, and draw the gradient with beginGradientFill and a matrix with a 90 degree radian angle on it. If you look at this output, you see that its not creating a black to white vertical gradient.
[Code]....
In a project, I've got 2 background (one light and one dark). My main background is the dark one and when I move my mouse I wanna show in a small circle with an alpha gradient the light one.
But I don't know how can I do that...
I try and I've got white mask with the light background in my circle or I've just got the dark background and no mask.
If someone already do that and can explain it to me ?
Sometime ago i ran into some url where they had a code for animating your background. Does someone have an idea how to do it or where to find it.
View 6 RepliesHi, I can't figure out how to make a smooth gradient background.I've been searching the forums, but can't figure it out.
View 5 RepliesI have created a sprite gradient box as my background in my flash as3 file (using tweenmax). As i'm trying to make this a full screen swf on the browser window, i set the width and height according to the stage.
My trouble is that when I resize my browser, the gradient box does not resize with it... it only does when i refresh the window with the new width/height.
Is there a way I can put a redraw function in an event handler that will recognize the window resize? If this is hard to understand... can my background become bigger at the same time as the window is being dragged to a new size?
[Code]...
I'm working with Flex 3.4 SDK.
I'm trying to programmatically(yep, must be this way) style/skin a VBox so that its top right corner is rounded, and it gets a two colors gradient brackground.
Modifying examples I found around I was able to accomplish both effects(corner and background) but only separately:
VBox with not all rounded corners: [URL]
VBox with gradient background: [URL]
But what I need to do is to apply both at the same time. And all my coding attempts so far have failed silently.
I am trying to set the gradient background color for my panel via skins. I try to change my code but nothing seems to change. Not sure what to do.
My skin file
/<!-- layer 2: background fill --/>
<!--- Defines the appearance of the PanelSkin class's background. -->
<s:Rect id="background" left="1" top="1" right="1" bottom="1">
[Code]....
I want to set a gradient background for the selected item in my AdvancedDataGrid
View 1 RepliesI'm working on a fullscreen flash project. I've got everything working fine, background tile, autocenter, etc one thing I can't find out is how to have a circle gradient over the background (fullscreen / autoresize) [URL]
View 1 RepliesI have a website already done... but I'd like it to be over a full screen gradient background.I found a lot of tutorials and exemple on how to repeat a symbol picture to make a seamless background just like the one Lee Brimelow made on gotoandlearn.com, but I can't find one on how to make that gradient full screen background.
View 6 RepliesHow to create the gradient line?
View 4 RepliesI want to create a button (not a rectangle; a form created with the pen tool) that can change it's gradient. Let's say that initially the button has a black-white gradient and when I press another button the gradient changes to reb-blue.
View 1 RepliesI've been trying to learn just now how to dynamically create a radial gradient in a circle. All the pages that I can find use the command 'beginGradientFill', but when I use it I get the following messages:
Warning: 1060: Migration issue: The method beginGradientFill is no longer supported. For more information, see the Graphics class..
and
TypeError: Error #1006: beginGradientFill is not a function.
Unfortunately I can't seem to find the replacement, or any other pages that describe an alternative to that function. What is the way to do a radial gradient now?
For a project I'm working on I'm trying to create a Flash file with a constantly color-shifting gradient that fills up the entire browser window. For a better explanation please see the following link:
View the Example
Don't worry about the moving balls, those are just there to challenge the frameRate of the movie, which has a maximum of 60. If you look at the background you can see the gradient effect I'm referring to.
The method I'm currently using to create the gradient animation is a simple shape tween on the Flash timeline that tweens between shapes with different gradient colors. I'm definitely not achieving the performance I want using this technique.
I've also tried creating a static gradient and shifting its color over time using ColorTransform, but this doesn't offer any better performance.
So that's a long-winded way of asking what people think would be a better way to create such a color-shifting gradient while getting better performance? Some examples might be through bitmapData or using PixelBender, but I'm not versed enough in these techniques to know which would get me the best performance.
I'm wondering if it's possible to create dynamic text field with a gradient color.
View 1 RepliesI am creating a custom video player based on some of the components provided by Flash. I would like to create a volume bar that appears on hover similar to how Youtube does it. can anyone provide me with info on how to do this or point me toward a tutorial?
View 2 RepliesI am new to Flash and trying to create a vertical slider bar that will return a ratio between 0 and 1, change color while doing so, and display the resulting ratio on the side of the slider as you drag. Everything works except for the dynamic text box displaying the "ratio." I want the text box to be invisible until you drag, then display at about 70% alpha when you drag, and go back to invisible when you release (because of the 70% alpha I have decided not to use the "visible" property).
I have attempted to use the _alpha command to accomplish the above, but the actionscript appears to ignore and just display the text box at 100% alpha. I have put the dynamic textbox in a movie clip, but still can't make it work. Could I accomplish this with a rollover button covering the entire slider?
I have posted the .fla file here for your review; can anyone let me know where I'm going wrong?[URL]..
I am trying to create Vertical scrolling images. I found a tutorial using AS 3.0, used that, but made a couple of alterations - like I did not want the images centered on the stage and I added more images than what the tutorial showed. As a result I have several errors in the Actionscript.
View 13 RepliesI'm trying to create a Vertical scrolling xml menu. This menu is based on [URL] "Creating 3D Carousels tutorial"
This is my code
Select all
var Items:Number;
var xml:XML = new XML ();
xml.onLoad = function () {
_root.createEmptyMovieClip ("mc_Control", this.getNextHighestDepth ());
mc_Control._x = 0;
mc_Control._y = 0;
[Code] ......
My problem is when I add a new item in the xml file, I can't see it in the .swf file. My xml file have 37 items. I only see 24 buttons! in the .swf file and I' m stuck at this point my buttons have 26 px (_height).
I've tried to use the "Simple Custom Scrollbar" tutorial to create a horizontal scrollbar instead of the vertical. I've changed the defenitions like this:
scrolling = function () {
var scrollWidth:Number = scrollTrack._Width;
var contentWidth:Number = contentMain._Width;
[Code]....
I put the "Width" instead of the "height", and "x" instead of "y". What I've got is when I push on the "scrollFace" button it slides but disappears immidietly, and the the image (which is "movieclip" as well) beneath the masked area freezes.
* In addition - I have to make this scrollbar move from right to left - Is there any additional defenitions I must concern?
I wanting to create a basic news scroll / ticker like this http:[url]....What's the best way of achieving this to get a continuous smooth animation.
View 3 RepliesI was wondering if anyone knows if you can create a flash file with a transparent background. Ultimately i would like to insert my flash file (which is a website) into dreamweaver but i want it to interact with my background image in dreamweaver (which fills the whole browser page edge to egde) so it shows through my flash file which will have an opaque backgorund?
View 3 RepliesBut this is only for 1 movieclip. And I need the entire stage and everything of whats in it (except for the layer with the background image) to be moved this way. But how?Also want the scroll to be restricted to a max y-position of 860px even if the entire stage goes as far as a height of 1508px.
View 7 RepliesAny tutorial for a simple vertical navigation menu with a submenu. Like a drop down menu but vertical where the main links are on the left and the submenues come out the right side of the menu. I don't need any bells and whistles and I am just learning so it doesn't need anything but a button link when rolled over more link options appear to the right. Is there a tutorial that is not a place trying to sell me this capability and actually works (CS3), no errors, broken links etc...just a how to for a simple menu with submenus.
View 1 RepliesI need to create a custom y-axis in a columnChart that resembles a tall / skinny VBox (sorry can't post pictures) and has the axis labels (20, 40, 60, 80, 100) inside the axis.By default, the y-axis is a line and I have found methods of making the line thicker but I need the labels inside the axis.I have tried using the AxisRenderer class but can not find any good examples on the proper use.
View 1 RepliesI'm trying to create a background sound in flash website. I created play/pause buttons and it works fine, but when the sound is over it stops. What I want is the sound to loop, not to stop. I tried different things but I can;t get it working as I wish. Here's my code:
Code:
var mySound:Sound = new dogg();
var myChannel:SoundChannel = new SoundChannel();
myChannel.addEventListener(Event.SOUND_COMPLETE, whenComplete);
function whenComplete(evt:Event):void
[Code]...