[flexcoders] FOUND SOME BUGS: Adobe AutoComplete component

2006-12-22 Thread Adam Royle
Hi guys,

I have found a bug with the AutoComplete component, where it clears the text 
field if text is assigned programatically and the text is bigger than the 
default component size (21 characters).

The bug exists on line 520 of the class:

if(selectedIndex == -1)
textInput.text = typedText;


My fix (seems to work and haven't found any side effects yet):


if(selectedIndex == -1  typedText)
textInput.text = typedText;


Another bug exists on line 559, where the selection caret is placed at the end 
of the text field when there is more than 21 characters in the text field and 
you try to add or delete characters inside the text field:


else if(typedText)
//Sets the selection when user navigates the suggestion list through
//arrows keys.
textInput.setSelection(_typedText.length,textInput.text.length);



My fix is to remove the setSelection() call:


else if(typedText){
//Sets the selection when user navigates the suggestion list through
//arrows keys.
//textInput.setSelection(_typedText.length,textInput.text.length);
}


I am unaware of any side-effects to this fix, but would be interested to hear 
other's opinions on this.

Cheers,
Adam

Re: [flexcoders] Changing the text in each dataGrid row to a different color

2006-12-22 Thread Ralf Bokelberg

Here is a complete example:

file ApplicationEntry.mxml
--- snip
-
?xml version=1.0 encoding=utf-8?
mx:Application
   xmlns=*
   xmlns:mx=http://www.adobe.com/2006/mxml;
   layout=vertical
   creationComplete=onCreationComplete()

   mx:Script
   ![CDATA[

   import mx.collections.ArrayCollection;

   [Bindable]
   private var myData : ArrayCollection;

   private function onCreationComplete() : void
   {
   trace(ApplicationEntry::onCreationComplete);
   myData = initData();
   }

   private function initData() : ArrayCollection
   {
   var result : ArrayCollection = new ArrayCollection();
   for( var i : uint = 0; i  5; i++ )
   {
   result.addItem( createItem( i ));
   }
   return result;
   }

   private function createItem( index: uint ) : Object
   {
   var color : uint = Math.floor( Math.random() * 0xff );
   var label : String = test  + index;

   var result : Object = new Object();
   result.label = test  + index;
   result.color = color;
   return result;
   }
   ]]
   /mx:Script

   mx:DataGrid dataProvider={ myData }
   mx:columns
   mx:DataGridColumn dataField=label
itemRenderer=MyItemRenderer/
   mx:DataGridColumn dataField=color
itemRenderer=MyItemRenderer/
   /mx:columns
   /mx:DataGrid

/mx:Application
--- snip
-

//file MyItemRenderer.mxml
--- snip
-
?xml version=1.0 encoding=utf-8?
mx:Label xmlns:mx=http://www.adobe.com/2006/mxml;
   color={ data.color } text={ getLabel( data ) }
   mx:Script
   ![CDATA[

   private function getLabel( data : Object ) : String
   {
   return listData.label;
   }
   ]]
   /mx:Script
/mx:Label
--- snip
-

On 12/22/06, Ralf Bokelberg [EMAIL PROTECTED] wrote:


The common solution is to add the color or style name to the items of your
dataprovider and bind to this property inside your itemrenderer.
Cheers,
Ralf


On 12/21/06, retrogamer4ever [EMAIL PROTECTED] wrote:

   Okay I am going to try and be as clear as possible with this, so
 bare with me.

 What I am trying to do is make it so that when my arraycollection
 objects that I have retrieved from a web service are loaded in (by
 using the dataProvider attribute) my dataGrid that some sort of
 code will take place changing the color of each line of text (all
 the objects stored in the array collection are string types) and
 display each rows text in a different color.

 Now after looking into it, it seems the only way to alter the color
 of the text is to use some sort of style or format but it seems it
 only effects text in a textArea, textField, textInput etc...
 SOOO I figured why not create a itemRenderer that contains one of
 those and put it into the dataGrid... Which I did and still can't
 figure out a way to make it so you can dynamically alter the color
 based on a set of rbg values stored in a array the same size as the
 rowCount of the datagrid.

 so I am rather stumpped in what to do.. I DON'T want to change the
 background color of each row, so alternatingItemColor is out of the
 question, I just want the text displayed in each row to be a
 different color And I want all this color changing to happen
 either before the data is inputted into the dataGrid (manipulating
 the arraycollection some how..) or when its all already in there, it
 all needs to happen in code no user interaction.

 I was thinking perhaps maybe I could create a item Renderer object
 that contains the compenent (the textArea in it) and just make a
 array of item Renderer objects and pass those into the dataGrid, but
 I don't think that is possible.

 ANY IDEAS AT ALL!! On how to change the color of the text in each
 row of the datagrid to a different color would be a HUGE, HUGE!!!
 help. Or any info on how to setup a datagrid listener that listens
 for when a object (a row) from the arraycollection is added to the
 datagrid... Perhaps I could use that info some how to my
 advantage.

 email me, if you like I don't care I just need a answer to this its
 driving me crazy! I can change the background row color based on a
 array of rgb values but I can't change the color of the item in that
 row based on array of rgb values, ARG!

 thanx in advanced.

  





--
Ralf Bokelberg [EMAIL PROTECTED]
Flex  Flash Consultant based in Cologne/Germany





--
Ralf Bokelberg [EMAIL PROTECTED]
Flex  Flash Consultant based in Cologne/Germany


RE: [flexcoders] masking with a sprite

2006-12-22 Thread Giles Roadnight
After doing some digging about I found some discussion on this mailing list
saying that you couldn't load a Sprite into a Panel or something along those
lines. I changed it to a canvas instead and it's now working fine.

 

It seems that the example on livedocs should be updated.

 

Giles Roadnight

  _  

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Giles Roadnight
Sent: 22 December 2006 00:42
To: flexcoders@yahoogroups.com
Subject: [flexcoders] masking with a sprite

 

Hi

 

I am loading swfs from a backend server that are produced by our own
renderer. If I simply load these swfs into an image the background colour
form the swf floods the whoel stag enad makes it impossible to see anything
other than the last one to load.

 

I need to mask the swfs so we just see what we are supposed to.

 

I found an example in the help for the DisplayObject class. It seemed to do
everything that I wanted - it used a Sprite, drew a rectangle on it, added
it as a child then set it as a mask.

 

However when I try this when the addchild function is called saying that it
cannot convert the Sprite to a Display object:

 

Type Coercion failed: cannot convert flash.display::[EMAIL PROTECTED] to
mx.core.IUIComponent.

 

What am doing wrong? I hope someone can help.

 

The example I was looking at is:

 

import flash.text.TextField;
import flash.display.Sprite;
import flash.events.MouseEvent;
 
var tf:TextField = new TextField();
tf.text = Lorem ipsum dolor sit amet, consectetur adipisicing elit,  
+ sed do eiusmod tempor incididunt ut labore et dolore magna
aliqua. 
tf.selectable = false;
tf.wordWrap = true;
tf.width = 150;
addChild(tf);
 
var square:Sprite = new Sprite();
square.graphics.beginFill(0xFF);
square.graphics.drawRect(0, 0, 40, 40);
addChild(square);
 
tf.mask = square;
 
tf.addEventListener(MouseEvent.MOUSE_DOWN, drag);
tf.addEventListener(MouseEvent.MOUSE_UP, noDrag);
 
function drag(event:MouseEvent):void {
square.startDrag();
}
function noDrag(event:MouseEvent):void {
square.stopDrag();

}

 

Giles Roadnight

 

 



[flexcoders] Custom Event Variables

2006-12-22 Thread trk247
Using Flex 2.0 - I have a child MXML document that has a custom 
event like this:

child.MXML
mx:Metadata
   [Event(selectionChanged)]
/mx:Metadata

function someFunction() {
  dispatchEvent(new Event(selectionChanged, {x:something.x, 
y:something.y});
}

Now I'm trying to get the values of x and y back into the  
main.MXML file. 

I did create a selectionChanged class and Overrided the inherited 
clone() method like explained here: 
http://livedocs.macromedia.com/flex/2/docs/1644.html. 

This would have been the old way:
something selectionChanged=getRestaurantListByArea(event.x, 
event.y);/ but in Flex 2.0, it gives an error.

Any help appreciated.



[flexcoders] Web Service Headers + Displaying results

2006-12-22 Thread dano_7
I am trying to set up a web service that returns stock quote
information.  This is my first experience with web services and I seem
to be stuck on some really simple things.  First of all, I cannot seem
to get the results to display at all when I send the service.  I know
it is being received on their end but I cannot get any information to
display in text boxes or labels.  I also cannot figure out how to add
a header that contains a value for the parameter Username.

A few notes:

The XML that the getQuote operation returns is:

ExtendedQuote
OutcomeSuccess/Outcome
IdentityIP/Identity
Delay0.0625/Delay
NameMICROSOFT CP/Name
ExchangeNASDAQ/Exchange
Quote
SymbolMSFT/Symbol
Previous_Close30.09/Previous_Close
Open30.08/Open
High30.14/High
Low29.89/Low
Last29.98/Last
BidN/A/Bid
Bid_SizeN/A/Bid_Size
Ask35.00/Ask
Ask_SizeN/A/Ask_Size
Percent_Change-0.37/Percent_Change
Change-0.11/Change
Volume32272086/Volume
High_52_Weeks30.26/High_52_Weeks
Low_52_Weeks21.46/Low_52_Weeks
Date12/21/2006/Date
Time4:00:00 PM/Time
/Quote
/ExtendedQuote

I am also using WebOrb for PHP with other applications in this project
but I am not sure why that would make any difference
(http://www.themidnightcoders.com/weborb/php/index.htm).

Any help with either of these would be greatly appreciated!  Thank you,
-Dan


My code is as follows:

?xml version=1.0?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;

 mx:Script
 ![CDATA[
  import mx.controls.Alert;
  import mx.rpc.events.ResultEvent;
  import mx.rpc.events.FaultEvent;
  import mx.rpc.soap.LoadEvent;
 ]]
 /mx:Script

 mx:WebService id=WS
wsdl=http://www.xignite.com/xQuotes.asmx?WSDL; useProxy=false
showBusyCursor=true fault=Alert.show(event.fault.toString(),'Error')
 mx:operation name=GetQuote
 mx:request
 Symbol{stockSymbol.text}/Symbol
 /mx:request
 /mx:operation
 /mx:WebService

 mx:Panel title=WebService Example height=75% width=75%
paddingTop=10 paddingBottom=10 paddingLeft=10 paddingRight=10
 mx:Label width=100% color=blue text=Enter a stock
symbol to obtain a quote./
 mx:TextInput id=stockSymbol text=FDX/
 mx:Button label=Get Quote click=WS.GetQuote.send()/
 mx:Label text={WS.GetQuote.result} fontWeight=bold
id=stockquote/
 mx:DataGrid id=dataGridStock
dataProvider={WS.getQuote.result}
 mx:columns
 mx:DataGridColumn headerText=Symbol
dataField=Symbol/
 mx:DataGridColumn headerText=Last dataField=Last/
 mx:DataGridColumn headerText=Name dataField=Name/
 /mx:columns
 /mx:DataGrid
 mx:Text text={WS.getQuote.ArrayOfQuote.Quote.Name}/
 mx:Text text={WS.getQuote.Quote.Last}/
 mx:Text text={WS.getQuote.Last}/
 mx:Text text={WS.getQuote.Quote}/
 mx:Text text={WS.getQuote.ExtendedQuote.Quote.Last}/
 mx:TextInput text={WS.getQuote.Quote.Last}/
 mx:TextInput text={WS.getQuote.Last}/
 mx:TextInput text={WS.getQuote.ExtendedQuote.Quote.Last}/
 /mx:Panel
 
/mx:Application



[flexcoders] Menu woes...

2006-12-22 Thread chris.aernoudt
I have been trying to get a menu right. The menu appears fine, but the 
problem is I have too much items on it.
According to the docs, Menu inherits indirectly from ScrollConrolBase, 
and it does indeed seem to have some scrolling-related properties...

So I've tried this:

var myMenu:Menu = Menu.createMenu(null, arrMenu);
myMenu.show(menux, menuy);
myMenu.maxHeight=200;
myMenu.showScrollTips = true;
myMenu.verticalScrollPolicy = ScrollPolicy.ON

Menu draws fine with the correct height and stuff, no errors, but no 
scrolling.

Also after clicking an item in the menu, I put a component of mine on 
the canvas. After clicking a checkbox on the component, the menu still 
shows up. Is this due to event propagation in the component?

I register the click event to the canvas in the following manner:
this.addEventListener(MouseEvent.CLICK, clickHandler, false, 1);

How can I stop the event from propagating through the component to the 
canvas?

Thanks in advance,
Chris.



[flexcoders] GetPixel (Colorcode)

2006-12-22 Thread littleazar
can anybody help me with the getpixel property to get the color of a 
certain pixel(cursor) maybe even a sample or some code.id really 
appreciate it. i will be using it for a hot spot. thanks



[flexcoders] Re: Changing the text in each dataGrid row to a different color

2006-12-22 Thread retrogamer4ever
how would I go about doing this, could you please give a example?  


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

 The common solution is to add the color or style name to the items 
of your
 dataprovider and bind to this property inside your itemrenderer.
 Cheers,
 Ralf
 
 
 On 12/21/06, retrogamer4ever [EMAIL PROTECTED] wrote:
 
Okay I am going to try and be as clear as possible with this, 
so
  bare with me.
 
  What I am trying to do is make it so that when my arraycollection
  objects that I have retrieved from a web service are loaded in 
(by
  using the dataProvider attribute) my dataGrid that some sort of
  code will take place changing the color of each line of text (all
  the objects stored in the array collection are string types) and
  display each rows text in a different color.
 
  Now after looking into it, it seems the only way to alter the 
color
  of the text is to use some sort of style or format but it seems 
it
  only effects text in a textArea, textField, textInput etc...
  SOOO I figured why not create a itemRenderer that contains one of
  those and put it into the dataGrid... Which I did and still can't
  figure out a way to make it so you can dynamically alter the 
color
  based on a set of rbg values stored in a array the same size as 
the
  rowCount of the datagrid.
 
  so I am rather stumpped in what to do.. I DON'T want to change 
the
  background color of each row, so alternatingItemColor is out of 
the
  question, I just want the text displayed in each row to be a
  different color And I want all this color changing to happen
  either before the data is inputted into the dataGrid 
(manipulating
  the arraycollection some how..) or when its all already in 
there, it
  all needs to happen in code no user interaction.
 
  I was thinking perhaps maybe I could create a item Renderer 
object
  that contains the compenent (the textArea in it) and just make a
  array of item Renderer objects and pass those into the dataGrid, 
but
  I don't think that is possible.
 
  ANY IDEAS AT ALL!! On how to change the color of the text in each
  row of the datagrid to a different color would be a HUGE, HUGE!!!
  help. Or any info on how to setup a datagrid listener that 
listens
  for when a object (a row) from the arraycollection is added to 
the
  datagrid... Perhaps I could use that info some how to my
  advantage.
 
  email me, if you like I don't care I just need a answer to this 
its
  driving me crazy! I can change the background row color based on 
a
  array of rgb values but I can't change the color of the item in 
that
  row based on array of rgb values, ARG!
 
  thanx in advanced.
 
   
 
 
 
 
 -- 
 Ralf Bokelberg [EMAIL PROTECTED]
 Flex  Flash Consultant based in Cologne/Germany





RE: [flexcoders] Re: Problem with FileReference.upload()

2006-12-22 Thread Dimitrios Gianninas
Yes its been submitted to Adobe. You can submit as well, that will help get it 
fixed sooner. From what I know it requires a big player fix, so it will take a 
while I believe, but I dont work at Adobe, so I could be lying :) Submit bug at 
the url below:
 
http://www.adobe.com/go/wish
 
Dimitrios Gianninas
RIA Developer
Optimal Payments Inc.
 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of 
rene.sprotte
Sent: Thursday, December 21, 2006 4:08 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Problem with FileReference.upload()



 Its a bug, thats the way the Flash Player works, its not a Flex thing. I've 
 submitted this 
 bug before. Also it happens only with FF... IE works fine.

I thought I could leave these cross browser issues behind when switching to 
Flex ;-)
Beside FF I can reproduce this in Safari as well. I assume submitted means 
submitted to 
Adobe. Is there any information if this will be fixed in the next release?

Regards, René



 

-- 
WARNING
---
This electronic message and its attachments may contain confidential, 
proprietary or legally privileged information, which is solely for the use of 
the intended recipient.  No privilege or other rights are waived by any 
unintended transmission or unauthorized retransmission of this message.  If you 
are not the intended recipient of this message, or if you have received it in 
error, you should immediately stop reading this message and delete it and all 
attachments from your system.  The reading, distribution, copying or other use 
of this message or its attachments by unintended recipients is unauthorized and 
may be unlawful.  If you have received this e-mail in error, please notify the 
sender.

AVIS IMPORTANT
--
Ce message électronique et ses pièces jointes peuvent contenir des 
renseignements confidentiels, exclusifs ou légalement privilégiés destinés au 
seul usage du destinataire visé.  L'expéditeur original ne renonce à aucun 
privilège ou à aucun autre droit si le présent message a été transmis 
involontairement ou s'il est retransmis sans son autorisation.  Si vous n'êtes 
pas le destinataire visé du présent message ou si vous l'avez reçu par erreur, 
veuillez cesser immédiatement de le lire et le supprimer, ainsi que toutes ses 
pièces jointes, de votre système.  La lecture, la distribution, la copie ou 
tout autre usage du présent message ou de ses pièces jointes par des personnes 
autres que le destinataire visé ne sont pas autorisés et pourraient être 
illégaux.  Si vous avez reçu ce courrier électronique par erreur, veuillez en 
aviser l'expéditeur.



RE: [flexcoders] Unable to resolve class for ResourceBundle

2006-12-22 Thread Dimitrios Gianninas
I'm not sure if this will help, but...

1) add the entry below in your root app file:

[ResourceBundle(Strings)]
private var rb:ResourceBundle;
 
2) Then add the items below to your Flex compiler settings:
 
-locale=en_US -source-path=../config/locale/en_US // change the path to what u 
have
 
My path looks like:
 
/dev/kronos/src/config/locale/en_US
/dev/kronos/src/kronosWeb/billing.mxml // this is the root app
 
Dimitrios Gianninas
RIA Developer
Optimal Payments Inc.
 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of 
tobiaspatton
Sent: Thursday, December 21, 2006 8:01 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Unable to resolve class for ResourceBundle



Hello list;

I am getting the error Unable to resolve class for ResourceBundle in my 
project every time FlexBuilder does an automatic build, or when I chose Build 
Project if automatic builds are disabled. The only way to get the build to 
succeed is to chose Project-Clean. This works every time.

I've tried using the compiler option -incremental=false, but it has no effect.

I've created a very simple project that illustrates the problem.

Localization.mxml

?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute 
xmlns:local=*
local:MyCanvas/
/mx:Application

MyCanvas.mxml:

?xml version=1.0 encoding=utf-8?
mx:Canvas xmlns:mx=http://www.adobe.com/2006/mxml; width=400 height=300  
  
mx:Label text=@Resource( bundle='strings', key='Hello' )/
/mx:Canvas

../locale/en_US/Strings.properties:

Hello=Hello World

(the locale directory is in the parent directory of the project to avoid the 
overlapping class-path warning.)

In the project's settings I have added a source path that points to the 
../locale/en_US directory.

To see the problem, do a clean and then make a change in Localization.mxml. 
Save the file and let FlexBuilder do an automatic build. You should see the 
unable to resolve class for ResourceBundle: strings_properties error.

Any ideas?

Thanks.
Tobias.



 

-- 
WARNING
---
This electronic message and its attachments may contain confidential, 
proprietary or legally privileged information, which is solely for the use of 
the intended recipient.  No privilege or other rights are waived by any 
unintended transmission or unauthorized retransmission of this message.  If you 
are not the intended recipient of this message, or if you have received it in 
error, you should immediately stop reading this message and delete it and all 
attachments from your system.  The reading, distribution, copying or other use 
of this message or its attachments by unintended recipients is unauthorized and 
may be unlawful.  If you have received this e-mail in error, please notify the 
sender.

AVIS IMPORTANT
--
Ce message électronique et ses pièces jointes peuvent contenir des 
renseignements confidentiels, exclusifs ou légalement privilégiés destinés au 
seul usage du destinataire visé.  L'expéditeur original ne renonce à aucun 
privilège ou à aucun autre droit si le présent message a été transmis 
involontairement ou s'il est retransmis sans son autorisation.  Si vous n'êtes 
pas le destinataire visé du présent message ou si vous l'avez reçu par erreur, 
veuillez cesser immédiatement de le lire et le supprimer, ainsi que toutes ses 
pièces jointes, de votre système.  La lecture, la distribution, la copie ou 
tout autre usage du présent message ou de ses pièces jointes par des personnes 
autres que le destinataire visé ne sont pas autorisés et pourraient être 
illégaux.  Si vous avez reçu ce courrier électronique par erreur, veuillez en 
aviser l'expéditeur.



[flexcoders] Re: Form-based auth on Websphere

2006-12-22 Thread baardos
It works fine without any problems. The only thing I was struggling
with was Secure RTMP but it works fine as well now.

Thanks for your help!
Cheers,
Bartek

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

 Custom is the right thing to use in your services-config.xml. So its
working fine now?
  
 Dimitrios Gianninas
 RIA Developer
 Optimal Payments Inc.
  
 
 
 
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
On Behalf Of baardos
 Sent: Tuesday, December 19, 2006 8:55 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: Form-based auth on Websphere
 
 
 
 Hi Dimitrios,
 
 Content of the config is pretty straight forward. There are 3 roles,
 each one for accessing a separate set of functionality provided by
 external applications.
 
 This is how the web.xml security constraint looks like:
 
 security-constraint
 display-nameProtect App/display-name
 web-resource-collection
 web-resource-nameCore Application/web-resource-name
 url-pattern/app/*/url-pattern
 url-pattern/messagebroker/*/url-pattern
 http-methodDELETE/http-method
 http-methodGET/http-method
 http-methodPOST/http-method
 http-methodPUT/http-method
 /web-resource-collection
 auth-constraint
 role-nameapp1users/role-name
 role-nameapp2users/role-name
 role-nameapp3users/role-name
 /auth-constraint
 /security-constraint
 
 login-config 
 auth-methodFORM/auth-method 
 form-login-config 
 
 form-login-page/login/SecuritySandpitLogin.html/form-login-page 
 
 form-error-page/login/SecuritySandpitLogin.html/form-error-page 
 /form-login-config
 /login-config 
 
 security-role
 role-nameapp1users/role-name
 /security-role
 security-role
 role-nameapp2users/role-name
 /security-role
 security-role
 role-nameapp3users/role-name
 /security-role
 
 The services-config.xml specifies channels and security constraints in
 the following way:
 
 ?xml version=1.0 encoding=UTF-8?
 services-config
 services
 service-include file-path=remoting-config.xml/
 /services
 
 security
 login-command
 class=flex.messaging.security.WebSphereLoginCommand
server=WebSphere/
 !-- Uncomment the correct app server
 login-command
 class=flex.messaging.security.JRunLoginCommand server=JRun/
 login-command
 class=flex.messaging.security.WeblogicLoginCommand server=Weblogic/
 login-command
 class=flex.messaging.security.TomcatLoginCommand server=Tomcat/
 -- 
 security-constraint id=app1-constraint
 auth-methodFORM/auth-method
 roles
 roleapp1users/role
 /roles
 /security-constraint 
 
 security-constraint id=app2-constraint
 auth-methodFORM/auth-method
 roles
 roleapp2users/role
 /roles
 /security-constraint 
 
 security-constraint id=app3-constraint
 auth-methodFORM/auth-method
 roles
 roleapp3users/role
 /roles
 /security-constraint 
 
 security-constraint id=login-constraint
 auth-methodFORM/auth-method
 roles
 roleapp1users/role
 roleapp2users/role
 roleapp3users/role
 /roles
 /security-constraint 
 
 /security
 
 channels
 channel-definition id=my-amf
 class=mx.messaging.channels.AMFChannel
 endpoint

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

uri=http://{server.name}:{server.port}/{context.root}/messagebroker/amf-polling;
 class=flex.messaging.endpoints.AMFEndpoint/
 properties
 polling-enabledtrue/polling-enabled
 polling-interval-seconds10/polling-interval-seconds
 /properties
 /channel-definition
 /channels
 
 logging
 target class=flex.messaging.log.ConsoleTarget level=debug
 properties
 prefix[Flex] /prefix
 includeDatefalse/includeDate
 includeTimetrue/includeTime
 includeLevelfalse/includeLevel
 includeCategoryfalse/includeCategory
 /properties
 /target
 /logging
 
 system
 redeploy
 enabledtrue/enabled
 watch-interval20/watch-interval
 
 watch-file{context.root}/WEB-INF/flex/remoting-config.xml/watch-file
 
 watch-file{context.root}/WEB-INF/flex/services-config.xml/watch-file
 touch-file{context.root}/WEB-INF/web.xml/touch-file
 /redeploy
 /system
 
 /services-config
 
 The destinations are just like below:
 
 destination id=app1-default
 properties
 sourcecom.mdsuk.poc.flex.destination.App1Destination/source
 /properties
 channels
 channel ref=my-amf/
 /channels
 security
 security-constraint ref=app1-constraint/
 /security 
 /destination
 
 destination id=app2-default
 properties
 sourcecom.mdsuk.poc.flex.destination.App2Destination/source
 /properties
 channels
 channel ref=app2-amf/
 /channels
 security
 security-constraint ref=app2-constraint/
 /security 
 /destination
 
 destination id=app3-default
 properties
 sourcecom.mdsuk.poc.flex.destination.App3Destination/source
 /properties
 channels
 channel ref=my-amf/
 /channels
 security
 security-constraint ref=app3-constraint/
 /security 
 /destination
 
 
 destination id=login-custom
 

[flexcoders] Re: GetPixel (Colorcode)

2006-12-22 Thread chris.aernoudt
--- In flexcoders@yahoogroups.com, littleazar [EMAIL PROTECTED] 
wrote:

 can anybody help me with the getpixel property to get the color of 
