[flexcoders] focus in part of editable combox string?

2007-11-19 Thread luoxuanhuayelin
Hi:
I am looking for a editable combox like this image by using 
actionscript.
img 
src='http://img.photo.163.com/aHHUNXTWT0oCr2XiOhY8RQ==/80670728325275832
0.jpg'  /

For the type of 'TextInput', using the default function 
TextInput.setSelection((3,5), but for 'editable combox' ,I do not know.
Thanks in advance!



[flexcoders] focus in part of editable combox string?

2007-11-19 Thread luoxuanhuayelin
Hi:
I am looking for a editable combox like this image by using 
actionscript.

'http://img.photo.163.com/aHHUNXTWT0oCr2XiOhY8RQ==/806707283252758320.jp
g' 

For the type of 'TextInput', using the default function 
TextInput.setSelection((3,5), but for 'editable combox' ,I do not know.
Thanks in advance!



Re: [flexcoders] Block entire application while in transaction

2007-11-19 Thread Paul Andrews

- Original Message - 
From: danielvlopes [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Monday, November 19, 2007 3:13 AM
Subject: [flexcoders] Block entire application while in transaction


 Hello, i had application with stacks, buttons, inputs and etc... when
 user click in insert button it start upload and database insert, but
 while those operations happening user can click in other parts of
 application, exist some way to set enabled to false for entire
 application while transactions ocour?

Lets hope that transaction doesn't fail or take too long.

The simplest way to do this is perhaps to use a modal dialog box and use 
that to hold some kind of progress indicator.

Paul

 Thanks. 



RE: [flexcoders] Re: Animated overSkin (how to use more than one frame of a symbol)

2007-11-19 Thread Mark Ingram
Thanks for the links, I had seen the programmatic approach before but
was hoping to go with just an artwork approach.

 

I'll see how the designer gets on with this!

 

Thanks,

 

Mark

 

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of scalenine
Sent: 16 November 2007 17:06
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Animated overSkin (how to use more than one
frame of a symbol)

 

Hi Mark,

Using the Flex Component Kit and Flash CS3 you can do what you're
looking for. I just wrote a tutorial about using the FCK to create a
stateful skin with transitions. You can read it here :
http://tinyurl.com/yoxqcq http://tinyurl.com/yoxqcq  .

The tutorial describes how to make a basic transition, but you could
easily elaborate on it to do what you're looking for.

Hope that helps.

Juan

scalenine.com : degrafa.com

--- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
, Mark Ingram [EMAIL PROTECTED] wrote:

 Hi, does anyone know if it's possible to have an animated overSkin for
a
 button? Our designer has created an overSkin which just extends the
 normal skin, making it feel like it grows when the mouse is over it.
 However, when I embed it in our flex application, it constantly flicks
 between 1 frame of the over skin and then back to the upSkin. How can
I
 get flex to play nicely with the over state? (i.e. play the full
symbol
 instead of just use 1 frame).
 
 
 
 Thanks,
 
 
 
 Mark


 



[flexcoders] How to load image with non-ascii chars in path?

2007-11-19 Thread Stephen Roy J. Tang
Hi,

I tried using an mx:Image source=[path]\image.png / where [path]
contains non-ASCII characters. In some cases it works, (when using
Chinese chars), in others it doesn't (when using Japanese chars). I'm
not sure if there's a bug in Flex, or there's something missing in my
env settings or such.

Any suggestions would be greatly appreciated.

Thanks,

Roy



[flexcoders] Re: Block entire application while in transaction

2007-11-19 Thread Stephen Allison
danielvlopes writes: 

 exist some way to set enabled to false for entire
 application while transactions ocour?

Application.application.enabled = false;
should do the trick.  Set it back to true when the transaction is done. 




[flexcoders] Can Module be compiled by web-tier compiler?

2007-11-19 Thread Dan
Hi,

Does anyone know if it is possible to compile the dependency of modules 
by web-tier compiler? 
i.e. the link report option can be set in command line and also can use 
ant build to achieve it, but is it possible to set some arguments in 
the web-tier configuration file so that even in web-tier copmilation it 
can be done? 

Daniel



RE: [flexcoders] Re: Animated overSkin (how to use more than one frame of a symbol)

2007-11-19 Thread Jim Hayes
Have a look at Tinks blog article as well.
 
http://www.tink.ws/blog/seemless-animated-skins-in-flex/
 
Gingerbread men skins are the next big thing, apparently :-)
 
 
 
-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Mark Ingram
Sent: 19 November 2007 09:30
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Re: Animated overSkin (how to use more than
one frame of a symbol)
 
Thanks for the links, I had seen the programmatic approach before but
was hoping to go with just an artwork approach.
 
I'll see how the designer gets on with this!
 
Thanks,
 
Mark
 
 


From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of scalenine
Sent: 16 November 2007 17:06
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Animated overSkin (how to use more than one
frame of a symbol)
 
Hi Mark,

Using the Flex Component Kit and Flash CS3 you can do what you're
looking for. I just wrote a tutorial about using the FCK to create a
stateful skin with transitions. You can read it here :
http://tinyurl.com/yoxqcq http://tinyurl.com/yoxqcq  .

The tutorial describes how to make a basic transition, but you could
easily elaborate on it to do what you're looking for.

Hope that helps.

Juan

scalenine.com : degrafa.com

--- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
, Mark Ingram [EMAIL PROTECTED] wrote:

 Hi, does anyone know if it's possible to have an animated overSkin for
a
 button? Our designer has created an overSkin which just extends the
 normal skin, making it feel like it grows when the mouse is over it.
 However, when I embed it in our flex application, it constantly flicks
 between 1 frame of the over skin and then back to the upSkin. How can
I
 get flex to play nicely with the over state? (i.e. play the full
symbol
 instead of just use 1 frame).
 
 
 
 Thanks,
 
 
 
 Mark

 

__
This communication is from Primal Pictures Ltd., a company registered in 
England and Wales with registration No. 02622298 and registered office: 4th 
Floor, Tennyson House, 159-165 Great Portland Street, London, W1W 5PA, UK. VAT 
registration No. 648874577.

This e-mail is confidential and may be privileged. It may be read, copied and 
used only by the intended recipient. If you have received it in error, please 
contact the sender immediately by return e-mail or by telephoning +44(0)20 7637 
1010. Please then delete the e-mail and do not disclose its contents to any 
person.
This email has been scanned for Primal Pictures by the MessageLabs Email 
Security System.
__

[flexcoders] Re: advancedDataGrid drag over column calculating wrong index

2007-11-19 Thread sreeni_r
If you drop the item with the mouse over the top half of the first 
item it becomes the first item. 

If you move the mouse over the column header it becomes the last item.

It is the same behavior even with simple List.

I don't know whether it is a very expected behavior or not !

--- In flexcoders@yahoogroups.com, Seth Caldwell [EMAIL PROTECTED] wrote:

 Sorry, column header*
 
  
 
 From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
 Behalf Of Seth Caldwell
 Sent: Friday, November 16, 2007 11:31 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] advancedDataGrid drag over column calculating 
wrong
 index
 
  
 
 If I drag an element over a column of a datagrid, I would expect 
the index
 to be the first in the list, or not accept the drag. The default 
behavior at
 the moment is if you are dragging and releasing over the column, 
you are
 'dropping' at the last index in the list. is this expected behavior 
for
 anyone?
 
  
 
 Seth





[flexcoders] Re: advancedDataGrid drag over column calculating wrong index

2007-11-19 Thread sreeni_r
If you drop the item with the mouse over the top half of the first 
item it becomes the first item. 

If you move the mouse over the column header it becomes the last item.

It is the same behavior even with simple List.

I don't know whether it is a very expected behavior or not !

--- In flexcoders@yahoogroups.com, Seth Caldwell [EMAIL PROTECTED] wrote:

 Sorry, column header*
 
  
 
 From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
 Behalf Of Seth Caldwell
 Sent: Friday, November 16, 2007 11:31 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] advancedDataGrid drag over column calculating 
wrong
 index
 
  
 
 If I drag an element over a column of a datagrid, I would expect 
the index
 to be the first in the list, or not accept the drag. The default 
behavior at
 the moment is if you are dragging and releasing over the column, 
you are
 'dropping' at the last index in the list. is this expected behavior 
for
 anyone?
 
  
 
 Seth





[flexcoders] Grid Editing

2007-11-19 Thread yourName
I have a flex grid with  editable=true  but the problem is i can only edit 
data in the grid but can not add entire 
new row to the grid how can i do this  . empty cells r always un-editbale how 
can make thses cells editable as well
plz help me..


Re: [flexcoders] Grid Editing

2007-11-19 Thread Scott Melby
The way I typically do this is to have a simple form (asking for only 
required data) above or below the grid.  When the user adds data in this 
form I add the new row and then clear the form.  If you don't want the 
form visible at all times use an mx:state to hide it until the user 
gestures that they want to add data... then hide it again after the data 
is added. 

Note: If you want even simpler just put an add button near the form, or 
context menu item, etc. then add the new row with dummy values when clicked.


hth
Scott

Scott Melby
Founder, Fast Lane Software LLC
http://www.fastlanesw.com



yourName wrote:


I have a flex grid with  editable=true  but the problem is i can 
only edit data in the grid but can not add entire
new row to the grid how can i do this  . empty cells r always 
un-editbale how can make thses cells editable as well

plz help me..
 
 


Re: [flexcoders] cairngorm design question, need suggestions

2007-11-19 Thread yiğit boyar
hi Ralf;
in our case, we auto-generate the commanders; so we wouldn't need to test
these parts.
since calling a commander from another one without dispatching a new event
does not violate the micro-architecture rules;
we will choose it for efficiency;
thanks a lot.

On Nov 16, 2007 2:09 PM, Ralf Bokelberg [EMAIL PROTECTED] wrote:

   Both is possible.

 However, in our practice we try to test as much as possible.
 The call to a cairngorm command is rather difficult to test,
 whereas you can easily test if a ciarngorm event is dispatched
 by adding a listener to the CairngormEventDispatcher.

 Cheers
 Ralf.


 On Nov 16, 2007 12:34 PM, Yigit Boyar [EMAIL PROTECTED]yboyar%40gmail.com
 wrote:
 
 
 
 
 
 
  hi all;
  i work in a project which includes the implementation of a RIA
  application in which the user will generate an XML based on an XSD
  defined language using dragdrops and etc. (user never sees the xml).
 
  at first, we developed a code generator using AIR that takes the XSD and
  generates vo's, commaders, events,model  controller. so we just hand
  coded the views. and the demo was very successful.
 
  now the second phase of the project came and there are huge differences
  in the XSD, so we had to handcode additional things into commanders,
  which violated the auto-generation approach and resulted in some bugs 
  inefficiency. then we decided to upgrade the code generator to create
  more clever commanders and more specific events.
 
  we have an important debate here for which we need suggestions, so i'm
  presenting you our question.
 
  when an event is being handled, there may be need to do some more things
  which is done by another commander and has a specific event. in such a
  situation,
  -- should the commander call the other commander just creating the event
  and sending it to the other's execute method
  or
  --should the commander create the event and just dispatch.
 
  the second is the normal way for the cairngorm specs but the first is
  much more efficient.
  so which one do you suggest?
 
  thnks.
 
  p.s. commanders are specific to VO's a a commander just edit's it's VO's
  data on the model.
 

 --
 Ralf Bokelberg [EMAIL PROTECTED] ralf.bokelberg%40gmail.com
 Flex  Flash Consultant based in Cologne/Germany
  



[flexcoders] How to code/configure remoting so endpoint URLs not hardcoded in .swf ?

2007-11-19 Thread lawriegallardo
Hi,

I am developing an application which needs to have a separate
installation for each client (i.e. Client1 will access the app via
www.mycomp.com/myapp/client1, Client2 will access the app via
www.mycomp.com/myapp/client2, etc). 

However, as I understand things from the documentation for
mx:RemoteObject and LCDS, the mxmlc compiler uses context-root
property (and other properties) in conjunction with the
remoting-config.xml and services-config.xml to build your swf file,
and basically hard-codes the context root into this file. This means
that I would have to recompile the app for each client - obviously far
from ideal.

Having googled extensively, I have amended my flex code as follows to
try and get around the above issue:

code
  ...

  public function init():void {
var amfChannel:AMFChannel
= new AMFChannel(my-amf, getContextRootUrl()
+ /messagebroker/amf);
amfChannel.pollingEnabled = false;
var myChannelSet:ChannelSet = new ChannelSet();
myChannelSet.addChannel(amfChannel);
myService.channelSet = myChannelSet;
  }

  private function getContextRootUrl():String {
var i:int = Application.application.url.lastIndexOf(/);
var contextRootUrl:String
= Application.application.url.substring(0, i);
return contextRootUrl;
  }

  ...

  mx:RemoteObject 
id=myService
destination=MyService
endpoint={getEndpointUrl()}/messagebroker/amf
showBusyCursor=true
result=event.token.resultHandler( event )
fault=event.token.faultHandler( event )
requestTimeout=30/

  ...
/code

I have left my services-config.xml and remoting-config.xml files
unchanged:

services-config.xml:
code
  ...  

  channel-definition id=my-amf
class=mx.messaging.channels.AMFChannel
endpoint
url=http://{server.name}:{server.port}/{context.root}/messagebroker/amf;
class=flex.messaging.endpoints.AMFEndpoint/
properties
  polling-enabledfalse/polling-enabled
/properties
  /channel-definition

  ...
/code

remoting-config.xml:
code
  ?xml version=1.0 encoding=UTF-8?
  service id=remoting-service 
class=flex.messaging.services.RemotingService 
messageTypes=flex.messaging.messages.RemotingMessage

adapters
  adapter-definition id=java-object
class=flex.messaging.services.remoting.adapters.JavaAdapter
default=true/
/adapters

default-channels
  channel ref=my-amf/
/default-channels

destination id=MyService
  properties
sourcegreetingService/source
factoryspring/factory
  /properties
/destination

...  

  /service
/code

But when I run this my application just sits there with the message
transferring data from localhost in the browser statusbar, and I
just get the following in the server log:

code
[Flex] FlexSession created with id 'BA4C42E6D831EB63DE0D1434F2FE18F8'
for an Http-based client connection.
[Flex] Channel endpoint my-amf received request.
[Flex] Deserializing AMF/HTTP request
Version: 3
  (Message #0 targetURI=null, responseURI=/1)
(Array #0)
  [0] = (Typed Object #0 'flex.messaging.messages.CommandMessage')
operation = 5
correlationId = 
timeToLive = 0
messageId = 2E92B241-911C-415A-43CB-572AE0D5C7C9
timestamp = 0
headers = (Object #1)
  DSId = nil
body = (Object #2)
clientId = null
destination = 

[Flex] Serializing AMF/HTTP response
Version: 3
  (Message #0 targetURI=/1/onResult, responseURI=)
(Typed Object #0 'flex.messaging.messages.AcknowledgeMessage')
  timestamp = 1.195463337201E12
  headers = (Object #1)
DSId = 8ACFB8D7-F70F-8E40-4804-8C86D86721EE
  body = null
  correlationId = 2E92B241-911C-415A-43CB-572AE0D5C7C9
  messageId = 8ACFB8F0-611A-3D28-E76F-46B3AAAFAB6E
  timeToLive = 0.0
  clientId = 8ACFB8F0-610B-CE71-3071-807D68A228AF
  destination = null
/code

flashlog.txt:
code
11/19/2007 12:53:04.184 [INFO] mx.messaging.Producer
'E5FB0ACC-815D-67DA-FA20-57F8143815C0' producer set destination to
'MyService'.
authenticationWorkflowState: Dispatching Apply Permissions
11/19/2007 12:53:05.546 [INFO] mx.messaging.Producer
'E5FB0ACC-815D-67DA-FA20-57F8143815C0' producer sending message
'DB177CC3-9C87-B12D-2673-57F81980DBE7'
11/19/2007 12:53:05.556 [INFO] mx.messaging.Channel 'my-amf' channel
endpoint set to http://localhost:8080/myapp/messagebroker/amf
11/19/2007 12:53:05.556 [INFO] mx.messaging.Channel 'my-amf' channel
settings are:
channel id=my-amf type=mx.messaging.channels.AMFChannel
  endpoint
uri=http://{server.name}:{server.port}/myapp/messagebroker/amf/
  properties
polling-enabledfalse/polling-enabled
  /properties
/channel
11/19/2007 12:53:05.606 [INFO] mx.messaging.Producer
'E5FB0ACC-815D-67DA-FA20-57F8143815C0' producer sending message
'59988D12-B086-73BA-EFC8-57F819C635D4'
started
11/19/2007 12:53:05.616 [INFO] mx.messaging.Channel 'my-amf' channel
endpoint set to 

[flexcoders] how to keep a tree open.

2007-11-19 Thread Shivani
Hi,can anyone plz let me know how to keep the tree before its mxml's
creation completes.

Thanks in advance
Shivani



[flexcoders] how to keep a tree open.

2007-11-19 Thread Shivani
Hi,can anyone plz let me know how to keep the tree before its mxml's
creation completes.

Thanks in advance
Shivani



Re: [flexcoders] Re: depth problems, some help needed please

2007-11-19 Thread Aaron Miller
Sorry, just a clarification.

I forgot that 'parent' is an actual public property. I just meant the parent
of 'topControl', which would most likely be 'this' when called inside the
updateDisplayList function (unless of course it's inside a nested
component).

Best Regards,
...aaron

On 11/18/07, Aaron Miller [EMAIL PROTECTED] wrote:

 Whenever I want something to always be on top (or any specific position)
 that may not always be, I override the updateDisplayList function to add a
 check for:

 if( parent.getChildInex( topControl )  parent.numChildren - 1 ) {
 parent.setChildIndex( topControl, parent.numChildren-1 )
 }


 This will always keep it on top whenever the display list is updated (such
 as on resize). You can call the invalidateDisplayList() function to force
 this check if you need to.

 Best Regards,
 ...aaron

 On 11/18/07, Mark [EMAIL PROTECTED] wrote:
 
Thanks...
  I tried that and it worked but it also swapped position as well. Now it
  didn't swap position
  until you resize the window, but it did it. So it went from Label,
  Flash, Label to Label,
  Label, Flash. Any thoughts as to why that would happen?
 
  Thanks
 
  --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Tim
  Hoff [EMAIL PROTECTED] wrote:
  
  
   Hi Mark,
  
   To change the depth, you can use the swapChildren() method:
  
   public function swapChildren(child1:DisplayObject
   http://127.0.0.1:60064/help/topic/com.adobe.flexbuilder.help/langref/fl\
 
  http://127.0.0.1:60064/help/topic/com.adobe.flexbuilder.help/langref/fl
  ash/display/DisplayObject.html , child2:DisplayObject
   http://127.0.0.1:60064/help/topic/com.adobe.flexbuilder.help/langref/fl\
 
  http://127.0.0.1:60064/help/topic/com.adobe.flexbuilder.help/langref/fl
  ash/display/DisplayObject.html ):void
   http://127.0.0.1:60064/help/topic/com.adobe.flexbuilder.help/langref/sp\
 
  http://127.0.0.1:60064/help/topic/com.adobe.flexbuilder.help/langref/sp
  ecialTypes.html#void
  
   -TH
   __
  
   Tim Hoff
   Cynergy Systems | Technical Lead
   3603 5th Ave. Suite A, San Diego, CA 92103
   http://www.cynergysystems.com  http://www.cynergysystems.com
  
   --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com,
  Mark pusateri02@ wrote:
   
I have a Flash CS3 component that pops up a small text box on roll-
overs. Those Flash text pop-ups come up behind Flex Labels. Is there
a way to control the depth of each component? The layout of these
components are:
   
HBox
Label Left -- Flash Comp. -- Label Right
   
Any ideas? Can I control this in Flash or Flex?
   
Thanks,
Mark
   
  
 
   
 



 --
 Aaron Miller
 Chief Technology Officer
 Splash Labs, LLC.
 [EMAIL PROTECTED]  |  206-328-5485
 http://www.splashlabs.com




-- 
Aaron Miller
Chief Technology Officer
Splash Labs, LLC.
[EMAIL PROTECTED]  |  206-328-5485
http://www.splashlabs.com


Re: [flexcoders] Re: depth problems, some help needed please

2007-11-19 Thread Aaron Miller
Whenever I want something to always be on top (or any specific position)
that may not always be, I override the updateDisplayList function to add a
check for:

if( parent.getChildInex( topControl )  parent.numChildren - 1 ) {
parent.setChildIndex( topControl, parent.numChildren-1 )
}


This will always keep it on top whenever the display list is updated (such
as on resize). You can call the invalidateDisplayList() function to force
this check if you need to.

Best Regards,
...aaron

On 11/18/07, Mark [EMAIL PROTECTED] wrote:

   Thanks...
 I tried that and it worked but it also swapped position as well. Now it
 didn't swap position
 until you resize the window, but it did it. So it went from Label, Flash,
 Label to Label,
 Label, Flash. Any thoughts as to why that would happen?

 Thanks

 --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Tim
 Hoff [EMAIL PROTECTED] wrote:
 
 
  Hi Mark,
 
  To change the depth, you can use the swapChildren() method:
 
  public function swapChildren(child1:DisplayObject
  
 http://127.0.0.1:60064/help/topic/com.adobe.flexbuilder.help/langref/fl\
  http://127.0.0.1:60064/help/topic/com.adobe.flexbuilder.help/langref/fl
 ash/display/DisplayObject.html , child2:DisplayObject
  
 http://127.0.0.1:60064/help/topic/com.adobe.flexbuilder.help/langref/fl\
  http://127.0.0.1:60064/help/topic/com.adobe.flexbuilder.help/langref/fl
 ash/display/DisplayObject.html ):void
  
 http://127.0.0.1:60064/help/topic/com.adobe.flexbuilder.help/langref/sp\
  http://127.0.0.1:60064/help/topic/com.adobe.flexbuilder.help/langref/sp
 ecialTypes.html#void
 
  -TH
  __
 
  Tim Hoff
  Cynergy Systems | Technical Lead
  3603 5th Ave. Suite A, San Diego, CA 92103
  http://www.cynergysystems.com http://www.cynergysystems.com
 
  --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Mark
 pusateri02@ wrote:
  
   I have a Flash CS3 component that pops up a small text box on roll-
   overs. Those Flash text pop-ups come up behind Flex Labels. Is there
   a way to control the depth of each component? The layout of these
   components are:
  
   HBox
   Label Left -- Flash Comp. -- Label Right
  
   Any ideas? Can I control this in Flash or Flex?
  
   Thanks,
   Mark
  
 

  




-- 
Aaron Miller
Chief Technology Officer
Splash Labs, LLC.
[EMAIL PROTECTED]  |  206-328-5485
http://www.splashlabs.com


Re: [flexcoders] Subclassing TileList breaks my code!?

2007-11-19 Thread Aaron Miller
Change it to treeline:itemRenderer.

Best Regards,
...aaron

On 11/17/07, quiet.mountain [EMAIL PROTECTED] wrote:

   Hi all,

 This TileList was working fine:

 mx:TileList id=allYarnsTL
 dataProvider={allYarnsAC}
 mx:itemRenderer
 mx:Component
 mx:Canvas
 mx:Image id=yarnImage
 source={data.image}/
 /mx:Canvas
 /mx:Component
 /mx:itemRenderer
 /mx:TileList

 I then needed to override some TileList behaviours. So I started to
 subclass TileList...

 package com.treelinerugs
 {
 import mx.controls.TileList;

 public class TestTileList extends TileList
 {
 public function TestTileList()
 {
 super();
 }

 }
 }

 and then created an instance as before...

 treeline:TestTileList id=allYarnsTL
 dataProvider={allYarnsAC}
 mx:itemRenderer
 mx:Component
 mx:Canvas
 mx:Image id=yarnImage
 source={data.image}/
 /mx:Canvas
 /mx:Component
 /mx:itemRenderer
 /treeline:TestTileList

 But now I get a compile-time error Could not resolve
 mx:itemRenderer to a component implementation.

 I can fix this by creating a separate component and creating the
 instance like this instead:

 treeline:TestTileList id=allYarnsTL
 dataProvider={allYarnsAC}
 itemRenderer=com.treelinerugs.TLItemRenderer

 Why can't I define the itemRenderer in-line if I subclass TileList?

 Thanks, Rich

  




-- 
Aaron Miller
Chief Technology Officer
Splash Labs, LLC.
[EMAIL PROTECTED]  |  206-328-5485
http://www.splashlabs.com


Re: [flexcoders] className question

2007-11-19 Thread Aaron Miller
The className property is used to reference a chunk of code (like the name
of your mxml file would do). You would have to follow all the same namespace
rules as you would if you were to create an Actionscript or mxml
class/component. Unless you have multiple data fields in your item editor
which need to be referenced by typing it to a specific class, it would
probably be better to use the DataGrid.itemEditorDataField property instead.

Best Regards,
...aaron

On 11/18/07, candysmate [EMAIL PROTECTED] wrote:

   I have an itemRenderer declared as:

 mx:itemRenderer
 mx:Component className =rendererStyle
 mx:Text
 /mx:Text
 /mx:Component
 /mx:itemRenderer

 If I use this again elsewhere I get an error 'class name specified
 more then once in document'.

 But I thought the whole idea behind class names was to be able to
 'group' components for styling etc ...?

  




-- 
Aaron Miller
Chief Technology Officer
Splash Labs, LLC.
[EMAIL PROTECTED]  |  206-328-5485
http://www.splashlabs.com


Re: [flexcoders] How can I make the preloader wait until my runtime styles have been applied?

2007-11-19 Thread Aaron Miller
From the Adobe livedocs

The Preloader class is used by the SystemManager to monitor the download
and initialization status of a Flex application. It is also responsible for
downloading the runtime shared libraries (RSLs). 

By design, the preloader is supposed to run prior to loading any shared
libraries. You might want to try pulling out the styles you need for the
preloader and apply them at compile time. If you prefer to load them at
runtime, you can use the StyleManager.loadStyleDeclarations function in your
preloader and wait to start it until the StyleManager finishes loading
(function returns an IEventDispatcher where you can listen for
StyleEvent.COMPLETE). Although, I'm not sure how well the later will work
before the application finishes initializing.

Best Regards,
...aaron


On 11/16/07, chatopica [EMAIL PROTECTED] wrote:

   I have an application that depends on runtimes styles, but there's a
 second before the styles
 are loaded and applied that the application is displayed with the default
 styles. How can I
 prevent that from happening?

  




-- 
Aaron Miller
Chief Technology Officer
Splash Labs, LLC.
[EMAIL PROTECTED]  |  206-328-5485
http://www.splashlabs.com


Re: [flexcoders] Re: AMFPHP 1.9 security problem

2007-11-19 Thread Aaron Miller
You can create the login/logout methods in a parent class and have all your
child classes extend it. However, what I did was create one Auth class which
gets called for login/logout requests and returns an authentication token to
the client. This can be as simple as a session ID, or be a more complex
object with a user id, user hash (generated at login), available
classes/methods, etc. The idea is to pass this authentication token as a
parameter to each request, and validate it before serving any data.

Perhaps there is an easier way to do what you want, but this has worked for
me pretty well.

Best Regards,
...aaron

On 11/18/07, danielvlopes [EMAIL PROTECTED] wrote:

   Now i understando how use beforefilter, but my question is:

 I had a little big app in flex using amfphp, i had 11 classes inside
 services folder, but the problem is if any user create a flex app and
 point the path to my gateway (using absolute path) they can access all
 my methods.

 I need create login, logout methods in all my classes? Exist some way
 to create those authencation methods in one place and use this for all
 amfphp requests?

 Thanks for attention and thanks for the link.

 --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com,
 danielvlopes [EMAIL PROTECTED]
 wrote:
 
  Thanks Muzak, i will try use this code with session in php. ;-)
 
 
  --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com,
 Muzak p.ginneberge@ wrote:
  
   See if this helps:
  
 

 http://www.adobe.com/cfusion/communityengine/index.cfm?event=showdetailsproductId=2postId=3201
  
   regards,
   Muzak
  
   - Original Message -
   From: danielvlopes danielvlopes@
   To: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com
   Sent: Friday, November 16, 2007 5:21 AM
   Subject: [flexcoders] Re: AMFPHP 1.9 security problem
  
  
   I found this topic in sephirot forum,
   http://www.sephiroth.it/phpBB/showthread.php?t=7966, they said use
   authenticate class in beforefilter amfphp function, i try look on this
   class in my amfphp folder but i don't understand how use... everything
   i found about authenticate in amfphp is for amfphp 1.2 and i using
   1.9beta 2 .
  
   Anyone can help?
  
 

  




-- 
Aaron Miller
Chief Technology Officer
Splash Labs, LLC.
[EMAIL PROTECTED]  |  206-328-5485
http://www.splashlabs.com


Re: [flexcoders] Resizing and default size of custom components....

2007-11-19 Thread Aaron Miller
Does it not work to make the itemRenderer width/height 100%? This is will
make each item take up all it's available space equally divided between each
item. If you do not want the items equally divided, you can set them to
different percentages, or override the updateDisplayList function within the
itemRenderer and calculate it's size based on the size of the parent. Hope
this helps.

Best Regards,
...aaron

On 11/17/07, DreamCode [EMAIL PROTECTED] wrote:

   Hi all!

 I have a weird problem about sizing of tilelists/items and before I pull
 out the last remaining straws on my head I decided to see if any experts had
 knowledge to share.

 I have number of TileLists on screen, the actual number of lists and their
 size is something the user can customize, but typically it will be 1-4 lists
 sized as % on both width/height.

 In the tilelist I want to show data with a specific item renderer
 but which item renderer is also something that the user can customize.

 So typically I will have a TileList of unknown size in pixels. Lets say
 that I want to show a list with 3 rows vertically and the amount of columns
 is based on the amount of items in the data provider.

 Is it possible to have the item renderer resize to the available
 size.ie. around 1/3 of the tilelist height if we take gaps into
 consideration.

 Below is what i'm trying to do:

 *var* paneTemp:TileList = *new* TileList();
 paneTemp.styleName = *basePane*;
 *var* paneStyle:CSSStyleDeclaration = * new* CSSStyleDeclaration;
 paneStyle = xmlToStyleDeclaration(XMLList(panesXML.constraints),paneTemp);
 // This is where I find the properties for size/position
 paneTemp.styleDeclaration = paneStyle;

 *var* item1:ContentItem = *new* ContentItem();
 item1.contentImage = *img/folder1.jpg*;
 item1.contentTitle = *Item 1*;
 contentList0.addItem(item1);

 *var* item2:ContentItem = *new* ContentItem();
 item2.contentImage = * img/folder2.jpg*;
 item2.contentTitle = *Item 2*;
 contentList0.addItem(item2);

 paneTemp.itemRenderer=*new* ClassFactory(ContentRenderer1);
 paneTemp.dataProvider = contentList0;
 paneContainer.addChild(paneTemp);

 The item renderer only have a max width/height defined and then I override
 the measure function to have the default size set to something different
 than whatever component the item renderer is based on. So in the example
 above the measure function of the item renderer set default size to 195w x
 225h and that size is also the maxW/H for the item renderer.

 I would like it so that they have the default size if there's room,
 otherwise scale down to whatever size can fit in the list. I do not want the
 items to get bigger than the default/max size.

 The above example shows the items at the correct size if rowCount is not
 set for the TileList, but the TileList itself is larger than the size it was
 originally set to. If the TileList is empty the size is correct.

 The problem is best illustrated visually, so I have made an image of 3
 scenarios. The image can be found at http://www.bimlab.net/allan/scaling.jpg


 Thanks in advance!

 Allan

  




-- 
Aaron Miller
Chief Technology Officer
Splash Labs, LLC.
[EMAIL PROTECTED]  |  206-328-5485
http://www.splashlabs.com


Re: [flexcoders] Block entire application while in transaction

2007-11-19 Thread Aaron Miller
You could create a status window component that extends TitleWindow. Pop
it up and give it a status message when it starts the upload, then remove it
when finished. You could even request a user response on error. Search the
docs for 'TitleWindow' for more info.

There are other ways to do this, but I found this to be the most user
firendly for my own use.

Best Regards,
...aaron

On 11/18/07, danielvlopes [EMAIL PROTECTED] wrote:

   Hello, i had application with stacks, buttons, inputs and etc... when
 user click in insert button it start upload and database insert, but
 while those operations happening user can click in other parts of
 application, exist some way to set enabled to false for entire
 application while transactions ocour?

 Thanks.

  




-- 
Aaron Miller
Chief Technology Officer
Splash Labs, LLC.
[EMAIL PROTECTED]  |  206-328-5485
http://www.splashlabs.com


Re: [flexcoders] Re: Programmatic control over a (H|V)Box gap width?

2007-11-19 Thread Aaron Miller
It's actually a style, not a property. In AS, you have to use the setStyle
method to assign values to it.

Best Regards,
...aaron

On 11/18/07, Josh McDonald [EMAIL PROTECTED] wrote:

   They don't seem to exist, that's the problem. They're in the MXML
 markup, but not in the classes.

 -Josh

 On Nov 15, 2007 2:42 PM, srikanth_reddy_007 [EMAIL 
 PROTECTED]srikanthlives%40yahoo.co.in
 wrote:
 
 
 
 
 
 
  use horizontalGap and verticalGap properties of the component.
 
 
 
  --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Josh
 McDonald [EMAIL PROTECTED] wrote:
  
   Is it possible? I can't find any mention of it in the API
 documentation.
  
   Cheers,
   -Josh
  
   --
   This is crazy! Why are we talking about going to bed with Wilma
   Flintstone... She'll never leave Fred and we know it. 
  
   :: Josh 'G-Funk' McDonald
   :: 0437 221 380 :: [EMAIL PROTECTED]
  
 
 

 --
 This is crazy! Why are we talking about going to bed with Wilma
 Flintstone... She'll never leave Fred and we know it. 

 :: Josh 'G-Funk' McDonald
 :: 0437 221 380 :: [EMAIL PROTECTED] josh%40gfunk007.com
  




-- 
Aaron Miller
Chief Technology Officer
Splash Labs, LLC.
[EMAIL PROTECTED]  |  206-328-5485
http://www.splashlabs.com


[flexcoders] Re: Debugging who changed data...

2007-11-19 Thread Josh VanderBerg
Not sure if you've tried this, but you can set a breakpoint on a
variable declaration, and the debugger will stop when the property is
accessed or changed.

--
Josh Vanderberg
vanderblog.typepad.com -- Flex blog and open source flex components

--- In flexcoders@yahoogroups.com, bithroop [EMAIL PROTECTED] wrote:

 I have a property that is getting changed and I'm having a really hard
 time figuring out where it's happening and who is doing it. The
 debugger is walking me pretty far into the SDK and events are firing
 off and ultimately it's hard to tell. Anyone have any tricks for this?





Re: [flexcoders] Flex Code Styling

2007-11-19 Thread Damian Farina
On Nov 17, 2007 10:14 PM, Daniel Cascais [EMAIL PROTECTED] wrote:

 You can find an unofficial version of Adobe's ActionScript 3 and MXML
  coding guidelines here:


 http://blog.dclick.com.br/wp-content/uploads/adobe-flex-coding-guidelines-v12-english.pdf

  --
  Daniel Cascais


Let's see...

Thanks!


-- 
Damián Farina


Re: [flexcoders] Flex Code Styling

2007-11-19 Thread Damian Farina
On Nov 16, 2007 9:00 PM, Gordon Smith [EMAIL PROTECTED] wrote:

 We're hoping to have a coding standards document ready around the time that
 we make the framework open-source. In the meantime, I suggest looking at
 framework classes (e.g.,
 frameworks/projects/framework/src/mx/controls/Button.as) to see code that
 follows our standards.

 - Gordon


Looking Button.as should be enough to write my own home made coding
standard document for me and my co-workers.

Thanks in advance Gordon!

-- 
Damián Farina


[flexcoders] Re: Garbage Collection question

2007-11-19 Thread Josh VanderBerg
I've read that the GC runs only on allocation.  Can't seem to find the
original article I read on this, but this livedoc reference appears to
agree:
http://livedocs.adobe.com/labs/flex3/html/help.html?content=profiler_6.html

__
Josh Vanderberg
vanderblog.typepad.com - Flex blog and open source flex components

--- In flexcoders@yahoogroups.com, Mike Krotscheck [EMAIL PROTECTED]
wrote:

 I've been digging into memory management techniques recently, and have a
 question regarding the timing of the two methods. The articles on
 Adobe.com suggest that both methods (Ref Count and Mark  Sweep) run at
 some arbitrary point in the future defined by current memory usage. I
 found a discussion about the Virtual Machine though that indicated
 garbage collection happens on a 30ms interval.
 
  
 
 These two suggest that the two methods run on different intervals, and
 given that Mark and Sweep is more processor intensive I assume that it
 is the one whose timing is triggered by memory usage, while Reference
 counting operates on the mentioned 30ms. Is that correct?
 
  
 
 Links:
 
 http://www.adobe.com/devnet/flashplayer/articles/garbage_collection.html
 
 (some point in the future)
 
 http://techpolesen.blogspot.com/2007/11/avm2-vs-jvm-and-actionscript3.ht
 ml
 
 (30ms time slice)
 
  
 
 Michael Krotscheck
 
 Senior Developer
 
  
 RESOURCE INTERACTIVE
 
 http://www.resource.com/ www.resource.com http://www.resource.com 
 
 [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] 
 
  
 
 
 
 This email and any of its attachments may contain Resource Interactive
 proprietary information, which is privileged, confidential and may be
 subject to copyright or other intellectual property rights belonging to
 Resource Interactive. This email is intended solely for the use of the
 individual or entity to which it is addressed. If you are not the
 intended recipient of this email, you are hereby notified that any
 dissemination, distribution, copying or action taken in relation to the
 contents of and attachments to this email is strictly prohibited and may
 be unlawful. If you have received this email in error, please notify the
 sender immediately and permanently delete the original and any copy of
 this email and any printout.





Re: [flexcoders] Traverse a Model

2007-11-19 Thread Aaron Miller
you can use a for in loop

for (var p:String in obj) {
trace( p+' = '+obj[p] );
}

or if your just using this for debugging, I like to use

import mx.utils.ObjectUtil;

trace( ObjectUtil.toString(obj) );

Best Regards,
...aaron


On 11/18/07, Ben Marchbanks [EMAIL PROTECTED] wrote:

   I have a model which I would like to walk to get key/values to update
 the server with any changes.

 The following works fine to get each value,but is there a simple way
 to get the key as well ?

 for each(var item in myModel){
 trace(item)
 }

  




-- 
Aaron Miller
Chief Technology Officer
Splash Labs, LLC.
[EMAIL PROTECTED]  |  206-328-5485
http://www.splashlabs.com


[flexcoders] DataGrid problem

2007-11-19 Thread liorfadida
I have datagrid, with only one column, which its dataProvider is an 
array that contains strings,
So, i have no value to set at the dataField property.

In this case i have no problem to display this array, 
but, the problem starts when i am trying to edit the array values.

The application crushs in DataGrid.itemEditorItemEditEndHandler, 
when trying to access data[property], because there is no property(the 
property value equals to null).

Does any body have solution?



[flexcoders] How do realize the real time curve diagram by flex2.0 and java?

2007-11-19 Thread lihuahe2008
I am unfamiliar to the flex , have project need to need to use flex to 
realize the development curve diagram in the near future, the web 
server is a tomcat on the backstage.



[flexcoders] Viewstack problems

2007-11-19 Thread Rafael Faria
Hello all,

I'm having a big trouble with a viewstack.

I have this code

mx:ViewStack id=vstack width=800 height=400

mx:Canvas id=step1 label=donor information
mx:HBox
mx:Canvas id=step1_1 width=390 /
mx:Canvas id=step1_2 width=375 /
/mx:HBox
/mx:Canvas

mx:Canvas id=step2 label=call status
mx:HBox
mx:Canvas id=step2_1 width=390 /
mx:Canvas id=step2_2 width=375 /
/mx:HBox
/mx:Canvas

mx:Canvas id=step3 label=contribution information
mx:HBox
mx:Canvas id=step3_1 width=390 /
mx:Canvas id=step3_2 width=375 /
/mx:HBox
/mx:Canvas

/mx:ViewStack

and an init actionscript which i'm just trying to trace the elements
to see what happens and ends up getting null for some elements that i
need to work with.

private function init():void {
trace(step1); // return the object
trace(step1_1); // return the object
trace(step1_2); // return the object
trace(step2); // return the object
trace(step2_1); // return NULL
trace(step2_2);  // return NULL
trace(step3) // return the object
trace(step3_1); // return NULL
trace(step3_2); // return NULL
}

The problem is that i really need to work with the canvas on the
initialization. I can write dynamically on the canvas (step2 and
step3) but weirdly i can't get the objects inside them.

Any guru to help me out with that?! 

Raf




[flexcoders] Re:Accessing properties of an Item Renderer

2007-11-19 Thread saurav sinha
Hi Friends,
   
  I m stuck with accessing properties of item renderer. 
   
  I have a listbox control and used checkbox as an itemrenderer. I want to 
access the selected property of checkbox when user selects any item in the 
list control.
   
  Please help.
   
  Regards
  Saurav

   
-
Get easy, one-click access to your favorites.  Make Yahoo! your homepage.

[flexcoders] Re: Cairngorm - what's you best practice on handling inital data from the server

2007-11-19 Thread Uber_Nick
Almong,

I don't see any problem with #5.  The getTabsLabels() should contain a
simple null check, so it will only perform an action when your
serviceList object is populated.

Client-side manipulation of the serviceList object should take place
within the result method of the command retrieving the list.

I'm not sure what you mean when you state but it shouldn't be there
as it won't be readable.  Can you clarify your concerns with this
approach?

-Nick Matelli
Amentra, Inc

--- In flexcoders@yahoogroups.com, mydarkspoon [EMAIL PROTECTED] wrote:

 Hello all,
 
 I'm new with Cairngorm, trying to develop a wizard RIA with flex, and
 I encountered an issue with data binding that went ugly:
 In my model I have an XML doc taht describes several available search
 services from the server. This XML is retrieved when the app start by
 using an appropriate command that uses business delegate.
 
 However, in the view I have a TabBar, that needs to manipulate the XML
 config file from the model, meaning that it has to know when this xml
 is retrieved.
 I found few approaches to this:
 
 1. use a fake getter-setter binded to the model. My drawback from this
 approach is quite obvious, I don't really need a getter here, but a
 notification...
 2. custom [Bindable(event=)]. This also not the best way as it
 introduces new complexity to the model and enforces the developer to
 dispatch an event...
 
 3. Using a command to create the data for the TabBar in the view. I
 think this creates a tightly coupled connection between the controller
 and the view...
 
 4. Using Paul Williams ac:ObserveValue / util. Although one might
 think this creates a slick binding to function by hiding the fake
 getter-setter, it actually dispatches redundant events because it
 handler can't be compared to the source property, and thus the handler
 is being called even when the source is null.
 
 5. using curly braces:
 mx:TabBar dataProvider={getTabsLabels(_model.servicesList)} /
 This approach also introduces redundant events as its destination is
 not read-write enabled and it will get dispatched even when the
 servicesList is null.
 Moreover, I want to executes one more manipulation on the xml from the
 model, it can be created while calling the getTabsLabels() but it
 shouldn't be there as it won't be readable...
 
 
 I'll be more than happy to hear your ideas.
 
 Thanks a lot !
 
 Almog Kurtser.





RE: [flexcoders] Re: Garbage Collection question

2007-11-19 Thread Mike Krotscheck
That's helpful, thanks (The same goes for Alex's response). I'm
currently dealing with a series of intermittent .ocx errors that seem to
be memory related, but never output any useful debugging information.
I'm trying various memory management strategies, and though they keep
popping up they're at least not as frequent anymore.

 

If anyone else has run into them and found ways of debugging/resolving
them, I'd be very grateful for your insight.

 

Michael Krotscheck

Senior Developer

 
RESOURCE INTERACTIVE

http://www.resource.com/ www.resource.com http://www.resource.com 

[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] 



This email and any of its attachments may contain Resource Interactive
proprietary information, which is privileged, confidential and may be
subject to copyright or other intellectual property rights belonging to
Resource Interactive. This email is intended solely for the use of the
individual or entity to which it is addressed. If you are not the
intended recipient of this email, you are hereby notified that any
dissemination, distribution, copying or action taken in relation to the
contents of and attachments to this email is strictly prohibited and may
be unlawful. If you have received this email in error, please notify the
sender immediately and permanently delete the original and any copy of
this email and any printout.




From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Josh VanderBerg
Sent: Saturday, November 17, 2007 7:33 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Garbage Collection question

 

I've read that the GC runs only on allocation. Can't seem to find the
original article I read on this, but this livedoc reference appears to
agree:
http://livedocs.adobe.com/labs/flex3/html/help.html?content=profiler_6.h
tml
http://livedocs.adobe.com/labs/flex3/html/help.html?content=profiler_6.
html 

__
Josh Vanderberg
vanderblog.typepad.com - Flex blog and open source flex components

--- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
, Mike Krotscheck [EMAIL PROTECTED]
wrote:

 I've been digging into memory management techniques recently, and have
a
 question regarding the timing of the two methods. The articles on
 Adobe.com suggest that both methods (Ref Count and Mark  Sweep) run
at
 some arbitrary point in the future defined by current memory usage. I
 found a discussion about the Virtual Machine though that indicated
 garbage collection happens on a 30ms interval.
 
 
 
 These two suggest that the two methods run on different intervals, and
 given that Mark and Sweep is more processor intensive I assume that it
 is the one whose timing is triggered by memory usage, while Reference
 counting operates on the mentioned 30ms. Is that correct?
 
 
 
 Links:
 

http://www.adobe.com/devnet/flashplayer/articles/garbage_collection.html
http://www.adobe.com/devnet/flashplayer/articles/garbage_collection.htm
l 
 
 (some point in the future)
 

http://techpolesen.blogspot.com/2007/11/avm2-vs-jvm-and-actionscript3.ht
http://techpolesen.blogspot.com/2007/11/avm2-vs-jvm-and-actionscript3.h
t 
 ml
 
 (30ms time slice)
 
 
 
 Michael Krotscheck
 
 Senior Developer
 
 
 RESOURCE INTERACTIVE
 
 http://www.resource.com/ http://www.resource.com/ 
www.resource.com http://www.resource.com http://www.resource.com  
 
 [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] 
 
 
 
 __
 
 This email and any of its attachments may contain Resource Interactive
 proprietary information, which is privileged, confidential and may be
 subject to copyright or other intellectual property rights belonging
to
 Resource Interactive. This email is intended solely for the use of the
 individual or entity to which it is addressed. If you are not the
 intended recipient of this email, you are hereby notified that any
 dissemination, distribution, copying or action taken in relation to
the
 contents of and attachments to this email is strictly prohibited and
may
 be unlawful. If you have received this email in error, please notify
the
 sender immediately and permanently delete the original and any copy of
 this email and any printout.


 



[flexcoders] Confused by context.root, services-config.xml and remoting-config.xml...

2007-11-19 Thread lawriegallardo
Hi,

I've got an application that uses LCDS RemoteObjects and this worked
fine as a development build - I used the Ant mxmlc task and configured
the services and compiler.context-root properties to point at my
development LCDS web-app and everything was dandy.

However, when I tried to rename my web-app it stopped working... After
some googling I discovered that using {context.root} in your
services-config.xml and building with Flex Builder or mxmlc
effectively hard-codes the endpoint urls for your services into your
swf file.

This is an issue for me because I need to be able to do is compile my
app once, but then be able to be able copy this app for different
clients (i.e. each client will have a separate copy of the application
- Client1 will access the app via www.mycomp.com/myapp/client1,
Client2 will access the app via www.mycomp.com/myapp/client2, etc).

I've tried creating an AMFChannel in my client code and setting this
as the channel for my mx:RemoteObjects, but this doesn't seem to work.
I'm guessing I might also need to amend my services-config-xml file to
get this to work???

If anyone can shed any light on this it would be greatly appreciated.

Thanks,

Lawrie



[flexcoders] Re: Cairngorm - what's you best practice on handling inital data from the server

2007-11-19 Thread mydarkspoon
Hi Nick,
Thanks for the help, the reasons why I'm not satisfied with #5 are
like that: The tabs naming is one operation that takes place, another
one is creating a ViewStack object to correspond those tabs.
Obviously, the view stack Can be built upon setting the TabBar
dataProvider, however, I think it's not readable beacuse when I open
an mxml component in search for a specific view control, the viewstack
in this example, I would look first at the mx:ViewStack / tag
instead, not at the TabBar, which should have nothing to do with the
ViewStack leaving it to be loosely coupled as much as possible.
Actually, this brings me the idea which I'll have to implement anyway,
to bind the ViewStack object's selectedIndex to the model using a
local helper function to get the selectedIndex, null checking the
model for the config file, and eventually returning an index.
This is not perfect but more elegant I think, yet I'd like to adapt
best practices dealing with such issues so feel about it :)

I almost forgot, my second drawback from the curly braces metjod is
the dispatching of redundant event, which is the reason that causes
the null checking to be essential.


Thanks and best regards,

Almog Kurtser.

--- In flexcoders@yahoogroups.com, Uber_Nick [EMAIL PROTECTED] wrote:

 Almong,
 
 I don't see any problem with #5.  The getTabsLabels() should contain a
 simple null check, so it will only perform an action when your
 serviceList object is populated.
 
 Client-side manipulation of the serviceList object should take place
 within the result method of the command retrieving the list.
 
 I'm not sure what you mean when you state but it shouldn't be there
 as it won't be readable.  Can you clarify your concerns with this
 approach?
 
 -Nick Matelli
 Amentra, Inc
 
 --- In flexcoders@yahoogroups.com, mydarkspoon mydarkspoon@ wrote:
 
  Hello all,
  
  I'm new with Cairngorm, trying to develop a wizard RIA with flex, and
  I encountered an issue with data binding that went ugly:
  In my model I have an XML doc taht describes several available search
  services from the server. This XML is retrieved when the app start by
  using an appropriate command that uses business delegate.
  
  However, in the view I have a TabBar, that needs to manipulate the XML
  config file from the model, meaning that it has to know when this xml
  is retrieved.
  I found few approaches to this:
  
  1. use a fake getter-setter binded to the model. My drawback from this
  approach is quite obvious, I don't really need a getter here, but a
  notification...
  2. custom [Bindable(event=)]. This also not the best way as it
  introduces new complexity to the model and enforces the developer to
  dispatch an event...
  
  3. Using a command to create the data for the TabBar in the view. I
  think this creates a tightly coupled connection between the controller
  and the view...
  
  4. Using Paul Williams ac:ObserveValue / util. Although one might
  think this creates a slick binding to function by hiding the fake
  getter-setter, it actually dispatches redundant events because it
  handler can't be compared to the source property, and thus the handler
  is being called even when the source is null.
  
  5. using curly braces:
  mx:TabBar dataProvider={getTabsLabels(_model.servicesList)} /
  This approach also introduces redundant events as its destination is
  not read-write enabled and it will get dispatched even when the
  servicesList is null.
  Moreover, I want to executes one more manipulation on the xml from the
  model, it can be created while calling the getTabsLabels() but it
  shouldn't be there as it won't be readable...
  
  
  I'll be more than happy to hear your ideas.
  
  Thanks a lot !
  
  Almog Kurtser.
 





[flexcoders] Re: Viewstack problems

2007-11-19 Thread Josh VanderBerg

Try setting the creationPolicy='all' on the viewstack and perhaps the
canvases as well.

--
Josh Vanderberg
vanderblog.typepad.com - Flex blog and open source flex components

--- In flexcoders@yahoogroups.com, Rafael Faria
[EMAIL PROTECTED] wrote:

 Hello all,
 
 I'm having a big trouble with a viewstack.
 
 I have this code
 
   mx:ViewStack id=vstack width=800 height=400
   
   mx:Canvas id=step1 label=donor information
   mx:HBox
   mx:Canvas id=step1_1 width=390 /
   mx:Canvas id=step1_2 width=375 /
   /mx:HBox
   /mx:Canvas
   
   mx:Canvas id=step2 label=call status
   mx:HBox
   mx:Canvas id=step2_1 width=390 /
   mx:Canvas id=step2_2 width=375 /
   /mx:HBox
   /mx:Canvas
   
   mx:Canvas id=step3 label=contribution information
   mx:HBox
   mx:Canvas id=step3_1 width=390 /
   mx:Canvas id=step3_2 width=375 /
   /mx:HBox
   /mx:Canvas
   
   /mx:ViewStack
 
 and an init actionscript which i'm just trying to trace the elements
 to see what happens and ends up getting null for some elements that i
 need to work with.
 
 private function init():void {
 trace(step1); // return the object
 trace(step1_1); // return the object
 trace(step1_2); // return the object
 trace(step2); // return the object
 trace(step2_1); // return NULL
 trace(step2_2);  // return NULL
 trace(step3) // return the object
 trace(step3_1); // return NULL
 trace(step3_2); // return NULL
 }
 
 The problem is that i really need to work with the canvas on the
 initialization. I can write dynamically on the canvas (step2 and
 step3) but weirdly i can't get the objects inside them.
 
 Any guru to help me out with that?! 
 
 Raf





RE: [flexcoders] Confused by context.root, services-config.xml and remoting-config.xml...

2007-11-19 Thread Peter Farland

If you host your SWF inside the same WAR that hosts the remoting
service, then you should be able to programmatically create a ChannelSet
of Channels that is based on the URL that was used to load the SWF (at
runtime you could look at the value of
mx.core.Application.application.url). Did you create a ChannelSet and
add your AMFChannel to that and then set that on your RemoteObject?

 

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of lawriegallardo
Sent: Monday, November 19, 2007 10:46 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Confused by context.root, services-config.xml and
remoting-config.xml...

Hi,

I've got an application that uses LCDS RemoteObjects and this worked
fine as a development build - I used the Ant mxmlc task and configured
the services and compiler.context-root properties to point at my
development LCDS web-app and everything was dandy.

However, when I tried to rename my web-app it stopped working... After
some googling I discovered that using {context.root} in your
services-config.xml and building with Flex Builder or mxmlc effectively
hard-codes the endpoint urls for your services into your swf file.

This is an issue for me because I need to be able to do is compile my
app once, but then be able to be able copy this app for different
clients (i.e. each client will have a separate copy of the application
- Client1 will access the app via www.mycomp.com/myapp/client1,
Client2 will access the app via www.mycomp.com/myapp/client2, etc).

I've tried creating an AMFChannel in my client code and setting this as
the channel for my mx:RemoteObjects, but this doesn't seem to work.
I'm guessing I might also need to amend my services-config-xml file to
get this to work???

If anyone can shed any light on this it would be greatly appreciated.

Thanks,

Lawrie



--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.com
Yahoo! Groups Links





RE: [flexcoders] Can Module be compiled by web-tier compiler?

2007-11-19 Thread Matt Chotin
Hi Dan,

 

I haven't looked into it but I kinda doubt we put that kind of
functionality into the web tier.  We really only set that up to provide
basic workflow, you may still need to do manual SDK compilation for
things like modules and CSS.

 

Matt

 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Dan
Sent: Monday, November 19, 2007 5:55 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Can Module be compiled by web-tier compiler?

 

Hi,

Does anyone know if it is possible to compile the dependency of modules 
by web-tier compiler? 
i.e. the link report option can be set in command line and also can use 
ant build to achieve it, but is it possible to set some arguments in 
the web-tier configuration file so that even in web-tier copmilation it 
can be done? 

Daniel

 



[flexcoders] Re: Confused by context.root, services-config.xml and remoting-config.xml...

2007-11-19 Thread Stephen Allison
 - Client1 will access the app via www.mycomp.com/myapp/client1,
 Client2 will access the app via www.mycomp.com/myapp/client2, etc).

The way I've usually dealt with this is to set the endpoint property of the 
RemoteObject to point at whatever AMF endpoint url you want and then pass 
the value into the app via Flashvars, we then usually have an ASP page 
generate the HTML holding the swf and have it set whatever endpoint is 
required. 

I think the real problem is that if you use Flex Builder to build a 'data 
services' project then it automatically figures out endpoints for you, which 
is great until you need to change them. 


Stephen


[flexcoders] BUG SDK-9480 - Using Modules: get error TypeError: Error #1034

2007-11-19 Thread Bruno Martins
On this attached example when I load the second module and change the chart
type I got the 1034 error. On Flex Bug and Issue Management System I found
this:

https://bugs.adobe.com/jira/browse/SDK-9480

however it didn't solve my problem.  I appreciate your help.

Thanks...


ChartModulo2.mxml
Description: Binary data


ChartModulo.mxml
Description: Binary data


ChartStrokeBug.mxml
Description: Binary data


[flexcoders] Re: Confused by context.root, services-config.xml and remoting-config.xml...

2007-11-19 Thread lawriegallardo
Hi Peter,

Thanks for your reply. The answer is yes to all your questions.

This is the code I used:

public function init():void {
  var amfChannel:AMFChannel
  = new AMFChannel(my-amf, getContextRootUrl()
  + /messagebroker/amf);
  amfChannel.pollingEnabled = false;
  var myChannelSet:ChannelSet = new ChannelSet();
  myChannelSet.addChannel(amfChannel);
  myService.channelSet = myChannelSet;
}

private function getContextRootUrl():String {
  var i:int = Application.application.url.lastIndexOf(/);
  var contextRootUrl:String
  = Application.application.url.substring(0, i);
  return contextRootUrl;
}

...

mx:RemoteObject
  id=myService
  destination=MyService
  endpoint={getEndpointUrl()}/messagebroker/amf
  showBusyCursor=true
  result=event.token.resultHandler( event )
  fault=event.token.faultHandler( event )
  requestTimeout=30/


Can you see any possible issues?

I'm still using the same services and compiler.context-root properties
for mxmlc, and I haven't amended my services-config.xml, so it still
has the following channel definition:

channel-definition id=my-amf
  class=mx.messaging.channels.AMFChannel
  endpoint
url=http://{server.name}:{server.port}/{context.root}/messagebroker/amf;
class=flex.messaging.endpoints.AMFEndpoint/
  properties
polling-enabledfalse/polling-enabled
  /properties
/channel-definition
 
Do I need to change any of this?

Cheers,

Lawrie

--- In flexcoders@yahoogroups.com, Peter Farland [EMAIL PROTECTED] wrote:

 
 If you host your SWF inside the same WAR that hosts the remoting
 service, then you should be able to programmatically create a ChannelSet
 of Channels that is based on the URL that was used to load the SWF (at
 runtime you could look at the value of
 mx.core.Application.application.url). Did you create a ChannelSet and
 add your AMFChannel to that and then set that on your RemoteObject?
 
  
 
 -Original Message-
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of lawriegallardo
 Sent: Monday, November 19, 2007 10:46 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Confused by context.root, services-config.xml and
 remoting-config.xml...
 
 Hi,
 
 I've got an application that uses LCDS RemoteObjects and this worked
 fine as a development build - I used the Ant mxmlc task and configured
 the services and compiler.context-root properties to point at my
 development LCDS web-app and everything was dandy.
 
 However, when I tried to rename my web-app it stopped working... After
 some googling I discovered that using {context.root} in your
 services-config.xml and building with Flex Builder or mxmlc effectively
 hard-codes the endpoint urls for your services into your swf file.
 
 This is an issue for me because I need to be able to do is compile my
 app once, but then be able to be able copy this app for different
 clients (i.e. each client will have a separate copy of the application
 - Client1 will access the app via www.mycomp.com/myapp/client1,
 Client2 will access the app via www.mycomp.com/myapp/client2, etc).
 
 I've tried creating an AMFChannel in my client code and setting this as
 the channel for my mx:RemoteObjects, but this doesn't seem to work.
 I'm guessing I might also need to amend my services-config-xml file to
 get this to work???
 
 If anyone can shed any light on this it would be greatly appreciated.
 
 Thanks,
 
 Lawrie
 
 
 
 --
 Flexcoders Mailing List
 FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 Search Archives:
 http://www.mail-archive.com/flexcoders%40yahoogroups.com
 Yahoo! Groups Links





[flexcoders] Launching 0% - Flex Builder 2 will not launch

2007-11-19 Thread Chuck Engels
No project will launch in Flex Builder 2, does not matter if it is a
Basic or ColdFusion project.

The SWF files and HTML files will launch in my browser, but not from
within the Flex Builder 2 project, it just stays at Launching 0% and
never opens and never times out.  I have let it run for up to 20
minutes and nothing happens.

I have no problems connecting ColdFusion to my Database and no issues
with anything else.  I can write code, compile, and then open the swf
file with my browswer, just can't open it in Flex Builder 2.

Flex Builder 2.0.1
ColdFusion 8
MSSQL Express
Flash CS3
Dreamweaver CS3

I am running IIS and the output files are in a sub folder in my Web
Root  C:\Inetpub\wwwroot\Flex

I don't know what else you may need to know so ask away and I will do
the best I can to answer any questions.

TIA
Chuck



[flexcoders] Re: Viewstack problems

2007-11-19 Thread johantrax
First lets explain the problem:
A viewstack normally doesn't create all it's children, but only the
visible ones. This has been done in an ateempt to minimize the
startuptime of your application.

Possible solution:
1. Ask yourself if you really need to write data on something that is
not visible. It's not like someone is going to notice it...
Try if you could use the initialize/show-events of the child itself to
do this.
2. If you can't delegate the writing, and you do have to write to an
invisible component. Do as Josh suggested and set the creationPlicy of
the viewstack and its children to all. This should let the viewstack
create it's children, even if they're not visible.

--jeetee

--- In flexcoders@yahoogroups.com, Rafael Faria
[EMAIL PROTECTED] wrote:

 Hello all,
 
 I'm having a big trouble with a viewstack.
 
 I have this code
 
   mx:ViewStack id=vstack width=800 height=400
   
   mx:Canvas id=step1 label=donor information
   mx:HBox
   mx:Canvas id=step1_1 width=390 /
   mx:Canvas id=step1_2 width=375 /
   /mx:HBox
   /mx:Canvas
   
   mx:Canvas id=step2 label=call status
   mx:HBox
   mx:Canvas id=step2_1 width=390 /
   mx:Canvas id=step2_2 width=375 /
   /mx:HBox
   /mx:Canvas
   
   mx:Canvas id=step3 label=contribution information
   mx:HBox
   mx:Canvas id=step3_1 width=390 /
   mx:Canvas id=step3_2 width=375 /
   /mx:HBox
   /mx:Canvas
   
   /mx:ViewStack
 
 and an init actionscript which i'm just trying to trace the elements
 to see what happens and ends up getting null for some elements that i
 need to work with.
 
 private function init():void {
 trace(step1); // return the object
 trace(step1_1); // return the object
 trace(step1_2); // return the object
 trace(step2); // return the object
 trace(step2_1); // return NULL
 trace(step2_2);  // return NULL
 trace(step3) // return the object
 trace(step3_1); // return NULL
 trace(step3_2); // return NULL
 }
 
 The problem is that i really need to work with the canvas on the
 initialization. I can write dynamically on the canvas (step2 and
 step3) but weirdly i can't get the objects inside them.
 
 Any guru to help me out with that?! 
 
 Raf





[flexcoders] Re: Confused by context.root, services-config.xml and remoting-config.xml...

2007-11-19 Thread lawriegallardo
Hi Stephen,

Thanks for your help - Apologies if I'm being a bit thick , but I'm a
not quite sure what you mean when you say that you set the endpoint
property of the RemoteObject to point at whatever AMF endpoint url you
want. Could you clarify this a bit, please?

Cheers,

Lawrie


--- In flexcoders@yahoogroups.com, Stephen Allison
[EMAIL PROTECTED] wrote:

  - Client1 will access the app via www.mycomp.com/myapp/client1,
  Client2 will access the app via www.mycomp.com/myapp/client2, etc).
 
 The way I've usually dealt with this is to set the endpoint property
of the 
 RemoteObject to point at whatever AMF endpoint url you want and then
pass 
 the value into the app via Flashvars, we then usually have an ASP page 
 generate the HTML holding the swf and have it set whatever endpoint is 
 required. 
 
 I think the real problem is that if you use Flex Builder to build a
'data 
 services' project then it automatically figures out endpoints for
you, which 
 is great until you need to change them. 
 
 
 Stephen





[flexcoders] Flex Builder 3 Beta 2 Resource Error (unable to resolve resource bundle collections for locale...)

2007-11-19 Thread Mark Ingram
Hi, I've just upgraded our production project to FB3 Beta2. I've had
several errors which I've fixed but now I'm having trouble with the
resources.

 

Unable to resolve resource bundle collections for locale en_GB.

 

And many others like it. I've created a blank directory in the
frameworks folder to stop another error. How can I get FB3 to use
compile-time localisation - as it was in FB2??

 

Thanks,

 

Mark

 

P.S. I've noticed this reported on the bug list, but it's closed.
http://bugs.adobe.com/jira/browse/SDK-12507 I think it needs re-opening
as it's causing a hinderance trying to upgrade an older project.

 

 

 



Re: [flexcoders] Flex Builder 3 Beta 2 Resource Error (unable to resolve resource bundle collections for locale...)

2007-11-19 Thread Scott Melby

Mark -

I saw something similar with the AdvancedDataGrid after upgrading.  In 
my case there was a separate .swc file for the resource bundle stuff 
that needed to be added to the project (datavisualization_rb.swc)...  My 
guess is that there is a similar solution for your issue.


hth
Scott

Scott Melby
Founder, Fast Lane Software LLC
http://www.fastlanesw.com



Mark Ingram wrote:


Hi, I've just upgraded our production project to FB3 Beta2. I've had 
several errors which I've fixed but now I'm having trouble with the 
resources.


 


Unable to resolve resource bundle collections for locale en_GB.

 

And many others like it. I've created a blank directory in the 
frameworks folder to stop another error. How can I get FB3 to use 
compile-time localisation -- as it was in FB2??


 


Thanks,

 


Mark

 

P.S. I've noticed this reported on the bug list, but it's closed. 
http://bugs.adobe.com/jira/browse/SDK-12507 
http://bugs.adobe.com/jira/browse/SDK-12507 I think it needs 
re-opening as it's causing a hinderance trying to upgrade an older 
project.


 

 

 

 


RE: [flexcoders] Re: Confused by context.root, services-config.xml and remoting-config.xml...

2007-11-19 Thread Peter Farland
If you're programmatically creating a ChannelSet then I wouldn't use the
endpoint attribute as that might override what you're doing. Also, if
you're only using RPC services like RemoteObject and you're creating
ChannelSets, then you don't need to compile against a
services-config.xml.

Other than that, I'd modify your code to look to see whether the URL was
HTTPS or not so that you'd create a SecureAMFChannel instead of an
AMFChannel.



-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of lawriegallardo
Sent: Monday, November 19, 2007 11:46 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Confused by context.root, services-config.xml
and remoting-config.xml...

Hi Peter,

Thanks for your reply. The answer is yes to all your questions.

This is the code I used:

public function init():void {
  var amfChannel:AMFChannel
  = new AMFChannel(my-amf, getContextRootUrl()
  + /messagebroker/amf);
  amfChannel.pollingEnabled = false;
  var myChannelSet:ChannelSet = new ChannelSet();
  myChannelSet.addChannel(amfChannel);
  myService.channelSet = myChannelSet;
}

private function getContextRootUrl():String {
  var i:int = Application.application.url.lastIndexOf(/);
  var contextRootUrl:String
  = Application.application.url.substring(0, i);
  return contextRootUrl;
}

...

mx:RemoteObject
  id=myService
  destination=MyService
  endpoint={getEndpointUrl()}/messagebroker/amf
  showBusyCursor=true
  result=event.token.resultHandler( event )
  fault=event.token.faultHandler( event )
  requestTimeout=30/


Can you see any possible issues?

I'm still using the same services and compiler.context-root properties
for mxmlc, and I haven't amended my services-config.xml, so it still has
the following channel definition:

channel-definition id=my-amf
  class=mx.messaging.channels.AMFChannel
  endpoint
url=http://{server.name}:{server.port}/{context.root}/messagebroker/amf

class=flex.messaging.endpoints.AMFEndpoint/
  properties
polling-enabledfalse/polling-enabled
  /properties
/channel-definition
 
Do I need to change any of this?

Cheers,

Lawrie

--- In flexcoders@yahoogroups.com, Peter Farland [EMAIL PROTECTED] wrote:

 
 If you host your SWF inside the same WAR that hosts the remoting 
 service, then you should be able to programmatically create a 
 ChannelSet of Channels that is based on the URL that was used to load 
 the SWF (at runtime you could look at the value of 
 mx.core.Application.application.url). Did you create a ChannelSet and 
 add your AMFChannel to that and then set that on your RemoteObject?
 
  
 
 -Original Message-
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] 
 On Behalf Of lawriegallardo
 Sent: Monday, November 19, 2007 10:46 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Confused by context.root, services-config.xml 
 and remoting-config.xml...
 
 Hi,
 
 I've got an application that uses LCDS RemoteObjects and this worked 
 fine as a development build - I used the Ant mxmlc task and configured

 the services and compiler.context-root properties to point at my 
 development LCDS web-app and everything was dandy.
 
 However, when I tried to rename my web-app it stopped working... After

 some googling I discovered that using {context.root} in your 
 services-config.xml and building with Flex Builder or mxmlc 
 effectively hard-codes the endpoint urls for your services into your
swf file.
 
 This is an issue for me because I need to be able to do is compile my 
 app once, but then be able to be able copy this app for different 
 clients (i.e. each client will have a separate copy of the application
 - Client1 will access the app via www.mycomp.com/myapp/client1,
 Client2 will access the app via www.mycomp.com/myapp/client2, etc).
 
 I've tried creating an AMFChannel in my client code and setting this 
 as the channel for my mx:RemoteObjects, but this doesn't seem to work.
 I'm guessing I might also need to amend my services-config-xml file to

 get this to work???
 
 If anyone can shed any light on this it would be greatly appreciated.
 
 Thanks,
 
 Lawrie
 
 
 
 --
 Flexcoders Mailing List
 FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 Search Archives:
 http://www.mail-archive.com/flexcoders%40yahoogroups.com
 Yahoo! Groups Links





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.com
Yahoo! Groups Links





RE: [flexcoders] Flex Builder 3 Beta 2 Resource Error (unable to resolve resource bundle collections for locale...)

2007-11-19 Thread Mark Ingram
Hmm, I copied the following files:

 

Airframework_rb.swc

Automation_agent_rb.swc

Automation_rb.swc

Datavisualization_rb.swc

Framework_rb.swc

Rpc_rb.swc

 

Into the E:\Applications\Development\Adobe Flex Builder
3\sdks\3.0.0\frameworks\locale\en_GB directory (from the en_US
directory).

 

But it made no difference.

 

The bundles it can't find are:

 

Collections

Containers

Controls

Core

Effects

Formatters

Logging

Messaging

Rpc

SharedResources

Skins

Utils

 

(77 errors in total due to unresolved bundles)

 

Thanks,

 

Mark

 

 

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Scott Melby
Sent: 19 November 2007 17:19
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Flex Builder 3 Beta 2 Resource Error (unable
to resolve resource bundle collections for locale...)

 

Mark - 

I saw something similar with the AdvancedDataGrid after upgrading.  In
my case there was a separate .swc file for the resource bundle stuff
that needed to be added to the project (datavisualization_rb.swc)...  My
guess is that there is a similar solution for your issue.

hth
Scott

Scott Melby
Founder, Fast Lane Software LLC
http://www.fastlanesw.com http://www.fastlanesw.com 



Mark Ingram wrote: 

Hi, I've just upgraded our production project to FB3 Beta2. I've had
several errors which I've fixed but now I'm having trouble with the
resources.

 

Unable to resolve resource bundle collections for locale en_GB.

 

And many others like it. I've created a blank directory in the
frameworks folder to stop another error. How can I get FB3 to use
compile-time localisation - as it was in FB2??

 

Thanks,

 

Mark

 

P.S. I've noticed this reported on the bug list, but it's closed.
http://bugs.adobe.com/jira/browse/SDK-12507
http://bugs.adobe.com/jira/browse/SDK-12507  I think it needs
re-opening as it's causing a hinderance trying to upgrade an older
project.

 

 

 

 



RE: [flexcoders] BUG SDK-9480 - Using Modules: get error TypeError: Error #1034

2007-11-19 Thread Alex Harui
Shared code problem.  See my blog (blogs.adobe.com/aharui).  Define an
var of type IStroke in the main app.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Bruno Martins
Sent: Monday, November 19, 2007 8:36 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] BUG SDK-9480 - Using Modules: get error TypeError:
Error #1034

 

On this attached example when I load the second module and change the
chart type I got the 1034 error. On Flex Bug and Issue Management System
I found this:

https://bugs.adobe.com/jira/browse/SDK-9480
https://bugs.adobe.com/jira/browse/SDK-9480 

however it didn't solve my problem.  I appreciate your help. 

Thanks...

 



[flexcoders] Flex Logging ~ log4j [2]

2007-11-19 Thread Claude Hussenet
--- In flexcoders@yahoogroups.com, Claude Hussenet [EMAIL PROTECTED] 
wrote:

 What are the options to log information in a flex components without 
 pushing any information to the server ?
 
 I am looking for something similar to what can done with an Applet
 sending logs into the java console.
 
 Is FAST 
(http://www.adobe.com/devnet/flex/articles/fast_userguide.html)
 still the recomended option with Flex 3 ?
 
 Thank you for your help.
 
 Rgds
 Claude Hussenet





[flexcoders] Re: Confused by context.root, services-config.xml and remoting-config.xml...

2007-11-19 Thread lawriegallardo
 if you're only using RPC services like RemoteObject and you're
creating ChannelSets, then you don't need to compile against a
services-config.xml.

I'm using RemoteObject services which connect to Java services via the
Spring Framework factory - will I need to compile against a
services-config.xml in this case?


I'm still a bit confused about when services-config.xml and
remoting-config.xml actually get used. Are they only used by Flex
Builder / mxmlc when you build your app to produce your .swf file? Or
do these files also used get used when your web server loads the LCDS
web app? If not, how and when do the destinations you configure in
remoting-config.xml get set up?

Thanks again,

Gavin

--- In flexcoders@yahoogroups.com, Peter Farland [EMAIL PROTECTED] wrote:

 If you're programmatically creating a ChannelSet then I wouldn't use the
 endpoint attribute as that might override what you're doing. Also, if
 you're only using RPC services like RemoteObject and you're creating
 ChannelSets, then you don't need to compile against a
 services-config.xml.
 
 Other than that, I'd modify your code to look to see whether the URL was
 HTTPS or not so that you'd create a SecureAMFChannel instead of an
 AMFChannel.
 
 
 
 -Original Message-
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of lawriegallardo
 Sent: Monday, November 19, 2007 11:46 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: Confused by context.root, services-config.xml
 and remoting-config.xml...
 
 Hi Peter,
 
 Thanks for your reply. The answer is yes to all your questions.
 
 This is the code I used:
 
 public function init():void {
   var amfChannel:AMFChannel
   = new AMFChannel(my-amf, getContextRootUrl()
   + /messagebroker/amf);
   amfChannel.pollingEnabled = false;
   var myChannelSet:ChannelSet = new ChannelSet();
   myChannelSet.addChannel(amfChannel);
   myService.channelSet = myChannelSet;
 }
 
 private function getContextRootUrl():String {
   var i:int = Application.application.url.lastIndexOf(/);
   var contextRootUrl:String
   = Application.application.url.substring(0, i);
   return contextRootUrl;
 }
 
 ...
 
 mx:RemoteObject
   id=myService
   destination=MyService
   endpoint={getEndpointUrl()}/messagebroker/amf
   showBusyCursor=true
   result=event.token.resultHandler( event )
   fault=event.token.faultHandler( event )
   requestTimeout=30/
 
 
 Can you see any possible issues?
 
 I'm still using the same services and compiler.context-root properties
 for mxmlc, and I haven't amended my services-config.xml, so it still has
 the following channel definition:
 
 channel-definition id=my-amf
   class=mx.messaging.channels.AMFChannel
   endpoint
 url=http://{server.name}:{server.port}/{context.root}/messagebroker/amf
 
 class=flex.messaging.endpoints.AMFEndpoint/
   properties
 polling-enabledfalse/polling-enabled
   /properties
 /channel-definition
  
 Do I need to change any of this?
 
 Cheers,
 
 Lawrie
 
 --- In flexcoders@yahoogroups.com, Peter Farland pfarland@ wrote:
 
  
  If you host your SWF inside the same WAR that hosts the remoting 
  service, then you should be able to programmatically create a 
  ChannelSet of Channels that is based on the URL that was used to load 
  the SWF (at runtime you could look at the value of 
  mx.core.Application.application.url). Did you create a ChannelSet and 
  add your AMFChannel to that and then set that on your RemoteObject?
  
   
  
  -Original Message-
  From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] 
  On Behalf Of lawriegallardo
  Sent: Monday, November 19, 2007 10:46 AM
  To: flexcoders@yahoogroups.com
  Subject: [flexcoders] Confused by context.root, services-config.xml 
  and remoting-config.xml...
  
  Hi,
  
  I've got an application that uses LCDS RemoteObjects and this worked 
  fine as a development build - I used the Ant mxmlc task and configured
 
  the services and compiler.context-root properties to point at my 
  development LCDS web-app and everything was dandy.
  
  However, when I tried to rename my web-app it stopped working... After
 
  some googling I discovered that using {context.root} in your 
  services-config.xml and building with Flex Builder or mxmlc 
  effectively hard-codes the endpoint urls for your services into your
 swf file.
  
  This is an issue for me because I need to be able to do is compile my 
  app once, but then be able to be able copy this app for different 
  clients (i.e. each client will have a separate copy of the application
  - Client1 will access the app via www.mycomp.com/myapp/client1,
  Client2 will access the app via www.mycomp.com/myapp/client2, etc).
  
  I've tried creating an AMFChannel in my client code and setting this 
  as the channel for my mx:RemoteObjects, but this doesn't seem to work.
  I'm guessing I might also need to amend my services-config-xml file to
 
  get this to work???
  
  If anyone can shed any light on this it would 

Re: [flexcoders] Re: Viewstack problems

2007-11-19 Thread Ben Marchbanks
I found that using a bound Model component is a great solution to populating 
and 
updating data displayed on viewstack children.

You can update the Model and when the viewstack child is visible the modified 
data will be present.

for example:

Create a Model

mx:Model id=myModel
record
FirstNameHomer/FirstName
/record
/mx:Model


Add a text input to a viewstack child canvas

mx:TextInput text={myModel.FirstName} /

Then modify model using AS

myModel.FirstName = Bart

You can also bind your Model to an ArrayCollection, XML, or XMLListCollection 
data source to populate it initially.

mx:Model id=myModel
record
FirstName{myDataSource.FirstName}/FirstName
/record
/mx:Model


Ben Marchbanks

::: alQemy ::: transforming information into intelligence
http://www.alQemy.com

::: magazooms ::: digital magazines
http://www.magazooms.com

Greenville, SC
864.284.9918

johantrax wrote:
 
 
 First lets explain the problem:
 A viewstack normally doesn't create all it's children, but only the
 visible ones. This has been done in an ateempt to minimize the
 startuptime of your application.
 
 Possible solution:
 1. Ask yourself if you really need to write data on something that is
 not visible. It's not like someone is going to notice it...
 Try if you could use the initialize/show-events of the child itself to
 do this.
 2. If you can't delegate the writing, and you do have to write to an
 invisible component. Do as Josh suggested and set the creationPlicy of
 the viewstack and its children to all. This should let the viewstack
 create it's children, even if they're not visible.
 
 --jeetee
 
 --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com, 
 Rafael Faria
 [EMAIL PROTECTED] wrote:
  
   Hello all,
  
   I'm having a big trouble with a viewstack.
  
   I have this code
  
   mx:ViewStack id=vstack width=800 height=400
  
   mx:Canvas id=step1 label=donor information
   mx:HBox
   mx:Canvas id=step1_1 width=390 /
   mx:Canvas id=step1_2 width=375 /
   /mx:HBox
   /mx:Canvas
  
   mx:Canvas id=step2 label=call status
   mx:HBox
   mx:Canvas id=step2_1 width=390 /
   mx:Canvas id=step2_2 width=375 /
   /mx:HBox
   /mx:Canvas
  
   mx:Canvas id=step3 label=contribution information
   mx:HBox
   mx:Canvas id=step3_1 width=390 /
   mx:Canvas id=step3_2 width=375 /
   /mx:HBox
   /mx:Canvas
  
   /mx:ViewStack
  
   and an init actionscript which i'm just trying to trace the elements
   to see what happens and ends up getting null for some elements that i
   need to work with.
  
   private function init():void {
   trace(step1); // return the object
   trace(step1_1); // return the object
   trace(step1_2); // return the object
   trace(step2); // return the object
   trace(step2_1); // return NULL
   trace(step2_2); // return NULL
   trace(step3) // return the object
   trace(step3_1); // return NULL
   trace(step3_2); // return NULL
   }
  
   The problem is that i really need to work with the canvas on the
   initialization. I can write dynamically on the canvas (step2 and
   step3) but weirdly i can't get the objects inside them.
  
   Any guru to help me out with that?!
  
   Raf
  
 
 

-- 
Ben Marchbanks

::: alQemy ::: transforming information into intelligence
http://www.alQemy.com

::: magazooms ::: digital magazines
http://www.magazooms.com

Greenville, SC
864.284.9918


[flexcoders] Re: Confused by context.root, services-config.xml and remoting-config.xml...

2007-11-19 Thread Stephen Allison
 Thanks for your help - Apologies if I'm being a bit thick , but I'm a
 not quite sure what you mean when you say that you set the endpoint
 property of the RemoteObject to point at whatever AMF endpoint url you
 want. Could you clarify this a bit, please?

Hi,
RemoteObject defines an endpoint property which allows you to 
programatically set the AMF endpoint used by that instance.  So: 

var ro:RemoteObject = new RemoteObject(...);
ro.endpoint = Application.application.parameters[gatewayUrl] 

and you're ready to go, the RemoteObject will use either a secure AMF 
channel or a regular AMF channel depending on whether or not the url you 
provide it is https or not. 

You can probably (and I've not checked) set it in mxml using data binding:
mx:RemoteObject ... 
endpoint={Application.application.parameters['gatewayUrl']} ... 

or somesuch.  We set gatewayUrl from FlashVars in the containing ASP page, 
so the server decides which endpoint a given application talks to. 

Apologies if we're at crossed purposes here! 

Stephen


Re: [flexcoders] BUG SDK-9480 - Using Modules: get error TypeError: Error #1034

2007-11-19 Thread Bruno Martins
This didn't solve the problem. Only remove the error msg, but that chart
will draw with wrong colors.


 On 11/19/07, Alex Harui  [EMAIL PROTECTED] wrote:
 
 Shared code problem.  See my blog (blogs.adobe.com/aharui).  Define
  an var of type IStroke in the main app.
 
 
   --
 
  *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of
  *Bruno Martins
  *Sent:* Monday, November 19, 2007 8:36 AM
  *To:* flexcoders@yahoogroups.com
  *Subject:* [flexcoders] BUG SDK-9480 - Using Modules: get error
  TypeError: Error #1034
 
 
 
  On this attached example when I load the second module and change the
  chart type I got the 1034 error. On Flex Bug and Issue Management System I
  found this:
 
  https://bugs.adobe.com/jira/browse/SDK-9480
 
  however it didn't solve my problem.  I appreciate your help.
 
  Thanks...
 
   
 



 --
 Bruno Gustavo Martins - 1,2,3..4
 Office: (11)5506-5154
 experience everywhere
 http://www.dclick.com.br/blog




-- 
Bruno Gustavo Martins - 1,2,3..4
Office: (11)5506-5154
experience everywhere
http://www.dclick.com.br/blog


[flexcoders] Re: Launching 0% - Flex Builder 2 will not launch

2007-11-19 Thread Chuck Engels
Ok, I have gotten rid of the Launching 0% problem and Flex is actually
trying to open the page in a browser now, the problem is that I keep
getting  a -404 Page Not Found or File Not Found error.  This has to
be a simple IIS setup issue but I can't figure it out.

Any help is appreciated, until then I will continue to search here and
the internet for answers.

--- In flexcoders@yahoogroups.com, Chuck Engels [EMAIL PROTECTED] wrote:

 No project will launch in Flex Builder 2, does not matter if it is a
 Basic or ColdFusion project.
 
 The SWF files and HTML files will launch in my browser, but not from
 within the Flex Builder 2 project, it just stays at Launching 0% and
 never opens and never times out.  I have let it run for up to 20
 minutes and nothing happens.
 
 I have no problems connecting ColdFusion to my Database and no issues
 with anything else.  I can write code, compile, and then open the swf
 file with my browswer, just can't open it in Flex Builder 2.
 
 Flex Builder 2.0.1
 ColdFusion 8
 MSSQL Express
 Flash CS3
 Dreamweaver CS3
 
 I am running IIS and the output files are in a sub folder in my Web
 Root  C:\Inetpub\wwwroot\Flex
 
 I don't know what else you may need to know so ask away and I will do
 the best I can to answer any questions.
 
 TIA
 Chuck





[flexcoders] Using RSL at development time - best practice?? Getting RSL Error

2007-11-19 Thread devworkit
I am getting a RSL Error 1 of 1 when trying to redeploy a new
library.swf which is extracted from my customcomponents.swc.  

I have a series of custom components that I am developing for use by
another application(s) that I am also writing.  I can successfully
compile my SWCextract it's library.swf, then re-compile my other
application and dynamically bind the application to the
customcomponents.swc and its library.swf.  I deploy my application.swf
and the library.swf and things work great.  However.since I am
still in development mode, I want to make a change to one of my custom
components in myrecompile my swcextract the library.swf and
overwrite the library.swf to see my new changes.  When I do this, I
get an RSL Error 1 of 1 - Flex Error #1001: Digest mismatch with RSL
c4BaseGUI.swf. Redeploy the matching RSL or relink your application
with the matching library.

Can this be done?  I really don't want to have to recompile the entire
SWF application for every change I make to a custom component in my
SWC.  What is the best practice here?

Thanks!




Re: [flexcoders] Launching 0% - Flex Builder 2 will not launch

2007-11-19 Thread carolyn . reid-bennett
What is the default browser set for FB2, (window-web browser) and does it 
have the Flash player installed?

Roxanne Reid-Bennett

**
This e-mail message and all attachments transmitted with it may contain legally 
privileged and/or confidential information intended solely for the use of the 
addressee(s). If the reader of this message is not the intended recipient, you 
are hereby notified that any reading, dissemination, distribution, copying, 
forwarding or other use of this message or its attachments is strictly 
prohibited. If you have received this message in error, please notify the 
sender immediately and delete this message and all copies and backups thereof.

Thank you.
**


[flexcoders] Re: Confused by context.root, services-config.xml and remoting-config.xml...

2007-11-19 Thread lawriegallardo
No, we're not at crossed purposes at all - that's really useful thanks!

Do I still need to worry about the services-config.xml and
remote-config.xml files? If not, how do the destinations and their
properties (i.e. the source property that specifies which Java service
gets called) get set up?

Cheers,

Lawrie

--- In flexcoders@yahoogroups.com, Stephen Allison
[EMAIL PROTECTED] wrote:

  Thanks for your help - Apologies if I'm being a bit thick , but I'm a
  not quite sure what you mean when you say that you set the endpoint
  property of the RemoteObject to point at whatever AMF endpoint url you
  want. Could you clarify this a bit, please?
 
 Hi,
 RemoteObject defines an endpoint property which allows you to 
 programatically set the AMF endpoint used by that instance.  So: 
 
 var ro:RemoteObject = new RemoteObject(...);
 ro.endpoint = Application.application.parameters[gatewayUrl] 
 
 and you're ready to go, the RemoteObject will use either a secure AMF 
 channel or a regular AMF channel depending on whether or not the url
you 
 provide it is https or not. 
 
 You can probably (and I've not checked) set it in mxml using data
binding:
 mx:RemoteObject ... 
 endpoint={Application.application.parameters['gatewayUrl']} ... 
 
 or somesuch.  We set gatewayUrl from FlashVars in the containing ASP
page, 
 so the server decides which endpoint a given application talks to. 
 
 Apologies if we're at crossed purposes here! 
 
 Stephen





RE: [flexcoders] Re: Confused by context.root, services-config.xml and remoting-config.xml...

2007-11-19 Thread Peter Farland
For the MXML RemoteObject API, it's true there is an endpoint property
and what steve writes about it automatically selecting the right channel
based on HTTP(S) URLs is correct, but it is not marked bindable and I've
not seen it used with MXML binding statements. So, I am suggesting that
while you're trying to get this to work - just use the programmatic
approach you're using with ChannelSet exclusively for now.

Pete

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of lawriegallardo
Sent: Monday, November 19, 2007 1:52 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Confused by context.root, services-config.xml
and remoting-config.xml...

No, we're not at crossed purposes at all - that's really useful thanks!

Do I still need to worry about the services-config.xml and
remote-config.xml files? If not, how do the destinations and their
properties (i.e. the source property that specifies which Java service
gets called) get set up?

Cheers,

Lawrie

--- In flexcoders@yahoogroups.com, Stephen Allison
[EMAIL PROTECTED] wrote:

  Thanks for your help - Apologies if I'm being a bit thick , but I'm 
  a not quite sure what you mean when you say that you set the 
  endpoint property of the RemoteObject to point at whatever AMF 
  endpoint url you want. Could you clarify this a bit, please?
 
 Hi,
 RemoteObject defines an endpoint property which allows you to 
 programatically set the AMF endpoint used by that instance.  So:
 
 var ro:RemoteObject = new RemoteObject(...); ro.endpoint = 
 Application.application.parameters[gatewayUrl]
 
 and you're ready to go, the RemoteObject will use either a secure AMF 
 channel or a regular AMF channel depending on whether or not the url
you 
 provide it is https or not. 
 
 You can probably (and I've not checked) set it in mxml using data
binding:
 mx:RemoteObject ... 
 endpoint={Application.application.parameters['gatewayUrl']} ...
 
 or somesuch.  We set gatewayUrl from FlashVars in the containing ASP
page, 
 so the server decides which endpoint a given application talks to. 
 
 Apologies if we're at crossed purposes here! 
 
 Stephen





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.com
Yahoo! Groups Links





[flexcoders] Is there a way to size the titleWindow depending on the window size?

2007-11-19 Thread Mark
Rather than set a width and height to the pop-up window I'd like it to 
be 80% of the browser.  Can this be done, and if so... how?

Thanks,
Mark



[flexcoders] Re: Enter Thru States

2007-11-19 Thread arieljake
Add an event listener to the keyDown event of the application and
programmatically alter the state or visible container in the viewstack
when the charCode is that of the Return or Enter keys.


--- In flexcoders@yahoogroups.com, dmeasbp [EMAIL PROTECTED] wrote:

 Hello All!
 
 I simply have a number of states, which alter a viewstack, which
 contain Panel components.  I want to be able to 'RETURN' or 'ENTER'
 thru the states.  Should I add an event listener to the application? 
 Any help would be appreciated.
 
 D. Meas





[flexcoders] Re: Re-Scaling Charts when a series is made visible / invisible

2007-11-19 Thread arieljake
have you tried calling invalidateDisplayList() or
invalidateProperties() after editing the series array?


--- In flexcoders@yahoogroups.com, cuddlygunchi [EMAIL PROTECTED] wrote:

 Hello,
 
 I give the user an option to make a series visible / invisible in a 
 chart. However, the Y axis is always scaled according to the largest 
 value a series can take, no matter if its visible or not.
 
 How can I make the Y axis scale according to only the visible series in 
 my chart? 
 
 I could perhaps get this effect if I remove the series item instead of 
 just setting its visible to false. But when I dynamically add / remove 
 series to the array, it does not recreate the chart and all the series 
 just stay there.
 
 Many Thanks,
 Aman





[flexcoders] Re: How set combobox item saved in database

2007-11-19 Thread arieljake
did that not work for you?

--- In flexcoders@yahoogroups.com, danielvlopes [EMAIL PROTECTED]
wrote:

 Hello, i had dataprovider loaded from database, and this selected
 label is saved on database in other table. But when user must edit
 your data how i initialize the combobox on edit form with selected
 item in you previous selected item?
 
 I try this, but i don't know it is the best way:
   public function 
 setComboItem(event:Event,item:String):void{
   for(var i:Number = 0; i  
 event.target.dataProvider.length; i++)
   {
if(event.target.dataProvider[i] == 
 item){
   event.target.selectedIndex = i;
   }
   }
   }
 
   mx:FormItem label=Estado Civil: width=470
   mx:ComboBox id=cbEstadoCivil
 creationComplete=setComboItem(event,objCurriculo.estado_civil) 
 
   mx:ArrayCollection
   mx:Stringsolteiro/mx:String
   mx:Stringcasado/mx:String
   mx:Stringseparado/mx:String
   mx:Stringdivorciado/mx:String
   mx:Stringviúvo/mx:String
   mx:Stringunião estável/mx:String
   
   
   /mx:ArrayCollection
   /mx:ComboBox
   /mx:FormItem





RE: [flexcoders] Re: Garbage Collection question

2007-11-19 Thread Alex Harui
IMHO, GC can't cause errors unless you eat up too much memory.  In that
case your errors would coincide with having a very large memory
utilization number.  Flex 3.0 has improved its memory utilization so if
you are currently using 2.x, you might want to try a port to see if it
makes a difference.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Mike Krotscheck
Sent: Monday, November 19, 2007 6:30 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Re: Garbage Collection question

 

That's helpful, thanks (The same goes for Alex's response). I'm
currently dealing with a series of intermittent .ocx errors that seem to
be memory related, but never output any useful debugging information.
I'm trying various memory management strategies, and though they keep
popping up they're at least not as frequent anymore.

 

If anyone else has run into them and found ways of debugging/resolving
them, I'd be very grateful for your insight.

 

Michael Krotscheck

Senior Developer

 


RESOURCE INTERACTIVE

http://www.resource.com/ www.resource.com http://www.resource.com 

[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] 



This email and any of its attachments may contain Resource Interactive
proprietary information, which is privileged, confidential and may be
subject to copyright or other intellectual property rights belonging to
Resource Interactive. This email is intended solely for the use of the
individual or entity to which it is addressed. If you are not the
intended recipient of this email, you are hereby notified that any
dissemination, distribution, copying or action taken in relation to the
contents of and attachments to this email is strictly prohibited and may
be unlawful. If you have received this email in error, please notify the
sender immediately and permanently delete the original and any copy of
this email and any printout.



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Josh VanderBerg
Sent: Saturday, November 17, 2007 7:33 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Garbage Collection question

 

I've read that the GC runs only on allocation. Can't seem to find the
original article I read on this, but this livedoc reference appears to
agree:
http://livedocs.adobe.com/labs/flex3/html/help.html?content=profiler_6.h
tml
http://livedocs.adobe.com/labs/flex3/html/help.html?content=profiler_6.
html 

__
Josh Vanderberg
vanderblog.typepad.com - Flex blog and open source flex components

--- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
, Mike Krotscheck [EMAIL PROTECTED]
wrote:

 I've been digging into memory management techniques recently, and have
a
 question regarding the timing of the two methods. The articles on
 Adobe.com suggest that both methods (Ref Count and Mark  Sweep) run
at
 some arbitrary point in the future defined by current memory usage. I
 found a discussion about the Virtual Machine though that indicated
 garbage collection happens on a 30ms interval.
 
 
 
 These two suggest that the two methods run on different intervals, and
 given that Mark and Sweep is more processor intensive I assume that it
 is the one whose timing is triggered by memory usage, while Reference
 counting operates on the mentioned 30ms. Is that correct?
 
 
 
 Links:
 

http://www.adobe.com/devnet/flashplayer/articles/garbage_collection.html
http://www.adobe.com/devnet/flashplayer/articles/garbage_collection.htm
l 
 
 (some point in the future)
 

http://techpolesen.blogspot.com/2007/11/avm2-vs-jvm-and-actionscript3.ht
http://techpolesen.blogspot.com/2007/11/avm2-vs-jvm-and-actionscript3.h
t 
 ml
 
 (30ms time slice)
 
 
 
 Michael Krotscheck
 
 Senior Developer
 
 
 RESOURCE INTERACTIVE
 
 http://www.resource.com/ http://www.resource.com/ 
www.resource.com http://www.resource.com http://www.resource.com  
 
 [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] 
 
 
 
 __
 
 This email and any of its attachments may contain Resource Interactive
 proprietary information, which is privileged, confidential and may be
 subject to copyright or other intellectual property rights belonging
to
 Resource Interactive. This email is intended solely for the use of the
 individual or entity to which it is addressed. If you are not the
 intended recipient of this email, you are hereby notified that any
 dissemination, distribution, copying or action taken in relation to
the
 contents of and attachments to this email is strictly prohibited and
may
 be unlawful. If you have received this email in error, please notify
the
 sender immediately and permanently delete the original and any copy of
 this email and any printout.


 



[flexcoders] Re: AMFPHP 1.9 security problem

2007-11-19 Thread danielvlopes
Thanks aaron, i thinking create one class in php only for
authentication and all my methods in classes called this static
methods for authenticate before serve data.

--- In flexcoders@yahoogroups.com, Aaron Miller [EMAIL PROTECTED] wrote:

 You can create the login/logout methods in a parent class and have
all your
 child classes extend it. However, what I did was create one Auth
class which
 gets called for login/logout requests and returns an authentication
token to
 the client. This can be as simple as a session ID, or be a more complex
 object with a user id, user hash (generated at login), available
 classes/methods, etc. The idea is to pass this authentication token
as a
 parameter to each request, and validate it before serving any data.
 
 Perhaps there is an easier way to do what you want, but this has
worked for
 me pretty well.
 
 Best Regards,
 ...aaron
 
 On 11/18/07, danielvlopes [EMAIL PROTECTED] wrote:
 
Now i understando how use beforefilter, but my question is:
 
  I had a little big app in flex using amfphp, i had 11 classes inside
  services folder, but the problem is if any user create a flex app and
  point the path to my gateway (using absolute path) they can access all
  my methods.
 
  I need create login, logout methods in all my classes? Exist some way
  to create those authencation methods in one place and use this for all
  amfphp requests?
 
  Thanks for attention and thanks for the link.
 
  --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com,
  danielvlopes danielvlopes@
  wrote:
  
   Thanks Muzak, i will try use this code with session in php. ;-)
  
  
   --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com,
  Muzak p.ginneberge@ wrote:
   
See if this helps:
   
  
 
 
http://www.adobe.com/cfusion/communityengine/index.cfm?event=showdetailsproductId=2postId=3201
   
regards,
Muzak
   
- Original Message -
From: danielvlopes danielvlopes@
To: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com
Sent: Friday, November 16, 2007 5:21 AM
Subject: [flexcoders] Re: AMFPHP 1.9 security problem
   
   
I found this topic in sephirot forum,
http://www.sephiroth.it/phpBB/showthread.php?t=7966, they said use
authenticate class in beforefilter amfphp function, i try look
on this
class in my amfphp folder but i don't understand how use...
everything
i found about authenticate in amfphp is for amfphp 1.2 and i using
1.9beta 2 .
   
Anyone can help?
   
  
 
   
 
 
 
 
 -- 
 Aaron Miller
 Chief Technology Officer
 Splash Labs, LLC.
 [EMAIL PROTECTED]  |  206-328-5485
 http://www.splashlabs.com





RE: [flexcoders] DataGrid problem

2007-11-19 Thread Alex Harui
DG does not support non-objects.  Use List instead and place a button on
top if you want a header.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of liorfadida
Sent: Monday, November 19, 2007 2:00 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] DataGrid problem

 

I have datagrid, with only one column, which its dataProvider is an 
array that contains strings,
So, i have no value to set at the dataField property.

In this case i have no problem to display this array, 
but, the problem starts when i am trying to edit the array values.

The application crushs in DataGrid.itemEditorItemEditEndHandler, 
when trying to access data[property], because there is no property(the 
property value equals to null).

Does any body have solution?

 



RE: [flexcoders] Re:Accessing properties of an Item Renderer

2007-11-19 Thread Alex Harui
You can use indexToItemRenderer, but be aware that renderers get
recycled.  See my blog for more info (blogs.adobe.com/aharui)

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of saurav sinha
Sent: Monday, November 19, 2007 6:15 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re:Accessing properties of an Item Renderer

 

Hi Friends,

 

I m stuck with accessing properties of item renderer. 

 

I have a listbox control and used checkbox as an itemrenderer. I want to
access the selected property of checkbox when user selects any item in
the list control.

 

Please help.

 

Regards

Saurav

  



Get easy, one-click access to your favorites. Make Yahoo! your homepage.
http://us.rd.yahoo.com/evt=51443/*http:/www.yahoo.com/r/hs  

 



RE: [flexcoders] how to keep a tree open.

2007-11-19 Thread Alex Harui
Not sure I understand the question.  How does its creation affect what
is open?  In 2.x use expandItem, in 3.0 you will be able to set
openItems in the next beta (B3)

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Shivani
Sent: Monday, November 19, 2007 5:28 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] how to keep a tree open.

 

Hi,can anyone plz let me know how to keep the tree before its mxml's
creation completes.

Thanks in advance
Shivani

 



RE: [flexcoders] How to load image with non-ascii chars in path?

2007-11-19 Thread Alex Harui
EncodeURI()

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Stephen Roy J. Tang
Sent: Monday, November 19, 2007 1:45 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] How to load image with non-ascii chars in path?

 

Hi,

I tried using an mx:Image source=[path]\image.png / where [path]
contains non-ASCII characters. In some cases it works, (when using
Chinese chars), in others it doesn't (when using Japanese chars). I'm
not sure if there's a bug in Flex, or there's something missing in my
env settings or such.

Any suggestions would be greatly appreciated.

Thanks,

Roy

 



RE: [flexcoders] focus in part of editable combox string?

2007-11-19 Thread Alex Harui
If you subclass you can get to the internal TextInput and setSelection
on it

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of luoxuanhuayelin
Sent: Monday, November 19, 2007 1:11 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] focus in part of editable combox string?

 

Hi:
I am looking for a editable combox like this image by using 
actionscript.

http://img.photo.163.com/aHHUNXTWT0oCr2XiOhY8RQ==/806707283252758320.jpg
http://img.photo.163.com/aHHUNXTWT0oCr2XiOhY8RQ==/806707283252758320.jp
g 

