[flexcoders] Unable to do matrix transform to flip an image - it vanishes

2009-07-24 Thread jomorano06
Hi y'all,

I am trying to do a horizontal flip transformation of a png image as follows:

var flipMat:Matrix = img.transform.matrix;  
flipMat.scale(-1, 0);
flipMat.translate(img.width, 0);
img.transform.matrix = flipMat;


The idea is to scale by -1 and then move it to the right by the width. I end up 
losing the image however. If I put a box around the image, it goes blank, if I 
remove the box and just have the image, it is nowhere to be seen. The image is 
an PNG and is loaded at the upper left corner of the enveloping HBox.

Any ideas what is going wrong here?





Re: [flexcoders] Unable to do matrix transform to flip an image - it vanishes

2009-07-24 Thread thomas parquier
Hi,

scale() method takes multipliers as arguments, so 0 as y factor will set
height to 0. You should use scale(-1,1).

thomas
---
http://www.web-attitude.fr/
msn : thomas.parqu...@web-attitude.fr
softphone : sip:webattit...@ekiga.net sip%3awebattit...@ekiga.net
téléphone portable : +33601 822 056


2009/7/24 jomorano06 jo.moran...@gmail.com



 Hi y'all,

 I am trying to do a horizontal flip transformation of a png image as
 follows:

 var flipMat:Matrix = img.transform.matrix;
 flipMat.scale(-1, 0);
 flipMat.translate(img.width, 0);
 img.transform.matrix = flipMat;

 The idea is to scale by -1 and then move it to the right by the width. I
 end up losing the image however. If I put a box around the image, it goes
 blank, if I remove the box and just have the image, it is nowhere to be
 seen. The image is an PNG and is loaded at the upper left corner of the
 enveloping HBox.

 Any ideas what is going wrong here?

  



[flexcoders] What kind of data types should i use?

2009-07-24 Thread yonghan79
Hi all,i need help please..I got fields in mysql table which use decimal and 
datetime..I'm intending to use VO,what kind of data types should i use? I post 
the sql and the php class here in http://www.pastebin.org/3965 .. Thanks a 
lot...




[flexcoders] Re: images inside text htmltext as in IM application

2009-07-24 Thread guy.tomer
Thanks, we'll wait with this feature.

--- In flexcoders@yahoogroups.com, Alex Harui aha...@... wrote:

 In my experience, it doesn't always work right.  If you're not shipping soon, 
 get Flex 4 beta and try using the TLF functionality
 
 Alex Harui
 Flex SDK Developer
 Adobe Systems Inc.http://www.adobe.com/
 Blog: http://blogs.adobe.com/aharui
 
 From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On 
 Behalf Of guy.tomer
 Sent: Wednesday, July 22, 2009 10:21 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] images inside text htmltext as in IM application
 
 
 
 Hi,
 
 We're trying to build something which behaves like an IM application in that 
 icons/emoticons can be embedded inside text.
 
 Using the htmlText property we only manage to get the images aligned to the 
 sides of the text but not as integral part of it.
 
 We did read Adobe documentation but can't figure out whether this is a known 
 limitation of the component, does anyone know?
 
 Thanks
 Guy





[flexcoders] Can not select itemrenderer

2009-07-24 Thread Barry
Hi unable to select the following itemRenderer when used in a list.
Any advice would be much appreciated.

//--
mx:HBox  xmlns:mx=http://www.adobe.com/2006/mxml;  
horizontalScrollPolicy=off
mx:Script
![CDATA[

import com.pbsmedia.kanpeki.domain.calEvent.CalEventType;

[Bindable]
private var calEventType:CalEventType;


override public function set data(value:Object):void
{
if(value != null)
{
calEventType = value as CalEventType;
colorBar.setStyle(backgroundColor, 
calEventType.eventColor);
}
}

]]
/mx:Script
mx:Image source={calEventType.icon}  /
mx:Label text={calEventType.name} selectable=true/
mx:HBox height=100% width=100% horizontalAlign=right paddingRight=20
mx:Box id=colorBar width=50 height=100% 

/mx:Box
//

The renderer is set up on creation complete of the list's parent component as 
follows.

private function cc():void{
if(_itemRenderer != null)
{
lt.itemRenderer = getItemRendererFactory();
}
}
private function getItemRendererFactory():ClassFactory
{
return new ClassFactory(_itemRenderer);
}

I can't for the life of me figure out why the list is not selectable if I use 
this renderer.

thanks,





[flexcoders] Re: Question about a flex component

2009-07-24 Thread veena_kris2003
Do you mind posting an example.   It sounds like this is what I was looking 
for.  I need a horizontal list component with an icon at the right end of the 
component that I can click and scroll to more items.

Thanks,

Veena


--- In flexcoders@yahoogroups.com, Gordon Smith gosm...@... wrote:

 Why not just allow scrolling instead of paging? Scrolling components can 
 scroll through thousands of items quickly.
 
 Suppose there are 100 items and you can only see 10 at a time. So first you 
 see 0-9. When you click the icon you see 10-19. When you click it again you'd 
 see 20-29. So you'd need another icon (previous page instead of next 
 page) to go back to 10-19 and then 0-9.
 
 Gordon Smith
 Adobe Flex SDK Team
 
 From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On 
 Behalf Of veena pandit
 Sent: Thursday, July 23, 2009 10:22 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Question about a flex component
 
 
 Hi,
 
 I am new to Flex.  I am looking for help on designing a custom component that 
 will
 hold a lot of items.  When the items exceed the number that are visible in 
 the ui
 of this horizontal component on the webpage an icon appears, which if you 
 click
 will show a list of the other components you can click again and restore the 
 ui with
 that item.  Hope you understand what I am talking about.  If not please post 
 for clarification.
 
 Thanks in advance,
 
 Veena





[flexcoders] Re: Question about a flex component

2009-07-24 Thread veena_kris2003
Do you mind posting a complete example?  Hope it is not too much to ask.


--- In flexcoders@yahoogroups.com, Gordon Smith gosm...@... wrote:

 Why not just allow scrolling instead of paging? Scrolling components can 
 scroll through thousands of items quickly.
 
 Suppose there are 100 items and you can only see 10 at a time. So first you 
 see 0-9. When you click the icon you see 10-19. When you click it again you'd 
 see 20-29. So you'd need another icon (previous page instead of next 
 page) to go back to 10-19 and then 0-9.
 
 Gordon Smith
 Adobe Flex SDK Team
 
 From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On 
 Behalf Of veena pandit
 Sent: Thursday, July 23, 2009 10:22 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Question about a flex component
 
 
 Hi,
 
 I am new to Flex.  I am looking for help on designing a custom component that 
 will
 hold a lot of items.  When the items exceed the number that are visible in 
 the ui
 of this horizontal component on the webpage an icon appears, which if you 
 click
 will show a list of the other components you can click again and restore the 
 ui with
 that item.  Hope you understand what I am talking about.  If not please post 
 for clarification.
 
 Thanks in advance,
 
 Veena





[flexcoders] Re: QTP automation problem of custom component

2009-07-24 Thread jones_a_h
Andriy,

Thanks for the help...though I was pretty sure I had it configured as you 
described.

So I uninstalled and followed your steps again just be sure...but I get the 
same behavior.

QTP IS able to see the FlexRandomWalk component but it cannot see its children, 
even though numAutomationChildren, etc. are implemented and reporting the 
correct number of children.

I am wondering if I'm building it wrong or if my expectations of this sample 
component are wrong? Should I expect QTP to be able to see the child labels in 
this sample?

Huw

--- In flexcoders@yahoogroups.com, Andriy Panas a.pa...@... wrote:

 Hi Jones,
 
 Make sure, you are using the following setup as described here in comments:
 http://bugs.adobe.com/jira/browse/FLEXENT-770
 
 In order to get IE 7 QTP 9.5 combination working you need to do the following
 1.Download FlexBuilder 3.0.2 9the trial version is on the adobe website)
 2.Uninstall the old QTP-FlexPlugin that you had.
 3.Go to C:\Program Files\Adobe\Flex Builder 3.0.2\Installers default
 path and install the new QTP_plugin_installer.
 4.Restart your machine and it should work.
 
 if you would like automation testing to work at IE7 browser.
 
 --
 Best regards,
 Andriy Panas
 
 
 
 
 2009/7/23 jones_a_h alun.huw.jo...@...:
 
 
  My project uses a custom Calendar component. The component implements
  UIComponent directly and contains children.
  I followed the instructions and wrote a delegate implementation for the
  component and a matching TEAFlex...xml class definition file.
  Am using a simple wrapper index.html file.
 
  The project was updated with the -include_libraries to pull in the
  automation swc's and a -includes to pull in my delegate implementation.
 
  In QTP using Object Spy it sees the FlexCalendar along with the events and
  properties I exposed in the class definition file.
 
  PROBLEM: QTP can not see any of the child items even though the
  numAutomationChildren and getAutomationChildAt are implemented. The value of
  numAutomationChildren on the FlexCalendar instance as reported by Object Spy
  is correct...but they just show up as BrowserPageWinObject.
 
  Any ideas what I'm doing wrong?
 
  The crazy thing is, I downloaded the RandomWalk sample/example and it
  behaves for me in exactly the same way...numAutomationChildren indicates the
  correct number of children but they are not identified correctly by Object
  Spy.
 
  So perhaps I am building it wrong - even though QTP does see the custom
  component fine.
 
  Is there some special significance to the randomWalkClasses src folder or
  could these files have been included at the same level as the RandomWalk.as
  class itself?
 
  Tried with Flex Builder 3 with SDK3.2 and testing under IE7+QTP9.5 and
  IE8+QTP10 - same behavior.
 
  Note: Same swf works fine with RIATest albeit with runtime approach directly
  on the swf, i.e. all child components are identifiable.
 
 





