Flex :: VGroup Or List Doesn't Fit Into TileWindow, Is Too High

Nov 27, 2011

how to make the List and Checkbox (inside a VGroup) to fit into a TileWindow?

The complete source code Text.mxml:

<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"

[Code].....

View 1 Replies


Similar Posts:


Flex :: Float - 4: While In A Vgroup - Add A Moveable Element That Won't Be Part Of The Vgroup?

Jun 22, 2010

I created several components that are placed inside a VGroup. in one of the components code, i want to add an image and to move it. i don't want the image to be part of the vgroup and to be bound to the vgroup area, i want it to be like float in css. how can I do that?

update I want to be able to move the element in the entire area of the application. not to move it within the vgroup. i don't want this object to be attached to any container besides the main application window in order for me not to have limits how much can i move it and where.

[Code]...

View 1 Replies

Flex :: 4.1: <mx:List> Had RowCount Properly For The Limit The Displayed Items. <s:List> Doesn't

Aug 11, 2010

I'm using flex 4.1 to write an application. i read in the documents that has the rowCount property to set how many items to display. the does not have that property. how can I limit the list to display 3 items ?

View 3 Replies

Flash :: Using A Vgroup As A Drop Target In Flex

Dec 3, 2010

Is it possible to use a VGroup as a drop target in flex? I like the functionality of a vgroup (adding elements easily, etc) but I haven't found a way to get it to register when things are dropped on it.

View 1 Replies

Flex :: Use VGroup Or HGroup In Pure Actionscript3?

Sep 3, 2011

I'm developing a flash app by using free Flex SDK and text editor and compiling in command line.

I want to use VGroup or HGroup in my actionscript to manage positions of DisplayObjects.[code]...

View 1 Replies

Actionscript 3 :: FLEX 4.0 Vgroup Seems Not To Draw Their Elements?

Jan 23, 2012

I got a component made with an spark Group for a survey, inside of it I have an algorithm that create the questions putting RadioButtons inside of a VGroup(dynamically).The problem is that sometimes when I call the next question, I couldn't find why, they are not drawn unless I click the right mouse button so it appears normally.