For the type of 'TextInput', using the default function 
TextInput.setSelection((3,5), but for 'editable combox' ,I do not know.
Thanks in advance!

 



RE: [flexcoders] BUG SDK-9480 - Using Modules: get error TypeError: Error #1034

2007-11-19 Thread Alex Harui
You can try loading the chart's styles via runtimeCSS before loading the
modules, or put the chart in the main app, or in a shared code modules.
Shared code modules are explained on my blog.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Bruno Martins
Sent: Monday, November 19, 2007 10:31 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] BUG SDK-9480 - Using Modules: get error
TypeError: Error #1034

 

This didn't solve the problem. Only remove the error msg, but that chart
will draw with wrong colors.

 



On 11/19/07, Alex Harui  [EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]  wrote:

Shared code problem.  See my blog (blogs.adobe.com/aharui
http://blogs.adobe.com/aharui ).  Define an var of type IStroke in the
main app.

 





From: flexcoders@yahoogroups.com
mailto:flexcoders@yahoogroups.com  [mailto:flexcoders@yahoogroups.com
mailto:flexcoders@yahoogroups.com ] On Behalf Of Bruno Martins
Sent: Monday, November 19, 2007 8:36 AM
To: flexcoders@yahoogroups.com
mailto:flexcoders@yahoogroups.com 
Subject: [flexcoders] BUG SDK-9480 - Using Modules: get error
TypeError: Error #1034

 

On this attached example when I load the second module and
change the chart type I got the 1034 error. On Flex Bug and Issue
Management System I found this:

https://bugs.adobe.com/jira/browse/SDK-9480
https://bugs.adobe.com/jira/browse/SDK-9480 

however it didn't solve my problem.  I appreciate your help. 

Thanks...







-- 
Bruno Gustavo Martins - 1,2,3..4
Office: (11)5506-5154
experience everywhere
http://www.dclick.com.br/blog http://www.dclick.com.br/blog  




-- 
Bruno Gustavo Martins - 1,2,3..4
Office: (11)5506-5154
experience everywhere
http://www.dclick.com.br/blog http://www.dclick.com.br/blog  

 



[flexcoders] AMFPHP 1.9B : Using ADODB5 to get UTF-8 data from MSSQL

2007-11-19 Thread oneproofdk
Hi Guys - I know that this is NOT a PHP forum, but I feel that some of
you use AMFPHP extensively, so I thought I'd give it a try.

I have just started to use AMFPHP as a backend for Flex2 projects.  
When I connect to MySQL databases it is just perfect and fast - great. 
 
Now I need to connect to a MS SQL Server 2000, it is a sql server used
by a MS Dynamics Navision installation.
The data stored are stored in a non UTF-8 charset and database names
include stupid names like [DK idé-nyt as$Insertion] where the sql
driver stumbles on the ´

When I use ADODB in PHP and json_encode the result, it works fine. 

When I try to use the following code in AMFPHP, the service browser
fails with a Flex error. 
 
What can I do, to make this work ? 
 
I'm quite new to PHP also, so please be gentle if you can :-) 
 
Thanks for any help you might provide. 

Thanks and sorry for this semi non-flex question 
Mark 
 
/ Begin PHP snippet ***/ 
include_once('adodb5/adodb.inc.php'); 
 
$db = ADONewConnection('odbc_mssql'); 
$DB-charSet = 'utf-8'; 
$dsn = Driver={SQL Server};Server=10.45.2.33;Database=BRM;; 
$db-Connect($dsn,'pfs','youbet'); 
$db-SetFetchMode(ADODB_FETCH_ASSOC); 
 
class ars {  
function ars () { 
/** 
Constructor function 
*/ 
}  
/** 
* Function getCustomer returnsinfo about cutomer 
* select top 100 * from [DK idé-nyt as$Customer]; 
* @access remote 
**/ 
 
function getCustomer ()  
{ 
global $db; 
$arr = array(); 
$sql = select top 100 * from [DK idé-nyt as$Customer];; 
$rs = $db-Execute($sql); 
return $rs; 
}  
}




[flexcoders] Re: Binding with Associatives Arrays

2007-11-19 Thread arieljake
Binding does not work with generic Objects when referencing their
properties. You will have to create a class that has Bindable
properties or that uses a get/set function pair to dispatch events to
allow binding to work. 

Also, even though your example won't work, you need to be in the habit
of adding [Bindable] before variables that you are expecting to be
bindable.

--- In flexcoders@yahoogroups.com, peuga [EMAIL PROTECTED] wrote:

 hello coders.
 
 i'm trying to bind an associative array to some component property,
 something like:
 
 - - -
 mx:Script
   ![CDATA[
   [Bindable]
   public var monitorInfo:Object = new Object();
 
   public function click():void{
   monitorInfo[sum] = hello;
   }   
   
 
   ]]
 /mx:Script
 mx:Button label={monitorInfo['sum']} click=click();/
 - - -
 
 but flex can't bind this, even with monitorInfo.getItemAt('sum').
 can anyone one help me whith this??
 
 thanks a lot.





Re: [flexcoders] Re: List Filter Problem driving me crazy!

2007-11-19 Thread Rick Root
(Sorry for quoting the whole freaking thing here... gmail won't let me edit
the quoted part :( )

Alex,

I am currently compiling using Flex Builder 3 and compiling my application
with Flex 2.0.1 Hotfix 3 SDK.

Under this scenario, the items do sometimes remain selected - but sometimes
not.

If I compile versus Flex 3 M3 (beta 2) SDK, I see that the items do not
remain selected.

so apparently, I was taking advantage of a bug in the Flex 2 SDK with the
selectedIndices, eh?   Bummer.

so if I want these items to remain selected I need to store the list of
selected items separately (as someone else mentioned on another list)

But I still want them to appear selected in the list, after the a filter is
removed or changed... is there a an event that fires off after a filter
operation is completed?

Also, I'm not sure how I can copy the item being selected to my temporary
storage area... or more importantly, how to remove the item being
deselected.  The change() event on the list itself doesn't specific the item
being clicked and whether its being selected or deselected...

Any suggestions?

Rick



On 11/16/07, Alex Harui [EMAIL PROTECTED] wrote:

Which version of Flex?  Filtering essentially removes items from the
 List so it should drop its notion of what is selected.  There were problems
 with selectedIndices in 2.x that should be fixed in 3.0


  --

 *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
 Behalf Of *ben.clinkinbeard
 *Sent:* Friday, November 16, 2007 10:30 AM
 *To:* flexcoders@yahoogroups.com
 *Subject:* [flexcoders] Re: List Filter Problem driving me crazy!



 Maybe call invalidateList() when the filter changes? Just a guess.

 --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Rick
 Root [EMAIL PROTECTED] wrote:
 
  So I'm building an application which contains lists of items that I
  want users to be able to filter, select some items, filter again,
  select some more items, etc.
 
  However, when a selected item is filtered out, when the filter is
  removed, the item is no longer selected.
 
  Take the following example:
 
  http://www.it.dev.duke.edu/public/CheckBoxListTest/CheckBoxListTest.html
 
  select Item 1 then filter for Item 2... don't select anything.
  Remove the filter now.
 
  Item 1 is no longer selected. But the label still says it is
  selected.. the label is bound to the
  {cboRatings.selectedIndices.length} property.
 
  In my test application I can't get it to work the way I want it to at
  all. In my real application, it works sometimes but not others.
 
  I thought maybe it was the CheckBoxList component that someone had
  written for me... or the CheckBoxListItemRenderer that was part of
  that component, but i'm finding the same problem in the above test
  application which only uses a simple, standard list component.
 
  If it makes any different, I'm compiling the application with Flex
  Builder 3 (beta 2). I've compiled it with the Flex 2.0.1 HF3 SDK and
  the latest Flex 3 beta SDK.
 
  Why doesn't the list remember what's selected? Doesn't the filter
  simply prevent an item from displaying?
 
  --
  Rick Root
  Check out CFMBB, BlogCFM, ImageCFC, ImapCFC, CFFM, and more at
  www.opensourcecf.com
 

  




-- 
Rick Root
Check out CFMBB, BlogCFM, ImageCFC, ImapCFC, CFFM, and more at
www.opensourcecf.com


Re: [flexcoders] Re: Confused by context.root, services-config.xml and remoting-config.xml...

2007-11-19 Thread Stephen Allison

 Do I still need to worry about the services-config.xml and
 remote-config.xml files? If not, how do the destinations and their
 properties (i.e. the source property that specifies which Java service
 gets called) get set up?
The various *-config.xml file in the WEB-INF directory are used by  
the server to determine how to map an incoming request to a piece of  
server side code.  Your remote object calls will specify one of the  
destinations listed in the config file (remoting-config.xml, perhaps,  
I don't have an FDS install to hand at the moment I'm afraid), when  
Flex sends the request this is sent along with it, at the server the'  
gateway', which is a servlet the url of which you specify as the  
remote object 'endpoint'', receives the call and uses the information  
in the config files to figure out which method to call on which  
object - remoting-config.xml essentially just maps the 'destination'  
name that flex sends to a class on the server.

So, as a Flex developer you just have to make sure the server is  
running and that the any java class or jar files can be found by the  
server, and that you know the correct destination names to use in  
your RemoteObjects.

What can cause confusion is that if in Flex Builder you specify a  
data services server when create the project then Flex Builder uses  
the config information on the server to automatically set endpoints  
on remote objects (IIRC you can specify a server-config file to mxmlc  
to achieve the same thing).  This creates a dependency on the server  
against which you are building 'against' in flex builder, so when you  
come to deploy in another environment you find you're stuck as  
endpoint information has been baked into your swf by Flex Builder.   
You then have to go into your Flex code and add all the endpoints you  
thought you'd got away without having to worry about : \

Stephen.


[flexcoders] Re: Confused by context.root, services-config.xml and remoting-config.xml...

2007-11-19 Thread lawriegallardo
As suggested, I removed the endpoint property from my mx:RemoteObject
tag, removed the services property from my mxmlc Ant task and did a
clean, build, deploy.

  mx:RemoteObject 
 id=mService 
 destination=MyService
 showBusyCursor=true
 result=event.token.resultHandler( event )
 fault=event.token.faultHandler( event )
 requestTimeout=30 /

Now when I run the app I get a Destination 'MyService' has no
channels defined and the application does not define any default
channels.

Any thoughts?

Cheers,

Lawrie


--- In flexcoders@yahoogroups.com, Peter Farland [EMAIL PROTECTED] wrote:

 For the MXML RemoteObject API, it's true there is an endpoint property
 and what steve writes about it automatically selecting the right channel
 based on HTTP(S) URLs is correct, but it is not marked bindable and I've
 not seen it used with MXML binding statements. So, I am suggesting that
 while you're trying to get this to work - just use the programmatic
 approach you're using with ChannelSet exclusively for now.
 
 Pete
 
 -Original Message-
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of lawriegallardo
 Sent: Monday, November 19, 2007 1:52 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: Confused by context.root, services-config.xml
 and remoting-config.xml...
 
 No, we're not at crossed purposes at all - that's really useful thanks!
 
 Do I still need to worry about the services-config.xml and
 remote-config.xml files? If not, how do the destinations and their
 properties (i.e. the source property that specifies which Java service
 gets called) get set up?
 
 Cheers,
 
 Lawrie
 
 --- In flexcoders@yahoogroups.com, Stephen Allison
 steve.allison@ wrote:
 
   Thanks for your help - Apologies if I'm being a bit thick , but I'm 
   a not quite sure what you mean when you say that you set the 
   endpoint property of the RemoteObject to point at whatever AMF 
   endpoint url you want. Could you clarify this a bit, please?
  
  Hi,
  RemoteObject defines an endpoint property which allows you to 
  programatically set the AMF endpoint used by that instance.  So:
  
  var ro:RemoteObject = new RemoteObject(...); ro.endpoint = 
  Application.application.parameters[gatewayUrl]
  
  and you're ready to go, the RemoteObject will use either a secure AMF 
  channel or a regular AMF channel depending on whether or not the url
 you 
  provide it is https or not. 
  
  You can probably (and I've not checked) set it in mxml using data
 binding:
  mx:RemoteObject ... 
  endpoint={Application.application.parameters['gatewayUrl']} ...
  
  or somesuch.  We set gatewayUrl from FlashVars in the containing ASP
 page, 
  so the server decides which endpoint a given application talks to. 
  
  Apologies if we're at crossed purposes here! 
  
  Stephen
 
 
 
 
 
 --
 Flexcoders Mailing List
 FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 Search Archives:
 http://www.mail-archive.com/flexcoders%40yahoogroups.com
 Yahoo! Groups Links





[flexcoders] flex + dll

2007-11-19 Thread Bit
hi people, how do dll and flex!
work with finger and flex!
thx

bit



[flexcoders] Help Using Arabic and othe rBidi langauges form wise with Flex

2007-11-19 Thread Body Works Studio
All,

we are building an app that has several areas of data entry in english
and arabic. Because of the lack of bidi support we are rendeing html
form elements infront of flex to display the arabic text, and using a
style we are rendering the text rtl. Phrases are working fine, but
multiword names are not. For example names like Abu Dhabi get show
as Dhabi Abu. Currently we are using the function in
JavascriptInjector.setstyle:

ExtenalInterface.call(setStyle, uid, styleProp, newValue);

so we make the call as this.setStyle(direction, rtl);

any suggestions on a better way to do arabic support now, and not wait
for Adobe?

thanks in advance

Jeff



[flexcoders] ColdFusion / Filter Function / Datagrid

2007-11-19 Thread Demian
HELP!

I'm working on a proof-of-concept application.  The first version had
a simple arraycollection bound to a datagrid and a filter function
that was attached to a text input.

For the second part of the proof, I need to change the source of the
array collection to a live data pulled in from ColdFusion via a CFC.

The datagrid works perfectly, as expected.  However, now the filter
function do not work. :-(

I get the following error:
TypeError: Error #1009: Cannot access a property or method of a null
object reference.

I've complied for Flex 2.01 and Flex 3 beta 2 and I'm using CF 8 with
IIS v5.1.  I've been Googling this all day with no luck.  Anyone out
there got any ideas?

Thanks ahead of time!

Demian



Re: [flexcoders] Binding with Associatives Arrays

2007-11-19 Thread Stephen Allison
 i'm trying to bind an associative array to some component property,
You can get close-ish using ObjectProxy:

[Bindable] var p:ObjectProxy;

function init() {

var obj:Object = {name: alice };
p = new ObjectProxy(d);

}
...
mx:Label text=name is {p.name} /
mx:Button click=p.name='bob'  /

ObjectProxy wraps 'obj' and intercepts any attempt to get/set/call  
anything on it.  Crucially, when a property is set on ObjectProxy it  
fires a PropertyChange event, which is what a data binding looks for  
as the signal to update.  While this will work with dynamic  
properties using the normal '.' accessing syntax, I don't think  
this'll work if you use the square bracket notation (perhaps someone  
more knowledgable could tell us why?)

Stephen


RE: [flexcoders] Re: Confused by context.root, services-config.xml and remoting-config.xml...

2007-11-19 Thread Peter Farland
But you're still assigning the mService.channelSet property with your
programmatically created ChannelSet, right?

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of lawriegallardo
Sent: Monday, November 19, 2007 3:28 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Confused by context.root, services-config.xml
and remoting-config.xml...

As suggested, I removed the endpoint property from my mx:RemoteObject
tag, removed the services property from my mxmlc Ant task and did a
clean, build, deploy.

  mx:RemoteObject 
 id=mService 
 destination=MyService
 showBusyCursor=true
 result=event.token.resultHandler( event )
 fault=event.token.faultHandler( event )
 requestTimeout=30 /

Now when I run the app I get a Destination 'MyService' has no channels
defined and the application does not define any default channels.

Any thoughts?

Cheers,

Lawrie


[flexcoders] Re: Cairngorm - what's you best practice on handling inital data from the server

2007-11-19 Thread Uber_Nick
Hi Almog,

I see your concern now.  You're right in that the logic for creation
of the view stack should remain in the view code, not the command or
in some other binding.

Here's how we handle that situation.  On the component's
creationComplete, we call init():

private function init():void
{
   Changewatcher.watch(_model, servicesList, createViewStack)
}

private function createViewStack(event:PropertyChangeEvent):void
{
  //do view stack creation logic here
}

This way, your view logic is in one place and built off the model.  In
terms of the redundant dispatching of events, it will fire once or
twice on startup will a null value, but after that it should only fire
the one time your property is set.  That's how all binding works and
it's nothing to worry about.  Are your concerns performance-related,
or more about style/elegance?

-Nick Matelli
Amentra, Inc

--- In flexcoders@yahoogroups.com, mydarkspoon [EMAIL PROTECTED] wrote:

 Hi Nick,
 Thanks for the help, the reasons why I'm not satisfied with #5 are
 like that: The tabs naming is one operation that takes place, another
 one is creating a ViewStack object to correspond those tabs.
 Obviously, the view stack Can be built upon setting the TabBar
 dataProvider, however, I think it's not readable beacuse when I open
 an mxml component in search for a specific view control, the viewstack
 in this example, I would look first at the mx:ViewStack / tag
 instead, not at the TabBar, which should have nothing to do with the
 ViewStack leaving it to be loosely coupled as much as possible.
 Actually, this brings me the idea which I'll have to implement anyway,
 to bind the ViewStack object's selectedIndex to the model using a
 local helper function to get the selectedIndex, null checking the
 model for the config file, and eventually returning an index.
 This is not perfect but more elegant I think, yet I'd like to adapt
 best practices dealing with such issues so feel about it :)
 
 I almost forgot, my second drawback from the curly braces metjod is
 the dispatching of redundant event, which is the reason that causes
 the null checking to be essential.
 
 
 Thanks and best regards,
 
 Almog Kurtser.




Re: [flexcoders] Re: Confused by context.root, services-config.xml and remoting-config.xml...

2007-11-19 Thread Stephen Allison
 Now when I run the app I get a Destination 'MyService' has no
 channels defined and the application does not define any default
 channels.

That sounds like a server configuration problem.

My guess is that you have a 'destination' set up in your remoting- 
config.xml that isn't specifying a channel., and that there is no  
default channel element in your remoting-config file.  The usual set  
up is something like:

service id=remoting-service ... 
default-channels
channel ref=my-amf /
   /default-channels
   destination id=my-destination

   /destination
/service


You can also specify channels on a per-destination basis.  You need  
to make sure that whatever is in the ref attribute of the channel  
tags corresponds to one of the channel-definition's  set up in your  
services-config.xml file, so in the above, you must have a channel  
with id=my-amf present.

Hope this is of some use.

Stephen




[flexcoders] Re: Confused by context.root, services-config.xml and remoting-config.xml...

2007-11-19 Thread lawriegallardo
Hi Peter,

Yes, I'm still assigning the myService.channelSet property with my
programmatically created ChannelSet.

Here's the code:

Services.mxml:

...

public function init():void {
  var amfChannel:AMFChannel
  = new AMFChannel(my-amf, getContextRootUrl()
  + /messagebroker/amf);
  amfChannel.pollingEnabled = false;
  var myChannelSet:ChannelSet = new ChannelSet();
  myChannelSet.addChannel(amfChannel);
  myService.channelSet = myChannelSet;
}

private function getContextRootUrl():String {
  var i:int = Application.application.url.lastIndexOf(/);
  var contextRootUrl:String
  = Application.application.url.substring(0, i);
  return contextRootUrl;
}

...

mx:RemoteObject
  id=myService
  destination=MyService
  showBusyCursor=true
  result=event.token.resultHandler( event )
  fault=event.token.faultHandler( event )
  requestTimeout=30/


And my top-level MyApp.mxml file includes the following:

mx:Application
  ...
  creationComplete=creationCompleteHandler( event );

  mx:Script
![CDATA[
...
private function creationCompleteHandler( event:FlexEvent ):void {
  ...
  services.init();
}   
...
]]

  /mx:Script

  ...

  business:Services id=services/

  ...

/mx:Application


Cheers,

Lawrie



--- In flexcoders@yahoogroups.com, Peter Farland [EMAIL PROTECTED] wrote:

 But you're still assigning the mService.channelSet property with your
 programmatically created ChannelSet, right?
 
 -Original Message-
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of lawriegallardo
 Sent: Monday, November 19, 2007 3:28 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: Confused by context.root, services-config.xml
 and remoting-config.xml...
 
 As suggested, I removed the endpoint property from my mx:RemoteObject
 tag, removed the services property from my mxmlc Ant task and did a
 clean, build, deploy.
 
   mx:RemoteObject 
  id=mService 
  destination=MyService  
  showBusyCursor=true
  result=event.token.resultHandler( event )
  fault=event.token.faultHandler( event )
  requestTimeout=30 /
 
 Now when I run the app I get a Destination 'MyService' has no channels
 defined and the application does not define any default channels.
 
 Any thoughts?
 
 Cheers,
 
 Lawrie





[flexcoders] Re: Confused by context.root, services-config.xml and remoting-config.xml...

2007-11-19 Thread lawriegallardo
Thanks Stephen, great explanation - that's really cleared things up
for me.

Cheers,

Lawrie



Re: [flexcoders] flex + dll

2007-11-19 Thread Ralf Bokelberg
Afaik you cannot use dll's with Flex. Since Flex is plattform
independent,  this wouldn't make sense really.
Maybe you can use the dll from IE/JavaScript though. You could use
ExternalInterface from Flex to communicate to JavaScript
Cheers
Ralf.

On Nov 19, 2007 9:29 PM, Bit [EMAIL PROTECTED] wrote:






 hi people, how do dll and flex!
  work with finger and flex!
  thx

  bit

  



-- 
Ralf Bokelberg [EMAIL PROTECTED]
Flex  Flash Consultant based in Cologne/Germany
Phone +49 (0) 221 530 15 35


[flexcoders] always on top windows

2007-11-19 Thread nxzone
How we can put a windows ontop of all other window not matter from
where it comes and if we added new window since...

#My first try was to create a popup parent of Application.
NoteWindow(PopUpManager.createPopUp(DisplayObject(mx.core.Application.application),
NoteWindow, false));

#and bring it to front each 1 second. This was perfect but my
combobox was loosing focus each second... This will be ok if i can
find a solution to check  ONLY if the window is not on top then bring
it... 
public function init():void{
t= new Timer(1000)
t.addEventListener(TimerEvent.TIMER,tic)
t.start()
}

public function tic(e:Event):void{
PopUpManager.bringToFront(this)
}


May be it's possible to put it modal and then removing the blur
layer under the windows?

Any idea?



[flexcoders] Rendering problem

2007-11-19 Thread karunyanamuduri
Hi All,

I am a newbie in Flex. I am trying to do a simple Flex page deployment
on our servers. It worked just fine when I deployed on a windows
server. But I am getting error when I deployed on Sun - Unix ( Sun One
Webserver) in the html wrapper saying that object not found.


Any help is highly appreciated.


Thanks,
Karunya





[flexcoders] Re: Confused by context.root, services-config.xml and remoting-config.xml...

2007-11-19 Thread lawriegallardo
Hi Stephen,

I don't think there are any problems with my services-config.xml and
remoting-config.xml files - they were working fine when I was
compiling using mxmlc Ant task using the services property to point at
the services-config.xml, and I haven't made any changes since...

Here are the files:

services-config.xml:

...

channel-definition id=my-amf
class=mx.messaging.channels.AMFChannel
  endpoint
url=http://{server.name}:{server.port}/{context.root}/messagebroker/amf;
class=flex.messaging.endpoints.AMFEndpoint/
  properties
polling-enabledfalse/polling-enabled
  /properties
/channel-definition

...


remoting-config.xml:

?xml version=1.0 encoding=UTF-8?
service id=remoting-service
class=flex.messaging.services.RemotingService
messageTypes=flex.messaging.messages.RemotingMessage

  adapters
adapter-definition id=java-object
class=flex.messaging.services.remoting.adapters.JavaAdapter
default=true/
  /adapters

  default-channels
channel ref=my-amf/
  /default-channels

  destination id=MyService
properties
  sourcemyService/source
  factoryspring/factory
/properties
  /destination

  ...

/service


Do these look ok to you?

Cheers,

Lawrie



--- In flexcoders@yahoogroups.com, Stephen Allison [EMAIL PROTECTED]
wrote:

  Now when I run the app I get a Destination 'MyService' has no
  channels defined and the application does not define any default
  channels.
 
 That sounds like a server configuration problem.
 
 My guess is that you have a 'destination' set up in your remoting- 
 config.xml that isn't specifying a channel., and that there is no  
 default channel element in your remoting-config file.  The usual set  
 up is something like:
 
 service id=remoting-service ... 
 default-channels
 channel ref=my-amf /
/default-channels
destination id=my-destination
   
/destination
 /service
 
 
 You can also specify channels on a per-destination basis.  You need  
 to make sure that whatever is in the ref attribute of the channel  
 tags corresponds to one of the channel-definition's  set up in your  
 services-config.xml file, so in the above, you must have a channel  
 with id=my-amf present.
 
 Hope this is of some use.
 
 Stephen





[flexcoders] Re: Debugging with safari

2007-11-19 Thread Mike Morearty
That's very strange.  I can't imagine why you would get that message
with one browser but not with another.  On the Mac, Safari and Firefox
both get Flash from the exact same place: the path given in that dialog.

All I can suggest is that you try reinstalling the Flash player.  The
installer can be found on your hard disk under Flex Builder's
installation dir, in a subdirectory called Player.

- Mike Morearty, Adobe Flex Builder team


--- In flexcoders@yahoogroups.com, Cesare Rocchi [EMAIL PROTECTED] wrote:

 Hi,
 
 i really like a lot the new Safari (3). Is there any
 way to allow debugging of flex applications with
 Safari. 
 
 In the preferences a select Safari as primary browser,
 then debug my app, but the error is:
 
 /Library/Internet Plug-Ins/Flash Player.plugin
 
 Flex Builder cannot locate the required debug version
 of the Flash Player. You may need to install the debug
 version of Flash Player 9.0 or reinstall Flex Builder.
 Do you want to try to debug with the current version?
 
 If I set Firefox as primary browser I can debug.
 
 Any idea?
 
 --
 Rocchi Cesare
 http://funkyboy.tumblr.com/




[flexcoders] setActualSize()

2007-11-19 Thread Sheriff
is there a difference when overriding the updateDisplayList() between doing

canvas.setActualSize(unscaledWidth,unscaledHeight) 

 and canvas.width = unscaledWidth, canvas.Height =unscaledHeight

I am looking at some code from the flexLib and some times they do the 
setActualSize() and some times they do the .width is it just a preference?




  

Never miss a thing.  Make Yahoo your home page. 
http://www.yahoo.com/r/hs

RE: [flexcoders] setActualSize()

2007-11-19 Thread Alex Harui
Setting width/height also sets explicitWidth/Height and thus affects the
result of getExplicitOrMeasuredWidth/Height.  Anywhere a component is
used in measure(), you should see that component sized via
setActualSize.  Things that aren't measured like some skins sometimes
just have their width/height set.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Sheriff
Sent: Monday, November 19, 2007 1:24 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] setActualSize()

 

is there a difference when overriding the updateDisplayList() between
doing

canvas.setActualSize(unscaledWidth,unscaledHeight) 

 and canvas.width = unscaledWidth, canvas.Height =unscaledHeight

I am looking at some code from the flexLib and some times they do the
setActualSize() and some times they do the .width is it just a
preference?

 



Be a better pen pal. Text or chat with friends inside Yahoo! Mail. See
how. http://us.rd.yahoo.com/evt=51732/*http:/overview.mail.yahoo.com/ 

 



RE: [flexcoders] always on top windows

2007-11-19 Thread Alex Harui
Set the childList argument to PopUpManagerChildList.POPUP

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of nxzone
Sent: Monday, November 19, 2007 1:12 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] always on top windows

 

