Adding tick marks to a Slider control in Flash using ActionScript 3.0

by Peter deHaan on March 7, 2009

in Slider

The following example shows how you can add tick marks to a Flash/ActionScript 3.0 Slider control by setting the tickInterval property.

Full code after the jump.

// ActionScript 3.0
/**
 * Requires:
 * - Slider control in the Flash library.
 */
import fl.controls.Slider;
 
var slider:Slider = new Slider();
slider.tickInterval = 1;
slider.move(20, 20);
addChild(slider);

{ 2 comments… read them below or add one }

1 yogesh gaur 05.28.09 at 10:50 pm

hey …
i hav to looking for solution to connect to oracle database from AIR application …the application is installed on machine is not same as one database is installed on … i know its not the right post to ask abt oracle connectivity … but i cudnt find any such post … and hopefully u will read comments on ur latest post more likely than ur older posrt … if u do anything abt how to solve my problem plz let me know here or if possible on email address i provided as i cudnt find anything on it so far … thanks in advance
regards
Yogesh Gaur

2 Hector 06.11.09 at 9:14 pm

Hello,

i know this is probably not the place to ask, but but but i got to…

i have been searching and hitting my head on this one for a while:
Flex 3.3
Zendamf 1.7

trying to send data from flex to sql db via zendamf utilizing the INSERT statement

note: retrieving data works perfectly fine
here is my mxml
private var currentcontact:Array = [];

private function groupContact():void
{
contact[0] = yearTextInput.text;
}

here is my error:
[RPC Fault faultString="Channel disconnected" faultCode="Client.Error.DeliveryInDoubt" faultDetail="Channel disconnected before an acknowledgement was received"]
at mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::faultHandler()[E:\dev\3.1.0\frameworks\projects\rpc\src\mx\rpc\AbstractInvoker.as:218]
at mx.rpc::Responder/fault()[E:\dev\3.1.0\frameworks\projects\rpc\src\mx\rpc\Responder.as:53]
at mx.rpc::AsyncRequest/fault()[E:\dev\3.1.0\frameworks\projects\rpc\src\mx\rpc\AsyncRequest.as:103]
at NetConnectionMessageResponder/channelDisconnectHandler()[E:\dev\3.1.0\frameworks\projects\rpc\src\mx\messaging\channels\NetConnectionChannel.as:622]
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at mx.messaging::Channel/disconnectSuccess()[E:\dev\3.1.0\frameworks\projects\rpc\src\mx\messaging\Channel.as:1091]
at mx.messaging.channels::NetConnectionChannel/internalDisconnect()[E:\dev\3.1.0\frameworks\projects\rpc\src\mx\messaging\channels\NetConnectionChannel.as:163]
at mx.messaging.channels::AMFChannel/internalDisconnect()[E:\dev\3.1.0\frameworks\projects\rpc\src\mx\messaging\channels\AMFChannel.as:312]
at mx.messaging.channels::AMFChannel/statusHandler()[E:\dev\3.1.0\frameworks\projects\rpc\src\mx\messaging\channels\AMFChannel.as:382]

Leave a Comment

You can use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="">

Previous post: Creating a vertical Slider control in Flash using ActionScript 3.0