a 
 certain pixel(cursor) maybe even a sample or some code.id really 
 appreciate it. i will be using it for a hot spot. thanks


something like this (totally untested, typed directly in mail, and 
you'll need to adjust):


private function getColor(e:MouseEvent):String{
   var myWidth:int = somewidth;
   var myHeight:int = someheight;
   var translateMatrix:Matrix = new Matrix();
   translateMatrix.translate(0, 0);
   var myColorTransform:ColorTransform = new ColorTransform(1, 1, 1, 
1, 0, 0, 0, 0);
   var blendMode:String = normal;

   var myRectangle:Rectangle = new Rectangle(0, 0, myWidth, myHeight);

   myBitmap = new BitmapData(myWidth,myHeight,true,0x00FF);
   myBitmap.draw(someMovieClip, translateMatrix, myColorTransform, 
blendMode, myRectangle);
   return myBitmap.getPixel(e.stageX, e.stageY).toString(16); // 
returns hex color - see reference for other color stuff

}



[flexcoders] manually adding items to a datagrid

2006-12-22 Thread Clint Tredway
I need to manually loop through a collection and add each item to a
datagrid. However, I cannot seem to get this to work like adding items
to a combo box...

any help would be appreciated.

-- 
http://indeegrumpee.spaces.live.com/


[flexcoders] Question on TabNavigator

2006-12-22 Thread malik_robinson
Hi

Few questions that I think should be easy to answer?

1. How can I space the tabs up in a tab navigator?  I'd like to have
space between each tab. They look too scrunched to me at least by
default.

2. I am trying to build an application that has tabbed interface and I
am wondering is this the way to go about it.

3. Is there a way to center the tabs in the middle?  Currently they are
left aligned by default

My code is below:

mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
layout=absolute frameRate=60

mx:TabNavigator borderColor=#00 borderStyle=solid
height=100% width=100% backgroundColor=#ee 

mx:VBox label=Tab1 

/mx:VBox

mx:VBox label=Tab2

/mx:VBox

mx:VBox label=Tab3

/mx:TabNavigator

/mx:Application 



[flexcoders] Re: Question on TabNavigator

2006-12-22 Thread kasey.mccurdy
Hey there --

to space between the tabs -- there's a property called horizontalGap
just try like 10 for exampleplay around with it.
ill look into your other questions


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

 Hi
 
 Few questions that I think should be easy to answer?
 
 1. How can I space the tabs up in a tab navigator?  I'd like to have
 space between each tab. They look too scrunched to me at least by
 default.
 
 2. I am trying to build an application that has tabbed interface and I
 am wondering is this the way to go about it.
 
 3. Is there a way to center the tabs in the middle?  Currently they are
 left aligned by default
 
 My code is below:
 
 mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
 layout=absolute frameRate=60
 
 mx:TabNavigator borderColor=#00 borderStyle=solid
 height=100% width=100% backgroundColor=#ee 
 
 mx:VBox label=Tab1 
 
 /mx:VBox
 
 mx:VBox label=Tab2
 
 /mx:VBox
 
 mx:VBox label=Tab3
 
 /mx:TabNavigator
 
 /mx:Application





[flexcoders] Flex Builder 2 - Setting Default Application

2006-12-22 Thread Robert Brueckmann
I have no idea where to begin my search terminology in the archive to
see if anyone has asked/answered this already...I tried an infinite
number of combinations to no avail, so I'm starting a new thread in
hopes that someone can help.  

 

I'm using a split directory development/deployment model for my sample
java webapp which I have set up through Eclipse...I've added the Flex
Project nature to my Eclipse project and that's where I get a little
confused.  The Flex Nature is added to the root of the project and there
does not seem to be any way for me to change this...the root of my
Eclipse project is not my web app root...it's an enterprise application
with a series of subfolders structured like:

 

- sampleApp

olib

odist

obuild

osrc

* core

* dao

* sampleEJBs

* ...

* sampleEAR

* APP-INF

* META-INF

* sampleWebApp

oimages

oWEB-INF

oassets

oSample.mxml

o...

* ...

 

The Flex Project Nature was added to the sampleApp directory but it
seems to me that it should be in my sampleWebApp directory...then I
thought I could just create an MXML file in my sampleWebApp directory
and set it as the 'Default Application' but it's greyed out when I
right-click on my Sample.mxml file.

 

Do I just ignore all of this and go with the flow or do I need to
structure my entire application differently in order to have this all
work properly?  I'm just checking before I really get developing in
Flex...

 

Any help is greatly appreciated.

 

Thanks, 

 

Rob


-- 
This message has been scanned for viruses and 
dangerous content by MailScanner http://www.mailscanner.info/ , and is

believed to be clean.
 


This message contains information from Merlin Securities, LLC, or from one of 
its affiliates, that may be confidential and privileged. If you are not an 
intended recipient, please refrain from any disclosure, copying, distribution 
or use of this information and note that such actions are prohibited. If you 
have received this transmission in error, please notify the sender immediately 
by telephone or by replying to this transmission.
 
Merlin Securities, LLC is a registered broker-dealer. Services offered through 
Merlin Securities, LLC are not insured by the FDIC or any other Federal 
Government Agency, are not deposits of or guaranteed by Merlin Securities, LLC 
and may lose value. Nothing in this communication shall constitute a 
solicitation or recommendation to buy or sell a particular security.

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.



[flexcoders] Re: manually adding items to a datagrid

2006-12-22 Thread Doug Lowder
Hi Clint,

If your grid's dataproivider implements List CollectionView (like 
ArrayCollection or XMLListCollection), you can try: 

  myGrid.dataProvider.addItemAt(oItem, nIndex);

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

 I need to manually loop through a collection and add each item to a
 datagrid. However, I cannot seem to get this to work like adding 
items
 to a combo box...
 
 any help would be appreciated.
 
 -- 
 http://indeegrumpee.spaces.live.com/





[flexcoders] Re: Debug Flash Player 9 for Intel Mac

2006-12-22 Thread fuad_kamal
I just finished switching my development environment from PC to a new
Intel Mac.  I also had the issue with the debug player not playing,
and I also didn't find any separate download for the Intel debug
player on Adobe's site...so I followed their alternative suggestion
and re-installed Flex Builder (beta).  The Flex Builder installer runs
a Flash Debug player installation at the end of the flex install, and
that worked.  They really ought to release a stand-alone installer for
Intel Macs, though.  I followed the link from the error thrown in the
Power-PC installer but it lead to the non-debugger (release) version
of the flash player for intel mac.

Also, another note, I noticed this time during the flex builder
install that it failed when trying to write a file to my home
directory.  I suspect this might be a similar problem to the Photoshop
CS3 Beta install issue - my home directory is encrypted using
FileVault, and the CS3 beta install workaround was to disable FileVault...

Two things I noticed immediately when starting development in the new
Mac environment:

a) I can't seem to break my panels across multiple displays, as I
could in the Windows PC environment.  Anyone know how to do this on Mac?

b) The Mac version seems smarter! It picked up an error in my project
that wasn't getting picked up in the PC environment (missing import
statement).  I suspect the reason is that the project is huge...maybe
it's a memory or buffer issue or something (my PC is quite old while
the Mac is really souped up).

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

 I gave it another try on the download page but I get the error that
 I'm trying to install the PPC version and not the universal binary for
 Intel Macs. I guess I'll try and download Flex Builder and see if I
 can get the new version that way.
 
 Mike
 -
 Mike Weiland
 Aspen Tree Media
 (877)659-1652 | FAX: (512)828-7105
 http://www.AspenTreeMedia.com
 http://www.CertificateCreator.com - Create  Print Awards and
Certificates
 
 
 --- In flexcoders@yahoogroups.com, Brian Dunphy briandunphy@ wrote:
 
  Greg,
  
  Do you have the Universal binary of Firefox? I remember when we were
  waiting for the first Intel Mac player to come out, we had to run the
  PowerPC binary of Firefox through emulation, and the player worked
  (but slow).
  
  I'm just curious because I have tried installing the one on that page
  about 10 times over the past few weeks and it always says it's PPC
  only... I've seen many other reports of the same issue.
  
  Thanks,
  
  Brian
  
  On 12/12/06, Greg Newman greg.carbon8@ wrote:
  
  
  
  
  
  
   They're available on Adobe's site here:
   http://www.adobe.com/support/flashplayer/downloads.html
   It's working fine on my OSX MBP.
  
  
  
  
  
On 12/12/06, Brian Dunphy briandunphy@ wrote:
   
   
   
   
   
   
Does anybody have the debug Flash Player 9 for Intel macs? I've
 heard
it's included in the Apollo private beta right now... is it
against
any agreements for somebody in that beta to send us the debug
player
only? I'm really hurting for a debug player in OS X right now.
   
Obviously if this goes against any agreements when you enter the
private beta, please disregard this request.
   
Thanks,
   
Brian
   
  
  
  
   --
  
   - Greg Newman
   ---
   http://www.carbon8.us
   http://www.busyashell.com
  

  
  
  -- 
  Brian Dunphy
 





[flexcoders] flash tracer breaks on intel mac?

2006-12-22 Thread fuad_kamal
I've seen a post about this on the flash tracer page, anyone find a fix?
Flash tracer plugin for firefox creates a log file but shows no output
from the debugger...seems like it can't find the debug player
(although output is fine in flex console panel).



[flexcoders] Wrapping multiple text items

2006-12-22 Thread kasey.mccurdy
Hi there -- i have a very very basic question.

I'm trying to layout 6 text items inside an HBox -- id like them to
wrap when they get to the edge of the HBox (like CSS floating)...but
it seems that the 6 text items just go straight out in a line (they
dont wrap inside the HBox)...my code is as follows:

mx:HBox styleName=linksetLinks
width=212 height=50 verticalScrollPolicy=off 
mx:Text text=Quick Prepare /
mx:Text text=Beef /
mx:Text text=Chicken /
mx:Text text=Low-carb /
mx:Text text=Vegetarian /
mx:Text text=More... /
/mx:HBox

they end up looking like this:
Quick prepare   beef  chicken  low-carb  vegetarian  more...

i want something like this:
Quick prepare  beef  chicken
low-carb  vegetarian  more...

is there a better (or any) way to accomplish what im trying to do?



Re: [flexcoders] Re: Question on TabNavigator

2006-12-22 Thread Nick Sophinos
Finally something that I feel qualified to help someone with:

I found the Flex 2 Style Explorer indespensible for this sort of thing:

http://examples.adobe.com/flex2/consulting/styleexplorer/Flex2StyleExplorer.html

For example, click on the Tabs menu items and build away!

- Nick

On 12/22/06, kasey.mccurdy [EMAIL PROTECTED] wrote:






 Hey there --

  to space between the tabs -- there's a property called horizontalGap
  just try like 10 for exampleplay around with it.
  ill look into your other questions

  --- In flexcoders@yahoogroups.com, malik_robinson
  [EMAIL PROTECTED] wrote:
  
   Hi
  
   Few questions that I think should be easy to answer?
  
   1. How can I space the tabs up in a tab navigator? I'd like to have
   space between each tab. They look too scrunched to me at least by
   default.
  
   2. I am trying to build an application that has tabbed interface and I
   am wondering is this the way to go about it.
  
   3. Is there a way to center the tabs in the middle? Currently they are
   left aligned by default
  
   My code is below:
  
   mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
   layout=absolute frameRate=60
  
   mx:TabNavigator borderColor=#00 borderStyle=solid
   height=100% width=100% backgroundColor=#ee 
  
   mx:VBox label=Tab1 
  
   /mx:VBox
  
   mx:VBox label=Tab2
  
   /mx:VBox
  
   mx:VBox label=Tab3
  
   /mx:TabNavigator
  
   /mx:Application
  

  


[flexcoders] Re: Ctrl+Enter causes line break in TextInput in IE!

2006-12-22 Thread Sergey Kovalyov

Did anybody face this problem?

On 12/19/06, Sergey Kovalyov [EMAIL PROTECTED] wrote:


Run this application in Internet Explorer:

?xml version=1.0?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
   width=100%
   height=100%
   horizontalAlign=center
   verticalAlign=middle

   mx:TextInput /

/mx:Application

Then set focus on TextInput instance and write something, then click
Ctrl+Enter. TextInput acts almost like TextArea. New line is created.

Sergey.

On 12/18/06, Sergey Kovalyov [EMAIL PROTECTED] wrote:
 Hi All!

 Pressing Ctrl+Enter causes line break in TextInput in IE! How to fix
 this bug without subclassing TextInput?

 Sergey.



[flexcoders] Re: Question on TabNavigator

2006-12-22 Thread malik_robinson
Hi,

Thanks for the help.  I knew about the style explorer, but I just forgot
about it.  Your right it is really helpful.   Thanks for reminding me
about this.  Its pretty slick.

-Malik

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

 Finally something that I feel qualified to help someone with:

 I found the Flex 2 Style Explorer indespensible for this sort of
thing:


http://examples.adobe.com/flex2/consulting/styleexplorer/Flex2StyleExplo\
rer.html

 For example, click on the Tabs menu items and build away!

 - Nick

 On 12/22/06, kasey.mccurdy [EMAIL PROTECTED] wrote:
 
 
 
 
 
 
  Hey there --
 
   to space between the tabs -- there's a property called
horizontalGap
   just try like 10 for exampleplay around with it.
   ill look into your other questions
 
   --- In flexcoders@yahoogroups.com, malik_robinson
   Malik_Robinson@ wrote:
   
Hi
   
Few questions that I think should be easy to answer?
   
1. How can I space the tabs up in a tab navigator? I'd like to
have
space between each tab. They look too scrunched to me at least by
default.
   
2. I am trying to build an application that has tabbed interface
and I
am wondering is this the way to go about it.
   
3. Is there a way to center the tabs in the middle? Currently
they are
left aligned by default
   
My code is below:
   
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
layout=absolute frameRate=60
   
mx:TabNavigator borderColor=#00 borderStyle=solid
height=100% width=100% backgroundColor=#ee 
   
mx:VBox label=Tab1 
   
/mx:VBox
   
mx:VBox label=Tab2
   
/mx:VBox
   
mx:VBox label=Tab3
   
/mx:TabNavigator
   
/mx:Application
   
 
 





Re: [flexcoders] Re: manually adding items to a datagrid

2006-12-22 Thread Clint Tredway

cool, I actually figured out a better way after I sent my question :)

thanks, I will keep that in mind if I need it in the future.

On 12/22/06, Doug Lowder [EMAIL PROTECTED] wrote:


  Hi Clint,

If your grid's dataproivider implements List CollectionView (like
ArrayCollection or XMLListCollection), you can try:

myGrid.dataProvider.addItemAt(oItem, nIndex);


--- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Clint
Tredway [EMAIL PROTECTED] wrote:

 I need to manually loop through a collection and add each item to a
 datagrid. However, I cannot seem to get this to work like adding
items
 to a combo box...

 any help would be appreciated.

 --
 http://indeegrumpee.spaces.live.com/


 





--
http://indeegrumpee.spaces.live.com/


[flexcoders] Multiple Panels on the Mac with Flex Builder

2006-12-22 Thread Nick Sophinos
a) I can't seem to break my panels across multiple displays, as I
could in the Windows PC environment. Anyone know how to do this on Mac?

My understanding is that this is an Eclipse limitation because the SWT
implementation for the Mac does not allow for this.  Well, now you can
get the 30 Cinema HD DIsplay that you always wanted but could never
justify ;-)

- Nick





On 12/22/06, fuad_kamal [EMAIL PROTECTED] wrote:






 I just finished switching my development environment from PC to a new
  Intel Mac. I also had the issue with the debug player not playing,
  and I also didn't find any separate download for the Intel debug
  player on Adobe's site...so I followed their alternative suggestion
  and re-installed Flex Builder (beta). The Flex Builder installer runs
  a Flash Debug player installation at the end of the flex install, and
  that worked. They really ought to release a stand-alone installer for
  Intel Macs, though. I followed the link from the error thrown in the
  Power-PC installer but it lead to the non-debugger (release) version
  of the flash player for intel mac.

  Also, another note, I noticed this time during the flex builder
  install that it failed when trying to write a file to my home
  directory. I suspect this might be a similar problem to the Photoshop
  CS3 Beta install issue - my home directory is encrypted using
  FileVault, and the CS3 beta install workaround was to disable FileVault...

  Two things I noticed immediately when starting development in the new
  Mac environment:

  a) I can't seem to break my panels across multiple displays, as I
  could in the Windows PC environment. Anyone know how to do this on Mac?

  b) The Mac version seems smarter! It picked up an error in my project
  that wasn't getting picked up in the PC environment (missing import
  statement). I suspect the reason is that the project is huge...maybe
  it's a memory or buffer issue or something (my PC is quite old while
  the Mac is really souped up).

  --- In flexcoders@yahoogroups.com, aspentreemedia [EMAIL PROTECTED] 
 wrote:
  
   I gave it another try on the download page but I get the error that
   I'm trying to install the PPC version and not the universal binary for
   Intel Macs. I guess I'll try and download Flex Builder and see if I
   can get the new version that way.
  
   Mike
   -
   Mike Weiland
   Aspen Tree Media
   (877)659-1652 | FAX: (512)828-7105
   http://www.AspenTreeMedia.com
   http://www.CertificateCreator.com - Create  Print Awards and
  Certificates
  
  
   --- In flexcoders@yahoogroups.com, Brian Dunphy briandunphy@ wrote:
   
Greg,
   
Do you have the Universal binary of Firefox? I remember when we were
waiting for the first Intel Mac player to come out, we had to run the
PowerPC binary of Firefox through emulation, and the player worked
(but slow).
   
I'm just curious because I have tried installing the one on that page
about 10 times over the past few weeks and it always says it's PPC
only... I've seen many other reports of the same issue.
   
Thanks,
   
Brian
   
On 12/12/06, Greg Newman greg.carbon8@ wrote:






 They're available on Adobe's site here:
 http://www.adobe.com/support/flashplayer/downloads.html
 It's working fine on my OSX MBP.





 On 12/12/06, Brian Dunphy briandunphy@ wrote:
 
 
 
 
 
 
  Does anybody have the debug Flash Player 9 for Intel macs? I've
   heard
  it's included in the Apollo private beta right now... is it
  against
  any agreements for somebody in that beta to send us the debug
  player
  only? I'm really hurting for a debug player in OS X right now.
 
  Obviously if this goes against any agreements when you enter the
  private beta, please disregard this request.
 
  Thanks,
 
  Brian
 



 --

 - Greg Newman
 ---
 http://www.carbon8.us
 http://www.busyashell.com


   
   
--
Brian Dunphy
   
  

  


[flexcoders] FlexBuilder 2 Mac Beta Expired!

2006-12-22 Thread Paul Whitelock
I just started up FlexBuilder 2 on my Mac and I received a message
that the trial period has expired. My only options are to purchase
FlexBuilder 2 or exit. Since FlexBuilder 2 isn't available for
purchase yet, what can I do to get the Mac beta running again? Thanks
for any help!

Paul



Re: [flexcoders] Re: SEO Compatibility

2006-12-22 Thread Kevin Newman
dorkie dork from dorktown wrote:
 One of the open source solutions I occasionaly use *cough* *cough* 
 *drupal* *cough* has a mod redirect / mod rewrite htaccess file (i'm 
 combining words). Any url that is entered into the site gets rewritten 
 or redirected. It is a dynamic system that allows you to dynamically 
 redirect to the content you want without hard coding paths or 
 directories.

 So you would create a dynamic page (doesn't really exist - only in the 
 database) and then an alias to reach it. For example, 
 www.test.com/myalias http://www.test.com/myalias. Actually a lot of 
 systems use this (wordpress, etc).

 All urls entered in to the site would be redirected to index.php. At 
 this point you could with the super awesome power of server side code, 
 deliver page links dynamically and content dynamically. I recently did 
 a project with FXT and did exactly that. You pass the data as an xml 
 model into a script tag under the body tag. Search engines pick this 
 up. My Flex app pulled this xml in and then used it as a dataprovider 
 for numerous controls.

 I've asked in the wish list for Macromedia at the time before it was 
 Adobe to let us specify the type of extension for the published html 
 wrapper. Right now if you click publish or run it creates a HTML page. 
 So somewhere in the options it would be nice to choose the page 
 extension type (php, asp, jsp, etc) of the page we are publishing. 
 I've also investigated and requested a way to pick my template page 
 that Flex finds and then replaces the tokens which it is looking for 
 inside of it. This may all be possible already. I've been mostly only 
 learning the API, mostly.

 Now that I've had a chance to think about it a default Adobe Page and 
 Link Management admin site might be the solution. It would be created 
 and deployed to bin or bin-admin with every project. Then you would 
 upload that to the server along with the contents of your bin 
 directory. A developer could login to it on the server. The Adobe Page 
 Manager would use an xml file or database to create the aliases. The 
 alias would be for different states in a Flex app. When you create an 
 alias there would be a place where you could call the services or page 
 associated with that state and alias. It would then wrap that content 
 in a xml tag like in FXT for indexing. You could also pass any links 
 back to the page. The content and links would be in the noscript / 
 script / area of the page and not be visible to the user but it would 
 be visible to the search bots. Because it uses a single page index.php 
 and .htaccess mod rewrite it would redirect all traffic to the single 
 index page (php, asp, java). That page would take that url alias, 
 search the xml file or database and serve up the appropriate content 
 (in the background hidden to users). I hope that makes sense.

 It would manage aliases, content for that alias, links for the alias 
 and state to pass to the embedded flash swf. I can actually imagine 
 how it would work.
Hmm.. I'm not sure I understand exactly what you are talking about, but 
let's see if this is close:

1. Set up the homepage to pull dcontent from the database using whatever 
server side technology (php/asp.net, etc, over WebServices/FMS, etc.) - 
front loader style (design pattern).

2. Set up a 404 handler (using .htaccess or iisadmin) to detect what url 
was passed in - say domain.com/section/contentid, and redirect to 
homepage. (How would the search engine deal with something like that - 
would it just keep replacing the index information for the home page. 
Can a spider or bot store multiple versions of a webpage? Maybe the Vary 
header would help here?).

3. Redirect the user (or bot/spider) to the homepage, display the 
information based on the section/contentid part of the url. I'm not 
sure how you would do that. Is there a server var that can be relied 
upon that you can check to know where the user or bot was redirected from.

