Re: [flexcoders] repeater width problem

2011-08-23 Thread Tandon, Rishi
mx:Label doesn't wrap the contents.
Use ms:Text instead.

Rishi



From: steveroger_flex steveroger_f...@yahoo.com
To: flexcoders@yahoogroups.com
Sent: Tuesday, August 23, 2011 11:03 AM
Subject: [flexcoders] repeater width problem


  
Hello Friends,

I am trying to implement one functionality using repeater.
But facing one problem.

Code snapshots.

public  var ArrData : Array = [{label: 'Option 1', value:'opt1'},{label:
'Option 2', value:'opt2'},{label:'Option 3',
value:'opt3'},{label:'Option 4', value:'opt4'}];

mx:HBox width=350 height=30
mx:Repeater id=tRepeater  dataProvider={ArrData}
width=100% height=100%
mx:Label text={tRepeater.currentItem.label} /
/mx:Repeater
/mx:HBox

Labels are displed with array data using Repeater inside HBox.

Problem is, Labels go out of the HBox horizontal range.
I wanna to implement, if Hbox width is exceeded, Labels will start
occupying in next row.
Hbox width should be fixed at 350. Vertical Scrolling appear if labels 
exceeded from width range.

where I am doing mistake OR missing anything?

Thanks,

Steve.


 

Re: [flexcoders] View ViewNavigator component

2011-08-23 Thread Tandon, Rishi
Extend the navigator class.



From: markflex2007 markflex2...@yahoo.com
To: flexcoders@yahoogroups.com
Sent: Monday, August 22, 2011 10:57 PM
Subject: [flexcoders] View  ViewNavigator component


  
Hi,

I try View and ViewNavigator for mobile application.I like it.

I am very like the features for View/ViewNavigator . but I need develop a web 
application now.

I get error when I use View component for Flex web app.

Do you think if I can use  View and ViewNavigator for web app? or some same 
features components. I need pushView and popView functions in my web 
application.

Please give me a idea. Thanks

Mark


 

[flexcoders] Re: repeater width problem

2011-08-23 Thread steveroger_flex
Thanks Rishi.

But my actual problem was with Repeater Container.
I replaced HBox with ToolBar.
So my problem is now solved.
Now my all labels are perfectly occupy in ToolBar.

Steve



--- In flexcoders@yahoogroups.com, Tandon, Rishi rishitandon123@... wrote:

 mx:Label doesn't wrap the contents.
 Use ms:Text instead.
 
 Rishi
 
 
 
 From: steveroger_flex steveroger_flex@...
 To: flexcoders@yahoogroups.com
 Sent: Tuesday, August 23, 2011 11:03 AM
 Subject: [flexcoders] repeater width problem
 
 
   
 Hello Friends,
 
 I am trying to implement one functionality using repeater.
 But facing one problem.
 
 Code snapshots.
 
 public  var ArrData : Array = [{label: 'Option 1', value:'opt1'},{label:
 'Option 2', value:'opt2'},{label:'Option 3',
 value:'opt3'},{label:'Option 4', value:'opt4'}];
 
 mx:HBox width=350 height=30
 mx:Repeater id=tRepeater  dataProvider={ArrData}
 width=100% height=100%
 mx:Label text={tRepeater.currentItem.label} /
 /mx:Repeater
 /mx:HBox
 
 Labels are displed with array data using Repeater inside HBox.
 
 Problem is, Labels go out of the HBox horizontal range.
 I wanna to implement, if Hbox width is exceeded, Labels will start
 occupying in next row.
 Hbox width should be fixed at 350. Vertical Scrolling appear if labels 
 exceeded from width range.
 
 where I am doing mistake OR missing anything?
 
 Thanks,
 
 Steve.





[flexcoders] Re: View ViewNavigator component

2011-08-23 Thread markflex2007
I want to make sure if navigator can work with normal flex app.

I only see it use with mobile app

Thanks

Mark
--- In flexcoders@yahoogroups.com, Tandon, Rishi rishitandon123@... wrote:

 Extend the navigator class.
 
 
 
 From: markflex2007 markflex2007@...
 To: flexcoders@yahoogroups.com
 Sent: Monday, August 22, 2011 10:57 PM
 Subject: [flexcoders] View  ViewNavigator component
 
 
   
 Hi,
 
 I try View and ViewNavigator for mobile application.I like it.
 
 I am very like the features for View/ViewNavigator . but I need develop a web 
 application now.
 
 I get error when I use View component for Flex web app.
 
 Do you think if I can use  View and ViewNavigator for web app? or some same 
 features components. I need pushView and popView functions in my web 
 application.
 
 Please give me a idea. Thanks
 
 Mark





