ActionScript 3.0 :: Slider To Change Brushsize?

Mar 10, 2011

Im making a Drawing App and i want a slider to change brushsize i have a varible set up to change the brush size.

The Varrible is:
var ColourSize = "";
ColourSize = 10;
 
And that works with changing the size but i need a slider to change it..

View 2 Replies


Similar Posts:


ActionScript 3.0 :: X Slider To Change Frames Of A Mc?

Aug 3, 2011

I am trying to set up a file with a sliderMC that would change frames in another mc when the user drags it left or right. So far I have:

var pos:MovieClip;
pos.onPress = function ():Void{
this.startDrag(true, -10, 0, 600, 0);

[code].....

but I am stumped as to how to code AS3 so that when the instance of

pos is between 0-150 to go to mc frame 1
when x equals 150-300 to go to mc frame 2
when x equals 300-450 to go to mc frame 3
when x equals 450-600 to go to mc frame 4
when x is greater than 600 to go to mc frame 5

View 8 Replies

ActionScript 2.0 :: Change Mc Duration With Slider?

May 5, 2005

I'm new to actionscript, but here's what I would like to do.I want to have a single animation and two sliders. slider1 will advance and rewind the movieclip,we'll call it "scrubbing", while slider2 will change the highest frame of the mc acheivable by the "scrub" slider1. Therefore if slider2 is at one end slider1 will not advance the mc at all, while if slider2 is maxed out then slider1 will "scrub" the whole movie.

View 1 Replies

ActionScript 3.0 :: Change Slider Component Height?

May 6, 2010

Is there anyway to change the height of the slider in AS3? (CS3), I've tried changing the actual graphic (of the bar) in the library and no matter how big I make it it's always locked to 13 pixels high.

View 3 Replies

ActionScript 3.0 :: Using A Slider To Change Line Thickness?

Jan 16, 2010

trying to make a slider that changes the line thickness in a drawing app that I would to share with my students. When moved from left to right a circle changes scale. This circle would act as a visual reference on the stage telling the viewer that the line thickness is changing. Right now I just want to figure out how to connect the slider so that the circle changes dynamically. Once I get that I feel I can figure out how to connect it to lineStyle(). The current code I am attaching has the circle change size at onle two points-the far left and far right. I keep trying to write something that uses mouseX properties but so far nothing is working.

View 5 Replies

ActionScript 3.0 :: Change Volume Using Slider Component

Sep 19, 2011

I am trying to use the slider component (aSlider) to control the volume of mySound which is a class called PlaySound. Created an addEventListener for aSlider with a SlideEvent.CHANGE executing a function called changeVolume. Everything else works but I can't seem to get the slider to control the volume of mySound.

import flash.events.Event;import fl.controls.Slider;import fl.events.SliderEvent;import fl.controls.Label;
var mySound:PlaySound = new PlaySound  ;

[Code].....

View 5 Replies

ActionScript 3.0 :: Using A Slider To Change The Font Size?

Jan 23, 2012

how to change the size of text in a text box, once the user has typed something in using the slider component?

View 6 Replies

ActionScript 3.0 :: Slider To Change Height Of Silhouette?

May 18, 2011

I am trying to build a interactive slider,in which when user drag the slider up the height of silhouette increases by some fix amount n when user drag the slider down the height of silhouette decreases by some fix amount.the problem i am facing is that when i drag the slider slowly than everything works fine but when i drag the slider faster than the height dont increase or decrease properly.i mean the increment or decrement in the height of silhouette is depending on speed of slider,which i dnt want.

here is the code-

Code:
var bounds:Rectangle = new Rectangle(499.65,260,0,240);
slider.addEventListener(MouseEvent.MOUSE_DOWN, moveSlider);
stage.addEventListener(MouseEvent.MOUSE_UP, stopSlider);

[code]....

View 1 Replies

ActionScript 3.0 :: Change Triangle Size With Slider?

Nov 26, 2011

I am making a house with actionscript, and the roof is made by a triangle. I am supposed to change the triangle height (y-axis) using a slider.[code]...

View 9 Replies

ActionScript 2.0 :: Delay In Slider Bar Functionality So Value Change Slowly

Apr 30, 2009

I have created a slider bar using AS2, when I say slider bar I mean similar to what you would find on a mixing desk in a music studio, i.e. you 'slide' the button up and down, changing the value associated with it. My slider bar changes a value that is written on the screen, i.e. it goes from 0 to 100 as you slide the button up. Now I want to change this so that when you slide the button the value starts to slowly change, and eventually reaches the value you've pushed the button to but after you've finished moving the button. Not sure that makes sense! To put it another way: if it takes you half a second to move the slide button from the bottom to the top, it will take 10 seconds for the value associated with it to reach 100.

Below are the relevant bits of code:
This starts the slider action when the button is pressed:
Code:
function onPress() {
this.startDrag(false, sliderMin, 515, sliderMax, 515);
}

This determines the displayed value from the slider bar position. Obviously right now the value changes instantly when you move the slider button
Code:
function onMouseMove() {
_root.powerGraph.totalPower = Math.round((_root.startMenu.coal1Slider._x - sliderMin) / (sliderMax - sliderMin) * 100);
}

This is used to display the value:
Code:
function onEnterFrame() {
this.createTextField("outputPower", _root.startMenu.getNextHighestDepth(), 130, -20, 190, 101); .....

This stops the button movement:
Code:
function onRelease() {
this.stopDrag();
}

View 1 Replies

Professional :: Change Color Of A Symbol With A Custom Slider?

Aug 11, 2011

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.

View 2 Replies

Actionscript 3 :: Change Thumb Graphic On A Flash Slider?

Nov 3, 2009

I have a dynamically created slider with AS3:

I can reference the thumb by s.getChildAt(1) ~ that took me quite a while to figure out!

But how would I assign a new graphic to it?

View 1 Replies

ActionScript 2.0 :: Slider Menu: Change The Size Dynamically

Jul 18, 2006

I am using code from the site, [URL] and I would like to make my slider smaller or bigger depending on the link. I'm guessing it can be done with action script, but have no idea how to do it. To view my file it's at: [URL] the FLA is at:[URL] Sadly, I need to squeeze one more link on the top menu and I am running out of room.

View 5 Replies

Professional :: Change Colour On Volume Bar When Moving Slider For Video?

Mar 9, 2012

how one goes about changing the colour on the volume bar for playing videos like youtube does as the volume slider is moving. I don't think I need to go into depth using the graphics classes. What I'm looking for are ideas when a user changes the volume while playing a video, say in youtube, while dragging the volume control, the colour of the background bar changes. I've seen lots of help about creating volume bars for videos, but I don't see how to change the volume bar colour as the volume slider is moving.

View 1 Replies

Flex :: Dynamically Change Fusion Chart Value With Slider Event

Jun 4, 2010

I am having a set of slider for each bar in the graph. I have bindded all the sliders with their corresponding bars. When i change the value of slider the value in the ArrayCollection changes and i have also used

[Code]...

View 1 Replies

Flex :: Change Starting And Ending The LineChart Of JSON Data With Slider?

Feb 28, 2011

My JSON Data file ise data.txt

[
{
"sayim":"1",
"x":"400",

[code]...

and my aim ise to create a Slider which can change starting and ending of the graphic, it is like what is showing in figure 6 in this website and here the MXML codes;

.
..
...
jsonDataArray = JSON.decode(urlLoader.data);

[code]...

The problem is "dataProvider" definition in LineChart, I wrote this code but it is still not working,

dataProvider="{dgg(sayim>=daySlider.values[0] && sayim<=daySlider.values[1])}"

what is the right code to control the LineChart with the Slider.

View 1 Replies

ActionScript 3.0 :: Movieclip Slider Effect - Change The Initial Position Of The Movieclips ?

May 2, 2011

I have two movieclips in the centre of my stage. One is on top of the other and fade's between them using left/right buttons.I want to change this so that they slide in like a jQuery slider does. I don't want to change the initial position of the movieclips (on top of each other) just change the fade effect to a slide in.

View 1 Replies

Flash - Create Image Slider Like Nivo Slider With Builder

Jan 10, 2012

I'd like to build image slider like Nivo slider with Adobe Flash Builder.

i'd like to have image controls, image titles displayed above the image(like layers in flash). i'd like to read the data from xml.

i'd like to have nice transitions between images.

mayebe u can provide tutorial or source code.

View 1 Replies

Actionscript 2.0 :: Can't Get Zoom Slider To Work With The Position Of The Slider

Mar 25, 2010

What I have is a map that you can click on points and it will zoom in, you can also click on a "plus/minus" buttons to zoom in and out (I even have the mouse wheel zooming in and out). The client wanted me to add a "zoom slider bar" to it so you know you could move it up and down to scale it. Everything is working except the slider, I can't seem to get it to work with the position of the slider. All of the zoom functionality is there but the slider is killing me.

I am putting up the fla file since there is a lot of code in there and I didn't want to put it all in the forum. if you look in the fla in frame ten on line 726 you can find the function that is supposed to handle the zooming when you move the slider. Up on line 74 you can find the slider onPress and onRelease functions, but those I believe should be fine.

View 2 Replies

Flash :: Volume Slider - Volume Doesn't Change Until Mouse Over?

Nov 21, 2009

I've created a small music player with a sliding volume control. I'm having trouble with the volume. Though it does control volume properly, if I set the initial volume to less than 100%, the volume always starts at 100% until I move my mouse over the player. At that point, the volume changes to whatever the initial volume is set to.Is this a flash bug, or am I missing something? Here is the affected code (code for other buttons/functions omitted for brevity):

var song_initvolume:Number = 100;
slider_1._x = groove_1._x + song_initvolume;
playSong(0,song_play);[code]....

I'd like to be able to set the volume at say 50%, but the above mentioned behavior happens each time.

View 2 Replies

ActionScript 2.0 :: Slider To Drag Another Slider On Collision?

Dec 1, 2009

I am trying to create a basic timeline, similar to the timeline we all use in flash (see attached).

I have a playhead slider, which when dragged, just drags within its startDrag() limits.

I also have horizontal window scroller which also when dragged, just drags within its startDrag() limits.

I am trying to work out how to get the horizontal window scroller to scroll when the playhead slider hits the left or right edge. I am using hittest for this collision.

I have the playHeadSlider scrolling along the top. When playHeadSlider collides with hittestThing I want mcContents to then move.

It kind of works.. mcContents moves when the playHeadSlider is in collision with the hittestThing.. but it just moves rather than 'drags' across. I have it set up so that mcContents is twice the width (approx) of mcScrollWindow.

I need to somehow update what I have so that if the playHeadSlider collides with hittestThing on the right, mcContents only moves to the right and if playHeadSlider collides with hittestThing2 on the left, mcContents only moves to the left.

View 0 Replies

ActionScript 3.0 :: Make A Circle Slide ( Slider That On The Shape Of Circle Instead Of Vertical And Horizontal Slider)?

Jul 3, 2009

I'd like to make a circle slide ( Slider that on the shape of circle instead of vertical and horizontal Slider) like this one:

[URL]

Is there a ready Component on the web.

View 0 Replies

AS2 :: IDE - Updating A Slider Bar

Aug 18, 2009

I am just learning AS3, and have no idea whatsoever about the differences between 2 and 3. There is a bit of code from [URL] that I wanted to update to use AS3, but it was written in AS2. Here it is:

[Code]....

I get twelve total errors (there are six buttons with a slider next to them, and there are 2 types of errors). The first is: 1119: Access of possibly undefined property onPress through a reference with static type flash.display:SimpleButton. The other is 1120: Access of undefined property _root. The key parts of the code (I think) are the button names, and slider_mc., a little black square that slides up and down the height of the menu. All of the buttons are button symbols, each with a unique name. I read that to fix the 1119 error, I can convert them to movie clips, but then they no longer function as buttons (which is sort of the point).

View 2 Replies

IDE :: Create This Slider Without XML?

Apr 22, 2010

I was wondering if anyone knew or could point me in the direction of a tutorial that will allow me to achieve this slider effect - but without using xml The effect is exactly what I need but on the particular network I need to upload to it doesn't seem to be able to load the images, I have tested it on other sites so know it is not a error.s there a way to achieve the same effect with the images already embeded in flash?

View 3 Replies

ActionScript 2.0 :: CS3 Set Volume Slider To 50%?

May 11, 2009

I'm a designer that inherited a project with a volume slider. I'm not that good with actionscript yet and haven't been able to figure out the code. The volume and slider starts at 100%, and I need it to start at 50%. Can you tell me how to set both the volume and slider at 50%? I'm sure it is a simple solution but I can't figure it out. I tried a few things but have not been able to get it to work correctly in both the volume level and start position for the sliderHere's the code on the 2nd frame of the mc:

Code:
stop();
var NiVol:Sound = new Sound(_root.Container);

[code].....

View 4 Replies

How To Reverse Movieclip In Slider.fla

Aug 16, 2009

I apologize for being a newbie. I have been trying to figure out how to reverse an EKG movieclip to go from right to left instead of the direction it is currently moving:

View 16 Replies

Create A Slider Bar With Images?

Sep 2, 2009

[url]...Is this done purely in Flash CS4 or is another one of Adobe's products involved too?

View 2 Replies

ActionScript 3.0 :: Add Slider To Datagrid?

Mar 1, 2012

Is it possible to add a slider to a datagrid. Basically, a column of sliders.

View 3 Replies

ActionScript 3.0 :: Resizing A MC With A Slider?

Aug 21, 2011

I apologize, the math must be too complicated for my right-brained mind. I've created a slider bar widget with a slider knob thingie who's start/stopDrag is restricted to 100px along the x axis.

I need to resize another movie clip from 25%-400% based on the slider's knob position.

I need slider(and respective MC) to start at 100% by default. I've started with something like this (below) but the math is wrong, and I can't figure out how to do this for the life of me.

[Code]...

View 3 Replies

ActionScript 2.0 :: How To Stop The Slider

Feb 28, 2006

First, when you download attache file, make sure that file will be in same directory(c: emp). in file test.fla in frame 5 in layer snowing is movie clip, name mcPoly. Now, load testing.swf and hit the movie button. The movie(test.swf) is load, now push the play button and wait until the snowing come, then press the pause botton, and you will see that the snowing keep snow.My questions is, how to stop the snow, when the pause button is press, and when you move the slider, where the snow is starting, the snow has to rest until the play button is press.

View 3 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved