ActionScript 3.0 :: Force/override Slider Component Thumb Size?

Sep 2, 2008

I am attempting to reskin the AS3 Slider component to have arelatively "tall" draggable thumb graphic. However, the sliderthumb always seems to be forcibly scaled down to 13x13 regardlessof the size of the graphic. I'm currently using the drag-and-dropcomponent on workspace method, and double-clicked the livepreviewto change the skin pieces.I've tried resizing the contents of the SliderThumb_*Skin(upSkin, downSkin, ...) symbols, the Slider component itself on thestage, and even the placeholders on the double-click skin organizersheet. The height of the thumb object is not directly accessible(seems to be private). The translated position of the 13x13 thumbrelative to the symbol center is preserved correctly... but thesize seems to be stuck at 13x13.

Is there a workaround for this? I've searched and found a fewFlex solutions having to do with overriding a measure() method orextending the class to hard-code a different height, but none ofthe corresponding classes (e.g. one site recommended extendingmx.controls.sliderClasses.SliderThumb) seem to be accessible withinthe Flash AS3 implementation of the components.

View 2 Replies


Similar Posts:


Resize "thumb" In Slider Component?

Feb 4, 2011

Has anyone yet been able to figure  out how to resize the "thumb" (the actual part you drag) inside the slider component in Flash CS4?

I looked into the fl.controls.slider but whatever I changed it would not let me resize the thumb.

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 3.0 :: Slider Thumb Display When User Clicks On Bar

Jun 25, 2009

I am trying to create a slider component where the thumb does not display until the user clicks on the bar. When the user does click on the bar the thumb would appear wherever the mouse is on the bar. I have no experience with the display package and since I am pretty new to using flash in general I cant think of any other creative way to do it. How to make objects display and display where the mouse is clicking.

View 0 Replies

Actionscript 3 :: Flex 3 - Sporadic Erroneous Mouse Out Events On Slider Thumb?

Jun 1, 2011

The slider thumbs in my Flex 3 application usually work correctly, but often they seem to become insensitive to mouse downs on what should be thumbPress events. It turns out that mouseOut events are being fired as the mouse moves away from the edge of the thumb towards the center. The thumb is sensitive to mouseDown events only when it is in the "over" state.

I am seeing the same behavior: Displaying the default thumb rather than my custom class Using a hitArea sprite (I tried a child TextInput sized to cover the thumb with alpha 0). Can anyone suggest either a fix or a workaround? I can identify the faulty mouse out events, but then don't know how to compensate, for example, by reestablishing the "over" state, or perhaps with programmatic control of the mouse.

View 1 Replies

ActionScript 3.0 :: Updating Slider Thumb Position As Movie Clip Symbol Plays?

Feb 9, 2012

I would like to know if there is a way to update the position of the thumb on the Slider component when a movie clip plays. Currently I have a movie clip symbol on my stage with the instance name ShapeMC. It has about 10 frames or animation and two actions. the first frame has a stop action as does the last frame. The actions are on their own layer, separate from the actual animation. I also have the slider component in my library, but it is only there so I can reference it through AS3. My AS3 instantiates a variable of type Slider. I then define the properties, like the width, hieght, thumb size, minimum, maximum, as well as enabling livedragging. I did this so the user can drag the slider and move through the Movie Clip symbol. I added a button that allows the user to click it and autoplay the Movie Clip symbol (ShapeMC). All that works. What I would like to do is when I hit the play button, I would like to see the thumb on the slider move along the slider as the Movie Clip symbol (ShapeMC) plays. So if the Movie Clip symbol reaches frame 5, the slider thumb show be seen as being half way through the tread. I tried putting the currentFrame into the .value property of the slider, but that didn't do anything. No errors, but it didn't move the thumb at all.

View 3 Replies

Actionscript 3 :: Control The FLVPlayback Component's Volume Using The Slider Component In Flash?

Mar 20, 2012

I was wondering if there was a way to get the sound from a FLVPlayback component and manipulate it with using a custom volume slider? Within my Actionscript I currently have this code which enables me to control the volume of a MP3:

import fl.events.SliderEvent;
var mysong = new music();
var myChannel:SoundChannel = new SoundChannel();
var myTransform = new SoundTransform();
myChannel = mysong.play(0,10);

[Code]...

But Instead of using the MP3 for sound, is there a way to use an FLV's sound instead?

View 1 Replies

Professional :: Modify Scrollbar Component To Non-scaling Graphic Thumb And Track?

Nov 7, 2010