4. Use client side technology and location.replace to fix up the url so 
the user ends in the right place in the app, and has the standard one 
link type (with the #).


Would something like that actually work? I'm sure I could make it work 
for a web browser, but I'm not sure what would work with search engine 
spider bots.

Kevin N.




[flexcoders] AMF Error using Cisco WebVPN

2006-12-22 Thread Rich Tretola

We have an internal application that needs to be accessed by our external
people though webVPN client.  The application loads by my AMF connection to
the local java class files fails with an error of:

faultCode: Client.Error.MessageSend
faultString:'Send Failed'
faultDetail:'Channel.Connect.Failed error NetConnection.Call.Failed: HTTP:
Failed'

The application works perfectly when accessing through its direct URL but
failed when using the webVPN where the URL is different and the app loads
though a proxy.

Anyone else have any experience with this?

Rich


RE: [flexcoders] Wrapping multiple text items

2006-12-22 Thread Tracy Spratt
Perhaps a TileList might work for you?

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of kasey.mccurdy
Sent: Friday, December 22, 2006 11:05 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Wrapping multiple text items

 

Hi there -- i have a very very basic question.

I'm trying to layout 6 text items inside an HBox -- id like them to
wrap when they get to the edge of the HBox (like CSS floating)...but
it seems that the 6 text items just go straight out in a line (they
dont wrap inside the HBox)...my code is as follows:

mx:HBox styleName=linksetLinks
width=212 height=50 verticalScrollPolicy=off 
mx:Text text=Quick Prepare /
mx:Text text=Beef /
mx:Text text=Chicken /
mx:Text text=Low-carb /
mx:Text text=Vegetarian /
mx:Text text=More... /
/mx:HBox

they end up looking like this:
Quick prepare beef chicken low-carb vegetarian more...

i want something like this:
Quick prepare beef chicken
low-carb vegetarian more...

is there a better (or any) way to accomplish what im trying to do?

 



RE: [flexcoders] Custom Event Variables

2006-12-22 Thread Tracy Spratt
The Flex 2 Evant class is no longer dynamic, so you can't add your own
information to it any more.

 

You need to subclass Event to make your own custom event, to which you
can add your custom data.

 

This is pretty easy, and there is an example in the docs:

http://livedocs.macromedia.com/flex/2/docs/1644.html

 

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of trk247
Sent: Friday, December 22, 2006 1:05 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Custom Event Variables

 

Using Flex 2.0 - I have a child MXML document that has a custom 
event like this:

child.MXML
mx:Metadata
[Event(selectionChanged)]
/mx:Metadata

function someFunction() {
dispatchEvent(new Event(selectionChanged, {x:something.x, 
y:something.y});
}

Now I'm trying to get the values of x and y back into the 
main.MXML file. 

I did create a selectionChanged class and Overrided the inherited 
clone() method like explained here: 
http://livedocs.macromedia.com/flex/2/docs/1644.html.
http://livedocs.macromedia.com/flex/2/docs/1644.html.  

This would have been the old way:
something selectionChanged=getRestaurantListByArea(event.x, 
event.y);/ but in Flex 2.0, it gives an error.

Any help appreciated.

 



[flexcoders] Re: enabling Hibernate logging through log4j with jrun/fds2

2006-12-22 Thread parkerwhirlow
I have gotten hibernate logging to work by placing log4j.jar into the
web-inf/lib directory, and placing a log4j.properties (you can use the
sample) into the web-inf/classes directory. That was all I needed to do.

good luck,
PW

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

 
 Does anyone know how to get hibernate logging when using FDS and the
 HibernateAssembler? From my reading on Hibernate: see

http://www.hibernate.org/hib_docs/v3/reference/en/html_single/#configuration-logging
 , they use log4j, and talk about putting a log4j.properties file in
 the WEB-INF/classes directory, but I have tried this with no luck...
 
 Also, I'm not referring to Flex's Hibernate Assembler log set up by
 setting patternDataService.Hibernate/pattern in the
 services-config.xml log target... I'm talking about getting internal
 Hibernate log output.
 
 thanks,
 Thunder





[flexcoders] Re: Wrapping multiple text items

2006-12-22 Thread kasey.mccurdy
yeha, methinks that is what im going to have to use.

thanks
--- In flexcoders@yahoogroups.com, Tracy Spratt [EMAIL PROTECTED] wrote:

 Perhaps a TileList might work for you?
 
 Tracy
 
  
 
 
 
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of kasey.mccurdy
 Sent: Friday, December 22, 2006 11:05 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Wrapping multiple text items
 
  
 
 Hi there -- i have a very very basic question.
 
 I'm trying to layout 6 text items inside an HBox -- id like them to
 wrap when they get to the edge of the HBox (like CSS floating)...but
 it seems that the 6 text items just go straight out in a line (they
 dont wrap inside the HBox)...my code is as follows:
 
 mx:HBox styleName=linksetLinks
 width=212 height=50 verticalScrollPolicy=off 
 mx:Text text=Quick Prepare /
 mx:Text text=Beef /
 mx:Text text=Chicken /
 mx:Text text=Low-carb /
 mx:Text text=Vegetarian /
 mx:Text text=More... /
 /mx:HBox
 
 they end up looking like this:
 Quick prepare beef chicken low-carb vegetarian more...
 
 i want something like this:
 Quick prepare beef chicken
 low-carb vegetarian more...
 
 is there a better (or any) way to accomplish what im trying to do?





RE: {Disarmed} [flexcoders] Flex Builder 2 - Setting Default Application

2006-12-22 Thread Robert Brueckmann
Nevermind...I switch to the Flex Development perspective in Eclipse
which I forgot about and found all the settings I needed to set to
change the main source folder to accommodate my situation.  

 

Thanks and sorry for the useless query!

 

robert l. brueckmann

vice president

merlin securities

712 fifth avenue

new york, ny 10019

p: 212.822.4821
f: 212.822.4820



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Robert Brueckmann
Sent: Friday, December 22, 2006 11:47 AM
To: flexcoders@yahoogroups.com
Subject: {Disarmed} [flexcoders] Flex Builder 2 - Setting Default
Application

 

I have no idea where to begin my search terminology in the archive to
see if anyone has asked/answered this already...I tried an infinite
number of combinations to no avail, so I'm starting a new thread in
hopes that someone can help.  

 

I'm using a split directory development/deployment model for my sample
java webapp which I have set up through Eclipse...I've added the Flex
Project nature to my Eclipse project and that's where I get a little
confused.  The Flex Nature is added to the root of the project and there
does not seem to be any way for me to change this...the root of my
Eclipse project is not my web app root...it's an enterprise application
with a series of subfolders structured like:

 

- sampleApp

olib

odist

obuild

osrc

* core

* dao

* sampleEJBs

* ...

* sampleEAR

* APP-INF

* META-INF

* sampleWebApp

oimages

oWEB-INF

oassets

oSample.mxml

o...

* ...

 

The Flex Project Nature was added to the sampleApp directory but it
seems to me that it should be in my sampleWebApp directory...then I
thought I could just create an MXML file in my sampleWebApp directory
and set it as the 'Default Application' but it's greyed out when I
right-click on my Sample.mxml file.

 

Do I just ignore all of this and go with the flow or do I need to
structure my entire application differently in order to have this all
work properly?  I'm just checking before I really get developing in
Flex...

 

Any help is greatly appreciated.

 

Thanks, 

 

Rob


-- 
This message has been scanned for viruses and 
dangerous content by MailScanner http://www.mailscanner.info/ , and is

believed to be clean. 
-- 
This message has been scanned for viruses and 
dangerous content by MailScanner http://www.mailscanner.info/ , and is

believed to be clean. 

 



This message contains information from Merlin Securities, LLC, or from
one of its affiliates, that may be confidential and privileged. If you
are not an intended recipient, please refrain from any disclosure,
copying, distribution or use of this information and note that such
actions are prohibited. If you have received this transmission in error,
please notify the sender immediately by telephone or by replying to this
transmission.

  

Merlin Securities, LLC is a registered broker-dealer. Services offered
through Merlin Securities, LLC are not insured by the FDIC or any other
Federal Government Agency, are not deposits of or guaranteed by Merlin
Securities, LLC and may lose value. Nothing in this communication shall
constitute a solicitation or recommendation to buy or sell a particular
security.


-- 
This message has been scanned for viruses and 
dangerous content by MailScanner http://www.mailscanner.info/ , and is

believed to be clean. 


 


This message contains information from Merlin Securities, LLC, or from one of 
its affiliates, that may be confidential and privileged. If you are not an 
intended recipient, please refrain from any disclosure, copying, distribution 
or use of this information and note that such actions are prohibited. If you 
have received this transmission in error, please notify the sender immediately 
by telephone or by replying to this transmission.
 
Merlin Securities, LLC is a registered broker-dealer. Services offered through 
Merlin Securities, LLC are not insured by the FDIC or any other Federal 
Government Agency, are not deposits of or guaranteed by Merlin Securities, LLC 
and may lose value. Nothing in this communication shall constitute a 
solicitation or recommendation to buy or sell a particular security.

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.



[flexcoders] Re: FlexBuilder 2 Mac Beta Expired!

2006-12-22 Thread Paul Whitelock
I restored by system drive from a backup and FlexBuilder is running
again. I lost some things since the backup was a few days old, but at
least I'm up and running again with Flex.

I'm almost certain that what caused the problem was running
DiskWarrior on the drive (it was a routine preventative maintenance
run and not a run to fix a disk problem). If you're running the Mac
FlexBuilder 2 Beta, I'd advise staying away from DiscWarrior until the
official release is out.

Paul

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

 I just started up FlexBuilder 2 on my Mac and I received a message
 that the trial period has expired. My only options are to purchase
 FlexBuilder 2 or exit. Since FlexBuilder 2 isn't available for
 purchase yet, what can I do to get the Mac beta running again? Thanks
 for any help!
 
 Paul





[flexcoders] panel titleBar customizations dissapear on mac

2006-12-22 Thread fuad_kamal
I have a class which extends Panel and adds buttons to the titlebar of
the panel.  When I moved my environment from my PC to my Mac the
buttons in the titlebar no longer appear, although its the same code
getting compiled.  I'm not sure if it's a difference in the
compilation or in the Flash player - haven't been able to hit my
apache on the mac from a Windows machine.  Any clues?



[flexcoders] Latest Flash Player Hangs Our Application

2006-12-22 Thread sonicmarkf
Hello,

We are experiencing some very troubling behavior with our Flex App
running on the latest Flash player version 0,9,0,28.

I am not sure this is the right forum for this but hopefully someone
can direct me to the proper venue. 

To reproduce simply create an app that has a few TabNavigator tabs and
launch the app with your local browser – no need to serve it up from a
web server. Then wait about 1 day (without rebooting the machine) with
the web page still up and re-launch the html with the swf and then
click on the tabs – no response. It does not always happen right away
but I find that after 24 hours by doing a few web page refreshes or
launching in a new window result in the tabs hanging. 

On our application it is not necessary to leave the application up and
running for 24 hours to encounter this problem it is just sufficient
to run the app once and wait 24 hours AND once this problem occurs you
can reproduce on any other application that has tabs or menu items.

It does appear that the events are propagating but the player seems
unable to redraw the tabs. On our application this behavior is also
extended to menu items in the menu bar.

Also this problem does not occur if you run the swf in standalone mode
even after a day of continuous computer up time and even when the
problem is encountered on the web browser.  Running the same
application in standalone mode does not exhibit any of these issues.

We have been unable to repro this behavior on the flash player version
0,9,0,16 

Sometimes when closing all the Internet Explorer windows after this
problem appears I get Application Error – 

The instruction at 0x…. referenced memory at 0x…. The memory could
not be read

Then the same error but for - CwndSessionMonitor:iexplore.exe

FireFox also exhibits this same behavior so it is not IE specific.
Though I have never run this test by just using FireFox – I just noted
that once the problem occurs in IE it is also reproducible in the
FireFox browser.

Also we have repro this on multiple machines - but as an example here
is one machine configuration:

OS: Microsoft Windows Server 2003 Enterprise Edition SP 1
CPU: 3 ghz dual core
RAM: 4gig
HardDrive: 350gig 
Internet Explorer Version: 6.0.3790.1830
FireFox Vesion: 1.5.0.9
Flash Player Version: 0,9,0,28
Adobe Flex Builder 2 Version: 2.0.143459

Thanks for any help,
Mark

P.S. Below is the simple App I used to isolate this problem:

?xml version=1.0 encoding=utf-8?

mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; 
layout=absolute
modalTransparency=.1  
modalTransparencyBlur=6
modalTransparencyColor=0 
width=100% height=100%


mx:Script
![CDATA[

private function tab_onClick(e:Event):void 
{   
}
private function C1_onClick(e:Event):void 
{   
}
private function C2_onClick(e:Event):void 
{   
}
private function C3_onClick(e:Event):void 
{   
}

]]
/mx:Script

mx:TabNavigator right=0 left=0 height=100% id=tabNavigator
backgroundAlpha=.2 click=tab_onClick(event); 

mx:Canvas label=Tab 1 width=100% height=100%
backgroundAlpha=.3 backgroundColor=0xFF
click=C1_onClick(event);  
/mx:Canvas
mx:Canvas label=Tab 2 width=100% height=100%
backgroundAlpha=.3 backgroundColor=0xFF
click=C2_onClick(event); 
/mx:Canvas
mx:Canvas label=Tab 3 width=100% height=100%
backgroundAlpha=.3 backgroundColor=0xFF
click=C3_onClick(event); 
/mx:Canvas

/mx:TabNavigator

/mx:Application




Re: [flexcoders] Re: Debug Flash Player 9 for Intel Mac

2006-12-22 Thread Brian Dunphy
The Flex Builder 2 for Mac actually has a newer version of the Flex 2
SDK that requires you to explicitly import things instead of calling
them by their classpath. There are a number of other changes as well,
I can't remember where I saw a list of them but there is one out
there.

Hopefully Adobe will release the latest Intel Mac debug player soon, I
find the one that came with the Mac beta extremely buggy (freezes
Safari, Firefox, often ignores keystrokes, etc).

Cheers,

Brian

On 12/22/06, fuad_kamal [EMAIL PROTECTED] wrote:






 I just finished switching my development environment from PC to a new
  Intel Mac. I also had the issue with the debug player not playing,
  and I also didn't find any separate download for the Intel debug
  player on Adobe's site...so I followed their alternative suggestion
  and re-installed Flex Builder (beta). The Flex Builder installer runs
  a Flash Debug player installation at the end of the flex install, and
  that worked. They really ought to release a stand-alone installer for
  Intel Macs, though. I followed the link from the error thrown in the
  Power-PC installer but it lead to the non-debugger (release) version
  of the flash player for intel mac.

  Also, another note, I noticed this time during the flex builder
  install that it failed when trying to write a file to my home
  directory. I suspect this might be a similar problem to the Photoshop
  CS3 Beta install issue - my home directory is encrypted using
  FileVault, and the CS3 beta install workaround was to disable FileVault...

  Two things I noticed immediately when starting development in the new
  Mac environment:

  a) I can't seem to break my panels across multiple displays, as I
  could in the Windows PC environment. Anyone know how to do this on Mac?

  b) The Mac version seems smarter! It picked up an error in my project
  that wasn't getting picked up in the PC environment (missing import
  statement). I suspect the reason is that the project is huge...maybe
  it's a memory or buffer issue or something (my PC is quite old while
  the Mac is really souped up).


  --- In flexcoders@yahoogroups.com, aspentreemedia [EMAIL PROTECTED] 
 wrote:
  
   I gave it another try on the download page but I get the error that
   I'm trying to install the PPC version and not the universal binary for
   Intel Macs. I guess I'll try and download Flex Builder and see if I
   can get the new version that way.
  
   Mike
   -
   Mike Weiland
   Aspen Tree Media
   (877)659-1652 | FAX: (512)828-7105
   http://www.AspenTreeMedia.com
   http://www.CertificateCreator.com - Create  Print Awards and
  Certificates
  
  
   --- In flexcoders@yahoogroups.com, Brian Dunphy briandunphy@ wrote:
   
Greg,
   
Do you have the Universal binary of Firefox? I remember when we were
waiting for the first Intel Mac player to come out, we had to run the
PowerPC binary of Firefox through emulation, and the player worked
(but slow).
   
I'm just curious because I have tried installing the one on that page
about 10 times over the past few weeks and it always says it's PPC
only... I've seen many other reports of the same issue.
   
Thanks,
   
Brian
   
On 12/12/06, Greg Newman greg.carbon8@ wrote:






 They're available on Adobe's site here:
 http://www.adobe.com/support/flashplayer/downloads.html
 It's working fine on my OSX MBP.





 On 12/12/06, Brian Dunphy briandunphy@ wrote:
 
 
 
 
 
 
  Does anybody have the debug Flash Player 9 for Intel macs? I've
   heard
  it's included in the Apollo private beta right now... is it
  against
  any agreements for somebody in that beta to send us the debug
  player
  only? I'm really hurting for a debug player in OS X right now.
 
  Obviously if this goes against any agreements when you enter the
  private beta, please disregard this request.
 
  Thanks,
 
  Brian
 



 --

 - Greg Newman
 ---
 http://www.carbon8.us
 http://www.busyashell.com


   
   
