Flex :: Force 4 Spark Hslider Snap To Certain Values?

Oct 19, 2010

I remember using values array on good old mx:HSlider, is there any workaround for s:HSlider?!Basically I need slider to choose values between 300 and 2500 in following steps 300,500,1000,2000,2500.

<s:HSlider id="franchiser"
value="1500"
skinClass="components.HorizontalSlider" x="0" y="0"

[code].....

View 3 Replies


Similar Posts:


ActionScript 2.0 :: Force A Mouse Follow Movieclip To Snap To A X Y Position If It Reaches X Y Boundaries?

Mar 30, 2009

How would you force a mouse follow movieclip to snap to a x y position if it reaches x y boundaries or perhaps if a button is released the movie clip snaps to a x y position? Of course if the mouse returns to x y boundaries I'd like for the movie clip to follow again.

Right now this is the code I'm using to make the movieclip follow the mouse within x y boundaries:

Code:
onClipEvent (load) {
_x = 0;
_y = 0;

[code]....

View 4 Replies

Flex :: Using An Image As A HSlider?

Feb 16, 2010

I'm using a hslider to select a range of values. However, I only have 5 values.The problem I'm having is that the dragging of a thumb does not look too good and the values of the thumbs are displayed in labels, beside the slider...I was then thinking about how to improve the look of the dragging and the slider.I came up with this: having an image that would behave like a slider. For example, something like this: a background image (sorry for the "drawing")

| 1 | 2 | 3 | 4 | 5 |

With 2 thumbs (min and max values) that would stay in the middle of each box.

View 1 Replies

Flex :: Zoom A Canvas Through Hslider?

Jun 19, 2009

i am required to zoom a canvas through Hslider. The problem is after zooming the canvas i cannot scroll to the extreme left and top of the canvas i.e some part of left and top canvas are not visible. i cannot find the reason. The source code for the example is given below.

[Code]...

View 3 Replies

Actionscript 3 :: Spark Images In Spark List With TileLayout Disappear On Scroll And Drag In Flex App

Jul 1, 2011

I have a renderer that looks like this:

[Code]...

Loading thumbnails using this method works perfectly. The issue happens when you scroll the List.

View 1 Replies

Flex :: 4 - Add Component To Title Bar Of Spark Panel Or Spark TitleWindow

Feb 7, 2011

I'm looking to add a couple of buttons to the title bar of a Spark Panel or Spark TitleWindow. Is this possible to do without making the panel from scratch?

View 1 Replies

Flex :: Skinning - HSlider - Set Different Skins For Different Thumbs?

Jul 1, 2009

I am going to use a HSlider to set a range of values. I would like the left thumb to look like ( and the right thumb to lok like ) so they appear to encompass the range like (range) instead of |range|. I only know how to set the skin for SliderThumb which will set the skin for both. Does anyone know of a way to set a different skin for each thumb?

[Code]...

View 3 Replies

Flex :: Get An HSlider With Skins For Each Side Of Thumb?

Oct 12, 2009

I'd like to create an HSlider so that the skin of the track is different on either side of the thumb. So, for example, the track on the left side of the thumb is green, but red on the other.Is this possible or will it take a custom component?

View 1 Replies

Flex :: HSlider Dragging Using Slider Track?

Jan 15, 2010

I am trying to create a simple Music player has play/pause button and an HSlider that shows the position of the song as it is playing using a custom SliderThumbClass. I would like allow the user to drag/drop the sliderthumb or click on the sliderbar to change the position of the song currently playing.

With the code I have below, if I use the sliderThumb to change the position of the currently playing song, it works great. But I if I click directly on the slidertrack to jump ahead/back, the current position doesnt move and there is some flashing of the current position, but it jumps back to where it was and continues playing the song. This does work if I am in the paused state.

As expected, thumbDrag/Press/Release events are not triggered when the user clicks on the sliderTrack - What events should I be subscribing for to handle this case?

<mx:Canvas>
<mx:Script>
<![CDATA[

[code]....

View 1 Replies

Flex :: Skinning The Datatip Of A Hslider Component?

Sep 1, 2010

how to skin the datatip of a hslider component.

I have created a 3 skins with degrafa. One for the track, one for thumb and one for the datatip. I had no problem attaching the skins for the track and thumb of the hslider component. But how can i skin the datatip?

View 1 Replies

Flex :: 4 - HSlider And TileLayout - Reduce To A Certain Size

Sep 13, 2010

I have a simple application that consists of a HSlider and a list that contains a item renderer with a border container managed by a tile layout. For some reason when moving the slider to reduce the size of the item renderer it only reduce to a certain size and wont reduce any further. I use the same principle in flex 3 (with mx components it works fine).

[Code]....

View 1 Replies

Flex :: HSlider As Player Seek Time

Nov 15, 2010

How can I convert the hslider data format from decimal into an H:M:S?

View 1 Replies

Flex :: Detect The Change In HSlider When Value Is Updated?

Jul 6, 2011

Is there a way to detect the value change in HSlider (in Flex 4.0) without touching the slider.Basically, what I wanted is to detect if the slider value was changed programmatically.

View 1 Replies

Flex :: Using HSlider: Coercion Of Event To SliderEvent

Sep 5, 2011

I'm porting a pure Flash/AS3 application to Flex 4.5 this code:

<fx:Script>
<![CDATA[
import mx.events.SliderEvent;

[Code].....

gives me the error

Implicit coercion of a value with static type flash.events:Event to a possibly unrelated type mx.events:SliderEvent.

How do I fix that? The Adobe HSlider doc is unusually sparse.

Is mx.events.SliderEvent still okay to use in a Flex 4.5 application?

View 1 Replies

Flex :: Using HSlider: Coercion Of Event To SliderEvent?

Apr 8, 2011

I'm porting a pure Flash/AS3 application to Flex 4.5 this code:

<fx:Script>
<![CDATA[
import mx.events.SliderEvent;

[Code].....

gives me the error

Implicit coercion of a value with static type flash.events:Event to a possibly unrelated type mx.events:SliderEvent.

How do I fix that? The Adobe HSlider doc is unusually sparse.

Is mx.events.SliderEvent still okay to use in a Flex 4.5 application?

View 4 Replies

Flex :: Labels On Both Sides Of A HSlider Or VSlider Control?

Jun 23, 2009

Is there some way to have labels on both sides of a VSlider control? I need this to show meters on one side and feet on the other side....

View 1 Replies

Flex :: Remove HSlider Horizontal Control Line?

Mar 31, 2010

Does anyone know how can the horizontal control line be removed or made invisible. What am trying to say is, I just want to show the drag-thumb and not the horizontal line.Is there a way to do so, with out using skins?

View 1 Replies

Flex :: Text Box Value Should Increase While Hslider Start Drag

Jun 3, 2010

i have one value in text box(eg:1200) once i drag the HSlider from left to right text box value to increase 1200+150 for each intrevel.if right to left has to decres 150 as same.

View 2 Replies

Flex 3.5 :: Flash HSlider Event Listener Not Triggered When Value Is Updated

Aug 16, 2010

I am writing a web application that will serve as a configuration for a random data generator that I have written in Java.The values that I set in this application will write to xml. The xml data is updated by a file called simulationParams.as and that file is added to each child in the "viewStack" so that when I change any of those values the simulationConfig file will be automatically updated.The problem is that when I press the randomizeBtn the proper events are fired and the listeners grab those events.My problem exists when I uncheck the randomize button.For some reason an event is triggered or the listener isnt listening so that when I uncheck randomizeBtn the values go back to their last position or value on the slider. Ex. if my initial value is 0 then press randomize the slider will go to 100. The config file updates and all is well.When I uncheck the randomizeBtn, the sliders value goes back 0 but the config file isnt update.The same thing happens when I press the useDefaultBtn for both selected/unselected, nothing gets updated.[code]

View 1 Replies

Actionscript 3 :: Flex Hslider Tooltip Similar To Youtube Seek Position

Nov 23, 2010

I don't see any similar tutorial enable you to get the time position when the mouse cursor is on that hslider position, how do I make it possible like Youtube's feature? With this trick, my application would be perfect! Using Flex 4, I hope the code is not too difficult.

View 1 Replies

Flex :: Non-uniform Snap Interval On Flex Slider?

May 1, 2010

I'm currently using the Flex HSlider control. I'd like the slider to only allow the user to pick the values: [0, .5, 1, 2]I can get it close to what I want by setting the snapInterval to .5 and by explicitly providing the tickValues. But that still allows the value 1.5 to be selected. Is there a way to provide explicit snapValues or to only allow entries in tickValues to be selected? Or do I have to roll my own slider?

View 1 Replies

Flex :: Why Does Matrix Transform Snap Child Back To Top Corner Of Parent

Apr 14, 2011

I'm having trouble with Matrix Transforms in Flex.

I have a Flex Canvas with nothing but an Image in it, like so.

<mx:Canvas>
<mx:Image id="img" source="/some/Url" />
</mx:Canvas>

[Code].....

View 5 Replies

Flex :: Force Flex Apps To Load On A Local Domain?

Jan 11, 2010

I have a situation where I need my swf to load from a domain. Currently my flex set up always loads a SWF from file [URL]...

View 1 Replies

Flex :: Force Asdoc Run In English?

Apr 4, 2010

My operation system is Window XP in Chinese. I'm running flex sdk > asdoc in command line. Asdoc picks up the system default language. How can I force it to be run in English language environment?

View 1 Replies

Flex :: Force Redraw On Component?

Jan 10, 2011

I have an app w/ a login screen. When the user hits "enter", the state changes to "login" & a child component is triggered to load (though the child stays invisible at the moment). The child contains many functions that the user needs upon logging in (ie their screenname & settings are retrieved from a database). The following is included in 'Parent':

<local:comp id="localComp" includeIn="login" includeInLayout="false" visible="false"/>
<mx:Button label="login" click="currentState='login'"/>
<mx:Button label="logout" click="currentState='Default'"/>

My problem is when a user logs out (state changes to 'Default') & then logs back in (state changes back to 'login') the child doesn't get "triggered" again & the functions w/in the child don't reload. Is there a way to force my child to refresh?

Note: While it would be easier to just move the child's functions to the parent it is complex...I moved these functions to the child to make it easier to follow

UPDATE: I even tried adding an "exitState" to my state:

<s:State name="login" exitState="removeElement(localComp)" />

This doesn't work either, as I get an error: "RangeError: Index 0 is out of range."

UPDATE: Even though you are allowed to call a child's function from a parent, my problem is that the child needs to be "created" in order to not show errors. It makes no sense to me why the flex team would make something like removing & adding children so complicated.

View 3 Replies

Flex :: Force The Browser To Put Up Scrollbars?

Jan 28, 2011

I'm using an iFrame in a Flex 3 project. The problem is that if the user opens my site in a small browser window, they don't get scrollbars. How can I solve this problem? Is there a way to force the browser to put up scrollbars?

If I set the main app to horizontalScrollPolicy="on" verticalScrollPolicy="on" or to "auto", then as you scroll down, the iFrame is stuck to the top of the browser window and obscures the content.

In the main app:

[Code].....

View 1 Replies

ActionScript 3.0 :: Spark Scroller, Switch Focus To Spark View But It Still Scrolls

Jan 26, 2012

I am working on a drag and drop feature for the sparkScroller. This is sort of how my layout looks:
 
<mx:Canvas>
<s:Scroller id="items" .. />
<mx:Box id="dummyRow" visible="false" />
<s:View id="touchView" visible="false" />
</mx:Canvas>
 
So when you hold your finger over a row in the items Scroller for more than a 30 seconds, the touchView becomes visible so does the dummyRow. The dummyRow gets populated to look like the row which you held your finger over.
 
So the touchView has the event handlers for moving your fingers and places the dummyRow where your finger is. The problem I am having is even though the touchView is reacting to my move events, the scroller still keeps reacting to my move events as well even though it's a sub layer. Because I started on the scroller it still keeps track!
 
How can I remove focus / tracking from the scroller?

View 1 Replies

Flex :: Force A Resize From A Child To A Parent?

Jul 22, 2009

I have a page-like flex application. In my main application is a holder (a canvas) that displays all the pages. The problem is that the components that are loaded inside the holder are bigger than the holder is when the main application starts. The holder height is set to 100% but still he gets scrollbars when I load a bigger component inside of him then himselHow can I solve this problem? And if it isn't solvable would it work correct if I use a viewstack?the holder looks like this:

<mx:canvas height="100%">
</canvas>

But the end of the application is 500 pixels lower so canvas height is 500 pixels high. Now I put a new child inside the holder that is 1000 pixels high.

View 2 Replies

Flex :: Force Validation When A Container Is Displayed

Jul 29, 2009

I have a Flex 3 app with a view in a viewstack, and that view must only be created when requested. I have declared validators for each of the controls on the view and I have created a method called checkAllValid() which runs Validator.validateAll(). This works great when I'm actually using the controls (using the change or focusOut events), but how can I get checkAllValid() to run when the view is first displayed to the user, so that they are immediately shown what is invalid once the data is populated in the controls?

I have tried putting the call in various events on the view itself (e.g. creationComplete, updateComplete, show, activate, etc.) but it always shows the following error when I start the application:

'The source attribute must be specified when the property attribute is specified.'

I have also tried setting the creationPolicy on the view to "all" but this does not help.

Some of the validators are only enabled when the form is in a certain state, but I have eliminated that as being the potential problem by commenting out all of my validators except for this most simple one:

[Code]....

I have also tried calling the single validator directly rather than using validateAll and the result is the same.

There must be a way I can force the view to validate when it is shown....

(by the way it's in the Cairngorm MVC framework and I have data bound to the controls)

View 2 Replies

Flex :: Force All Controls To Render At Start?

Oct 4, 2009

When I try to access the hidden TABs of my tab navigator control in action script, it returns a null error. But it works OK if I just activate the control in the user interface once. Obviously the control is not created until I use it. How do I make all the tabs automatically created by default ?

View 2 Replies







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