I'm wondering if you can take the stock Flash CS5 scrollbar component and modify it to use a graphics for the thumb and track. I see that you can modify the art of the component, but it seems to have the 9 slice thing going on so it scales nicely... but doesn't work right with a graphic. What I need is to have a scrole like that attached photo.

View 1 Replies

ActionScript 2.0 :: XML Loop Thumb Loader - Stuck On Current (Last) Thumb?

Nov 24, 2009

Using a bunch of the tutorials on this great site, I've been teaching myself AS, and inparticular the XML parse, etc. with the loop commands to load an ideterminate number of images, etc. attributed in an XML file.I've got the attached code to work before - and it works well here too, loading all the thumbnails in their correct location, and as per the XML file. BUT now it's part of this page, the 'current_thumb' seems stuck on the last thumbnail, and a rollOver of any thumbnail will cause only the last one to action. In addition, when I put the trace command in on the onRollOut function (trace(current_thumb_mc) I get "_level0.menu_mc.item3_mc" no matter which of the four tumbnails I rollOver.

//Initial P Value
p = 0;
//Project Information
//Assigning Information[code]..........

View 1 Replies

ActionScript 3.0 :: Can't Override Button Component Methods?

Jun 25, 2009

I've got a custom class that extends the Button UIComponent. I'm trying to override the drawEmphasized() function and a few public get/set functions. I get "1020: Method marked override must override another method." for each thing I try to override. The SWF that uses the custom button will compile and work, but I don't know if the failure is creating some of the strange behavior I see. The errors appear when I drag a component onstage, or save the FLA. This seems related:

View 7 Replies

ActionScript 3.0 :: Add A Clear Box To A Movieclip To Force Size?

Sep 7, 2009

I have a movieclip with my video player controls (play, stop, mute, etc). It is 480 pixels by 22 pixels. My video screen is behind it, which is 480x270. The video player controls are bottom-aligned.

I have some actionscript which makes the controls fade in and fade out, according to mouseover.

My problem is the video player controls movieclip is only 22 pixels tall.. so for anyone to see them (remember it requires a mouse over for them to appear), they have to put their mouse right on top of the controls. I want to make it so the video controls movieclip is not 22px tall, but really 270px tall.

So I need something to "hold it up" like a tent... to force it to be 480x270, clear background, with my 480x22 controls at the bottom.

View 3 Replies

Flex :: Override The Column Item Renderers For The Datagrid Component Dynamically

Feb 24, 2011

I have a view component called viewBase where I defined a advanced datagrid with few item renderers for datagrid columns. Now I have a requirement where I need to use the same view viewBase component, but not required to use any item renderers.

how to override the itemrenderers which are declared in a view component?

View 1 Replies

ActionScript 2.0 :: Force Loadmovie To Scale Swf To 100% Stage Size?

May 14, 2009

I have some external .swf's of different dimensions. I'd like to know if there is a way to load an external swf to the stage and force it to fit to 100% the size of the stage it is loading into?Also, is there a way to handle the antialiasing of the scaled clip to ensure smoothness / clarity. The swf's contain both vector and jpg's and when scaled down appear jaggy.

View 2 Replies

ActionScript 3.0 :: XML And Flash Portfolio - Define The Size Of Thumbs / Thumb "box"

Nov 16, 2009

I find I learn best when trying to follow code in examples, so I downloaded the xml loader portfolio example from the guides. Now, I follow the basic idea, but I am trying to figure out how to define the size of my thumbs/thumb "box". When I resize the mc in flash, the thumbnails are distorted to its proportions, but I can't seem to figure out where their attributes are on the stage or in the code.

[Code]....

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

ActionScript 3.0 :: How To Force Focus To The Component

Jan 8, 2010

I'm using a scrollpane component. Within it I have textfields with html text links. All works OK, but I have to click a link twice in order for it to work - the first click seems to "focus" the scrollpane component and then every click afterwards works OK. What's weird is other mouseevents - i.e. rollover/rollout - are working OK without clicking.Is there anyway to force focus to the component so I don't have to click twice?

View 0 Replies

Flex :: Force Component To Redraw It's Focus?

Mar 23, 2011