[flexcoders] Re: What kind of data types should i use?

2009-07-24 Thread Tim Hoff

In AS, the Number and Date types should work fine.

-TH

--- In flexcoders@yahoogroups.com, yonghan79 yongha...@... wrote:

 Hi all,i need help please..I got fields in mysql table which use
decimal and datetime..I'm intending to use VO,what kind of data types
should i use? I post the sql and the php class here in
http://www.pastebin.org/3965 .. Thanks a lot...






[flexcoders] Embedding Multiple Images

2009-07-24 Thread n_manjunatha
Hi All,
   I have requirement wherein I have tree and each node of tree has different 
images. Now when the user clicks each of the tree nodes, at the bottom pane of 
my application i need to show the image of the tree node and all the associated 
properties of the node.(very much similar to windows explorer behaviour)

However i cant seem to embedd the multiple images. I need to do it 
dynamically based on click of tree node. Will someone guide me on this

Thanks






RE: [flexcoders] Embedding Multiple Images

2009-07-24 Thread Tracy Spratt
Do you have the image TreeItemRender working correctly?

 

Tracy Spratt,

Lariat Services, development services available

  _  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of n_manjunatha
Sent: Friday, July 24, 2009 1:02 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Embedding Multiple Images

 

  

Hi All,
I have requirement wherein I have tree and each node of tree has different
images. Now when the user clicks each of the tree nodes, at the bottom pane
of my application i need to show the image of the tree node and all the
associated properties of the node.(very much similar to windows explorer
behaviour)

However i cant seem to embedd the multiple images. I need to do it
dynamically based on click of tree node. Will someone guide me on this

Thanks





[flexcoders] FileReference Upload

2009-07-24 Thread [p e r c e p t i c o n]
Hello all,

I'm attempting to upload a file to a remote server then move it to another
remote server for which my web-app(the remote server i upload to initially)
has permissions.

make sense?

If I simply leave the file on the initial server things are fine, meaning i
don't run into the upload bug that so many have experienced...but when the
web-app tries to write to the secondary server i get a permission denied
(500 internal server error)...

here's the weird part...for giggles i hit the upload button again...and this
time it works...???  further...when i try to send parameters using
URLRequest's data property it fails everysingle time on all browsers..

i feel that it's related to the upload cookie/session bug, but it performs
this way on both Internet Explorer as well as Firefox... and i've already
implemented all the suggestions out there and it still fails


can anyone explain what might be happening?

i've scanned the logs..used packet sniffers and firefox add-ons galore, but
nothing jumps out as odd...


btw - i'm using ruby on rails as the backend for this project...

please help...flex is fast becoming a bad word around here with regards to
this type of development...

percy


[flexcoders] Re: FileReference Upload

2009-07-24 Thread [p e r c e p t i c o n]
oh...i should add...

another wierdness is that the file does get created on the second
server...but it's 0 length...

also...this second server is auto-linked so it appears as though it's on the
same file system...

and here's the output from the log file...

IOError (Permission denied):
  app/controllers/upload_controller.rb:25:in `open'
  app/controllers/upload_controller.rb:25:in `saveFileAttachment'
  app/controllers/upload_controller.rb:13:in `attachment'
  gems/gems/actionpack-2.3.2/lib/action_controller/base.rb:1322:in
`perform_action'
  gems/gems/actionpack-2.3.2/lib/action_controller/filters.rb:617:in
`call_filters'
  gems/gems/actionpack-2.3.2/lib/action_controller/filters.rb:610:in
`perform_action_with_filters'
  gems/gems/actionpack-2.3.2/lib/action_controller/benchmarking.rb:68:in
`perform_action_with_benchmark'
  gems/gems/actionpack-2.3.2/lib/action_controller/benchmarking.rb:68:in
`perform_action_with_benchmark'
  gems/gems/actionpack-2.3.2/lib/action_controller/rescue.rb:160:in
`perform_action_with_rescue'
  gems/gems/actionpack-2.3.2/lib/action_controller/flash.rb:141:in
`perform_action_with_flash'
  gems/gems/actionpack-2.3.2/lib/action_controller/base.rb:523:in `process'
  gems/gems/actionpack-2.3.2/lib/action_controller/filters.rb:606:in
`process_with_filters'
  gems/gems/actionpack-2.3.2/lib/action_controller/base.rb:391:in `process'
  gems/gems/actionpack-2.3.2/lib/action_controller/base.rb:386:in `call'

gems/gems/actionpack-2.3.2/lib/action_controller/routing/route_set.rb:433:in
`call'
  gems/gems/actionpack-2.3.2/lib/action_controller/dispatcher.rb:88:in
`dispatch'
  gems/gems/actionpack-2.3.2/lib/action_controller/dispatcher.rb:111:in
`_call'
  gems/gems/actionpack-2.3.2/lib/action_controller/dispatcher.rb:82:in
`initialize'
  gems/gems/activerecord-2.3.2/lib/active_record/query_cache.rb:29:in `call'
  gems/gems/activerecord-2.3.2/lib/active_record/query_cache.rb:29:in `call'

gems/gems/activerecord-2.3.2/lib/active_record/connection_adapters/abstract/query_cache.rb:34:in
`cache'
  gems/gems/activerecord-2.3.2/lib/active_record/query_cache.rb:9:in `cache'
  gems/gems/activerecord-2.3.2/lib/active_record/query_cache.rb:28:in `call'

gems/gems/activerecord-2.3.2/lib/active_record/connection_adapters/abstract/connection_pool.rb:361:in
`call'

gems/gems/actionpack-2.3.2/lib/action_controller/vendor/rack-1.0/rack/head.rb:9:in
`call'

gems/gems/actionpack-2.3.2/lib/action_controller/vendor/rack-1.0/rack/methodoverride.rb:24:in
`call'
  gems/gems/actionpack-2.3.2/lib/action_controller/params_parser.rb:15:in
`call'
  gems/gems/actionpack-2.3.2/lib/action_controller/rewindable_input.rb:25:in
`call'

gems/gems/actionpack-2.3.2/lib/action_controller/session/cookie_store.rb:93:in
`call'
  app/middleware/flash_session_cookie_middleware.rb:14:in `call'
  gems/gems/actionpack-2.3.2/lib/action_controller/failsafe.rb:11:in `call'

gems/gems/actionpack-2.3.2/lib/action_controller/vendor/rack-1.0/rack/lock.rb:11:in
`call'
  gems/gems/actionpack-2.3.2/lib/action_controller/dispatcher.rb:106:in
`call'
  file:lib/jruby-rack-0.9.4.jar!/rack/adapter/rails.rb:35:in `serve_rails'
  file:lib/jruby-rack-0.9.4.jar!/rack/adapter/rails.rb:40:in `call'
  file:lib/jruby-rack-0.9.4.jar!/jruby/rack/rails.rb:144:in `call'
  file:lib/jruby-rack-0.9.4.jar!/rack/handler/servlet.rb:17:in `call'
  :1


On Fri, Jul 24, 2009 at 10:30 AM, [p e r c e p t i c o n] 
percepti...@gmail.com wrote:

 Hello all,

 I'm attempting to upload a file to a remote server then move it to another
 remote server for which my web-app(the remote server i upload to initially)
 has permissions.

 make sense?

 If I simply leave the file on the initial server things are fine, meaning i
 don't run into the upload bug that so many have experienced...but when the
 web-app tries to write to the secondary server i get a permission denied
 (500 internal server error)...

 here's the weird part...for giggles i hit the upload button again...and
 this time it works...???  further...when i try to send parameters using
 URLRequest's data property it fails everysingle time on all browsers..

 i feel that it's related to the upload cookie/session bug, but it performs
 this way on both Internet Explorer as well as Firefox... and i've already
 implemented all the suggestions out there and it still fails


 can anyone explain what might be happening?

 i've scanned the logs..used packet sniffers and firefox add-ons galore, but
 nothing jumps out as odd...


 btw - i'm using ruby on rails as the backend for this project...

 please help...flex is fast becoming a bad word around here with regards to
 this type of development...

 percy



RE: [flexcoders] Re: FileReference Upload

2009-07-24 Thread Tracy Spratt
Wouldn't this be a ruby on rails issue rather than a Flex issue?  Or how are
you trying to .move it to another remote server?

 

Tracy Spratt,

Lariat Services, development services available

  _  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of [p e r c e p t i c o n]
Sent: Friday, July 24, 2009 1:45 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: FileReference Upload

 

  

oh...i should add...

another wierdness is that the file does get created on the second
server...but it's 0 length...

also...this second server is auto-linked so it appears as though it's on the
same file system...

and here's the output from the log file...

IOError (Permission denied):
  app/controllers/upload_controller.rb:25:in `open'
  app/controllers/upload_controller.rb:25:in `saveFileAttachment'
  app/controllers/upload_controller.rb:13:in `attachment'
  gems/gems/actionpack-2.3.2/lib/action_controller/base.rb:1322:in
`perform_action'
  gems/gems/actionpack-2.3.2/lib/action_controller/filters.rb:617:in
`call_filters'
  gems/gems/actionpack-2.3.2/lib/action_controller/filters.rb:610:in