[flexcoders] Re: Flex 4 CSS

2011-08-23 Thread Netaman
Have you tried; This is using flex 4, the following workaround;
Where the image would be the same size as the container
mx:Image id=backgroundImage   styleName=backgroundImage
alpha=.8 source={backgroundImage.getStyle('source')} 
maintainAspectRatio=false/


then in the CSS, you add the following;
mx|Image.backgroundImage{
source: Embed(/assets/images/someimage.png); 
width:580;
height:246;
x:114;
y:161;  
border: 1px green solid;
}

You can extend bordercontainer and add code to handle a style change;
public override function styleChanged(styleProp:String):void {
// code to handle element properties and not just styles
// such as x, y, height and width handled in css
}

If you need code example, then just write back to me and I will supply with 
what you need, as time permits.

--- In flexcoders@yahoogroups.com, Davidson, Jerry jerry.davidson@... wrote:

 I tried both BorderContainer and Panel, but neither would display an
 image.  I can get the background color to change, but not add an image.
 
  
 
 Perhaps a skin will work, but I can't get it to work so far.  I've
 replaced the two lines of CSS with the default class panel skin which
 is over 300 lines long, includes three overrides and other methods and
 still doesn't seem to have an ability to add an image.
 
  
 
 Who would have guessed a simple image would bring Flex to its knees?
 
  
 
  
 
  
 
 From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On
 Behalf Of valdhor
 Sent: Friday, August 19, 2011 1:59 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: Flex 4  CSS
 
  
 
   
 
 Instead of using mx:Canvas try using s:BorderContainer.
 
 ?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
 
 xmlns:mx=library://ns.adobe.com/flex/mx
 
 
 
 fx:Style
 
 .bgImage
 
   {
 
 color: #DEDACF;
 
 contentBackgroundColor: #DEDACF;
 
 backgroundImage: Embed(BannerBackground.jpg);
 
 backgroundImageFillMode: repeat;
 
 }
 
 /fx:Style
 
 
 
 s:BorderContainer width=100% height=600 styleName=bgImage
 
 s:Label text=CSS Background test /
 
 /s:BorderContainer
 
 
 
 /s:Application





[flexcoders] Re: HTTPService DELETE/PUT automatically got changed to GET??

2011-08-23 Thread handitan
Thanks for the insightful info Peter!

--- In flexcoders@yahoogroups.com, Peter Coppens pc.subscriptions@... wrote:

 Fwiw...
 
 As far as I know that is indeed still the case. The doc 
 (http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/mx/rpc/http/mxml/HTTPService.html)
  says
 
 You use the mx:HTTPService tag to represent an HTTPService object in an 
 MXML file. When you call the HTTPService object's send() method, it makes an 
 HTTP request to the specified URL, and an HTTP response is returned. 
 Optionally, you can pass parameters to the specified URL. When you do not go 
 through the server-based proxy service, you can use only HTTP GET or POST 
 methods. However, when you set the useProxy property to true and you use the 
 server-based proxy service, you can also use the HTTP HEAD, OPTIONS, TRACE, 
 and DELETE methods.
 
 In general, unless you can get somewhere some server/proxy control, I have 
 found Flex not very useful to talk to a REST like service. Some people have 
 reported success by using http://code.google.com/p/as3httpclientlib/ iso the 
 Flex provided stuff. Personally I have not tried that. As far as I remember 
 it gets tricky as you cannot typically reuse  browser managed http 
 resources (cookies, cache, ...). 
 
 As it might be of interest to you as well.besides the limited HTTP verb 
 support I have lost numerous hours getting HTTP headers across. That is also 
 a non trivial endeavor. 
 
 What eventually worked out best in my case is to just bite the bullet , shove 
 a proxy in between, and use GET and POST to communicate tunneled real 
 HTTP requests, that are then transformed and forwarded. That is still not 
 perfect if you care about caching and have a need for custom headers, but at 
 least most of it is working.
 
 I have always found it a bit ironic that a platform that started it's life as 
 a toolset to develop Rich Internet Applications has such limited support for 
 the internet standard as old as HTTP.
 
 Anyway, hth,
 
 Peter
 
 
 On 20 Aug 2011, at 00:43, handitan wrote:
 
  Hi all,
  
  I just would like to get a confirmation.
  Right now, I have to use 3rd party REST APIs in our Flex app.
  A bunch of the REST APIs are using DELETE and PUT method.
  
  As the title said, they got changed automatically to GET.
  And from what I gather from this forum somebody said this in 2008:
  It's a limitation of the browser plugin API unfortunately.
  
  Is this still true in Flash Player 10.3?
  My app is still Flex 3 app with 3.5 SDK.
  
  I appreciate any input.
  
  Handi
  
  @Alex:
  Yes..yes..I am still using Flex 3.
  
 