--
Brian Dunphy
   
  



  


-- 
Brian Dunphy


[flexcoders] Re: Debug Flash Player 9 for Intel Mac

2006-12-22 Thread fuad_kamal
ah, maybe that's why my custom panel titlebar buttons aren't appearing
on the mac...

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

 The Flex Builder 2 for Mac actually has a newer version of the Flex 2
 SDK that requires you to explicitly import things instead of calling
 them by their classpath. There are a number of other changes as well,
 I can't remember where I saw a list of them but there is one out
 there.
 
 Hopefully Adobe will release the latest Intel Mac debug player soon, I
 find the one that came with the Mac beta extremely buggy (freezes
 Safari, Firefox, often ignores keystrokes, etc).
 
 Cheers,
 
 Brian
 
 On 12/22/06, fuad_kamal [EMAIL PROTECTED] wrote:
 
 
 
 
 
 
  I just finished switching my development environment from PC to a new
   Intel Mac. I also had the issue with the debug player not playing,
   and I also didn't find any separate download for the Intel debug
   player on Adobe's site...so I followed their alternative suggestion
   and re-installed Flex Builder (beta). The Flex Builder installer runs
   a Flash Debug player installation at the end of the flex install, and
   that worked. They really ought to release a stand-alone installer for
   Intel Macs, though. I followed the link from the error thrown in the
   Power-PC installer but it lead to the non-debugger (release) version
   of the flash player for intel mac.
 
   Also, another note, I noticed this time during the flex builder
   install that it failed when trying to write a file to my home
   directory. I suspect this might be a similar problem to the Photoshop
   CS3 Beta install issue - my home directory is encrypted using
   FileVault, and the CS3 beta install workaround was to disable
FileVault...
 
   Two things I noticed immediately when starting development in the new
   Mac environment:
 
   a) I can't seem to break my panels across multiple displays, as I
   could in the Windows PC environment. Anyone know how to do this
on Mac?
 
   b) The Mac version seems smarter! It picked up an error in my project
   that wasn't getting picked up in the PC environment (missing import
   statement). I suspect the reason is that the project is huge...maybe
   it's a memory or buffer issue or something (my PC is quite old while
   the Mac is really souped up).
 
 
   --- In flexcoders@yahoogroups.com, aspentreemedia mike@ wrote:
   
I gave it another try on the download page but I get the error that
I'm trying to install the PPC version and not the universal
binary for
Intel Macs. I guess I'll try and download Flex Builder and see if I
can get the new version that way.
   
Mike
-
Mike Weiland
Aspen Tree Media
(877)659-1652 | FAX: (512)828-7105
http://www.AspenTreeMedia.com
http://www.CertificateCreator.com - Create  Print Awards and
   Certificates
   
   
--- In flexcoders@yahoogroups.com, Brian Dunphy
briandunphy@ wrote:

 Greg,

 Do you have the Universal binary of Firefox? I remember when
we were
 waiting for the first Intel Mac player to come out, we had to
run the
 PowerPC binary of Firefox through emulation, and the player
worked
 (but slow).

 I'm just curious because I have tried installing the one on
that page
 about 10 times over the past few weeks and it always says
it's PPC
 only... I've seen many other reports of the same issue.

 Thanks,

 Brian

 On 12/12/06, Greg Newman greg.carbon8@ wrote:
 
 
 
 
 
 
  They're available on Adobe's site here:
  http://www.adobe.com/support/flashplayer/downloads.html
  It's working fine on my OSX MBP.
 
 
 
 
 
  On 12/12/06, Brian Dunphy briandunphy@ wrote:
  
  
  
  
  
  
   Does anybody have the debug Flash Player 9 for Intel
macs? I've
heard
   it's included in the Apollo private beta right now... is it
   against
   any agreements for somebody in that beta to send us the debug
   player
   only? I'm really hurting for a debug player in OS X right
now.
  
   Obviously if this goes against any agreements when you
enter the
   private beta, please disregard this request.
  
   Thanks,
  
   Brian
  
 
 
 
  --
 
  - Greg Newman
  ---
  http://www.carbon8.us
  http://www.busyashell.com
 
 


 --
 Brian Dunphy

   
 
 
 
   
 
 
 -- 
 Brian Dunphy





Re: [flexcoders] Flex help on IRC

2006-12-22 Thread dorkie dork from dorktown

bump.

On 11/28/06, Andrew D. Goodfellow [EMAIL PROTECTED] wrote:


Great idea Louie! I've been using this channel for about a day now and I'm
finding it very useful.

I'd definitely encourage everyone on the list to come and participate, or
at least lurk. :o)

-Andy


On 11/27/06, Louie Penaflor [EMAIL PROTECTED]  wrote:

Hey everyone,



 For those of you who would like to attempt a different way
 of getting help, we have started a flex channel on IRC Chat called
 #flex.  It's on efnet.  Hope to see you there.



 Louie








[flexcoders] Re: Wrapping multiple text items

2006-12-22 Thread Tim Hoff
Why not loop through the dataProviders for the individual text 
fields and concatenate them into the text property of a single text 
field; so that wordwrap will kick in?

-TH

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

 yeha, methinks that is what im going to have to use.
 
 thanks
 --- In flexcoders@yahoogroups.com, Tracy Spratt tspratt@ wrote:
 
  Perhaps a TileList might work for you?
  
  Tracy
  
   
  
  
  
  From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
  Behalf Of kasey.mccurdy
  Sent: Friday, December 22, 2006 11:05 AM
  To: flexcoders@yahoogroups.com
  Subject: [flexcoders] Wrapping multiple text items
  
   
  
  Hi there -- i have a very very basic question.
  
  I'm trying to layout 6 text items inside an HBox -- id like them 
to
  wrap when they get to the edge of the HBox (like CSS 
floating)...but
  it seems that the 6 text items just go straight out in a line 
(they
  dont wrap inside the HBox)...my code is as follows:
  
  mx:HBox styleName=linksetLinks
  width=212 height=50 verticalScrollPolicy=off 
  mx:Text text=Quick Prepare /
  mx:Text text=Beef /
  mx:Text text=Chicken /
  mx:Text text=Low-carb /
  mx:Text text=Vegetarian /
  mx:Text text=More... /
  /mx:HBox
  
  they end up looking like this:
  Quick prepare beef chicken low-carb vegetarian more...
  
  i want something like this:
  Quick prepare beef chicken
  low-carb vegetarian more...
  
  is there a better (or any) way to accomplish what im trying to 
do?
 





Re: [flexcoders] Re: manually adding items to a datagrid

2006-12-22 Thread Yiðit Boyar
can you please share your solution here...
thanks...

- Original Message 
From: Clint Tredway [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Friday, December 22, 2006 7:00:35 PM
Subject: Re: [flexcoders] Re: manually adding items to a datagrid









  



cool, I actually figured out a better way after I sent my question 
:)

thanks, I will keep that in mind if I need it in the future.


On 12/22/06, Doug Lowder
 [EMAIL PROTECTED] com wrote:













  



Hi Clint,



If your grid's dataproivider implements List CollectionView (like 

ArrayCollection or XMLListCollection) , you can try: 



myGrid.dataProvider .addItemAt( oItem, nIndex);




--- In [EMAIL PROTECTED] ups.com, Clint Tredway [EMAIL PROTECTED] wrote:



 I need to manually loop through a collection and add each item to a

 datagrid. However, I cannot seem to get this to work like adding 

items

 to a combo box...

 

 any help would be appreciated.

 

 -- 

 http://indeegrumpee .spaces.live. com/









  




















-- 
http://indeegrumpee .spaces.live. com/


  







!--

#ygrp-mlmsg {font-size:13px;font-family:arial,helvetica,clean,sans-serif;}
#ygrp-mlmsg table {font-size:inherit;font:100%;}
#ygrp-mlmsg select, input, textarea {font:99% arial,helvetica,clean,sans-serif;}
#ygrp-mlmsg pre, code {font:115% monospace;}
#ygrp-mlmsg * {line-height:1.22em;}
#ygrp-text{
font-family:Georgia;
}
#ygrp-text p{
margin:0 0 1em 0;
}
#ygrp-tpmsgs{
font-family:Arial;
clear:both;
}
#ygrp-vitnav{
padding-top:10px;
font-family:Verdana;
font-size:77%;
margin:0;
}
#ygrp-vitnav a{
padding:0 1px;
}
#ygrp-actbar{
clear:both;
margin:25px 0;
white-space:nowrap;
color:#666;
text-align:right;
}
#ygrp-actbar .left{
float:left;
white-space:nowrap;
}
.bld{font-weight:bold;}
#ygrp-grft{
font-family:Verdana;
font-size:77%;
padding:15px 0;
}
#ygrp-ft{
font-family:verdana;
font-size:77%;
border-top:1px solid #666;
padding:5px 0;
}
#ygrp-mlmsg #logo{
padding-bottom:10px;
}

#ygrp-vital{
background-color:#e0ecee;
margin-bottom:20px;
padding:2px 0 8px 8px;
}
#ygrp-vital #vithd{
font-size:77%;
font-family:Verdana;
font-weight:bold;
color:#333;
text-transform:uppercase;
}
#ygrp-vital ul{
padding:0;
margin:2px 0;
}
#ygrp-vital ul li{
list-style-type:none;
clear:both;
border:1px solid #e0ecee;
}
#ygrp-vital ul li .ct{
font-weight:bold;
color:#ff7900;
float:right;
width:2em;
text-align:right;
padding-right:.5em;
}
#ygrp-vital ul li .cat{
font-weight:bold;
}
#ygrp-vital a {
text-decoration:none;
}

#ygrp-vital a:hover{
text-decoration:underline;
}

#ygrp-sponsor #hd{
color:#999;
font-size:77%;
}
#ygrp-sponsor #ov{
padding:6px 13px;
background-color:#e0ecee;
margin-bottom:20px;
}
#ygrp-sponsor #ov ul{
padding:0 0 0 8px;
margin:0;
}
#ygrp-sponsor #ov li{
list-style-type:square;
padding:6px 0;
font-size:77%;
}
#ygrp-sponsor #ov li a{
text-decoration:none;
font-size:130%;
}
#ygrp-sponsor #nc {
background-color:#eee;
margin-bottom:20px;
padding:0 8px;
}
#ygrp-sponsor .ad{
padding:8px 0;
}
#ygrp-sponsor .ad #hd1{
font-family:Arial;
font-weight:bold;
color:#628c2a;
font-size:100%;
line-height:122%;
}
#ygrp-sponsor .ad a{
text-decoration:none;
}
#ygrp-sponsor .ad a:hover{
text-decoration:underline;
}
#ygrp-sponsor .ad p{
margin:0;
}
o {font-size:0;}
.MsoNormal {
margin:0 0 0 0;
}
#ygrp-text tt{
font-size:120%;
}
blockquote{margin:0 0 0 4px;}
.replbq {margin:4;}
--







__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

Re: [flexcoders] Re: manually adding items to a datagrid

2006-12-22 Thread Clint Tredway

sure, what I did was loop through the dataProvider of the grid and checked
for a match and when a match was found set the selected index of the grid.

now, I just need to get the scrollToIndex to work and all will be good.

On 12/22/06, Yiðit Boyar [EMAIL PROTECTED] wrote:


  can you please share your solution here...
thanks...

- Original Message 
From: Clint Tredway [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Friday, December 22, 2006 7:00:35 PM
Subject: Re: [flexcoders] Re: manually adding items to a datagrid

 cool, I actually figured out a better way after I sent my question :)

thanks, I will keep that in mind if I need it in the future.

On 12/22/06, Doug Lowder [EMAIL PROTECTED] com [EMAIL PROTECTED]
wrote:

   Hi Clint,

 If your grid's dataproivider implements List CollectionView (like
 ArrayCollection or XMLListCollection) , you can try:

 myGrid.dataProvider .addItemAt( oItem, nIndex);


 --- In [EMAIL PROTECTED] ups.com flexcoders%40yahoogroups.com,
 Clint Tredway [EMAIL PROTECTED] wrote:
 
  I need to manually loop through a collection and add each item to a
  datagrid. However, I cannot seem to get this to work like adding
 items
  to a combo box...
 
  any help would be appreciated.
 
  --
  http://indeegrumpee .spaces.live. com/http://indeegrumpee.spaces.live.com/
 




--
http://indeegrumpee .spaces.live. com/http://indeegrumpee.spaces.live.com/


__
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com

 





--
http://indeegrumpee.spaces.live.com/


[flexcoders] FlexUnit for testing a cairngorm application

2006-12-22 Thread Philippe
Hi,
 
I have a Flex2 application built on cairngorm, with AMFPHP for business
delegates.
I want to test unit Cairngorm flows for example when the user click a login
button.
It creates a Cairngorm Events that calls a command that delegate to
business, and so on.
 
I m pretty new with test unit so I m paralysed with this challenge. Can
someone help me to start?
Thanks
Phil
 
 
attachment: winmail.dat