How we can put a windows ontop of all other window not matter from
where it comes and if we added new window since...

#My first try was to create a popup parent of Application.
NoteWindow(PopUpManager.createPopUp(DisplayObject(mx.core.Application.ap
plication),
NoteWindow, false));

#and bring it to front each 1 second. This was perfect but my
combobox was loosing focus each second... This will be ok if i can
find a solution to check ONLY if the window is not on top then bring
it... 
public function init():void{ 
t= new Timer(1000)
t.addEventListener(TimerEvent.TIMER,tic)
t.start()
}

public function tic(e:Event):void{
PopUpManager.bringToFront(this)
}

May be it's possible to put it modal and then removing the blur
layer under the windows?

Any idea?

 



[flexcoders] Performance Impact when using custom item renderer

2007-11-19 Thread letterpigeon
Hi all,

I'm seeing a huge performance degradation while using custom item
renderer with a datagrid.  My datagrid is using a custom item renderer
for all its column.  And even if my item renderer does nothing more
than  :

public override function data(value:object)
{
 super.data = value;
}

I'm still seeing a few more seconds delay compared to not using custom
item renderers for a data set of 50 rows or more.

Just wondering if this is a known issue with flex due to heavy graphic
rendering?  Any pointers on how to speed things up a little bit?  Thanks.

