Flex :: Avoid The HorizontalScrollBar Addition To Container?

Aug 3, 2011

if container like VBox have autoScrollPolicy for both scrolls. if VerticalScrollBar is added, why the horizontalScrollBar automatically added.. is there any option to avoid the horizontalScrollBar addition to container.. without using horizontalScrollPolicy="off"

View 1 Replies


Similar Posts:


Flex :: If The Line Is Shorter Than The Entered Text, A HorizontalScrollBar Will Get Active?

Mar 16, 2010

I have a dataGrid with a custom itemRenderer. Everytime I tab at least two times on the dataGrid, the cell below the one I taped gets selected. This doesn't happen if I uncomment the code in the method saveBackDataGridContent().The second problem is that if the Line is shorter than the entered text, a horizontalScrollBar will get active, although I set setStyle("horizontalScrollPolicy", "off");...

CustomRenderer.mxml:
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" initialize="dataService.send()">
<mx:Script>[code]...........

View 1 Replies

Actionscript 3 :: How To Do Flex Date Deduction And Addition

Jun 23, 2010

In flex, I am trying to do date deduction and addition, but couldn't find a way to do it.

e.g.: public var dateNow:Date=new Date();

How can I get the Date 3 months earlier than dateNow?

View 4 Replies

ActionScript 3.0 :: Dynamic Component Addition / Removal With Flex

Jun 15, 2010

I've created a MXML Component that consists of two TextInput boxes (user can input a "name" and "description"). I'm attempting to add and remove this component dynamically to a VBox in an MXML application. I've achieved addition thusly:

[Code]....

However, I cannot seem to get the remove() going after trying various ways with box.removeElement().

View 2 Replies

Flex :: Prevent The Addition Of Dragged Item In Tree Which Drag Accepting?

Oct 25, 2010

i have two tree one tree lets say TreeDrag is drag enabled and other is drop enabled lets say TreeDrop.. when i drag item from TreeDrag to TreeDrop,, i want to show feedback and everything else normal except the addition of dragged item in TreeDrop..

View 1 Replies

Flex :: Prevent Container In ItemRenderer From Exceeding Width Of List Container?

Jul 2, 2011

In a Flex Mobile project I have a simple itemRenderer where I'm trying to create an "bubble" texting effect, similar to ichat or iphone (just so you get what im going for). But if the text is longer than the screen it runs off, rather than just going down a line.

If I set Group thats holding the rectangle(to create the bubble effect) and the label to 100% it works and keeps it from exceeding the list containers bounds, BUT the group is always at 100% and looks bad, I'm trying to keep the "bubble" JUST AROUND the text.

Anyway so, at the top of my itemRenderer I tried specifying:

<s:ItemRenderer xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark" width="100%" height="100%">

And here's my layout I figured since msg_container has a width of 100% I was hoping bubble_lable_group would just not exceed that but...it doesnt...it just runs off. I tried setting a max width but that does not allow you to input percents. And just to say it 1 more time. I know if i set bubble_lable_group width to 100% it works, and keeps it from going off the edge, but then the rectangle "bubble" stretches all the way across and just looks bad.

<s:VGroup id="main_container" horizontalAlign="left" paddingBottom="10" paddingTop="10"
verticalAlign="top" width="100%">

[Code]....

View 1 Replies

Flex :: Dynamically Adding Container To A Dynamic Container

Sep 21, 2011

I have a loop that goes through data from a book and displays it. The book is not consistent in it's layout so I am trying to display it in two different ways. First way(works fine) is to load the text from that section in to a panel and display it. The second way is to create a new panel (panel creates fine) and then add collapsable panels(nested) to that panel. Here is the code from the else loop.