Re: [flexcoders] Re: SEO Compatibility

2006-12-22 Thread dorkie dork from dorktown

First, this structure already works for these content management / blog
sites. They have a single index page that shows content based on the url.
There is only one file. So we know it works.

#1 - yes. i am thinking at its most basic level, on that single catch all
index page, we have a function that gets called when the page loads. that
function is passed the broken down url information, ie, a object similar to
the location object (contains the pathname, protocol, etc - or we define a
set of global variables). these are set when the mod rewrite or referrer.
i'd have to check how they do it. back to the function - then your function
can parse and use logic you set up to deliver the content that you want to
make available to the search engines based on the url the user or search bot
requested. in your logic you may be going to the database and pulling
information based on the page they request. we store that information in a
variable that will eventually get written to the page underneath the swf in
xml hidden inside of a script tag.

#2 - the search engine does not know it is getting redirected to the
index.php, index.asp, index.jsp page. all it knows is that when it asks for
animals.com/carnivors/bears it is getting the page on bears.

#3 - yes. thats right. this is described in #1. i really think some
variables would be better than an object.

#4 - that is not necessary. remember, the user (and their browser) and the
search bot only believe in the url. they don't care or know if its a single
page or a different page that gets served up.

One more thing we would have to do that I did not mention in #1 was to pass
a list of links to the page to be written out. These can be in a display
none tag or in the no script section.

And finally that url path and variables should be passed to the flash swf in
the flash vars section.

Dang. I think this can be done rather quickly. This would be basic. A front
end / front end manager could be created for this later on top of this.

On 12/22/06, Kevin Newman [EMAIL PROTECTED] wrote:


dorkie dork from dorktown wrote:
 One of the open source solutions I occasionaly use *cough* *cough*
 *drupal* *cough* has a mod redirect / mod rewrite htaccess file (i'm
 combining words). Any url that is entered into the site gets rewritten
 or redirected. It is a dynamic system that allows you to dynamically
 redirect to the content you want without hard coding paths or
 directories.

 So you would create a dynamic page (doesn't really exist - only in the
 database) and then an alias to reach it. For example,
 www.test.com/myalias http://www.test.com/myalias. Actually a lot of
 systems use this (wordpress, etc).

 All urls entered in to the site would be redirected to index.php. At
 this point you could with the super awesome power of server side code,
 deliver page links dynamically and content dynamically. I recently did
 a project with FXT and did exactly that. You pass the data as an xml
 model into a script tag under the body tag. Search engines pick this
 up. My Flex app pulled this xml in and then used it as a dataprovider
 for numerous controls.

 I've asked in the wish list for Macromedia at the time before it was
 Adobe to let us specify the type of extension for the published html
 wrapper. Right now if you click publish or run it creates a HTML page.
 So somewhere in the options it would be nice to choose the page
 extension type (php, asp, jsp, etc) of the page we are publishing.
 I've also investigated and requested a way to pick my template page
 that Flex finds and then replaces the tokens which it is looking for
 inside of it. This may all be possible already. I've been mostly only
 learning the API, mostly.

 Now that I've had a chance to think about it a default Adobe Page and
 Link Management admin site might be the solution. It would be created
 and deployed to bin or bin-admin with every project. Then you would
 upload that to the server along with the contents of your bin
 directory. A developer could login to it on the server. The Adobe Page
 Manager would use an xml file or database to create the aliases. The
 alias would be for different states in a Flex app. When you create an
 alias there would be a place where you could call the services or page
 associated with that state and alias. It would then wrap that content
 in a xml tag like in FXT for indexing. You could also pass any links
 back to the page. The content and links would be in the noscript /
 script / area of the page and not be visible to the user but it would
 be visible to the search bots. Because it uses a single page index.php
 and .htaccess mod rewrite it would redirect all traffic to the single
 index page (php, asp, java). That page would take that url alias,
 search the xml file or database and serve up the appropriate content
 (in the background hidden to users). I hope that makes sense.

 It would manage aliases, content for that alias, links for the alias
 and state to pass to the 

[flexcoders] Re: Question on TabNavigator

2006-12-22 Thread Matt Maher
Malik, have I got the resource for you... here's something fun to play
with to learn a lot about the interface elements:
http://weblogs.macromedia.com/mc/archives/FlexStyleExplorer.html

There is an item at the top for tabs

-M@


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

 Hi
 
 Few questions that I think should be easy to answer?
 
 1. How can I space the tabs up in a tab navigator?  I'd like to have
 space between each tab. They look too scrunched to me at least by
 default.
 
 2. I am trying to build an application that has tabbed interface and I
 am wondering is this the way to go about it.
 
 3. Is there a way to center the tabs in the middle?  Currently they are
 left aligned by default
 
 My code is below:
 
 mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
 layout=absolute frameRate=60
 
 mx:TabNavigator borderColor=#00 borderStyle=solid
 height=100% width=100% backgroundColor=#ee 
 
 mx:VBox label=Tab1 
 
 /mx:VBox
 
 mx:VBox label=Tab2
 
 /mx:VBox
 
 mx:VBox label=Tab3
 
 /mx:TabNavigator
 
 /mx:Application





[flexcoders] bug in DataGrid.selectedItem when using sort

2006-12-22 Thread Pan Troglodytes

The following code demonstrates a bug when you assign to the
DataGrid.selectedItem property when the underlying dataProvider is an
arrayCollection using a sort assigned to it.  If you comment out the 
griddata.sort = sort, the bug goes away (as does your sort,
unfortunately).  I tracked down through the ListCollectionView source code
and everything seems work fine as far as figuring out which item should be
selected.  But it never seems to apply that to selectedItem and instead
applies it only to selectedItems.

?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=vertical
creationComplete=creationComplete()
 mx:Script
   ![CDATA[
 import mx.collections.SortField;
 import mx.collections.Sort;
 import mx.collections.ArrayCollection;
 [Bindable]
 private var griddata:ArrayCollection = new ArrayCollection([
 {name:Tim, id:42},
 {name:Jill, id:21},
 {name:Phil, id:99},
 {name:Sally, id:66}
   ]);

 private function creationComplete():void
 {
   var sort:Sort = new Sort;
   sort.fields = [new SortField(name, true), new SortField(id,
false, false, true)];
   // comment out the next line and run again to see it without the
problem
   griddata.sort = sort;
   griddata.refresh();
 }

 private function btnClick():void
 {
   grid.selectedItem = griddata[1];
   txt.text = (grid.selectedItem ? selectedItem.name =  +
grid.selectedItem.name : selectedItem = null);
   txt2.text = (grid.selectedItems.length ? selectedItems[0].name = 
+ grid.selectedItems[0].name : selectedItem[0] = null);
 }
   ]]
 /mx:Script
 mx:DataGrid id=grid dataProvider={griddata}
   mx:columns
 mx:DataGridColumn dataField=name/
 mx:DataGridColumn dataField=id/
   /mx:columns
 /mx:DataGrid
 mx:Button label=click click=btnClick()/
 mx:Text id=txt/
 mx:Text id=txt2/
/mx:Application

I have run into similar issues before, but this is the first time I've
managed to figure out that the sort was the trigger.  I have entered this on
the Adobe bug page.

--
Jason


[flexcoders] ItemRenderers and Events

2006-12-22 Thread Matt Maher
I'm having troubles with capturing events from an item in a List which
uses an itemRenderer. 

Basically I'm overriding a multi-select List to have a checkbox in it
with a simple itemRenderer. The item renderer is handling the clicks
and managing the checkbox just fine. It also dispatches an event when
clicked.

But when it comes time to listen to that event I don't know who to ask
to listen to it. The component which included the List doesn't seem to
care, and the List item itself surely doesn't seem to be attachable...

Another workaround was to capture all clicks on the LIST itself, then
walk the itemRendered elements, asking each one if it was checked or
not. That one baffles me. I cannot seem to walk any array of data
elements inside the list. I can see the dataProvider array in the
debugger, but I need the itemRenderer list so I have reference to
the checkbox element.

This seemed so simple at first. Now I'm just flailing around.





[flexcoders] Re: bug in DataGrid.selectedItem when using sort

2006-12-22 Thread Pan Troglodytes

FYI, I have a workaround.  Since selectedIndex seems to get set properly, I
do this:

 grid.selectedItem = obj;
 var si:int = grid.selectedIndex;
 grid.selectedIndex = -1;
 grid.selectedIndex = si;

Setting selectedIndex does not go through the same code and doesn't cause
the problem.

On 12/22/06, Pan Troglodytes [EMAIL PROTECTED] wrote:


The following code demonstrates a bug when you assign to the
DataGrid.selectedItem property when the underlying dataProvider is an
arrayCollection using a sort assigned to it.  If you comment out the 
griddata.sort = sort, the bug goes away (as does your sort,
unfortunately).  I tracked down through the ListCollectionView source code
and everything seems work fine as far as figuring out which item should be
selected.  But it never seems to apply that to selectedItem and instead
applies it only to selectedItems.

?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
layout=vertical creationComplete=creationComplete()
  mx:Script
![CDATA[
  import mx.collections.SortField;
  import mx.collections.Sort;
  import mx.collections.ArrayCollection;
  [Bindable]
  private var griddata:ArrayCollection = new ArrayCollection([
  {name:Tim, id:42},
  {name:Jill, id:21},
  {name:Phil, id:99},
  {name:Sally, id:66}
]);

  private function creationComplete():void
  {
var sort:Sort = new Sort;
sort.fields = [new SortField(name, true), new SortField(id,
false, false, true)];
// comment out the next line and run again to see it without the
problem
griddata.sort = sort;
griddata.refresh();
  }

  private function btnClick():void
  {
grid.selectedItem = griddata[1];
txt.text = (grid.selectedItem ? selectedItem.name =  +
grid.selectedItem.name : selectedItem = null);
txt2.text = (grid.selectedItems.length ? selectedItems[0].name =
 + grid.selectedItems[0].name : selectedItem[0] = null);
  }
]]
  /mx:Script
  mx:DataGrid id=grid dataProvider={griddata}
mx:columns
  mx:DataGridColumn dataField=name/
  mx:DataGridColumn dataField=id/
/mx:columns
  /mx:DataGrid
  mx:Button label=click click=btnClick()/
  mx:Text id=txt/
  mx:Text id=txt2/
/mx:Application

I have run into similar issues before, but this is the first time I've
managed to figure out that the sort was the trigger.  I have entered this on
the Adobe bug page.

--
Jason





--
Jason


Re: [flexcoders] Cairngorm 2.1 - calling a webservive more than once

2006-12-22 Thread Paolo Bernardini


I have a similar issue, when I call webservices more than once whit
cairngorm 2.1, that I still haven't solved.



Now you have to manually call webService.loadWSDL(), plus there is
another weird thing happening that didn't happen with version 2.0.

basically it changes the way I'm accessing the results, but not in a
consistent way, for example:

I'm calling the same webservices twice and in order to get the
results I have to change the reference to the return value:

when I call my service for the first time I get:

soap:Envelope mlns:soap=http://schemas.xmlsoap.org/soap/envelope/xmlns:xsd=;
http://www.w3.org/2001/XMLSchema  mlns:xsi=
http://www.w3.org/2001/XMLSchema-instance 
soap:Body
  CreateTokenResponse xmlns=http://www.xxx.net/schemas/services/sso 
 CreateTokenResult*563ee119-802a-47bc-8d37-a5995e576ae6*
/CreateTokenResult
  / CreateTokenResponse
/soap:Body
/ soap:Envelope

on the command to access the result I use

public function result( event:Object ) : void
{
  loginModel.tokenSSO = event.result;
  executeNextCommand();
}

then with executeNextCommand() method (I'm using a sequenceCommand) I
call another command that calls the same webservices but this time I assign
the
result to a different variable. this the return value:

soap:Envelope mlns:soap= http://schemas.xmlsoap.org/soap/envelope/ 
xmlns:xsd=http://www.w3.org/2001/XMLSchema 
mlns:xsi=http://www.w3.org/2001/XMLSchema-instance 
soap:Body
  CreateTokenResponse xmlns=http://www.xxx.net/schemas/services/sso 
 CreateTokenResult*a6628f61-3f20-4dbe-aa23-e34efa3e3796*
/CreateTokenResult
  / CreateTokenResponse
/soap:Body
/ soap:Envelope

This time in order to access the results I need to do this:

public function result( event:Object ) : void
{
  loginModel.tokenApp = event.result.CreateTokenResult;
}

this happens for other services too, where with cairngorm 2.0 I was
able to access the results with event.result now I need to specify
the name of the soap tag that contains the result. The real problem
here is that this does not apply to all the services but just some.
And the weirdest case is the sample that I have explained above where
the strategy to access the result of the same service changes
depending on when you call it (first time event.result, second time
event.result.CreateTokenResult), and I don't see any difference in
the soap returned from the service.

I decided to have ServiceLocator extending the UIComponent and
compiling the new Carngorm.swf (2.1) and everything start working as
before.

Someone suggest that this could be the result of calling loadWSDL(); more
than once so I used this:

if( !isWSDLLoaded ) {
isWSDLLoaded = true;
WebService( service ).loadWSDL();
   }

but nothing changed


[flexcoders] TileList questions

2006-12-22 Thread richmcgillicuddy
Two questions on the tilelist.

1. Is there a way to change the alpha on the selected color or disable
it completely to allow the item renderer to do whatever is needed on
selected.
2. If I have a list of items in my tile list, is there a way to scroll
and center on the selected item?


Thanks,


Rich



RE: [flexcoders] ItemRenderers and Events

2006-12-22 Thread Tracy Spratt
If you are using dispatchEvent(new Event(change,true)) the second
argument tells the event to bubble and you should be able to listen
for it anywhere in the displayList, including the List, and Application.

 

However, it sounds suspiciously like you are not having your checkbox
renderer update the dataProvider.  This is required. You cannot walk
any array of elements inside the list  You must look at the
dataProvider only.  The visual elements, including the checkboxes cease
to exist when they are scrolled.

 

Tracy  

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Matt Maher
Sent: Friday, December 22, 2006 4:07 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] ItemRenderers and Events

 