Ban



[flexcoders] Emulating Flash MultiThreading; Approaches

2007-11-19 Thread Aldo Bucchi
Hi Guys,

I need to run an expensive computation in the background ( 2 seconds
on a modern day laptop ) while keeping the UI responsive. For this
matter I have tried creating a secondary application and communicate
with it in a non-blocking way. I share my thoughts so far to see if
anyone can help with this one.

First, some approaches to create a secondary application:
* Load a module at runtime
* Publish a module from within a new Frame ( Gonzalez/Harui trick )
* Open another SWF altogether ( seems the safest best bet to me )

Some approaches to communicate between apps:
* LocalConnection ( sync )
* Write/Poll a LSO ( async )

And to go from blocking to non-blocking communication ( maybe )
 * Upon receiving a call start a timer and listen for the completion
event. This should make the call return while leaving it up to events
to start the real processing.

Now, I haven't tried every combination yet, but so far I found some
interesting results:

I created two separate applications that talk through a
LocalConnection. They use the timer trick ( upon receiving a call they
set up a very short internal timer that will eventually start internal
execution of the code ). If I open both SWFs in IE they effectively
work as expected. I can start a very heavy computation on the
secondary app while the first remains totally responsive to user
events. Then I can make a reverse call and pass the results back. So
far so good :)