`perform_action_with_filters'
  gems/gems/actionpack-2.3.2/lib/action_controller/benchmarking.rb:68:in
`perform_action_with_benchmark'
  gems/gems/actionpack-2.3.2/lib/action_controller/benchmarking.rb:68:in
`perform_action_with_benchmark'
  gems/gems/actionpack-2.3.2/lib/action_controller/rescue.rb:160:in
`perform_action_with_rescue'
  gems/gems/actionpack-2.3.2/lib/action_controller/flash.rb:141:in
`perform_action_with_flash'
  gems/gems/actionpack-2.3.2/lib/action_controller/base.rb:523:in `process'
  gems/gems/actionpack-2.3.2/lib/action_controller/filters.rb:606:in
`process_with_filters'
  gems/gems/actionpack-2.3.2/lib/action_controller/base.rb:391:in `process'
  gems/gems/actionpack-2.3.2/lib/action_controller/base.rb:386:in `call'
 
gems/gems/actionpack-2.3.2/lib/action_controller/routing/route_set.rb:433:in
`call'
  gems/gems/actionpack-2.3.2/lib/action_controller/dispatcher.rb:88:in
`dispatch'
  gems/gems/actionpack-2.3.2/lib/action_controller/dispatcher.rb:111:in
`_call'
  gems/gems/actionpack-2.3.2/lib/action_controller/dispatcher.rb:82:in
`initialize'
  gems/gems/activerecord-2.3.2/lib/active_record/query_cache.rb:29:in `call'
  gems/gems/activerecord-2.3.2/lib/active_record/query_cache.rb:29:in `call'
 
gems/gems/activerecord-2.3.2/lib/active_record/connection_adapters/abstract/
query_cache.rb:34:in `cache'
  gems/gems/activerecord-2.3.2/lib/active_record/query_cache.rb:9:in `cache'
  gems/gems/activerecord-2.3.2/lib/active_record/query_cache.rb:28:in `call'
 
gems/gems/activerecord-2.3.2/lib/active_record/connection_adapters/abstract/
connection_pool.rb:361:in `call'
 
gems/gems/actionpack-2.3.2/lib/action_controller/vendor/rack-1.0/rack/head.r
b:9:in `call'
 
gems/gems/actionpack-2.3.2/lib/action_controller/vendor/rack-1.0/rack/method
override.rb:24:in `call'
  gems/gems/actionpack-2.3.2/lib/action_controller/params_parser.rb:15:in
`call'
  gems/gems/actionpack-2.3.2/lib/action_controller/rewindable_input.rb:25:in
`call'
 
gems/gems/actionpack-2.3.2/lib/action_controller/session/cookie_store.rb:93:
in `call'
  app/middleware/flash_session_cookie_middleware.rb:14:in `call'
  gems/gems/actionpack-2.3.2/lib/action_controller/failsafe.rb:11:in `call'
 
gems/gems/actionpack-2.3.2/lib/action_controller/vendor/rack-1.0/rack/lock.r
b:11:in `call'
  gems/gems/actionpack-2.3.2/lib/action_controller/dispatcher.rb:106:in
`call'
  file:lib/jruby-rack-0.9.4.jar!/rack/adapter/rails.rb:35:in `serve_rails'
  file:lib/jruby-rack-0.9.4.jar!/rack/adapter/rails.rb:40:in `call'
  file:lib/jruby-rack-0.9.4.jar!/jruby/rack/rails.rb:144:in `call'
  file:lib/jruby-rack-0.9.4.jar!/rack/handler/servlet.rb:17:in `call'
  :1



On Fri, Jul 24, 2009 at 10:30 AM, [p e r c e p t i c o n] percepticon@
mailto:percepti...@gmail.com gmail.com wrote:

Hello all, 

I'm attempting to upload a file to a remote server then move it to another
remote server for which my web-app(the remote server i upload to initially)
has permissions.

make sense?

If I simply leave the file on the initial server things are fine, meaning i
don't run into the upload bug that so many have experienced...but when the
web-app tries to write to the secondary server i get a permission denied
(500 internal server error)...

here's the weird part...for giggles i hit the upload button again...and this
time it works...???  further...when i try to send parameters using
URLRequest's data property it fails everysingle time on all browsers..

i feel that it's related to the upload cookie/session bug, but it performs
this way on both Internet Explorer as well as Firefox... and i've already
implemented all the suggestions out there and it still fails


can anyone explain what might be happening?

i've scanned the logs..used packet sniffers and firefox add-ons galore, but
nothing jumps out as odd...


btw - i'm using ruby on rails as the backend for 

Re: [flexcoders] Problem with Flex tree and arraycollection

2009-07-24 Thread Wesley Acheson
Does UID work like hashcode in java?



On Thu, Jul 23, 2009 at 1:03 AM, Alex Harui aha...@adobe.com wrote:



  If there are duplicate items (items with the same UID) it may not work
 correctly



 Alex Harui

 Flex SDK Developer

 Adobe Systems Inc. http://www.adobe.com/

 Blog: http://blogs.adobe.com/aharui



 *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] *On
 Behalf Of *timgerr
 *Sent:* Wednesday, July 22, 2009 2:03 PM
 *To:* flexcoders@yahoogroups.com
 *Subject:* [flexcoders] Problem with Flex tree and arraycollection





 Hello all,
 I have troubles with my trees when I use an array collection. What happens
 is the highlighting doesn't work, I can highlight some things nodes but not
 others. Anyone have this happen?

 Thanks,
 timgerr



 



Re: [flexcoders] Re: FileReference Upload

2009-07-24 Thread [p e r c e p t i c o n]
Hi Tracy,
Perhaps i mis-spoke

what i mean is..the file does the upload without any problems...but when i
try to write the file to a directory it fails...

here's the scenario:

I have 3 separate servers. the first i run web-applications from.  the
second is simply storage. and the third runs flash media server...
I'm trying to upload files to the storage server so that fms can stream
those files...

the server running the web-applications has a link to the storage server and
that link appears as if it's just another directory on the web-app server's
file system...and since my web-app is running as me..it has full write
permissions...



the reason i believe it to be a flex issue is:

1) even though it's usually with regards to authentication...it appears
there are serious issues with regards to Flex, Firefox and session
cookies...and since my initial problem involved my upload not working in
firefox(any Mozilla based browser) and working in IE i know there is some
correlation there.

2)by sending some variables in the URLRequest data property i can break it
in either browser.

3)if i hit my upload button a second time...it mysteriously *does* write the
file to the storage server...


so..this has to be an issue with flex...

thanks for clarifying..

percy