Re: [flexcoders] Re: Flex 4 CSS

2011-08-23 Thread The Real Napster
I too have tried in many ways, but could not resolve the problem. Doing few
more tests.

BTW one option is to use addChild();

Something like this.

var image : Image = new Image();
image.source = FSCalc/images/BannerBackground.jpg;
image.scaleContent = true;
image.maintainAspectRatio =false;
image.percentWidth = 100;
image.percentHeight = 100;
PictureBox.addChild(image);


I am eyeing on this post. All the best guys


On Mon, Aug 22, 2011 at 7:57 PM, Davidson, Jerry 
jerry.david...@illinois.gov wrote:

 **


  I tried both BorderContainer and Panel, but neither would display an
 image.  I can get the background color to change, but not add an image.***
 *

 ** **

 Perhaps a skin will work, but I can’t get it to work so far.  I’ve replaced
 the two lines of CSS with the default class “panel skin” which is over 300
 lines long, includes three overrides and other methods and still doesn’t
 seem to have an ability to add an image.

 ** **

 Who would have guessed a simple image would bring Flex to its knees?

 ** **

 ** **

 ** **

 *From:* flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] *On
 Behalf Of *valdhor
 *Sent:* Friday, August 19, 2011 1:59 PM
 *To:* flexcoders@yahoogroups.com
 *Subject:* [flexcoders] Re: Flex 4  CSS

 ** **

   

 Instead of using mx:Canvas try using s:BorderContainer.

 ?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
 xmlns:mx=library://ns.adobe.com/flex/mx

 fx:Style
 .bgImage
   {
 color: #DEDACF;
 contentBackgroundColor: #DEDACF;
 backgroundImage: Embed(BannerBackground.jpg);
 backgroundImageFillMode: repeat;
 }
 /fx:Style

 s:BorderContainer width=100% height=600 styleName=bgImage
 s:Label text=CSS Background test /
 /s:BorderContainer

 /s:Application





Re: [flexcoders] Re: Flex 4 CSS

2011-08-23 Thread The Real Napster
Hello Alex,

Thanks for the note. I am wondering why new release build of flex/spark
does't have this feature? Its up to user whether to use it or not.
Background on components is the basic requirement of many clients now a
days.
Hope in future adobe will implement/add this feature. Thanks for the reply
Alex.

Regards,
Myadi

On Tue, Aug 23, 2011 at 10:05 AM, Alex Harui aha...@adobe.com wrote:

 **


 Jerry, the spark theme doesn’t support backgroundImage.  Every capability
 has a cost, and we chose not to make the container backgrounds as heavy as
 the Halo theme.  It doesn’t matter how many lines of code are in the skin if
 it doesn’t include the logic to load and position images.



 On 8/22/11 7:27 AM, Davidson, Jerry jerry.david...@illinois.gov wrote:






 I tried both BorderContainer and Panel, but neither would display an image.
  I can get the background color to change, but not add an image.

 Perhaps a skin will work, but I can’t get it to work so far.  I’ve replaced
 the two lines of CSS with the default class “panel skin” which is over 300
 lines long, includes three overrides and other methods and still doesn’t
 seem to have an ability to add an image.

 Who would have guessed a simple image would bring Flex to its knees?




 *From:* flexcoders@yahoogroups.com 
 [mailto:flexcoders@yahoogroups.comflexcoders@yahoogroups.com]
 *On Behalf Of *valdhor
 *Sent:* Friday, August 19, 2011 1:59 PM
 *To:* flexcoders@yahoogroups.com
 *Subject:* [flexcoders] Re: Flex 4  CSS



 Instead of using mx:Canvas try using s:BorderContainer.
 ?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

 xmlns:mx=library://ns.adobe.com/flex/mx



 fx:Style

 .bgImage

   {

 color: #DEDACF;

 contentBackgroundColor: #DEDACF;

 backgroundImage: Embed(BannerBackground.jpg);

 backgroundImageFillMode: repeat;

 }

 /fx:Style



 s:BorderContainer width=100% height=600 styleName=bgImage

 s:Label text=CSS Background test /

 /s:BorderContainer



 /s:Application





 --
 Alex Harui
 Flex SDK Team
 Adobe System, Inc.
 http://blogs.adobe.com/aharui

  