Suppose I have a component and want to change it's focus color at runtime. Here's an example for you (I've excluded any buttons and such to prevent component from losing it's focus, cause in that case it changes it's color perfectly):

<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
creationComplete="init()">
<mx:Script><![CDATA[
private function init():void {

[Code].....

What do I want: How to make this focus to be redrawn without magic (I've tried all the methods, starting with "validate", I've tried calling updateDisplayList() on entire application, I've tried to call styleChanged .

View 1 Replies

Flex3 - Force Resizing Of TitleWindow Component?

Apr 13, 2011

I need some help forcing Flex3 to resize my TitleWindow component after an event.

My resize MXML looks like this:

<mx:Resize id="rs1" duration="1000"
heightTo="{radioVBox.y + radioVBox.height + 110}" />

How do I force it to resize after an event? I want to force the TitleWindow's height to change after the event in myFunc1 ends. private function myFunc1():void {

[Code]...

View 2 Replies

Flash :: Flex Relative Size Component, Fixed Size Border?

Mar 3, 2011

I want to create a panel (or any other component) inside a component that has a 5 pixel border on all sides, but scales fully when the window is resized. I know I can set width to "100%" to make it resize, but that gives me no borders. If I put it to "95%",I have borders, but they scale annoyingly. Also, that only works for borders on the right or lower bounds, and not to the left or upper sides.Is there a convenient way to do this without having to write tons of resize-code (in which case I will not bother and just accept bad rescale behaviour, as it is for a private pet project).

EDIT: I know that I can just overwrite the display handling and set the positions manually every frame. I wondered if there is a cheap way to do it in the mxml-structure, along these lines:

<mx:Panel>
width="100%" height="100%"
</mx:Panel>

Coming from C++ and Java, I am intrigued by the option of setting something to "95%" and let the library work out the details, instead of having to write many lines of code, just so my text-area always keeps a 5 pixel distance from the border, but scales with window width.If there is no easier way to do it than figuring out pixel sizes by hand and setting the coordinates.

View 1 Replies

ActionScript 3.0 :: Changing Component's Size Doesnt Update Parent's Size?

Mar 1, 2010

I have following problem:

Code:
title_txt = new TextInput( );
title_txt.setSize( 100, 20 );

[code]....

View 4 Replies

Actionscript 3 :: Flex - Why Override Custom Event And When To Override It

Aug 15, 2010

I always have a question about override custom event. I am not sure why or what do to inside override function. I searched google but didn't get too many feedbacks. EDIT: My projects seem work fine even though I use my custom event without override. Anyone could explain it?

View 2 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 :: 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 3.0 :: Interval Size For Mouse Wheel At Slider?

Nov 29, 2010

I want to use the mouse wheel to set the value of a VSlider. By default, the slider performs this automatically. My only concern is the step interval if the mouse wheel is used. It set the properties "snapInterval" and "stepsize" to 1. But if I use the mouse wheel, the next value is always +/- 3 .
 
How can I set this behaviour to +/-1?
 
Here is the code to create the slider:
sliceSlider2 = new VSlider();
sliceSlider2.dataTipPrecision = 0;

[Code].....

View 3 Replies

ActionScript 3.0 :: Drawing Application Size Slider/scrubber?

Apr 8, 2011

So i have a project i am working on that is a drawing application. I am trying to put a brush size slider into the application but i have no idea where to even begin.I am very new to flash/actionscript so i dont know where to start.

View 9 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

ActionScript 3.0 :: Get A Customizable Slider Component?

Sep 18, 2010

I like the slider component that comes with Flash but the parts of it are way too small and I need to use an image for the slider arrow. Anyone know of a good free customizable component?  It seems like the individual parts of the built in slider aren't customizable.I really just want a bigger clickable area for everything.

View 4 Replies

ActionScript 3.0 :: Using A Slider Component As A Button?

May 25, 2011

I've got what to small problems when using my slider component.I'm building a small quiz and I am using the slider component to let the user rate their opinion. It'd be great if I could make the slider play the movieclip (to the next quiz questio) when the user has cast their opinion -on mouse up. Is this possible.Also I'm using a 'score' uint variable to collect the polling results but I need this variable to reside on the root of my flash file so that I can add to it from various diffrent movieclips. How can I target the variable from a movieclip.Heres my code:

import fl.events.SliderEvent;
voteSlider.value = 5;
voteSlider.addEventListener(SliderEvent.CHANGE, voteCast);[code].....

This is what i would like to target in the root

var score:uint = 0;

View 1 Replies

ActionScript 3.0 :: Changing Size Of Mask In Slider To Display More Items

Jul 14, 2011

I found this tutorial: [URL]. It works great but I wanted to add a little more to it. Currently it works with only one item displayed at a time. If I want to display more than one item, let say 2, I make the mask the size of the 2 items. The back button works fine because the X position is still the the same. However the next button does not account for the size of the mask and works like it did before.

View 3 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







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