Firefox, however, is a show killer. No matter how I open the two apps
( tabs, apps, etc ) blocking occurs.

Can someone from the flash player shed some light on this?
This is not real multi-threading, it is simpler in the sense that I
don't need synchronization. The contract is passing an input and
waiting for a result.

Now, even if I managed to pull this off with parallel applications...
how would I materialize that setup in AIR?

Thanks,
Aldo



-- 
 Aldo Bucchi 
+1 858 539 6986
+56 9 8429 8300
+56 9 7623 8653
skype:aldo.bucchi


Re: [flexcoders] Performance Impact when using custom item renderer

2007-11-19 Thread Scott Melby
Check out this post http://blog.fastlanesw.com/?p=25 on my blog where 
I discuss and demonstrate performance diffs using various item renderers 
in Flex.  Source code is available if you run the app and right click.  
Notice how the optimized renderer does not use layout containers such as 
HBox, etc.  Instead it extends the AdvancedDataGridItemRenderer class.  
In general you want to make your renderers as light weight as possible.


hth
Scott

Scott Melby
Founder, Fast Lane Software LLC
http://www.fastlanesw.com



letterpigeon wrote:


Hi all,

I'm seeing a huge performance degradation while using custom item
renderer with a datagrid. My datagrid is using a custom item renderer
for all its column. And even if my item renderer does nothing more
than :