On Fri, Jul 24, 2009 at 12:18 PM, Tracy Spratt tr...@nts3rd.com wrote:



  Wouldn’t this be a ruby on rails issue rather than a Flex issue?  Or how
 are you trying to “…move it to another remote server”?



 Tracy Spratt,

 Lariat Services, development services available
   --

 *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] *On
 Behalf Of *[p e r c e p t i c o n]
 *Sent:* Friday, July 24, 2009 1:45 PM
 *To:* flexcoders@yahoogroups.com
 *Subject:* [flexcoders] Re: FileReference Upload





 oh...i should add...

 another wierdness is that the file does get created on the second
 server...but it's 0 length...

 also...this second server is auto-linked so it appears as though it's on
 the same file system...

 and here's the output from the log file...

 IOError (Permission denied):
   app/controllers/upload_controller.rb:25:in `open'
   app/controllers/upload_controller.rb:25:in `saveFileAttachment'
   app/controllers/upload_controller.rb:13:in `attachment'
   gems/gems/actionpack-2.3.2/lib/action_controller/base.rb:1322:in
 `perform_action'
   gems/gems/actionpack-2.3.2/lib/action_controller/filters.rb:617:in
 `call_filters'
   gems/gems/actionpack-2.3.2/lib/action_controller/filters.rb:610:in
 `perform_action_with_filters'
   gems/gems/actionpack-2.3.2/lib/action_controller/benchmarking.rb:68:in
 `perform_action_with_benchmark'
   gems/gems/actionpack-2.3.2/lib/action_controller/benchmarking.rb:68:in
 `perform_action_with_benchmark'
   gems/gems/actionpack-2.3.2/lib/action_controller/rescue.rb:160:in
 `perform_action_with_rescue'
   gems/gems/actionpack-2.3.2/lib/action_controller/flash.rb:141:in
 `perform_action_with_flash'
   gems/gems/actionpack-2.3.2/lib/action_controller/base.rb:523:in `process'
   gems/gems/actionpack-2.3.2/lib/action_controller/filters.rb:606:in
 `process_with_filters'
   gems/gems/actionpack-2.3.2/lib/action_controller/base.rb:391:in `process'
   gems/gems/actionpack-2.3.2/lib/action_controller/base.rb:386:in `call'

 gems/gems/actionpack-2.3.2/lib/action_controller/routing/route_set.rb:433:in
 `call'
   gems/gems/actionpack-2.3.2/lib/action_controller/dispatcher.rb:88:in
 `dispatch'
   gems/gems/actionpack-2.3.2/lib/action_controller/dispatcher.rb:111:in
 `_call'
   gems/gems/actionpack-2.3.2/lib/action_controller/dispatcher.rb:82:in
 `initialize'
   gems/gems/activerecord-2.3.2/lib/active_record/query_cache.rb:29:in
 `call'
   gems/gems/activerecord-2.3.2/lib/active_record/query_cache.rb:29:in
 `call'

 gems/gems/activerecord-2.3.2/lib/active_record/connection_adapters/abstract/query_cache.rb:34:in
 `cache'
   gems/gems/activerecord-2.3.2/lib/active_record/query_cache.rb:9:in
 `cache'
   gems/gems/activerecord-2.3.2/lib/active_record/query_cache.rb:28:in
 `call'

 gems/gems/activerecord-2.3.2/lib/active_record/connection_adapters/abstract/connection_pool.rb:361:in
 `call'

 gems/gems/actionpack-2.3.2/lib/action_controller/vendor/rack-1.0/rack/head.rb:9:in
 `call'

 gems/gems/actionpack-2.3.2/lib/action_controller/vendor/rack-1.0/rack/methodoverride.rb:24:in
 `call'
   gems/gems/actionpack-2.3.2/lib/action_controller/params_parser.rb:15:in
 `call'

 gems/gems/actionpack-2.3.2/lib/action_controller/rewindable_input.rb:25:in
 `call'

 gems/gems/actionpack-2.3.2/lib/action_controller/session/cookie_store.rb:93:in
 `call'
   app/middleware/flash_session_cookie_middleware.rb:14:in `call'
   gems/gems/actionpack-2.3.2/lib/action_controller/failsafe.rb:11:in `call'

 gems/gems/actionpack-2.3.2/lib/action_controller/vendor/rack-1.0/rack/lock.rb:11:in
 `call'
   gems/gems/actionpack-2.3.2/lib/action_controller/dispatcher.rb:106:in
 `call'
   

Re: [flexcoders] Flex Architecture Question

2009-07-24 Thread Wesley Acheson
I think you may be a bit confused.  Flex won't talk directly to a Java
server application without something like BlazeDS in the backend (or by
making http requests).  Its a different model to Struts which generates your
view directly, and handles the response from it automatically.  Session
handling can be done in the normal way except you have to realise that any
data that changes on the server has to be sent to the flex app.  Any data
thats on the client has to be sent to the Java app.

For your question about EJB from flex again look at BlazeDS.  Try taking a
look at the sample applications.

Regards,

Wesley Acheson

On Thu, Jul 23, 2009 at 8:23 PM, guess what myworld10...@yahoo.com wrote:


 I am struggling to get the Best Architecture. Can anyone suggest me some
 direction .
 Its a very simple Web App , which needs some data grid and filters on the
 page .


 Front End Flex
 This has to be used : EJB 3.0 , JPA
 Back End - Oracle .

 Having just worked with Struts and Beehive technologies I am used to having
 a Controller
 and My Flex Front End  would talk to a controller .
 Now that if I dont have a Front End Controller(Struts Action) , if do  have
 user input page how can i pass
 values to the  EJB 3.0 from flex .


 Some other Questions

 1. I am not sure how to do basic Session Handling of the App directly on
 the Flex Page .
 2. Load App Related Properties  :
  Here even , if I have an initialize Servlet and Load all app
 properties into my  Stateful Session Bean inside my  Servlet .
How to access the bean directly  from inside Flex and change the
 properties of Stateful Session bean
 3.  User Input Page values : How to pass them back and Forth





 

 --
 Flexcoders Mailing List
 FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 Alternative FAQ location:
 https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
 Search Archives:
 http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups
 Links






Re: [flexcoders] Re: FileReference Upload

2009-07-24 Thread Wesley Acheson
If the file is uploaded and the data is sent.  Then its something on the
application servers side.  It sounds like you require a session to write
something to the webserver and you don't get a session untill the first time
the request hits.

To verify this.  Browse to the second storeage website. This will probably
write a session cookie.  Go back to your flex application and then try the
test thats failing. If it works then its something server side thats
requiring a session.

Regards,

Wesley Acheson

On Fri, Jul 24, 2009 at 9:52 PM, [p e r c e p t i c o n] 
percepti...@gmail.com wrote:



 Hi Tracy,
 Perhaps i mis-spoke

 what i mean is..the file does the upload without any problems...but when i
 try to write the file to a directory it fails...

 here's the scenario:

 I have 3 separate servers. the first i run web-applications from.  the
 second is simply storage. and the third runs flash media server...
 I'm trying to upload files to the storage server so that fms can stream
 those files...

 the server running the web-applications has a link to the storage server
 and that link appears as if it's just another directory on the web-app
 server's file system...and since my web-app is running as me..it has full
 write permissions...



 the reason i believe it to be a flex issue is:

 1) even though it's usually with regards to authentication...it appears
 there are serious issues with regards to Flex, Firefox and session
 cookies...and since my initial problem involved my upload not working in
 firefox(any Mozilla based browser) and working in IE i know there is some
 correlation there.

 2)by sending some variables in the URLRequest data property i can break it
 in either browser.

 3)if i hit my upload button a second time...it mysteriously *does* write
 the file to the storage server...


 so..this has to be an issue with flex...

 thanks for clarifying..

 percy



 On Fri, Jul 24, 2009 at 12:18 PM, Tracy Spratt tr...@nts3rd.com wrote:



  Wouldn’t this be a ruby on rails issue rather than a Flex issue?  Or how
 are you trying to “…move it to another remote server”?



 Tracy Spratt,

 Lariat Services, development services available
   --

 *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] *On
 Behalf Of *[p e r c e p t i c o n]
 *Sent:* Friday, July 24, 2009 1:45 PM
 *To:* flexcoders@yahoogroups.com
 *Subject:* [flexcoders] Re: FileReference Upload





 oh...i should add...

 another wierdness is that the file does get created on the second
 server...but it's 0 length...

 also...this second server is auto-linked so it appears as though it's on
 the same file system...

 and here's the output from the log file...

 IOError (Permission denied):
   app/controllers/upload_controller.rb:25:in `open'
   app/controllers/upload_controller.rb:25:in `saveFileAttachment'
   app/controllers/upload_controller.rb:13:in `attachment'
   gems/gems/actionpack-2.3.2/lib/action_controller/base.rb:1322:in
 `perform_action'
   gems/gems/actionpack-2.3.2/lib/action_controller/filters.rb:617:in
 `call_filters'
   gems/gems/actionpack-2.3.2/lib/action_controller/filters.rb:610:in
 `perform_action_with_filters'
   gems/gems/actionpack-2.3.2/lib/action_controller/benchmarking.rb:68:in
 `perform_action_with_benchmark'
   gems/gems/actionpack-2.3.2/lib/action_controller/benchmarking.rb:68:in
 `perform_action_with_benchmark'
   gems/gems/actionpack-2.3.2/lib/action_controller/rescue.rb:160:in
 `perform_action_with_rescue'
   gems/gems/actionpack-2.3.2/lib/action_controller/flash.rb:141:in
 `perform_action_with_flash'
   gems/gems/actionpack-2.3.2/lib/action_controller/base.rb:523:in
 `process'
   gems/gems/actionpack-2.3.2/lib/action_controller/filters.rb:606:in
 `process_with_filters'
   gems/gems/actionpack-2.3.2/lib/action_controller/base.rb:391:in
 `process'
   gems/gems/actionpack-2.3.2/lib/action_controller/base.rb:386:in `call'

 gems/gems/actionpack-2.3.2/lib/action_controller/routing/route_set.rb:433:in
 `call'
   gems/gems/actionpack-2.3.2/lib/action_controller/dispatcher.rb:88:in
 `dispatch'
   gems/gems/actionpack-2.3.2/lib/action_controller/dispatcher.rb:111:in
 `_call'
   gems/gems/actionpack-2.3.2/lib/action_controller/dispatcher.rb:82:in
 `initialize'
   gems/gems/activerecord-2.3.2/lib/active_record/query_cache.rb:29:in
 `call'
   gems/gems/activerecord-2.3.2/lib/active_record/query_cache.rb:29:in
 `call'

 gems/gems/activerecord-2.3.2/lib/active_record/connection_adapters/abstract/query_cache.rb:34:in
 `cache'
   gems/gems/activerecord-2.3.2/lib/active_record/query_cache.rb:9:in
 `cache'
   gems/gems/activerecord-2.3.2/lib/active_record/query_cache.rb:28:in
 `call'

 gems/gems/activerecord-2.3.2/lib/active_record/connection_adapters/abstract/connection_pool.rb:361:in
 `call'

 gems/gems/actionpack-2.3.2/lib/action_controller/vendor/rack-1.0/rack/head.rb:9:in
 `call'

 

RE: [flexcoders] Re: Question about a flex component

2009-07-24 Thread Gordon Smith
No, I don't have an example and don't have time to create one for you since I'm 
a development engineer, not a support engineer.  But here is what you should 
try, learning as you go:

1. Create an app with an mx:HorizontalList.
2. Make it show data items by assigning its dataProvider. Put in more data 
items that will fit.
3. Turn off its scrollbar by setting horizontalScrollPolicy=off.
4. Create mx:Buttons for Previous and Next, positioned to the left and 
right of the HorizontalList.
5. In their 'click' handlers, put code like 
horizontalList.horizontalScrollPosition += 1. Use -= for the Previous button.

Gordon Smith
Adobe Flex SDK Team

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of veena_kris2003
Sent: Thursday, July 23, 2009 4:42 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Question about a flex component



Do you mind posting an example. It sounds like this is what I was looking for. 
I need a horizontal list component with an icon at the right end of the 
component that I can click and scroll to more items.

Thanks,

Veena

--- In flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com, Gordon 
Smith gosm...@... wrote:

 Why not just allow scrolling instead of paging? Scrolling components can 
 scroll through thousands of items quickly.

 Suppose there are 100 items and you can only see 10 at a time. So first you 
 see 0-9. When you click the icon you see 10-19. When you click it again you'd 
 see 20-29. So you'd need another icon (previous page instead of next 
 page) to go back to 10-19 and then 0-9.

 Gordon Smith
 Adobe Flex SDK Team

 From: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com 
 [mailto:flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com] On 
 Behalf Of veena pandit
 Sent: Thursday, July 23, 2009 10:22 AM
 To: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com
 Subject: [flexcoders] Question about a flex component


 Hi,

 I am new to Flex. I am looking for help on designing a custom component that 
 will
 hold a lot of items. When the items exceed the number that are visible in the 
 ui
 of this horizontal component on the webpage an icon appears, which if you 
 click
 will show a list of the other components you can click again and restore the 
 ui with
 that item. Hope you understand what I am talking about. If not please post 
 for clarification.

 Thanks in advance,

 Veena




Re: [flexcoders] Re: FileReference Upload

2009-07-24 Thread [p e r c e p t i c o n]
Hi Wesley,
an astute assumption and a correct one at that, but here's the thing...i'm
passing my session id (the rails app session key that is) in my url...
or is there another session key that i should be using and if so where can i
find it...

thanks

percy

On Fri, Jul 24, 2009 at 1:04 PM, Wesley Acheson wesley.ache...@gmail.comwrote:



 If the file is uploaded and the data is sent.  Then its something on the
 application servers side.  It sounds like you require a session to write
 something to the webserver and you don't get a session untill the first time
 the request hits.

 To verify this.  Browse to the second storeage website. This will probably
 write a session cookie.  Go back to your flex application and then try the
 test thats failing. If it works then its something server side thats
 requiring a session.

 Regards,

 Wesley Acheson


 On Fri, Jul 24, 2009 at 9:52 PM, [p e r c e p t i c o n] 
 percepti...@gmail.com wrote:



 Hi Tracy,
 Perhaps i mis-spoke

 what i mean is..the file does the upload without any problems...but when i
 try to write the file to a directory it fails...

 here's the scenario:

 I have 3 separate servers. the first i run web-applications from.  the
 second is simply storage. and the third runs flash media server...
 I'm trying to upload files to the storage server so that fms can stream
 those files...

 the server running the web-applications has a link to the storage server
 and that link appears as if it's just another directory on the web-app
 server's file system...and since my web-app is running as me..it has full
 write permissions...



 the reason i believe it to be a flex issue is:

 1) even though it's usually with regards to authentication...it appears
 there are serious issues with regards to Flex, Firefox and session
 cookies...and since my initial problem involved my upload not working in
 firefox(any Mozilla based browser) and working in IE i know there is some
 correlation there.

 2)by sending some variables in the URLRequest data property i can break it
 in either browser.

 3)if i hit my upload button a second time...it mysteriously *does* write
 the file to the storage server...


 so..this has to be an issue with flex...

 thanks for clarifying..

 percy



 On Fri, Jul 24, 2009 at 12:18 PM, Tracy Spratt tr...@nts3rd.com wrote:



  Wouldn’t this be a ruby on rails issue rather than a Flex issue?  Or
 how are you trying to “…move it to another remote server”?



 Tracy Spratt,

 Lariat Services, development services available
   --

 *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] *On
 Behalf Of *[p e r c e p t i c o n]
 *Sent:* Friday, July 24, 2009 1:45 PM
 *To:* flexcoders@yahoogroups.com
 *Subject:* [flexcoders] Re: FileReference Upload





 oh...i should add...

 another wierdness is that the file does get created on the second
 server...but it's 0 length...

 also...this second server is auto-linked so it appears as though it's on
 the same file system...

 and here's the output from the log file...

 IOError (Permission denied):
   app/controllers/upload_controller.rb:25:in `open'
   app/controllers/upload_controller.rb:25:in `saveFileAttachment'
   app/controllers/upload_controller.rb:13:in `attachment'
   gems/gems/actionpack-2.3.2/lib/action_controller/base.rb:1322:in
 `perform_action'
   gems/gems/actionpack-2.3.2/lib/action_controller/filters.rb:617:in
 `call_filters'
   gems/gems/actionpack-2.3.2/lib/action_controller/filters.rb:610:in
 `perform_action_with_filters'
   gems/gems/actionpack-2.3.2/lib/action_controller/benchmarking.rb:68:in
 `perform_action_with_benchmark'
   gems/gems/actionpack-2.3.2/lib/action_controller/benchmarking.rb:68:in
 `perform_action_with_benchmark'
   gems/gems/actionpack-2.3.2/lib/action_controller/rescue.rb:160:in
 `perform_action_with_rescue'
   gems/gems/actionpack-2.3.2/lib/action_controller/flash.rb:141:in
 `perform_action_with_flash'
   gems/gems/actionpack-2.3.2/lib/action_controller/base.rb:523:in
 `process'
   gems/gems/actionpack-2.3.2/lib/action_controller/filters.rb:606:in
 `process_with_filters'
   gems/gems/actionpack-2.3.2/lib/action_controller/base.rb:391:in
 `process'
   gems/gems/actionpack-2.3.2/lib/action_controller/base.rb:386:in `call'

 gems/gems/actionpack-2.3.2/lib/action_controller/routing/route_set.rb:433:in
 `call'
   gems/gems/actionpack-2.3.2/lib/action_controller/dispatcher.rb:88:in
 `dispatch'
   gems/gems/actionpack-2.3.2/lib/action_controller/dispatcher.rb:111:in
 `_call'
   gems/gems/actionpack-2.3.2/lib/action_controller/dispatcher.rb:82:in
 `initialize'
   gems/gems/activerecord-2.3.2/lib/active_record/query_cache.rb:29:in
 `call'
   gems/gems/activerecord-2.3.2/lib/active_record/query_cache.rb:29:in
 `call'

 gems/gems/activerecord-2.3.2/lib/active_record/connection_adapters/abstract/query_cache.rb:34:in
 `cache'
   gems/gems/activerecord-2.3.2/lib/active_record/query_cache.rb:9:in
 `cache'
   

Re: [flexcoders] Re: FileReference Upload

2009-07-24 Thread Wesley Acheson
HI Percy,

Having never used rails I can't tell you how it works.  What I can tell you
is that usually (well over 95%) of the time passing a session key from one
server to another is useless as the server won't have access to the
information in the other servers session.  This means that you have just
passed a meaningless string. (note the remaining 5% of the time is when
there are distributed sessions pointing to a common database but thats not
going to be the case on different domains)

You need your rails app to take uploads without any session or you need to
generate a session(say by requesting an image or something else) off the
application before hand.

I wouldn't have imagined that it should fail like that but I don't know
about rails.  It just appeared the symptoms seems suggest that this must be
the problem.

I suggest asking a rails mailing list in this case :(

You may get lucky and find people here who know about it.

Oh as a suggestion why not have server 1 push its content to server 2?  That
should be easy enough to find information on.

Regards,

Wesley

On Fri, Jul 24, 2009 at 10:20 PM, [p e r c e p t i c o n] 
percepti...@gmail.com wrote:



 Hi Wesley,
 an astute assumption and a correct one at that, but here's the thing...i'm
 passing my session id (the rails app session key that is) in my url...
 or is there another session key that i should be using and if so where can
 i find it...

 thanks

 percy


 On Fri, Jul 24, 2009 at 1:04 PM, Wesley Acheson 
 wesley.ache...@gmail.comwrote:



 If the file is uploaded and the data is sent.  Then its something on the
 application servers side.  It sounds like you require a session to write
 something to the webserver and you don't get a session untill the first time
 the request hits.

 To verify this.  Browse to the second storeage website. This will probably
 write a session cookie.  Go back to your flex application and then try the
 test thats failing. If it works then its something server side thats
 requiring a session.

 Regards,

 Wesley Acheson


 On Fri, Jul 24, 2009 at 9:52 PM, [p e r c e p t i c o n] 
 percepti...@gmail.com wrote:



 Hi Tracy,
 Perhaps i mis-spoke

 what i mean is..the file does the upload without any problems...but when
 i try to write the file to a directory it fails...

 here's the scenario:

 I have 3 separate servers. the first i run web-applications from.  the
 second is simply storage. and the third runs flash media server...
 I'm trying to upload files to the storage server so that fms can stream
 those files...

 the server running the web-applications has a link to the storage server
 and that link appears as if it's just another directory on the web-app
 server's file system...and since my web-app is running as me..it has full
 write permissions...



 the reason i believe it to be a flex issue is:

 1) even though it's usually with regards to authentication...it appears
 there are serious issues with regards to Flex, Firefox and session
 cookies...and since my initial problem involved my upload not working in
 firefox(any Mozilla based browser) and working in IE i know there is some
 correlation there.

 2)by sending some variables in the URLRequest data property i can break
 it in either browser.

 3)if i hit my upload button a second time...it mysteriously *does* write
 the file to the storage server...


 so..this has to be an issue with flex...

 thanks for clarifying..

 percy



 On Fri, Jul 24, 2009 at 12:18 PM, Tracy Spratt tr...@nts3rd.com wrote:



  Wouldn’t this be a ruby on rails issue rather than a Flex issue?  Or
 how are you trying to “…move it to another remote server”?



 Tracy Spratt,

 Lariat Services, development services available
   --

 *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com]
 *On Behalf Of *[p e r c e p t i c o n]
 *Sent:* Friday, July 24, 2009 1:45 PM
 *To:* flexcoders@yahoogroups.com
 *Subject:* [flexcoders] Re: FileReference Upload





 oh...i should add...

 another wierdness is that the file does get created on the second
 server...but it's 0 length...

 also...this second server is auto-linked so it appears as though it's on
 the same file system...

 and here's the output from the log file...

 IOError (Permission denied):
   app/controllers/upload_controller.rb:25:in `open'
   app/controllers/upload_controller.rb:25:in `saveFileAttachment'
   app/controllers/upload_controller.rb:13:in `attachment'
   gems/gems/actionpack-2.3.2/lib/action_controller/base.rb:1322:in
 `perform_action'
   gems/gems/actionpack-2.3.2/lib/action_controller/filters.rb:617:in
 `call_filters'
   gems/gems/actionpack-2.3.2/lib/action_controller/filters.rb:610:in
 `perform_action_with_filters'
   gems/gems/actionpack-2.3.2/lib/action_controller/benchmarking.rb:68:in
 `perform_action_with_benchmark'
   gems/gems/actionpack-2.3.2/lib/action_controller/benchmarking.rb:68:in
 `perform_action_with_benchmark'
   