[flexcoders] consistent dynamic layout

2011-08-23 Thread Wouter Schreuders
Hi All

I've got a minor problem with doing an itemrenderer layout.

I've got an itemrenderer which renders master categories, each of these
master categories then renders a list. My problem comes in with the list and
more specifically it's titles, I'd like to to be dynamic in the sense that
I'd like the items in the list to take up the entire width of the browser.
In order for the layout to be dynamic I'm using the width percentage of the
containing movieclip to set the positioning (width = {this.width * .2})

The problem is that even though the list and it's parent movieclip are the
same size they don't seem to be getting the same value. And therefore my
list items aren't lining up with their title.

Each list has a bunch of titles/descriptors for each item in the list then
the actual item renderer, like this:

s:Group id=catsGroup width=100% height=100% 
 view:ListHairlineTileBlack left=11 right=11 top=0 alpha=.05
rotation=180 /
 s:Group left=80 right=74 top=-25 
s:Label  text=Accounts left=0 /
 s:Label  text=Last Update left={this.width * .2} /
s:Label  text=Balance left={this.width * .4}/
 s:Label  text=Available left={this.width * .6} /
s:Label  text=Overdraft Limit left={this.width * .8} /
 /s:Group
 components:ListColumn id=lcActualPlannedColumn
   dataProvider={dummyCategories}
   left=80 right=74 
 components:itemRenderer
fx:Component
 itemrenderers:AccountDetailsRenderer
data={data} textRollOverColour={outerDocument.textRollOverColour} /
 /fx:Component
/components:itemRenderer
 /components:ListColumn
/s:Group

inside the code for the list item:

s:Label id=lblCol1 text={detail.accounts}  alpha=.8
left=0 color=white  /
 s:Label  text={detail.lastUpdate}  left={this.width * .2} /
 s:Label  text={detail.balance} left={this.width * .4} /
s:Label  text={detail.available} left={this.width * .6} /
 s:Label  text={detail.overdraft} left={this.width * .8} /


does anyone have an suggestion on how I can achieve this layout?

thanks

Syllogism


[flexcoders] XML nodes into multiple views.

2011-08-23 Thread aki
Hello everybody.

Well, i wanna make an RSS reader but i want the nodes in the XML in multiple 
views.
I only manage to get info from XML just on 2 views. I need 3 views. 
I want to take all the info from one XML file. There is a link here with an 
image of what i want to do.

http://api.ning.com/files/NGHxxVgVd15G97MPky9vhLau0XAH9NOymxwOTHif62ImaeQ9uJMZ1LhipzGPaHRf0JvwZYUtZHSClYNxDui7HXx4SIRr4GVr/Untitled1.jpg



[flexcoders] BlazeDS having localhost:8080 hardcoded somewhere?

2011-08-23 Thread Venkat M
Hi,

I am a newbie working with BlazeDS. We developed an application that uses java 
backend and BlazeDs to connect to it. I tested several times on my machine and 
it is working just fine. But it is to be run at several location on different 
servers and not on a sigle stand alone or a single fixed server. Its basically 
for a sercver admin kinda stuff.

How do I configure blazeDs to work in this sceneriao. Also if I change the 
localhost in the adressbar to fully-qualified servername in the browser to 
access the application, it loads the swf and screen. but the calls fail. Error: 
Send Fail.

I also tried to put the stuff on a Liniux box and run, no luck. Same error. 

Any ideas comments or suggestion. Greatly appreciated. Thanks!!

Regards,
Venkat