else if (newPanel == false){
// simpleData is just for the title bar of the new panel
// otherwise the panel has no content

[Code]....

The error I get is: ReferenceError: Error #1069: Property panel4.4 not found on components.readTest and there is no default value.

I have tried setting the "name" property instead of the "id" property.

View 1 Replies

Flex - Hide Container Of A Viewstack Container?

Dec 23, 2010

I have a viewstack container w/ 3 views: red, black, and blue. How can I completely hide the black & not include it?

[Code]...

View 2 Replies

Flex :: Drag Circle From One Container To Another Container?

Jan 13, 2012

I am creating an flex Air project,so mxml file will run. I have circles in one Big circle at one side and will be same on other side.

Now how to drag any circle from any Big circle to other side. Or it could be like any two container having circles, then how to drag and drop circle?

For one circle i am able to do drag and drop.But I want one Big circle on left hand side and one big circle on right hand side .And small circles with class names will be in these big circles.Now i want to drag and drop those small circles in big circles.Big cicles should not move. Even i have tried this code in actionscript

package
{
import flash.display.Sprite;
import flash.events.MouseEvent;

[Code].....

But in this i want big circles should not move and small circles should only be dragged.

View 1 Replies

Flex :: Moving Children Of A Container (defined In MXML) Inside An "inner Container"

Jan 27, 2010

I'm currently working on a custom component which extends Canvas (let's call it SuperCanvas) ; it's basically a container that let you zoom & pan its contents. It would be too long to explain why, but I can't use scrollRect, so I was forced to declare a Canvas object (called innerCanvas)... inside my SuperCanvas (I know, not very nice =/) I would like to know if there's a proper way to "redirect" the creation of my component's children in this canvas.

[Code]...

View 1 Replies

Flex :: How To Avoid CSS Compilation To SWF

May 24, 2011

It seems it isn't possible at runtime to change styling defined in CSS files, ex.: colors. This is seemingly because the CSS files are compiled into SWF. Is it possible to externalize styling information in CSS (or any other format) without compiling it to SWF file so that it can be changed easily at runtime just as normal CSS can be changed when it is used in HTML.

View 3 Replies

Flex :: Avoid Native Authentication Popup In AIR On Mac?

Sep 24, 2009

In AIR on Mac, when I send login creds to a service and they're incorrect, AIR displays a native popup window to try logging in again without dispatching an error event. Twitter provides a header (suppress_response_codes=true), which returns any error as a status 200 with the error message. I'm using HTTPService to connect to a service without a header like this. Are there any properties or headers I can send to avoid this popup?

View 3 Replies

Flex :: Avoid The Behavior Of Set HtmlText In RichTextEditor?

Feb 21, 2011

I'm having this problem of adding an image to the textArea in RichTextEditor (RTE) on the fly and this image seems to "reset" the html properties of the textArea.
Better explained:

The user starts writing something in the TextArea (with Verdana in size:12 font settings). When he adds an image to the text area, the cursor right after the image gets very small and the font settings are reset to HUM777B in size:2.

How could I avoid this behavior?

It seems Flex adds additional HTML code before the image tag. If there was any way to avoid this I would be able to add my own settings to the tags.

View 1 Replies

Flex :: Avoid Slide Transition Quirks?

Feb 28, 2011

I have a custom viewstack that applies automatically a slide in/slide out effect when the view changes. Everything goes smoothly when the views are lightweight but becomes jumpy when the next view requires heavy rendering. Here are the relevant parts of the code :

[Code]...

View 1 Replies

Flex :: Avoid Type Conversion In It From String To Number?

Aug 23, 2010

I am returning 12345678910111213171819 from java to flex, with in xml tags using http service. The result format is object.

but when I display the text it automatically converted or treated as number so it displays like 1.234567891011121317181 x e^21 .[code]...

View 3 Replies

Flex :: Avoid The Null Object Reference Error?

Jun 21, 2011

I have function init, which runs on the creationComplete of the application. The init calls get_login_share_object funtion, in which objects are created, which are null.

Now my problem is that, I get a null object reference error on the Alert in "init()". How can I avoid that. Is it possible that I can have a check to see, if the objects are null the program should just skip reading the objects.

private function init():void
{
var stored_credentials:Object = get_login_share_object();

[Code]....

View 3 Replies

Flex :: Avoid Loads Of 'if Statements' In Item Renderers?

Aug 8, 2011

I have an item renderer for a list containing an image, label and a checkbox.These are visible depending on the dataProvider property of the list.E.g if an image is a premium image then display the premium label, if an image is a favourite then display a star etc.The problem is i have a massive if statement, and this doesn't seem good practice.

View 1 Replies

Actionscript :: Flex - Proxy Authorization In To Avoid OS Prompt?

Aug 12, 2011

I have an air app and I want to add proxy-authorization header whenever my client is behind a proxy. I am adding 'proxy-Authoriztion' header in urlRequest headers but still I am getting the OS prompt for username/password.

var loader:HTMLLoader = new HTMLLoader();
var be:Base64Encoder = new Base64Encoder();
be.insertNewLines = false;
be.encode("test" + ":" + "test");

[Code]...

View 1 Replies

Flash :: Avoid Flickering When Changing The Source Of A Mx:Image In Flex

Nov 4, 2009

in my mxml file I have images declared like this:

<mx:Image x="0" y="0" source="assets/bigpicture.png" id="picture1"/>

and at some event I do:

picture1.source = "assets/bigpicture2.png";

However this results in flex removing the picture, and when it has loaded it will show it again.

How can I make the mx:image make so that it will continue to show the image until the new image has been loaded?

View 1 Replies

Actionscript 3 :: Avoid ItemRenders Caching In A Spark List In Flex 4?

Sep 11, 2010

I have 2 Spark List with custom Item Renderers. I'm working on an application that enables users to grag these Item Renders from one List to the other. When one of these IR is dropped in a new position or in another List, I'm updating the dataproviders: remove the object from one list's dataprovider and adding it to other's dataprovider. This si working ok. The problem is that some times the IR is cached and it doesn't show the correct information, based on its data.

How can I force the lists to never cache IRs and all the times I modify the dataprovider, all item renders re-create all IRs (performance won't be an ossue since I have few items on each list)

View 2 Replies

Flex :: Avoid Kicking Of PropertyChangeEvent For An Object Until All Attributes Are Assigned?

Feb 14, 2011

I want to capture a change in a property of an item as follows

myItem.addEventListener(PropertyChangeEvent.PROPERTY_CHANGE,listener);
protected function listener(event:PropertyChangeEvent):void {
}

[code]....

View 4 Replies

Actionscript 3 :: Avoid The Display Of Multiple Alert Windows In Flex?

Feb 18, 2011

I have a timer in my application. For every 30 min, it will hit the web services and fetch the data and updates the UI. The application was working fine till yesterday. Suddenly, because of some issue, the web services were not available for some time. During that period, Application displayed the RPC Error multiple times(More than 100 alert boxes) in alert window. Because of this alert boxes, my application was hanged and i was not able to do anything.

I have tried several approaches, but nothing worked.Finally, I have tried to use a flag. In all the approaches, this looked promising. so i have implemented it.Basically, in this approach whenever we open an alert we will set a flag.While opening and closing alert we will reset this flag.

View 1 Replies

Flex :: DataGrid / List Drag And Drop - How To Avoid Copying

Jul 21, 2011

I'm using drag and drop on a DataGrid to reorder items. However, when the user holds down Ctrl he can initiate a drag Copy operation. How can I disable copying altogether? (not just cancel the drop, but also prevent Ctrl + drag from showing the (+) icon)

View 2 Replies

Java :: Avoid Flex Application Store Temporary Internet Files?

Jan 12, 2012

I've programmed a Java application using BlazeDS and Flex, but i think the problem also occurs in any ajax style application. It's a monitoring application, so requests are made regularly to the server. The browser has stored a large amount of temporary internet files on the client pc even getting it saturated. How I can avoid this? I have seen some articles that say to include variables in the html header as:

[Code]...

View 1 Replies

Flex :: Avoid The Copy Of The Empty Folders, Based On The Current Source Library Structure?

Dec 4, 2009

Is there a way to avoid the copy of the empty folders, based on the current source library structure, in bin-debug folder?I'm using Flex 3.2

View 1 Replies

ActionScript 2.0 :: Addition Of Two Strings?

Mar 11, 2010

Here we go... i know, that i have to CAST them... but how? The idea is to add (adition) two strings...

a:String = "20";
b:String = "10";
c:String = a+b;

I get c=2010 and not 30 as i expected... i guess i have to cast, but how?

View 1 Replies

ActionScript 3.0 :: Addition Using Input Text Fld

Feb 17, 2011

i want to add two numbers, which has entered in two input text fields.[code]here if i entered 3 in one text field and 2 in another text field. the result is comming like 32. It should be "5".

View 4 Replies

ActionScript 3.0 :: Addition Of 2 Colors (hex Values)?

Jun 28, 2010

I am trying to figure out a way to add 2 colors (hex values) to generate a new color.I am not sure as to how this can be computed. Is the new color an average of the hex values of the 2 colors?

View 7 Replies

ActionScript 2.0 :: Write A GotoAndPlay With The Addition Of A Variable?

Nov 25, 2009

So I've defined my variable:_global.current = 1;And below i am accessing an MC called 'carousel_holder', which has an MC named 'bar' and inside this MC is a final MC named 'bar1'.So ive tested my path and can hard code it fine, so its not a paths issue but i think my syntax is incorrect:_root.carousel_holder+".bar"+current.gotoAndPlay(" start");

View 4 Replies

Actionscript :: Call A Function On Addition Of New Row In List And Not Afterwards

Feb 5, 2012

I have created an item renderer spark list in flex , but i want to call a function on addition of new row in list and not afterwards. I am getting a data object in rendered list in it i am getting the type of data to be displayed in list ie. either text or image. So on addition of new data in list i want a function to be called up in rendered list that checks the type of data received and then it will either create and add an image element or a text element. So the main problem is how i get a function called on addition of data. I have tried events like datachange and added but they keep on calling the function over and over again when we scroll the list but i want the function to be called once only on addition of data and not after wards. Below is the renderer list code , maybe you will get a better idea of what i am trying to do:

[Code]...

View 1 Replies







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