public override function data(value:object)
{
super.data = value;
}

I'm still seeing a few more seconds delay compared to not using custom
item renderers for a data set of 50 rows or more.

Just wondering if this is a known issue with flex due to heavy graphic
rendering? Any pointers on how to speed things up a little bit? Thanks.

Ban

 


[flexcoders] Re: Performance Impact when using custom item renderer

2007-11-19 Thread letterpigeon
Hi Scott,

Thanks for your post.  But I'm on flex 2 now so the
AdvancedDataGridItemRenderer is not available to me.  Also, in terms
of keeping the item renderer as light weight as possible, my item
renderer is just a TextInput and I change its background color by
calling this.styleName = ErrorCell where ErrorCell is defined in
my stylesheet.  But even if I comment all this out,  have my item
renderer just to renderer the text, I'm still seeing a considerable
performance hit just by using custom item renderers on all the columns
of my datagrid.  Is this a limitation in flex that we must trade off
performance for using custom renderers heavily??  Thanks.

Ban

--- In flexcoders@yahoogroups.com, Scott Melby [EMAIL PROTECTED] wrote:

  Check out this post http://blog.fastlanesw.com/?p=25 on my blog
where 
 I discuss and demonstrate performance diffs using various item
renderers 
 in Flex.  Source code is available if you run the app and right click.  
 Notice how the optimized renderer does not use layout containers
such as 
 HBox, etc.  Instead it extends the AdvancedDataGridItemRenderer class.  
 In general you want to make your renderers as light weight as possible.
 
 hth
 Scott
 
 Scott Melby
 Founder, Fast Lane Software LLC
 http://www.fastlanesw.com
 
 
 
 letterpigeon wrote:
 
  Hi all,
 
  I'm seeing a huge performance degradation while using custom item
  renderer with a datagrid. My datagrid is using a custom item renderer
  for all its column. And even if my item renderer does nothing more
  than :
 
  public override function data(value:object)
  {
  super.data = value;
  }
 
  I'm still seeing a few more seconds delay compared to not using custom
  item renderers for a data set of 50 rows or more.
 
  Just wondering if this is a known issue with flex due to heavy graphic
  rendering? Any pointers on how to speed things up a little bit?
Thanks.
 
  Ban
 
 





  1   2   >