I'm having troubles with capturing events from an item in a List which
uses an itemRenderer. 

Basically I'm overriding a multi-select List to have a checkbox in it
with a simple itemRenderer. The item renderer is handling the clicks
and managing the checkbox just fine. It also dispatches an event when
clicked.

But when it comes time to listen to that event I don't know who to ask
to listen to it. The component which included the List doesn't seem to
care, and the List item itself surely doesn't seem to be attachable...

Another workaround was to capture all clicks on the LIST itself, then
walk the itemRendered elements, asking each one if it was checked or
not. That one baffles me. I cannot seem to walk any array of data
elements inside the list. I can see the dataProvider array in the
debugger, but I need the itemRenderer list so I have reference to
the checkbox element.

This seemed so simple at first. Now I'm just flailing around.

 



[flexcoders] Bug using FDS to persist managed association as Set

2006-12-22 Thread parkerwhirlow
This is probably best handled by Jeff Vroom, but I'm open to comments
from anyone

I have dug through the HibernateAssembler source after seeing very
strange behavior, and I think I've uncovered a bug in the
HibernateAssembler.

When it is persisting a change to a property that is an FDS managed
relationship, and that relationship is a collection mapped as a Set in
Hibernate, it ends up removing a bunch of items from the collection
that should not be removed...

HibernateAssembler line 591 starts a routine that is supposed to merge
the new collection with the one from the server.

Because the collection is a PersistentSet, not a List, the variable
isList is false, and it gets an ArrayList from the collection to have
sequential access.

while looping through each item in the fromList, even though the item
is in both collections, at line 675 it calls add on toList and toColl. 

toColl is a set, so the add function replaces the existing object
(which it should in case the new one has changed). And the item is
added to the end of the toList.

After looping through each item in fromList, line 686 removes items
from toColl and toList until they are the same length. I'm not sure
why it is doing this, but it is removing the items from the toColl,
and when done, toColl has much less items in it than it should.

Is this a known/fixed defect?

I'm going to start trying to compile this class so that I can
implement a fix for it, but I'm not positive what is needed to do so.
If there is a fix for it already, I'd love to get it.

thanks,
PW




[flexcoders] dynamic control access

2006-12-22 Thread bitfacepatrick
Hello is there a way to build a reference to a control at runtime
something like this? I know this doesn't work I don't know how else to
describe it. Is there a command similar to getElementById()?


for (var i:int -0; i , myArray.length; i++)
{

 director + [i] + .text = some text;

}

I have a number of text input controls all named like, director1,
director2, director3, director4...



RE: [flexcoders] Bug using FDS to persist managed association as Set

2006-12-22 Thread Jeff Vroom
I don't know of a bug in that code... I can explain what should be
happening.   There is probably a more efficient (and simpler) way to do
this when you know you are dealing with an unordered set, but I don't
know why it is breaking right now.

 

When it hits line 675 for an item which is in both sets, it should have
previously hit the call to remove that very same item a few lines
earlier 671.  The code is written so that it is merging two sorted lists
and so it will remove and reinsert an item if it has to shift the
position.  Because the position of an item in a Set is can be random,
this may end up doing a lot more work than is necessary. 

 

I think that when it hits the end of the list, it should just be culling
off items that are in the toList which should not be.  If the
equals/hashCode methods get messed up, this could easily get messed up
though so that is one thing to check.   If the remove call fails to find
the item to remove, things would get out of sync between the set and the
list and I'm not sure what would happen.

 

For Sets, we probably should just have one loop which iterates over the
to list.  If the item is not in the from list we remove it from the
toList.  Then we loop over the from list and if it is not in the toList
we add it to the toList.  If the equals and hashCode methods are not
right for the items in the list and the id properties, this probably
would not fix the problem though.

 

In terms of recompiling the HibernateAssembler, I think you can just
compile it normally with the WEB-INF/lib classes in your classpath.  You
can find HibernateAssembler in one of the flex-messaging jar files and
just replace the old one with the new one.  

 

Jeff

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of parkerwhirlow
Sent: Friday, December 22, 2006 5:06 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Bug using FDS to persist managed association as
Set

 

This is probably best handled by Jeff Vroom, but I'm open to comments
from anyone

I have dug through the HibernateAssembler source after seeing very
strange behavior, and I think I've uncovered a bug in the
HibernateAssembler.

When it is persisting a change to a property that is an FDS managed
relationship, and that relationship is a collection mapped as a Set in
Hibernate, it ends up removing a bunch of items from the collection
that should not be removed...

HibernateAssembler line 591 starts a routine that is supposed to merge
the new collection with the one from the server.

Because the collection is a PersistentSet, not a List, the variable
isList is false, and it gets an ArrayList from the collection to have
sequential access.

while looping through each item in the fromList, even though the item
is in both collections, at line 675 it calls add on toList and toColl. 

toColl is a set, so the add function replaces the existing object
(which it should in case the new one has changed). And the item is
added to the end of the toList.

After looping through each item in fromList, line 686 removes items
from toColl and toList until they are the same length. I'm not sure
why it is doing this, but it is removing the items from the toColl,
and when done, toColl has much less items in it than it should.

Is this a known/fixed defect?

I'm going to start trying to compile this class so that I can
implement a fix for it, but I'm not positive what is needed to do so.
If there is a fix for it already, I'd love to get it.

thanks,
PW

 



RE: [flexcoders] DataService commit() doesn't finish.

2006-12-22 Thread Jeff Vroom
It looks like an exception is occurring and the transaction is being
rolled back.  Is your fault handler being called on the client side?  I
think that there are certain types of Errors and RuntimeExceptions which
are not being logged properly by the FDS MessageService so that is
making this look mysterious in the logs.  If the error is occurring
after the updateItem call succeeds, it will be hard to track down
without libraries that do that logging.   2.0.1 is coming out real soon
now and has some improvements to the logging so that might be worth a
try.  

 

Jeff

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of parkerwhirlow
Sent: Thursday, December 21, 2006 4:14 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] DataService commit() doesn't finish.

 


Hi guys,

I have some functionality that used to work that isn't working
anymore... using FDMS and HibernateAssembler. 

From Flex, I've made one single change and used DataService.commit(),
and added a responder to the AsyncToken.

On the server, I can trace through the HibernateAssembler.updateItem()
and everything goes fine. The commit code doesn't get called though
because Transactions are true, and the syncSession is used.

There is some server trace of an AcknowledgeMessage getting sent, but
the responder never gets called, and if I refresh the flex client, the
values are not saved.

Please see the log trace below, and let me know if I missed anything.

thanks,
PW

12/21 15:49:55 user [Flex] 15:49:55.658 [DEBUG]
[Message.Data.transacted] Before invoke service: data-service
incomingMessage: Flex Message (flex.data.messages.DataMessage)
operation = transacted
id = null
clientId = 37BE2173-400E-D4C7-CBC3-2943A841449A
correlationId =
destination = Model
messageId = F4DE4EEE-9D72-806C-A4DB-A76BC6F02C11
timestamp = 1166744995648
timeToLive = 0
body =
[
Flex Message (flex.data.messages.DataMessage)
operation = update
id = ASObject(32376284){id=1163778853188464256078}
clientId = CCD745B5-3C9E-C584-4ED4-A7666B51EEF4
correlationId = F4DE4EEE-9D72-806C-A4DB-A76BC6F02C11
destination = Application
messageId = 8577BADB-417B-D762-5E92-A76B983BAA25
timestamp = 0
timeToLive = 0
body =
[

[
selecteddisplay
],
[EMAIL PROTECTED],
[EMAIL PROTECTED]
]
hdr(newReferencedIds) = {displays=
[
{id=1156440527883820192695},
{id=1164384322718557235986},
{id=1164388051550092880785},
{id=1164467025953663641911},
{id=1164467032523719875336},
{id=1164467037039304665983}
]}
hdr(prevReferencedIds) = {displays=
[
{id=1156440527883820192695},
{id=1164384322718557235986},
{id=1164388051550092880785},
{id=1164467025953663641911},
{id=1164467032523719875336},
{id=1164467037039304665983}
]}
]
hdr(DSEndpoint) = my-rtmp

12/21 15:49:55 user [Flex] 15:49:55.819 [DEBUG]
[DataService.Transaction] Started transaction using jndi name:
java:comp/UserTransaction
12/21 15:49:55 user [Flex] 15:49:55.949 [DEBUG]
[DataService.Hibernate] Get object from hibernate with
id=1156440527883820192695 -
[EMAIL PROTECTED]
12/21 15:50:06 user [Flex] 15:50:06.864 [DEBUG]
[DataService.Hibernate] Get object from hibernate with
id=1164384322718557235986 -
[EMAIL PROTECTED]
12/21 15:50:11 user [Flex] 15:50:11.261 [DEBUG]
[DataService.Hibernate] Get object from hibernate with
id=1164388051550092880785 -
[EMAIL PROTECTED]
12/21 15:50:15 user [Flex] 15:50:15.707 [DEBUG]
[DataService.Hibernate] Get object from hibernate with
id=1164467025953663641911 -
[EMAIL PROTECTED]
12/21 15:50:19 user [Flex] 15:50:19.753 [DEBUG]
[DataService.Hibernate] Get object from hibernate with
id=1164467032523719875336 -
[EMAIL PROTECTED]
12/21 15:50:23 user [Flex] 15:50:23.789 [DEBUG]
[DataService.Hibernate] Get object from hibernate with
id=1164467037039304665983 -
[EMAIL PROTECTED]
12/21 15:50:27 user [Flex] 15:50:27.684 [DEBUG]
[DataService.Hibernate] Get object from hibernate with
id=1156440527883820192695 -
[EMAIL PROTECTED]
12/21 15:50:27 user [Flex] 15:50:27.784 [DEBUG]
[DataService.Hibernate] Get object from hibernate with
id=1164384322718557235986 -
[EMAIL PROTECTED]
12/21 15:50:27 user [Flex] 15:50:27.805 [DEBUG]
[DataService.Hibernate] Get object from hibernate with
id=1164388051550092880785 -
[EMAIL PROTECTED]
12/21 15:50:27 user [Flex] 15:50:27.825 [DEBUG]
[DataService.Hibernate] Get object from hibernate with
id=1164467025953663641911 -
[EMAIL PROTECTED]
12/21 15:50:27 user [Flex] 15:50:27.845 [DEBUG]
[DataService.Hibernate] Get object from hibernate with
id=1164467032523719875336 -
[EMAIL PROTECTED]
12/21 15:50:27 user [Flex] 15:50:27.855 [DEBUG]
[DataService.Hibernate] Get object from hibernate with
id=1164467037039304665983 -
[EMAIL PROTECTED]
12/21 15:50:43 user [Flex] 15:50:43.577 [DEBUG]
[DataService.Hibernate] Get object from hibernate with
id=1163778853188464256078 -
[EMAIL PROTECTED]
8634a
12/21 15:52:31 debug Pool skimmer cleaning objects from the pool that
have exceeded their allotted lifespan, has 1 pooled objects to evaluate
12/21 15:56:28 debug MM GC 

RE: [flexcoders] dynamic control access

2006-12-22 Thread Tracy Spratt
Use bracket notation.  For instance:

this[director + i].text = some text;

will work if there is a control with that concatenated id.

 

In 1.5 you could use this method to create variable on the application
object, but in 2.0 that doesn't work anymore, I think because the
application object is no longer dynamic.

 

Tracy

 

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of bitfacepatrick
Sent: Friday, December 22, 2006 7:29 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] dynamic control access

 

Hello is there a way to build a reference to a control at runtime
something like this? I know this doesn't work I don't know how else to
describe it. Is there a command similar to getElementById()?

for (var i:int -0; i , myArray.length; i++)
{

director + [i] + .text = some text;

}

I have a number of text input controls all named like, director1,
director2, director3, director4...

 



[flexcoders] Why Flex SDK 2 Classes not included in Adobe® Fle x™ 2 Language Reference documentation

2006-12-22 Thread P Smith
Just curious.  Can anyone explain why many classes in the Flex SDK 2 are not 
included in the Adobe® Flex™ 2 Language Reference documentation?

Like the entire mx.binding package?  (only the 2 classes in the 
mx.binding.utils package are in the Language Reference.)

Thanks,

Pete



__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com