Re: [flexcoders] Re: FileReference Upload

2009-07-24 Thread [p e r c e p t i c o n]
Hi Wesley...
makes total sense...i'll try requesting something first...great suggestion!

percy

On Fri, Jul 24, 2009 at 1:53 PM, Wesley Acheson wesley.ache...@gmail.comwrote:



 HI Percy,

 Having never used rails I can't tell you how it works.  What I can tell you
 is that usually (well over 95%) of the time passing a session key from one
 server to another is useless as the server won't have access to the
 information in the other servers session.  This means that you have just
 passed a meaningless string. (note the remaining 5% of the time is when
 there are distributed sessions pointing to a common database but thats not
 going to be the case on different domains)

 You need your rails app to take uploads without any session or you need to
 generate a session(say by requesting an image or something else) off the
 application before hand.

 I wouldn't have imagined that it should fail like that but I don't know
 about rails.  It just appeared the symptoms seems suggest that this must be
 the problem.

 I suggest asking a rails mailing list in this case :(

 You may get lucky and find people here who know about it.

 Oh as a suggestion why not have server 1 push its content to server 2?
 That should be easy enough to find information on.

 Regards,

 Wesley


 On Fri, Jul 24, 2009 at 10:20 PM, [p e r c e p t i c o n] 
 percepti...@gmail.com wrote:



 Hi Wesley,
 an astute assumption and a correct one at that, but here's the thing...i'm
 passing my session id (the rails app session key that is) in my url...
 or is there another session key that i should be using and if so where can
 i find it...

 thanks

 percy


 On Fri, Jul 24, 2009 at 1:04 PM, Wesley Acheson wesley.ache...@gmail.com
  wrote:



 If the file is uploaded and the data is sent.  Then its something on the
 application servers side.  It sounds like you require a session to write
 something to the webserver and you don't get a session untill the first time
 the request hits.

 To verify this.  Browse to the second storeage website. This will
 probably write a session cookie.  Go back to your flex application and then
 try the test thats failing. If it works then its something server side thats
 requiring a session.

 Regards,

 Wesley Acheson


 On Fri, Jul 24, 2009 at 9:52 PM, [p e r c e p t i c o n] 
 percepti...@gmail.com wrote:



 Hi Tracy,
 Perhaps i mis-spoke

 what i mean is..the file does the upload without any problems...but when
 i try to write the file to a directory it fails...

 here's the scenario:

 I have 3 separate servers. the first i run web-applications from.  the
 second is simply storage. and the third runs flash media server...
 I'm trying to upload files to the storage server so that fms can stream
 those files...

 the server running the web-applications has a link to the storage server
 and that link appears as if it's just another directory on the web-app
 server's file system...and since my web-app is running as me..it has full
 write permissions...



 the reason i believe it to be a flex issue is:

 1) even though it's usually with regards to authentication...it appears
 there are serious issues with regards to Flex, Firefox and session
 cookies...and since my initial problem involved my upload not working in
 firefox(any Mozilla based browser) and working in IE i know there is some
 correlation there.

 2)by sending some variables in the URLRequest data property i can break
 it in either browser.

 3)if i hit my upload button a second time...it mysteriously *does* write
 the file to the storage server...


 so..this has to be an issue with flex...

 thanks for clarifying..

 percy



 On Fri, Jul 24, 2009 at 12:18 PM, Tracy Spratt tr...@nts3rd.comwrote:



  Wouldn’t this be a ruby on rails issue rather than a Flex issue?  Or
 how are you trying to “…move it to another remote server”?



 Tracy Spratt,

 Lariat Services, development services available
   --

 *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com]
 *On Behalf Of *[p e r c e p t i c o n]
 *Sent:* Friday, July 24, 2009 1:45 PM
 *To:* flexcoders@yahoogroups.com
 *Subject:* [flexcoders] Re: FileReference Upload





 oh...i should add...

 another wierdness is that the file does get created on the second
 server...but it's 0 length...

 also...this second server is auto-linked so it appears as though it's
 on the same file system...

 and here's the output from the log file...

 IOError (Permission denied):
   app/controllers/upload_controller.rb:25:in `open'
   app/controllers/upload_controller.rb:25:in `saveFileAttachment'
   app/controllers/upload_controller.rb:13:in `attachment'
   gems/gems/actionpack-2.3.2/lib/action_controller/base.rb:1322:in
 `perform_action'
   gems/gems/actionpack-2.3.2/lib/action_controller/filters.rb:617:in
 `call_filters'
   gems/gems/actionpack-2.3.2/lib/action_controller/filters.rb:610:in
 `perform_action_with_filters'

 

Re: [flexcoders] Flex Architecture Question

2009-07-24 Thread Jeffry Houser


I don't think your post is completely accurate.  Flex can connect to 
any backend including Java using SOAP Webservices or REST Webservices 
which do not require BlazeDS or anything similar. 


Wesley Acheson wrote:
 

I think you may be a bit confused.  Flex won't talk directly to a Java 
server application without something like BlazeDS in the backend (or 
by making http requests).  Its a different model to Struts which 
generates your view directly, and handles the response from it 
automatically.  Session handling can be done in the normal way except 
you have to realise that any data that changes on the server has to be 
sent to the flex app.  Any data thats on the client has to be sent to 
the Java app.


For your question about EJB from flex again look at BlazeDS.  Try 
taking a look at the sample applications.


Regards,

Wesley Acheson

On Thu, Jul 23, 2009 at 8:23 PM, guess what myworld10...@yahoo.com 
mailto:myworld10...@yahoo.com wrote:



I am struggling to get the Best Architecture. Can anyone suggest
me some direction .
Its a very simple Web App , which needs some data grid and filters
on the page .


Front End Flex
This has to be used : EJB 3.0 , JPA
Back End - Oracle .

Having just worked with Struts and Beehive technologies I am used
to having a Controller
and My Flex Front End  would talk to a controller .
Now that if I dont have a Front End Controller(Struts Action) , if
do  have user input page how can i pass
values to the  EJB 3.0 from flex .


Some other Questions

1. I am not sure how to do basic Session Handling of the App
directly on the Flex Page .
2. Load App Related Properties  :
 Here even , if I have an initialize Servlet and Load all app 
properties into my  Stateful Session Bean inside my  Servlet .

   How to access the bean directly  from inside Flex and
change the properties of Stateful Session bean
3.  User Input Page values : How to pass them back and Forth







--
Flexcoders Mailing List
FAQ:
http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Alternative FAQ location:

https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847

https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo
http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo!
Groups Links


   (Yahoo! ID required)

   mailto:flexcoders-fullfeatu...@yahoogroups.com
mailto:flexcoders-fullfeatu...@yahoogroups.com







--
Jeffry Houser, Technical Entrepreneur
Adobe Community Expert: http://tinyurl.com/684b5h
http://www.twitter.com/reboog711  | Phone: 203-379-0773
--
Easy to use Interface Components for Flex Developers
http://www.flextras.com?c=104
--
http://www.theflexshow.com
http://www.jeffryhouser.com
--
Part of the DotComIt Brain Trust



Re: [flexcoders] Flex Architecture Question

2009-07-24 Thread Wesley Acheson
Yes I know.  I guess I got the impression from the origional post he was
trying to directly communicate from java. I also thought rest and SOAP went
over http?



On Fri, Jul 24, 2009 at 11:02 PM, Jeffry Houser j...@dot-com-it.com wrote:




  I don't think your post is completely accurate.  Flex can connect to any
 backend including Java using SOAP Webservices or REST Webservices which do
 not require BlazeDS or anything similar.

 Wesley Acheson wrote:



 I think you may be a bit confused.  Flex won't talk directly to a Java
 server application without something like BlazeDS in the backend (or by
 making http requests).  Its a different model to Struts which generates your
 view directly, and handles the response from it automatically.  Session
 handling can be done in the normal way except you have to realise that any
 data that changes on the server has to be sent to the flex app.  Any data
 thats on the client has to be sent to the Java app.

 For your question about EJB from flex again look at BlazeDS.  Try taking a
 look at the sample applications.

 Regards,

 Wesley Acheson

  On Thu, Jul 23, 2009 at 8:23 PM, guess what myworld10...@yahoo.comwrote:


 I am struggling to get the Best Architecture. Can anyone suggest me some
 direction .
 Its a very simple Web App , which needs some data grid and filters on the
 page .


 Front End Flex
 This has to be used : EJB 3.0 , JPA
 Back End - Oracle .

 Having just worked with Struts and Beehive technologies I am used to
 having a Controller
 and My Flex Front End  would talk to a controller .
 Now that if I dont have a Front End Controller(Struts Action) , if do
 have user input page how can i pass
 values to the  EJB 3.0 from flex .


 Some other Questions

 1. I am not sure how to do basic Session Handling of the App directly on
 the Flex Page .
 2. Load App Related Properties  :
  Here even , if I have an initialize Servlet and Load all app
 properties into my  Stateful Session Bean inside my  Servlet .
