Flex :: Setting Visibility Based On Slider?

Apr 6, 2012

I have an image gallery app that has a slider to control the width of the thumbnails that ranges from 80 to 1024. As you move the slider the thumbnails width changes to effectively scaling the image between 80px and 1024px. Below the thumbnail is some information about the image such as the name, size, dimensions, etc. There is also a set of icons that do various tasks (delete, edit, copy, etc). All of this information is located within a VBox.The problem I am having is I would like to have the VBox hide when the width of the thumbnail reaches 150 px or below. This I have been able to accomplish with the following code:

<mx:VBox visible = "{thumbnail.width &gt; 150}">The issue is that while the information within the VBox is now not visible, the real estate it takes up is not released. In other words, there is now a blank space the exact size of the VBox. What I'd like to do is to be able to release this space. I know this is probably something simple that I'm overlooking, but today my brain is just not working,

View 1 Replies


Similar Posts:


Setting Visibility Based On The Load?

Jul 23, 2009

so i have some thumbnails for a gallery and im trying to make them only appear if the user has loaded a thumbnail for it. i will let the code speak...

if (_root.mainarea.six.galleries[thumbnail].blank.myBytes <= 100) {
_root.mainarea.six.galleries[thumbnail]._visible = true;
} else {

[Code]....

i cant seem to get the operator or the measuring correct. is there some glaring error in the "<=" or something ?

View 9 Replies

Flex :: Setting DataGridColumn's DataField Based On XML Node With Same Name

May 24, 2010

[code]I am trying to define a DataGrid such that the row nodes will represent new rows in the DataGrid and the column nodes will be used to auto-populate the DataGrid's columns. I am having a problem setting the dataField for each of the DataGridColumn ojects created.The DataGrid is created but the cell values for row 1 are all 0.51 and row 2 are 0.61.

View 1 Replies

ActionScript 2.0 :: Setting Visibility For Next/Prev Buttons?

Apr 1, 2007

I have pages of info I'm pulling from external files. I want my btn_next to not be visible when the last page loads and my btn_prev to not be visible when the first page loads. The btns are actually moviclips with instance names btn_next and btn_prev Here is my code:

//Stage Scale
Stage.scaleMode = "exactFit";
width_txt.text = Stage.width;

[code]....

View 6 Replies

ActionScript 2.0 :: Setting Alpha/visibility Of Multiple Movieclips?

Apr 3, 2011

What I am trying to do I think is pretty simple.

Consider this code:

ActionScript Code:
var imageContainter:String;
var fileName:String;

[Code]....

This code appears to be working. I'm dynamically creating a bunch of movieclips that each contain an image. The also code stacks each clip on top of each other.

I'd like to be able to now set the alpha or visibility of all of those movieclips to 0 or false, except for the first one. I have other code that will set specific movieclips to display based on mouseEvents.

How do I refer to all of them? And should I be using arrays as well?

View 7 Replies

ActionScript 2.0 :: Switching Sounds Based On Visibility

Jan 4, 2011

I haven't been using Flash long enough to know if I'm using Flash 8 Actionscript or Flash MX 2004 Actionscript, etc. I don't really know the difference or where to look so an explanation about that would also be helpful.I do know I'm using Actionscript 2, in CS4.Basically I'm needing help switching between sounds based on visibility of other items.I've got 15 buttons; buttons 1 to 5 making one of objects 1 to 5 visible and turning the others off, and buttons 6 to 10 and 11 to 15 doing the same for items 6 to 10 and 11 to 15 respectively.I'm trying to make three sounds play when a point on the timeline is met. Sound 1 is dependant on which of object 1 to 5 is visible, etc.Everything I've tried has either not worked or ended up with sounds overlapping/playing oddly. I can't find anything on the internet specific enough to help, so I thought I'd ask specifically.As I've said, I'm relatively new to Actionscript.

View 3 Replies

ActionScript 3.0 :: Simple Target MovieClip - Setting Visibility True?

Feb 11, 2010

Just new to As3. I can't set visibility of movieclip inside another movieClip
ActionScript Code:
player.vidImage.visible = true;
trace(player.vidImage); // shows - [object SimpleButton]
tracing player.vidImage show [object SimpleButton]. But can't set visibility true.
VidImage is physically placed inside player MovieClip.

View 5 Replies

ActionScript 3.0 :: Control TextField Visibility Based On Segment Of Timeline?

May 9, 2011

I have 3 text fields that display weather conditions from the Weather.com XML web service.  The 3 text fields need to be visible only during a certain segment of the Flash Video that is set as the application's background.  Do I use AS3 to specify visiblity?  If so, how do I reference a certain range of frames in which the fields should be visible?

View 1 Replies

ActionScript 2.0 :: String / Variable - Get The Visibility Button On The First Swf To Affect The Visibility For The Column On The Second Swf

Jul 12, 2010

I have created a timeline with visibility button against each column. The timeline.swf is loaded into two empty movieclips to create a two-screen operation. Everything works fine except, I cannot for the life of me get the visibility button on the first swf to affect the visibility for the column on the second swf.

[Code]...

View 5 Replies

ActionScript 3.0 :: Slider.x Based On SeekPercent On Flv Player

Jan 14, 2012

I'm doing a custom skin for flv and I can seek the flv if I moved the slider,but how to get the the percentage to move? to get the information of the seek's percent.[code]

View 0 Replies

ActionScript 3.0 :: Adjust Multiple Image Properties Based On One Slider

Apr 17, 2009

I'm loading a bunch of images through XML like this:

[Code]...

Pretty simple. Loads each image into a imgHolder_mc named 0, 1, 2, etc. Each image is also set to alpha = 0 since I don't want them to show unless the slider is changed.

[Code]...

View 1 Replies

ActionScript 3.0 :: Setting A Variable Based On The Response From A Server

Nov 11, 2010

I'm making a game that is tightly integrated into a rest service. I want to set variables based on what the server tells me the variable should be.

[Code]....

but then the parseUserRank() method can't directly return the value to userRank, so there would have to be an event dispatched when its available, then update then finally update the variable value....

View 1 Replies

ActionScript 2.0 :: Setting Dynamic Text Based On A Variable?

Jul 13, 2007

I have 8 dynamic text boxes in my scene. What I need to accomplish is setting the value of the text in the text boxes to "Ready". The number of dynamic text boxes that need to have their value set to "Ready" is based on the variable "myVar1". Which dynamic text box to begin with is based on the variable "myVar2". In the scenario below mytextbox4, mytextbox5, and mytextbox6 should all be displaying "Ready" when done.

Code:
var myVar1:Number = 3
var myVar2:Number = 4

[code].....

View 1 Replies

ActionScript 3.0 :: Setting XML Based Exam To Where There Are Two Correct Answers In A Question

Apr 9, 2009

I have an exam which pulls in questions from an XML file and to indicate what the correct answer is you would indicate in the XML as such:

[Code]...

There is one question, that is structured so there are two right answers, but when I add correct="true" to both answers I want as right only one is calculated correctly in the scoring. I thinking I need to make an adjustment in the code that pulls in the XML, but not sure where. Here is the AS code.

[Code]...

View 11 Replies

ActionScript 3.0 :: Setting Movieclips Width Dynamically Based On Text In It?

May 11, 2010

for each (var link:XML in settingsXML.links.link) {
menuItem = new MenuItem();
menuItem.menuLabel.text = link.@name;

[code]......

View 1 Replies

Flex :: Actionscript 3 - Flex Component Visibility On Application?

Sep 10, 2009

Is there a way to tell at runtime if a flex UIComponent is in the user's view or not.For example, if I have a tabNavigator with a combobox on each tab, is there a property of the comboBox that will tell me if it is visible to the user or not when I switch from one tab to another?I know it is not the comboBox.visible property. That is set to "true" for both comboboxes. I want a property that will change when I switch from one tab to another making the comboBox visible to the user. I don't know what that property is.

View 2 Replies

Flex :: Can Set Labels Visibility

Apr 18, 2010

Can I set label visibility in Flex ?

[Code]...

View 1 Replies

Flex :: Change The Visibility Of ItemRemderer

Jan 2, 2012

I have and add button (last row) in one column of the AdvancedDataGrid. for the row having the add button the rest of fields are not visible. On click of the add button a new row is added to the grid for the user to add. After that this button becomes delete button (label becomes '-' and a new row is added at the bottom for adding another row). When i click on the delete button (label '-'), the last row gets the add button('+' label) but the fields of the row become visible.

[Code]...

View 1 Replies

Flex :: How To Render Component With Dynamic Visibility

Jul 29, 2009

I have a custom ActionScript component that I'm using in a Flex application (Flex 3.3, ActionScript 3). This component contains an Image control whose visibility is set dynamically based on a property of the data element provided to the component. The problem is that even when I set the image to be visible, it will not render onscreen. Is there something specific I need to do in order for the image to render? Snippets of relevant code below:

override public function set data( value:Object ):void {
_data = value;
if( _data ) {
if( _myImg ) {
_myImg.source = someImageClass;
[Code] .....

View 2 Replies

Flex :: Checkbox Visibility Binding In Repeater?

Nov 20, 2009

I am trying to dynamically bind the visibility of a checkbox control to a data field of a repeater as follows.

[Code]...

View 1 Replies

Flex :: Close X Number Of Popups One By One According To Their Visibility?

Jul 22, 2010

Lets suppose, there are 4 popups in my application and a viewer presses Escape once. Now i want application to close the popup which is on the top. I dont know how to accompish this because i dont know thich popup is to the front right now.

View 1 Replies

Flex :: Set Visibility Of An Item In A TileList To False?

Sep 28, 2010

I've got a tileList in a Flex 3 website. I want to programmtically turn off the visibility of a tile. So for example[code]...

View 2 Replies

Flex :: Advanced Data Grid:column Visibility?

Dec 7, 2009

when we use an advanced data grid, only when we click on the parent element the children details get populated in the corresponding columns, right?..SO now i have made the empty columns invisible(at design) now how do i make them visible at run time when the parent element is expanded..similarly once the columns are visible, how can i make them invisible again when the parent element is closed.

View 1 Replies

Flex :: Resizing A Container When Child's Visibility Is Changed?

May 28, 2010

When I set the visible property to false for a child in a container, how can I get the container to resize? In the example bellow, when clicking on "Toggle", "containerB" is hidden, but the main container's scrollable area is not resized. (I do not want to scroll through a lot of empty space.)

<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">
<mx:Script>
<![CDATA[

[Code]....

View 2 Replies

Flex :: Datagrid - Data Grid Visibility When Empty?

Oct 19, 2010

I have data grid that measures the height according to the rows it has, but i need to disappear/ make invisible when i have no data, so the header will not just appear alone.

View 1 Replies

Actionscript 3 :: Flex Repeater - Toggle Sibling Component Visibility On Checkbox Change

Jun 2, 2010

I have a Flex repeater that has a complex item template. When a checkbox is clicked, I need to toggle the visibility of a sibling button contained in the same repeater template. Since I can't add binding expressions to event handlers, I can't pass in the repeater item's index.

How can I access sibling components inside a repeater item?

View 1 Replies

Flex :: Make A DataGrid Component With Some Mechanism Where The User Can Toggle The Visibility Of The Columns?

Jan 5, 2011

I'm trying to make a Flex (Advanced)DataGrid component with some mechanism where the user can toggle the visibility of the columns. I've crudely implemented this by reading in the columns into the right-click menu, and when a column name is selected here, the visibility is toggled. It works, but it's not the most elegant solution.Specifically, I'm trying to emulate the "datagrid" that Mozilla Thunderbird uses to display emails. Here is an image:

In the upper right, there is an icon over the scroll bar. If there is no scrollbar, the icon remains in the same place. When clicking the icon, it opens up a menu that shows all the possible columns, with the visible ones having a check mark next to them, like this:

Also, the scroll bar always appears under this button, never "pushing" it over into it's own column.I'd like to re-create this in Flex. I believe the menu part and creating a column with a button headerRenderer is easy enough. But I can't figure out how (if at all possible) to do this with the scrollbar, because the scrollbar always seems to be "its own column".

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

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

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







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