public function nextQuestion(event:MouseEvent):void
{
destroyQuestion();[code].....

So, when I run the application and I move through the questions, sometimes, the question is not drawn (exemple: I'm at question 2 and I move to the third question and it's blank, but if i press the right button in my mouse the question suddenly appears. So I move to the fourth and everything seems right)

View 1 Replies

Flex - Find The Color Of A Pixel At A Point Within A VGroup?

Jul 29, 2011

I'm having trouble with this code

var imageMap:ImageSnapshot= ImageSnapshot.captureImage(object);
var pixelValue:uint = imageMap.bitmapData.getPixel(x, y);

View 1 Replies

Actionscript 3 :: Flex: Find Which Element Is Clicked In Vgroup?

Aug 26, 2011

I am dynamically creating 10 textinputs inside a vgroup . when user clicks a button, I want to fetch the text present on all textinputs. How to do this. My code looks like this

var vgroup:VGroup = new VGroup;
for(var i:number=0;i<10;i++){
var textinput:TextInput=new TextInput();
vgroup.addElement(textinput):
}

View 1 Replies

Flex :: Why Doesn't ListCollectionView Show New Items Added To The Underlying List

Jun 20, 2011

I have an (empty) ArrayCollection that I wrap with a ListCollectionView. Then I add a series of items to the ArrayCollection, but these are not showing up in the view.

public var transactions : ArrayCollection = new ArrayCollection();
public var filteredTransactions : ListCollectionView = new ListCollectionView(transactions);

transactions contains 150 items, filteredTransactions contains none. I originally thought it was the filter I was applying, but even when I remove the filter, I still get no items in the filtered list.

Do I need to add the items to the view as well as the underlying collection (this would seem to defeat the purpose of using a view though...)?

View 1 Replies

Flex :: Change S:VGroup Height When Child.visible Set To False

Nov 12, 2010

I have a code similar to this:

<s:VGroup>
<s:HGroup verticalAlign="middle">
<s:Label text="label" />
<s:TextInput id="rmName"/>

[Code].....

I want that the s:VGroup container has the height only of its visible children. In this example there is a free space even the visibility mx:HorizontalList is set to false. Every time I change the visibility of the child element I want that the parent (s:VGroup) will change his height. How to do this in flex?

View 1 Replies

Flex :: VGroup - (Parent) Container Does Not Change Height With Children?

May 13, 2011

I have code like the following:
<s:VGroup gap="10" id="group" height="100%">
<s:Label text="This is page 2" />
<s:Button content="Resize Canvas" click="resize(event);"/>
<mx:Canvas id="photoCanvas" color="#567898" backgroundColor="#125567">
</mx:Canvas>
</s:VGroup>

I don't understand why the following does not work:
Pushing the Button resizes the photoCanvas's height (gets taller or smaller). Since the photoCanvas control is a child element of the VGroup shouldn't the container update itself to the new height? The Vgroup has ALWAYS the same height, no matter what the (total) height of the children is! I would like the VGroup to adjust itself and get a height value equal to the sum of its children heights. Is this not possible??

View 1 Replies

ActionScript 2.0 :: High Score List - Flash Cannot Create A Simple Text File

Aug 17, 2004

I want to create a simple high score list of 10 high scores of a game. From reading the forums I seem to get the idea that flash cannot create a simple text file. I don't have php or asp but do have cgi capability. Does anyone know where I can find a simple cgi-script that will allow me to write the text the cgi receives to a simple text file: game.sco I want to be able to write a single long string to it so that I create a string of values and can load it back in using flash loadvariables. I can create the string in flash... but how do I write it to a text file using a cgi script? the text file would include this string...I already know how to read it and split it to parse it into arrays:

[Code]...

View 1 Replies

Flex :: VGroup: How To Have A New Element Show Up Smoothly (resize) When Added/removed

Apr 20, 2011

When adding/removing elements to/from a VGroup I need it to happen smoothly, resize the item. I believe I have to use transition effects. But how?

At item (element) level? At VGroup level? Should I use a DataGroup instead and do it at ItemRenderer level?

I've been trying to do it at item level but I still didn't manage to make it work and somehow it doesn't feel right. It feels like it should be done at a higher level.

For example, I defined a "death" state which resizes the item to height=0. But then, after it shrunk, it has to somehow notify VGroup in order for it to be removed or remove itself from VGroup. It feels unnecessarily complicated.

way to associate an effect to inserting and removing items from a VGroup?

View 2 Replies

ActionScript 2.0 :: Create A High Score Table Offline That Doesn't Need Php Just Relies On Dynamic Textboxes?

Jul 29, 2010

I am trying to create a high score table offline that doesn't need php just relies on dynamic textboxes.I am basing it on a kind of random football results generator. I have been able to get the random scores and add points to a team depending on the score but now I would like to be able to display them in a 'league' table based on their points score.

View 7 Replies

ActionScript 2.0 :: Make A High Score Table For A Flash Game Where EVERYONE See's The Same High Scores?

Oct 11, 2003

how can i make a high score table for a flash game where EVERYONE see's the same high scores?

eg.

Bill gets 1000 in USA
Ben gets 1002 in UK

they can see each others scores on a high score table.

View 7 Replies

Css :: Flex 4.6 CSS Vgroup "gap" Ignored?

Jan 15, 2012

<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"

[code]......

View 1 Replies

Flex :: MX List ItemRollOver Event Equivalent On A Spark List Control?

May 26, 2011

Flex 3 List control had a itemRollOver event. Flex 4 List doesn't have it. Is there an equivalent or a workaround for this issue?

View 2 Replies

Flex :: AS3 Video Encoding At Runtime With High Compression

Sep 15, 2010

I need to compress video image data (lets say a display object) in AS3 to a Byte Array with high compression at runtime. Framerate only needs to be around 5 but 1024x768 video needs to go to < 40 Kilobyte per Second without the quality being too bad. I wrote a custom encoder and got it to around 80-100 Kilobyte per Second for 1024*768 which still is too much and I don't see a lot of improvements to be mad to my encoder.

Using JPG or PNG Encoder gives way higher KB/s. Is there any open source way to to decode and encode video in as3 at runtime ? E.g. a H.264 as3 encoder and decoder ? Or other codecs? Or maybe a C# source code of h.264 encoder and decoder ? I think I could port it to as3. Doesnt need to be h.264, just something with good quality when running at 5 Frames/Sec and 40 Kilobyte...

View 2 Replies

Flex :: High-res IPad Icon In Flash Builder 4.6?

Mar 15, 2012

Apple says that a 144x144 application icon is now required for the high-res iPad. But adding an <image144x144> element to the application descriptor file in Flex 4.6 gives an error 103: application.icon.image144x144 is an unexpected element/attribute.Is there a workaround for this? Perhaps through the iPhone InfoAdditions area of the application descriptor?

View 2 Replies

Flex :: Most Scalable Web Stack For High Performance Flash?

Jun 11, 2009

I am in the planning phase of a new multi-user client/server app using Flash via Flex and AIR. I am trying to decide which web platform/stack is the best suited for this? I have used RoR in the past, but as i understand, RoR is single-threaded, and is therefore not the ideal choice for handling potentially thousands of simultaneous requests. I have done some reading about Scala and Lift and that is an intriguing option, but i was wondering if there are other languages/frameworks out there that would work well for my project?

View 3 Replies

Flex :: 3: Scrolling Of List Items With In A List Via Scroll Wheel

Dec 31, 2009

Here is a snip from within my code:

[Code]...

The 'recommendations' dataProvider is an ArrayCollection of String, which are generally sentences about as long as this one. By setting the variableRowHeight and wordWrap properties as shown, if a sentence is too long to fit on a single line, everything works fine- the row expands and the messages show on two lines, or occasionally three.

The space allocated for this panel within the entire canvas means if the total text size of 'recommendations' exceeds six lines, I need for the entire list scroll. This is also working just fine. The trouble is when using the mouse wheel to do the scrolling- Flex scrolls both the entire list and the single item where the mouse is hovering. Often this results in only the second half of a sentence being visible. Non-programmer friends I have asked to look at this noticed this, and tell me it as a problem. If a user does not notice the dual scrolling, and sees only a fragment of a sentence, it will be perceived as an error in the application.

[Code]....

View 1 Replies

Flex :: Make List Content Dependant On Selection In Another List?

Jul 6, 2011

When a user selects a category from the first drop down box then i want the 2nd drop down to be updated based on the selection of the first drop down. I have created multiple ArrayCollections whose names are set to the "data" values of the first drop down, for instance:

[Bindable]
public var countries:ArrayCollection = new ArrayCollection([
{label:"USA",data:"USA"},

[code].....

View 2 Replies

Actionscript 3 :: Flex - List Selected Entire List By Default?

Aug 31, 2011

I am currently working on a project in Flex and I am having a hard time having a list's contents ALL be selected by default. Wondering how to do this.

<mx:List id="list" dataProvider="{dp}" allowMultipleSelection="true"/>

I'm just trying to have the list all selected.

View 2 Replies

ActionScript 3.0 :: Without SwapDepths Menu List Doesn't Work

Mar 3, 2009

Im working on migrating an old as2 file to as3 and am stuck on a swapDepths issue--Havent had any luck with setChildIndex or swapChildren--Nothing is being dynamically added to the stage and as the clips are nested and consist of timeline layers of textfields and MCs Im not even sure what is a child of what. for some reason on mousing over the menu, the code I have for highlighting the button and showing the text that was appended(on long lines of item descriptions) due to size constraints of the component, is showing up as semi-transparent--I dont understand what is causing it to happen(although I resolved the issue previously with swapDepths)or how to resolve it. The code thats is the issue is in the menuButton MC timeline layer 13...

Here's the link to the file--see button 8--- [URL]

View 10 Replies

Flash - Spark List SelectedIndex Doesn't Update?

Sep 8, 2011

when i use nextSlide() and prevSlide(), which are executed when i click on two buttons. SelectedIndex works when i click on the elements in the List. What am i doing wrong? do i have to dispatch some events? Are there any tricks to doing it with buttons?This is my playlist class

public class Playlist extends List
{
private var dispatcher:Dispatcher;

[code]......

View 2 Replies

ActionScript 2.0 :: ComboBox Component - List Doesn't Drop Down

Jun 3, 2008

I have a combo box on the stage in a main SWF. when the user selects an item in the dropdown list a child SWF is launched into level0 using loadMovieNum and data is left behind using _global variables for the child SWF to use. this works fine and well. but inside the new child SWF that is launched is a button that takes you back to the previous main SWF with the ComboBox. its done using the same method loadMovieNum into level0. and the main SWF loads but you cannot open the ComboBox. it will not drop down. the halo green color on hover over is there and it gets darker when you click, but the list doesn't drop down. here is some code that I think may be significant to the situation...

[Code]....

View 12 Replies

Flex :: Spark List Have Something Similar To ItemsChangeEffect In Mx List?

Jun 28, 2010

I'm trying to animate a list as I delete the top row. All the examples I can find use itemsChangeEffect to bind to the effect, but this property exists only in MX lists, not spark lists.

Any idea how I can get the same effect done in Spark Lists?

I'm trying to remove the top most item in the list with a slight fade out effect before the rest of the items move up to replace the gap.

View 2 Replies

Flex :: Using NetConnection And URLStream To Send/receive Data At High Frequency

Jun 17, 2009

I'm writing a Comet-like app using Flex on the client and my own hand-written server.

I need to be able to send short bursts of data from the client at quite a high frequency (e.g. of the order of 10ms between sends).

I also need the server to push short bursts of data at a similarly high frequency.

I'm using NetConnection.call() to send the data to the server, and URLStream (with chunked encoding) to push the data from the server to the client.

What I've found is that the data isn't being sent/received as soon as it's available. For example, in IE, it seems the data is sent every 200ms rather than as soon as NetConnection.call() is called. Similarly, URLStream isn't making the data available as soon as the server is sending it.

Judging by the difference in behaviour between the browsers, it seems as though the Flash Player (version 10) is relying on the host browser to do all the comms. Can anyone confirm this? Update: This is very likely as only the host browser would know about the proxy settings that might be set.

I've tried using the Socket class and there's no problem with speed there: it works perfectly. However, I'd like to be able to use HTTP-based (port 80) connections so that my app can run in heavily fire-walled environments (I tried using a Socket over port 80, but that has its problems).

Incidentally, all development/testing has been done on an internal LAN, so bandwidth/latency is not an issue.

Update: The data being sent/received is in small packets and doesn't need to be in any particular format. For example, I might need to send a short array of Numbers, and this could either be encoded in AMF (e.g. via NetConnection.call()) or could be put into GET parameters (e.g. using sendToURL()). The main point of my question is really to see whether anyone else has experienced the same problem in calling NetConnection/URLStream frequently, and whether there is a workaround (it's also possible that the fault lies with my server code of course, rather than Flash).

View 2 Replies

Flex :: Using Drag & Dop Into List Get List Items?

Nov 23, 2009

while i using drag & drop from listbox1 to listbox2 ,how can i get all the items of listbox2 in flex

View 1 Replies

Flex :: Set A Style For The Icons In A List List?

May 13, 2011

The traditional way to assign an icon would be to use the icon field of the item renderer,which reads the value of "icon" property in your data, for example:

listData.addItem({label: "Logout", icon: "com.classpth.DefualtThemeLogoutIconClass"});

But i want the DefualtThemeLogoutIconClass to changed to another class: ightThemeLogoutIconClass when the theme is changed.The only way to do this would be to use a style declaration containing a classReference to the icon, and change its the value in each of the CSS files of the various themes.The question is, is there any way to assign this style to an icon in a List, something as easy as intuitive as list[0].getIcon().setStyle("styleName");

View 1 Replies







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