How to access the bean directly  from inside Flex and change the
 properties of Stateful Session bean
 3.  User Input Page values : How to pass them back and Forth





 

 --
 Flexcoders Mailing List
 FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 Alternative FAQ location:
 https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
 Search Archives:
 http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups
 Links





 --
 Jeffry Houser, Technical Entrepreneur
 Adobe Community Expert: 
 http://tinyurl.com/684b5hhttp://www.twitter.com/reboog711  | Phone: 
 203-379-0773
 --
 Easy to use Interface Components for Flex 
 Developershttp://www.flextras.com?c=104
 --http://www.theflexshow.comhttp://www.jeffryhouser.com
 --
 Part of the DotComIt Brain Trust



 



Re: [flexcoders] Flex Architecture Question

2009-07-24 Thread Jeffry Houser


So does AMF; it's just transferring binary data instead of ASCII data.  
The reason you need a server side piece is to translate that binary data 
into something usable by the application server. 

I will admit, I responded to your e-mail without reading the original 
question; though.  So, if I was out of line I apologize. 


Wesley Acheson wrote:
 

Yes I know.  I guess I got the impression from the origional post he 
was trying to directly communicate from java. I also thought rest and 
SOAP went over http?




On Fri, Jul 24, 2009 at 11:02 PM, Jeffry Houser j...@dot-com-it.com 
mailto:j...@dot-com-it.com wrote:





 I don't think your post is completely accurate.  Flex can connect
to any backend including Java using SOAP Webservices or REST
Webservices which do not require BlazeDS or anything similar. 


Wesley Acheson wrote:
 


I think you may be a bit confused.  Flex won't talk directly to a
Java server application without something like BlazeDS in the
backend (or by making http requests).  Its a different model to
Struts which generates your view directly, and handles the
response from it automatically.  Session handling can be done in
the normal way except you have to realise that any data that
changes on the server has to be sent to the flex app.  Any data
thats on the client has to be sent to the Java app.

For your question about EJB from flex again look at BlazeDS.  Try
taking a look at the sample applications.

Regards,

Wesley Acheson

On Thu, Jul 23, 2009 at 8:23 PM, guess what
myworld10...@yahoo.com mailto:myworld10...@yahoo.com wrote:


I am struggling to get the Best Architecture. Can anyone
suggest me some direction .
Its a very simple Web App , which needs some data grid and
filters on the page .


Front End Flex
This has to be used : EJB 3.0 , JPA
Back End - Oracle .

Having just worked with Struts and Beehive technologies I am
used to having a Controller
and My Flex Front End  would talk to a controller .
Now that if I dont have a Front End Controller(Struts Action)
, if do  have user input page how can i pass
values to the  EJB 3.0 from flex .


Some other Questions

1. I am not sure how to do basic Session Handling of the App
directly on the Flex Page .
2. Load App Related Properties  :
 Here even , if I have an initialize Servlet and Load all
app  properties into my  Stateful Session Bean inside my 
Servlet .

   How to access the bean directly  from inside Flex and
change the properties of Stateful Session bean
3.  User Input Page values : How to pass them back and Forth







--
Flexcoders Mailing List
FAQ:
http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Alternative FAQ location:

https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847

https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo
http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo!
Groups Links


   (Yahoo! ID required)

   mailto:flexcoders-fullfeatu...@yahoogroups.com
mailto:flexcoders-fullfeatu...@yahoogroups.com






-- 
Jeffry Houser, Technical Entrepreneur

Adobe Community Expert: http://tinyurl.com/684b5h 
http://tinyurl.com/684b5h
http://www.twitter.com/reboog711 http://www.twitter.com/reboog711  | 
Phone: 203-379-0773
--
Easy to use Interface Components for Flex Developers
http://www.flextras.com?c=104 http://www.flextras.com?c=104
--
http://www.theflexshow.com http://www.theflexshow.com
http://www.jeffryhouser.com http://www.jeffryhouser.com
--
Part of the DotComIt Brain Trust







--
Jeffry Houser, Technical Entrepreneur
Adobe Community Expert: http://tinyurl.com/684b5h
http://www.twitter.com/reboog711  | Phone: 203-379-0773
--
Easy to use Interface Components for Flex Developers
http://www.flextras.com?c=104
--
http://www.theflexshow.com
http://www.jeffryhouser.com
--
Part of the DotComIt Brain Trust



Re: [flexcoders] Re: What kind of data types should i use?

2009-07-24 Thread Yesaya handoyo
Thanks Tim..

On 7/24/09, Tim Hoff timh...@aol.com wrote:

 In AS, the Number and Date types should work fine.

 -TH

 --- In flexcoders@yahoogroups.com, yonghan79 yongha...@... wrote:

 Hi all,i need help please..I got fields in mysql table which use
 decimal and datetime..I'm intending to use VO,what kind of data types
 should i use? I post the sql and the php class here in
 http://www.pastebin.org/3965 .. Thanks a lot...







[flexcoders] Sideways text

2009-07-24 Thread danapayne
Can Flex 3.3 do sideways text (text direction at 90 degrees) or do I have to 
wait for 4.0?

Thanks,
Dana



[flexcoders] Re: Question about a flex component

2009-07-24 Thread veena_kris2003
When I have an HBox component and I dynamically add items, items get added, but 
when I have a HorizontalList and I dynamically add items,
nothing gets added.  The item I am trying to add is a class that extends 
mx.core.UIComponent.

Thanks,

Veena


--- In flexcoders@yahoogroups.com, Gordon Smith gosm...@... wrote:

 No, I don't have an example and don't have time to create one for you since 
 I'm a development engineer, not a support engineer.  But here is what you 
 should try, learning as you go:
 
 1. Create an app with an mx:HorizontalList.
 2. Make it show data items by assigning its dataProvider. Put in more data 
 items that will fit.
 3. Turn off its scrollbar by setting horizontalScrollPolicy=off.
 4. Create mx:Buttons for Previous and Next, positioned to the left and 
 right of the HorizontalList.
 5. In their 'click' handlers, put code like 
 horizontalList.horizontalScrollPosition += 1. Use -= for the Previous button.
 
 Gordon Smith
 Adobe Flex SDK Team
 
 From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On 
 Behalf Of veena_kris2003
 Sent: Thursday, July 23, 2009 4:42 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: Question about a flex component
 
 
 
 Do you mind posting an example. It sounds like this is what I was looking 
 for. I need a horizontal list component with an icon at the right end of the 
 component that I can click and scroll to more items.
 
 Thanks,
 
 Veena
 
 --- In flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com, 
 Gordon Smith gosmith@ wrote:
 
  Why not just allow scrolling instead of paging? Scrolling components can 
  scroll through thousands of items quickly.
 
  Suppose there are 100 items and you can only see 10 at a time. So first you 
  see 0-9. When you click the icon you see 10-19. When you click it again 
  you'd see 20-29. So you'd need another icon (previous page instead of 
  next page) to go back to 10-19 and then 0-9.
 
  Gordon Smith
  Adobe Flex SDK Team
 
  From: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com 
  [mailto:flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com] On 
  Behalf Of veena pandit
  Sent: Thursday, July 23, 2009 10:22 AM
  To: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com
  Subject: [flexcoders] Question about a flex component
 
 
  Hi,
 
  I am new to Flex. I am looking for help on designing a custom component 
  that will
  hold a lot of items. When the items exceed the number that are visible in 
  the ui
  of this horizontal component on the webpage an icon appears, which if you 
  click
  will show a list of the other components you can click again and restore 
  the ui with
  that item. Hope you understand what I am talking about. If not please post 
  for clarification.
 
  Thanks in advance,
 
  Veena
 





[flexcoders] How to Export data from an AdvancedDataGrid to excel

2009-07-24 Thread vibha_crsce
Hi,

I just want to Export data in my Advanced  data grid to excel.
Is there any solution to do so directly in flex that is independent of the 
server side request and version of FlashPlayer.

Thannks 
Vibha



[flexcoders] Re: Question about a flex component

2009-07-24 Thread veena_kris2003
Please help.  The items are being added dynamically to the mx:HorizontalList 
id=test bottom=0 width=100% 
backgroundColor=0x00 horizontalScrollPolicy=on 
verticalScrollPolicy=off/  I debugged the code and the
items are being added, but I can't see them in the UI.
If I change mx:HorizontalList to mx:HBox I can see the items
in the UI.  What am I doing wrong?


--- In flexcoders@yahoogroups.com, Gordon Smith gosm...@... wrote:

 No, I don't have an example and don't have time to create one for you since 
 I'm a development engineer, not a support engineer.  But here is what you 
 should try, learning as you go:
 
 1. Create an app with an mx:HorizontalList.
 2. Make it show data items by assigning its dataProvider. Put in more data 
 items that will fit.
 3. Turn off its scrollbar by setting horizontalScrollPolicy=off.
 4. Create mx:Buttons for Previous and Next, positioned to the left and 
 right of the HorizontalList.
 5. In their 'click' handlers, put code like 
 horizontalList.horizontalScrollPosition += 1. Use -= for the Previous button.
 
 Gordon Smith
 Adobe Flex SDK Team
 
 From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On 
 Behalf Of veena_kris2003
 Sent: Thursday, July 23, 2009 4:42 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: Question about a flex component
 
 
 
 Do you mind posting an example. It sounds like this is what I was looking 
 for. I need a horizontal list component with an icon at the right end of the 
 component that I can click and scroll to more items.
 
 Thanks,
 
 Veena
 
 --- In flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com, 
 Gordon Smith gosmith@ wrote:
 
  Why not just allow scrolling instead of paging? Scrolling components can 
  scroll through thousands of items quickly.
 
  Suppose there are 100 items and you can only see 10 at a time. So first you 
  see 0-9. When you click the icon you see 10-19. When you click it again 
  you'd see 20-29. So you'd need another icon (previous page instead of 
  next page) to go back to 10-19 and then 0-9.
 
  Gordon Smith
  Adobe Flex SDK Team
 
  From: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com 
  [mailto:flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com] On 
  Behalf Of veena pandit
  Sent: Thursday, July 23, 2009 10:22 AM
  To: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com
  Subject: [flexcoders] Question about a flex component
 
 
  Hi,
 
  I am new to Flex. I am looking for help on designing a custom component 
  that will
  hold a lot of items. When the items exceed the number that are visible in 
  the ui
  of this horizontal component on the webpage an icon appears, which if you 
  click
  will show a list of the other components you can click again and restore 
  the ui with
  that item. Hope you understand what I am talking about. If not please post 
  for clarification.
 
  Thanks in advance,
 
  Veena
 





RE: [flexcoders] Re: Question about a flex component

2009-07-24 Thread Tracy Spratt
You must use the collection API to add the items in order for the necessary
events to be dispatched to update the UI.

 

What is the data type of you dataProvider?

 

Tracy Spratt,

Lariat Services, development services available

  _  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of veena_kris2003
Sent: Friday, July 24, 2009 6:19 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Question about a flex component

 

  

Please help. The items are being added dynamically to the mx:HorizontalList
id=test bottom=0 width=100% 
backgroundColor=0x00 horizontalScrollPolicy=on 
verticalScrollPolicy=off/ I debugged the code and the
items are being added, but I can't see them in the UI.
If I change mx:HorizontalList to mx:HBox I can see the items
in the UI. What am I doing wrong?

--- In flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com ups.com,
Gordon Smith gosm...@... wrote:

 No, I don't have an example and don't have time to create one for you
since I'm a development engineer, not a support engineer. But here is what
you should try, learning as you go:
 
 1. Create an app with an mx:HorizontalList.
 2. Make it show data items by assigning its dataProvider. Put in more data
items that will fit.
 3. Turn off its scrollbar by setting horizontalScrollPolicy=off.
 4. Create mx:Buttons for Previous and Next, positioned to the left
and right of the HorizontalList.
 5. In their 'click' handlers, put code like
horizontalList.horizontalScrollPosition += 1. Use -= for the Previous
button.
 
 Gordon Smith
 Adobe Flex SDK Team
 
 From: flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com ups.com
[mailto:flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com ups.com]
On Behalf Of veena_kris2003
 Sent: Thursday, July 23, 2009 4:42 PM
 To: flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com ups.com
 Subject: [flexcoders] Re: Question about a flex component
 
 
 
 Do you mind posting an example. It sounds like this is what I was looking
for. I need a horizontal list component with an icon at the right end of the
component that I can click and scroll to more items.
 
 Thanks,
 
 Veena
 
 --- In flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com
ups.commailto:flexcoders%40yahoogroups.com, Gordon Smith gosmith@ wrote:
 
  Why not just allow scrolling instead of paging? Scrolling components can
scroll through thousands of items quickly.
 
  Suppose there are 100 items and you can only see 10 at a time. So first
you see 0-9. When you click the icon you see 10-19. When you click it again
you'd see 20-29. So you'd need another icon (previous page instead of
next page) to go back to 10-19 and then 0-9.
 
  Gordon Smith
  Adobe Flex SDK Team
 
  From: flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com
ups.commailto:flexcoders%40yahoogroups.com [mailto:flexcod...@yahoogro
mailto:flexcoders%40yahoogroups.com
ups.commailto:flexcoders%40yahoogroups.com] On Behalf Of veena pandit
  Sent: Thursday, July 23, 2009 10:22 AM
  To: flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com
ups.commailto:flexcoders%40yahoogroups.com
  Subject: [flexcoders] Question about a flex component
 
 
  Hi,
 
  I am new to Flex. I am looking for help on designing a custom component
that will
  hold a lot of items. When the items exceed the number that are visible
in the ui
  of this horizontal component on the webpage an icon appears, which if
you click
  will show a list of the other components you can click again and restore
the ui with
  that item. Hope you understand what I am talking about. If not please
post for clarification.
 
  Thanks in advance,
 
  Veena
 






RE: [flexcoders] Sideways text

2009-07-24 Thread Gordon Smith
If you use an embedded font I think you can rotate Flex 3 text components.

But if you want to use a device font, you would have to develop custom 
components that use FTE or TLF instead of TextField to render their text, and 
you'd have to require Flash Player 10. Looking at how Flex 4 implements its new 
text components would probably be useful if you're going to do this.

Gordon Smith
Adobe Flex SDK Team

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of danapayne
Sent: Friday, July 24, 2009 8:10 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Sideways text



Can Flex 3.3 do sideways text (text direction at 90 degrees) or do I have to 
wait for 4.0?

Thanks,
Dana



RE: [flexcoders] Re: Question about a flex component

2009-07-24 Thread Gordon Smith
You add child components which are UIComponents to a container like HBox.

But you add data items to a list-based control like HorizontalList. These data 
items then get displayed by item renderers, which are children which get 
automatically created to display data items. The children are managed by the 
list, not by you... you manage the data, not the renderers.

By default, data items are expected to have a 'label' property to display, 
unless you set the labelField or labelFunction of the list component. They can 
be plain Objects, or  instances of data classes, or anything else, but  
typically they aren't visual components.

Here's an example of adding two data items to a list using ActionScript.

myList.dataProvider = new ArrayCollection();
var item:Object;
item = { label: One, data: 1 };
myList.dataProvider.addItem(item);
item = { label: Two, data: 2 };
myList.dataProvider.addItem(item);

Gordon Smith
Adobe Flex SDK Team

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of veena_kris2003
Sent: Friday, July 24, 2009 3:19 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Question about a flex component



Please help. The items are being added dynamically to the mx:HorizontalList 
id=test bottom=0 width=100%
backgroundColor=0x00 horizontalScrollPolicy=on
verticalScrollPolicy=off/ I debugged the code and the
items are being added, but I can't see them in the UI.
If I change mx:HorizontalList to mx:HBox I can see the items
in the UI. What am I doing wrong?

--- In flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com, Gordon 
Smith gosm...@... wrote:

 No, I don't have an example and don't have time to create one for you since 
 I'm a development engineer, not a support engineer. But here is what you 
 should try, learning as you go:

 1. Create an app with an mx:HorizontalList.
 2. Make it show data items by assigning its dataProvider. Put in more data 
 items that will fit.
 3. Turn off its scrollbar by setting horizontalScrollPolicy=off.
 4. Create mx:Buttons for Previous and Next, positioned to the left and 
 right of the HorizontalList.
 5. In their 'click' handlers, put code like 
 horizontalList.horizontalScrollPosition += 1. Use -= for the Previous button.

 Gordon Smith
 Adobe Flex SDK Team

 From: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com 
 [mailto:flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com] On 
 Behalf Of veena_kris2003
 Sent: Thursday, July 23, 2009 4:42 PM
 To: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com
 Subject: [flexcoders] Re: Question about a flex component



 Do you mind posting an example. It sounds like this is what I was looking 
 for. I need a horizontal list component with an icon at the right end of the 
 component that I can click and scroll to more items.

 Thanks,

 Veena

 --- In 
 flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.commailto:flexcoders%40yahoogroups.com,
  Gordon Smith gosmith@ wrote:
 
  Why not just allow scrolling instead of paging? Scrolling components can 
  scroll through thousands of items quickly.
 
  Suppose there are 100 items and you can only see 10 at a time. So first you 
  see 0-9. When you click the icon you see 10-19. When you click it again 
  you'd see 20-29. So you'd need another icon (previous page instead of 
  next page) to go back to 10-19 and then 0-9.
 
  Gordon Smith
  Adobe Flex SDK Team
 
  From: 
  flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.commailto:flexcoders%40yahoogroups.com
   
  [mailto:flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.commailto:flexcoders%40yahoogroups.com]
   On Behalf Of veena pandit
  Sent: Thursday, July 23, 2009 10:22 AM
  To: 
  flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.commailto:flexcoders%40yahoogroups.com
  Subject: [flexcoders] Question about a flex component
 
 
  Hi,
 
  I am new to Flex. I am looking for help on designing a custom component 
  that will
  hold a lot of items. When the items exceed the number that are visible in 
  the ui
  of this horizontal component on the webpage an icon appears, which if you 
  click
  will show a list of the other components you can click again and restore 
  the ui with
  that item. Hope you understand what I am talking about. If not please post 
  for clarification.
 
  Thanks in advance,
 
  Veena