[flexcoders] data provider doubt

2008-02-26 Thread Tom Preet
Hi All,

In my app am using datagrid with three columns. to fill the data in to
datagrid, am
getting the data using remote object and stored  data into a Arraycollection
in mxml.

when am displaying the data into a grid it was displaying(repeating same
data) in all the three
columns.
how to display the data within the respective fields.

I have used column1.dataField={lis.getItemIndex(1).toString()} like this
to
display the content of field in first column but it was not displaying
anything.
can anyone help me how to achieve this.


--tomt


RE: Migration Guide? was RE: [flexcoders] Flex 3 and AIR 1 are now live!

2008-02-26 Thread Ronald Kinion
Nothing yet, haven't even started anything yet.  I just expected
something more I guess.  Maybe more like the migration guide we used
when going from 1.5 to 2.0.  I know there weren't anywhere near the same
amount of changes in the language this time though.
 

-- 
Ronald Kinion 
Phone: 253-205-3494 
[EMAIL PROTECTED] mailto:[EMAIL PROTECTED]  
www.zones.com http://www.zones.com/  

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Alex Harui
Sent: Monday, February 25, 2008 11:06 PM
To: flexcoders@yahoogroups.com
Subject: RE: Migration Guide? was RE: [flexcoders] Flex 3 and AIR 1 are
now live!



That should be it.  There were very few API changes, some style changes.
What did you run into?



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Ronald Kinion
Sent: Monday, February 25, 2008 6:35 PM
To: flexcoders@yahoogroups.com
Subject: Migration Guide? was RE: [flexcoders] Flex 3 and AIR 1 are now
live!

Is there a migration guide for those of us converting apps from flex2 to
flex3?  Or is
http://learn.adobe.com/wiki/display/Flex/Backwards+Compatibility+Issues
http://learn.adobe.com/wiki/display/Flex/Backwards+Compatibility+Issues
  all there is?  

-- 
Ronald Kinion 
Phone: 253-205-3494 
[EMAIL PROTECTED] mailto:[EMAIL PROTECTED]  
www.zones.com http://www.zones.com/  



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Matt Chotin
Sent: Sunday, February 24, 2008 9:25 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Flex 3 and AIR 1 are now live!

http://www.adobe.com/products/flex http://www.adobe.com/products/flex 
http://www.adobe.com/products/air http://www.adobe.com/products/air 

And best of all: http://opensource.adobe.com/flexsdk
http://opensource.adobe.com/flexsdk !

Matt

 


[flexcoders] Re: Sprite.children

2008-02-26 Thread kjorn
--- In flexcoders@yahoogroups.com, Gordon Smith [EMAIL PROTECTED] wrote:

 Are you asking Why doesn't Sprite have a 'children' Array rather than a
 numChildren property and a getChildAt() method?. The answer to that is
 that AS3 lacks strongly typed Arrays, and lacks a way to know when
 you've modified an Array. For example, if you pushed a Sprite onto the
 Array, the Player wouldn't know to add it to the display list.
  
 Gordon Smith
 Adobe Flex SDK Team
 

Oh, OK. That is a bit annoying though.

So how come you don't sub class Array and add an 'on added' event that
tells the Player when something is added?

Who cares if Array isn't strongly typed? So long as the Player finds
something that looks and smells like a DisplayObject, wouldn't that be
enough?

Cheers,

monk.e.boy



Re: [flexcoders] How to find a host name for a server

2008-02-26 Thread Sujit Reddy
check out the below URLs
http://livedocs.adobe.com/labs/flex3/html/deep_linking_7.html#251252
http://livedocs.adobe.com/labs/flex3/html/deep_linking_5.html#245869
Hope this helps.

Regards,
Sujit Reddy G

On Tue, Feb 26, 2008 at 9:46 AM, Manjith [EMAIL PROTECTED] wrote:

   Hi

 I am new to FLex 2.0.I want to find a host name within a flex program.

 Also I would like to know any of you guys are using some commandline
 parameters to passs to flash file.

 for example I want to find a parameter to falsh file and within a flex
 code I should be able to get that parameter values.

 Thanks

 Manjith

  




-- 
Regards,
Sujit Reddy. G


Re: [flexcoders] data provider doubt

2008-02-26 Thread Sujit Reddy
Lets say your RPC is returning ArrayCollection containing objects and each
object has got properties prop1, prop2 and prop3

your code should be similar to the below one
dataGrid.dataProvider = arrayCollection;
dataColumn1.dataField = prop1;
dataColumn2.dataField = prop2;


On Tue, Feb 26, 2008 at 3:30 PM, Sujit Reddy [EMAIL PROTECTED] wrote:

 value of the dataField should be the name of the property from which the
 value has to be retrieved.
 for example, RPC is returning object with three properties named prop1,
 prop2 and prop3.
 then the dataField should be set to the name of the property like
 dataField = prop1;

 Hoe this helps.
 Regards,
 Sujit Reddy G


 On Tue, Feb 26, 2008 at 1:38 PM, Tom Preet [EMAIL PROTECTED] wrote:

 
  Hi All,
 
  In my app am using datagrid with three columns. to fill the data in to
  datagrid, am
  getting the data using remote object and stored  data into a
  Arraycollection in mxml.
 
  when am displaying the data into a grid it was displaying(repeating same
  data) in all the three
  columns.
  how to display the data within the respective fields.
 
  I have used column1.dataField={lis.getItemIndex(1).toString()} like
  this to
  display the content of field in first column but it was not displaying
  anything.
  can anyone help me how to achieve this.
 
 
  --tomt
   
 



 --
 Regards,
 Sujit Reddy. G




-- 
Regards,
Sujit Reddy. G


Re: [flexcoders] How to reload or refresh dataGrid after deleting a record from database.

2008-02-26 Thread Sujit Reddy
invoke the showData method, once the delete is complete.

On Tue, Feb 26, 2008 at 3:49 PM, Sujit Reddy [EMAIL PROTECTED] wrote:

 create a ArrayCollection object and bind datagrid to this ArrayCollection
 object. handle the result event of the HTTPService, in the event handler,
 set the result to the array collection object. invoke the refresh() method
 of the ArrayCollection to refresh the datagrid.

 Regards,
 Sujit Reddy G


 On Mon, Feb 25, 2008 at 5:02 PM, arulmurugan 
 [EMAIL PROTECTED] wrote:

How to reload or refresh my dataGrid after deleting recored from
  database. I am using asp to delete the recoreds.
 
  But the datagrid is not refreshing. after clicking the delete button.
  How to do it. I am new 2 Flex.
 
  ?xml version=1.0 encoding=utf-8?
 
  mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; xmlns=*
  layout=absolute
  creationComplete=userRequest.send()
 
  mx:Script
  ![CDATA[
  private function deleteData():void {
  userDelete.send();
  }
 
  private function showData():void {
  userRequest.send();
 
  }
  ]]
  /mx:Script
  mx:HTTPService id=userRequest url=request.asp useProxy=false
  method=POST
  mx:request xmlns=
  user_name{username.text}/user_name
  /mx:request
  /mx:HTTPService
 
  mx:HTTPService id=userDelete url=request.asp useProxy=false
  method=POST
  mx:request xmlns=
  user_id{dgUserRequest.selectedItem.userid}/user_id
  /mx:request
  /mx:HTTPService
 
  mx:Form x=22 y=10 width=493
  mx:HBoxmx:Label text=Username/mx:TextInput
  id=username//mx:HBox
  mx:Button label=Submit click=showData();/
  mx:Button label=Delete click=deleteData();/
  /mx:Form
 
  mx:DataGrid id=dgUserRequest
  dataProvider={userRequest.lastResult.users.user}
  x=22 y=140 width=493 height=125 
  mx:columns
  mx:DataGridColumn headerText=User ID dataField=userid/
  mx:DataGridColumn headerText=User Name dataField=username/
  mx:DataGridColumn headerText=E-Mail dataField=emailaddress/
  /mx:columns
  /mx:DataGrid
 
  mx:TextInput id=selectedemailaddress
  text={dgUserRequest.selectedItem.emailaddress}
  x=355 y=273 /
 
  mx:TextInput id=selecteduserid
  text={dgUserRequest.selectedItem.userid}
  x=22 y=273 /
 
  /mx:Application
 
   
 



 --
 Regards,
 Sujit Reddy. G




-- 
Regards,
Sujit Reddy. G


Re: [flexcoders] How to reload or refresh dataGrid after deleting a record from database.

2008-02-26 Thread Sujit Reddy
create a ArrayCollection object and bind datagrid to this ArrayCollection
object. handle the result event of the HTTPService, in the event handler,
set the result to the array collection object. invoke the refresh() method
of the ArrayCollection to refresh the datagrid.

Regards,
Sujit Reddy G

On Mon, Feb 25, 2008 at 5:02 PM, arulmurugan [EMAIL PROTECTED]
wrote:

   How to reload or refresh my dataGrid after deleting recored from
 database. I am using asp to delete the recoreds.

 But the datagrid is not refreshing. after clicking the delete button.
 How to do it. I am new 2 Flex.

 ?xml version=1.0 encoding=utf-8?

 mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; xmlns=*
 layout=absolute
 creationComplete=userRequest.send()

 mx:Script
 ![CDATA[
 private function deleteData():void {
 userDelete.send();
 }

 private function showData():void {
 userRequest.send();

 }
 ]]
 /mx:Script
 mx:HTTPService id=userRequest url=request.asp useProxy=false
 method=POST
 mx:request xmlns=
 user_name{username.text}/user_name
 /mx:request
 /mx:HTTPService

 mx:HTTPService id=userDelete url=request.asp useProxy=false
 method=POST
 mx:request xmlns=
 user_id{dgUserRequest.selectedItem.userid}/user_id
 /mx:request
 /mx:HTTPService

 mx:Form x=22 y=10 width=493
 mx:HBoxmx:Label text=Username/mx:TextInput
 id=username//mx:HBox
 mx:Button label=Submit click=showData();/
 mx:Button label=Delete click=deleteData();/
 /mx:Form

 mx:DataGrid id=dgUserRequest
 dataProvider={userRequest.lastResult.users.user}
 x=22 y=140 width=493 height=125 
 mx:columns
 mx:DataGridColumn headerText=User ID dataField=userid/
 mx:DataGridColumn headerText=User Name dataField=username/
 mx:DataGridColumn headerText=E-Mail dataField=emailaddress/
 /mx:columns
 /mx:DataGrid

 mx:TextInput id=selectedemailaddress
 text={dgUserRequest.selectedItem.emailaddress}
 x=355 y=273 /

 mx:TextInput id=selecteduserid
 text={dgUserRequest.selectedItem.userid}
 x=22 y=273 /

 /mx:Application

  




-- 
Regards,
Sujit Reddy. G


Re: [flexcoders] data provider doubt

2008-02-26 Thread Sujit Reddy
value of the dataField should be the name of the property from which the
value has to be retrieved.
for example, RPC is returning object with three properties named prop1,
prop2 and prop3.
then the dataField should be set to the name of the property like dataField
= prop1;

Hoe this helps.
Regards,
Sujit Reddy G

On Tue, Feb 26, 2008 at 1:38 PM, Tom Preet [EMAIL PROTECTED] wrote:


 Hi All,

 In my app am using datagrid with three columns. to fill the data in to
 datagrid, am
 getting the data using remote object and stored  data into a
 Arraycollection in mxml.

 when am displaying the data into a grid it was displaying(repeating same
 data) in all the three
 columns.
 how to display the data within the respective fields.

 I have used column1.dataField={lis.getItemIndex(1).toString()} like this
 to
 display the content of field in first column but it was not displaying
 anything.
 can anyone help me how to achieve this.


 --tomt
  




-- 
Regards,
Sujit Reddy. G


Re: [flexcoders] Re: Flex 3 and AIR 1 are now live!

2008-02-26 Thread Tom Chiverton
On Monday 25 Feb 2008, Gordon Smith wrote:
 Anirudh wins the build-the-SDK-first contest, with Tom the runner-up.

No one has chipped in claiming to build it first on a Mac...

-- 
Tom Chiverton
Helping to completely promote holistic partnerships
on: http://thefalken.livejournal.com



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at 
Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB.  A list 
of members is available for inspection at the registered office. Any reference 
to a partner in relation to Halliwells LLP means a member of Halliwells LLP.  
Regulated by The Solicitors Regulation Authority.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and may be 
confidential or legally privileged.  If you are not the addressee you must not 
read it and must not use any information contained in nor copy it nor inform 
any person other than Halliwells LLP or the addressee of its existence or 
contents.  If you have received this email in error please delete it and notify 
Halliwells LLP IT Department on 0870 365 2500.

For more information about Halliwells LLP visit www.halliwells.com.


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

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 


Re: [flexcoders] how to connect database in flex using java

2008-02-26 Thread Sujit Reddy
Try invoking your Java classes from Flex application. You can do this using
BlazeDS.
URL below explains how to do that.
http://sujitreddyg.wordpress.com/2008/01/14/invoking-java-methods-from-adobe-flex/

If you want to use servlets. You might have to create a servlet, which will
access the database and will return the values in the XML format. Send a
request to the URL, which will invoke the servlet using HTTPService class in
Flex.

Hope this helps.

Regards,
Sujit Reddy G

On Sat, Feb 23, 2008 at 12:08 PM, imran shaikh [EMAIL PROTECTED]
wrote:

   hi all,

 i am using flex builder 2, and i am new in flex developing, i want to know
 about how to get data from database using servlet programming. so if any one
 know then please response me as soon as possible. thanking in advance.

 Regards,

 --
 Save all your chat conversations. Find them 
 online.http://in.rd.yahoo.com/tagline_webmessenger_3/*http://in.messenger.yahoo.com/webmessengerpromo.php
 




-- 
Regards,
Sujit Reddy. G


[flexcoders] air app inside air app

2008-02-26 Thread learner
Hi all,
Is it possible to load a air app in another air app...
What I am trying to do is :
I am loading a swf compiled using air runtime inot another air application.
it did get loaded successfully ...
But the problem is that it does not keep the maximize state of the
parent appliction

in my code:

this.nativeWindow.maximize();

loadswf(myswf) // another window application swf

//

the result is i see the final windowof the size loaded swf.. i have to
click on maximize button to restore the state.

Any help!

Regards
PS


[flexcoders] Using embeded icons in MenuBar

2008-02-26 Thread Danish Tehseen
There is a case where I have to show icons in the MenuBar. I have created a 
component which extends from HBox and contains a MenuBar.
labelField, iconFeild  dataProvider property of the MenuBar are set from the 
parent page.

XMLList which is assigned to the dataProvider property of the MenuBar, contains 
icon field which holds the name of the image class.

- First Issue:
Icon is not shown by the MenuBar if the image class object is static.

-Second Issue:
I am using RSL library project for embeded assets. If I am providing the icon 
field in the dataProvider as below, icons are not shown in MenuBar.

icon=parentClass.assetClass

assetClass is also bindable.

Can somebody guide me what I am doing wrong.


  

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


[flexcoders] WebServices with oc4j server

2008-02-26 Thread vijaya_beera78
Hi
   I have generated a WebService using oc4j server(Jdeveloper). I am 
trying to invoke that service from flex using mx:webservice tag.
But it doesn't invoke the service at all.

  here is the code 

   mx:WebService id=serviceID 
wsdl=http://localhost:8889/DepartmentServices/DeptServiceSoapHttpPor
t?wsdl service=DeptService port=DeptServiceSoapHttpPort
mx:operation name=findDepartmentByDeptno 
mx:request
result30/result
!-- parameters --
/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 Department No to obtain Department Name:/
 mx:TextInput id=DName /
 mx:Button label=Get Dept 
click=serviceID.findDepartmentByDeptno.send()/
mx:Text htmlText=Current Dept: 
{serviceID.findDepartmentByDeptno.result}/

/mx:Panel
/mx:Application

When I try to run this example , nothing happens at all.Can anyone 
guide me about how to go on with this example.

Thanks in advance.






[flexcoders] Passing data from grid row to form components problem

2008-02-26 Thread kapil b
Hi All,

I am new to flex... in my sample application i m retrieving the data from the 
xml and displaying it in the grid.

On clicking on particular row, the row data should get populated in a form 
(containing text boxs) so that i can delete and update the contents and save 
back to database.

I am using java remote object to save/update the data on submitting the form

Problem : Row Data doesn't  get populated in the form on clicking the row in 
grid.

Please give me approach to solve this problem

Thanks,
Kapil





  Save all your chat conversations. Find them online at 
http://in.messenger.yahoo.com/webmessengerpromo.php

[flexcoders] Help-files as PDF-documents?

2008-02-26 Thread hyes3mn3
Hi,

When I'm trying to learn a new technology, in this case flex, I like
to sit in my comfortable chair and read old fashioned papers. Yes - I
know - I'm old. Therefore it would have been nice if the help files
where available as PDF documents, I could print. I think I saw such
PDF documents from a previous beta edition somewhere, but I decided to
wait until the actual release, and now I can't find it.

/Hye





[flexcoders] dot Air installation error 0

2008-02-26 Thread Don Kerr
Scenario:
Running new Air 1.0
Attempting to install a dotAir file, compiled with Flex3
When, a previous install of the dotAir file exists

Steps:
Install new Air.exe
Download new version of the dotAir file and attempt to install

Error:
get Error #0 message...with no information.

Workaround:
Uncheck the Add shortcut to desktop and installs successfully
If you keep the default checked, you get the error.

Is this an issue with my app.xml file or a bug. I suspect the former,
not the later.

If anyone has seen this error, please let me know what the fix is.

Thanks!
Don Kerr






[flexcoders] Quirky curly brace binding when using explicit cast

2008-02-26 Thread m_sanders21
When trying to create a form with a combo box and a text input I
happened upon what would appear to me to be a quirk with how explicit
casts affect {} binding.  Essentially what I was trying to do was have
a single field on a model class be exposed by both a combo box and a
text input.  The idea was that the user could pick one of the
predefined options in the combo box, or an 'other' entry and then
supply their own freeform value in the text box.  The twist for this
form is that it extends a 'super-class' form that accepts a
'super-class' model object.  What this means for the form is that it
needs to explicitly cast the model object for all the bindings.

The end result was I found that this syntax did not work...
mx:TextInput id=textIn text={(item as MyItem).name} /

But this syntax does work...
mx:TextInput id=textIn text={MyItem(item).name} /

Has anyone else come across this, or know why this might occur? 

Full app example below...
example.mxml 
?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
layout=absolute preinitialize=preinit()

mx:Script
![CDATA[
import AbstractItem;
import mx.collections.ArrayCollection;
import MyItem;

[Bindable]
//Some dummy data for example use.
private var comboData:ArrayCollection = 
new ArrayCollection([1, 2, 3]);

[Bindable]
private var item:AbstractItem;

private function preinit():void {
item = new MyItem();
(item as MyItem).name = 2;
}
]]
/mx:Script

mx:Panel width=500 height=300 title=Explicit Cast Binding 
Example

mx:HBox paddingTop=5 paddingLeft=5

!-- 
Any change to the combo box should update the 
'data' field on 
'item' and then be reflected in the 
text box via the binding. 
--
mx:ComboBox id=combo 
dataProvider={comboData}
change=(item as MyItem).name = 
combo.selectedItem as String /

!-- 
Text field should always display the 'data' 
field of the 
'item' instance.  

Use this to get it to work.
mx:TextInput id=textIn 
text={MyItem(item).name} /
--
mx:TextInput id=textIn text={(item as 
MyItem).name} /

/mx:HBox

/mx:Panel

/mx:Application

AbstractItem.as
package
{
import flash.events.EventDispatcher;

public class AbstractItem extends EventDispatcher
{   
[Bindable]
public var data:String;
}
}

MyItem.as
package
{
public class MyItem extends AbstractItem
{
[Bindable]
public var name:String; 
}
}



RE: [flexcoders] Help-files as PDF-documents?

2008-02-26 Thread Stephen Gilson
All the docs are available as HTML or PDF here:
http://www.adobe.com/support/documentation/en/flex/
 
Stephen



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of hyes3mn3
Sent: Tuesday, February 26, 2008 8:33 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Help-files as PDF-documents?



Hi,

When I'm trying to learn a new technology, in this case flex, I like
to sit in my comfortable chair and read old fashioned papers. Yes - I
know - I'm old. Therefore it would have been nice if the help files
where available as PDF documents, I could print. I think I saw such
PDF documents from a previous beta edition somewhere, but I decided to
wait until the actual release, and now I can't find it.

/Hye



 


[flexcoders] AIR v1 - Initial blank screen

2008-02-26 Thread Tom Sobut
I've just recompiled my AIR applications with Flex 3 v1.0 production.  When my 
application 
runs, my AIR app window appears with a blank blue-grey background. 

When I resize the window, the components that are supposed to be showing show 
up 
instantly.  It appears that it was already rendered and just waiting to be 
displayed.

It doesn't appear to be a creation policy thing.  

It did not behave this way in Flex 3 b3.

I have two AIR applications that are behaving this way in the new version.

Anyone have any clues what might be happening?

Thanks

Tom



[flexcoders] Great Flex Insider video

2008-02-26 Thread Gregor Kiddie
http://weblogs.macromedia.com/mchotin/archives/2008/02/flex_behind_the.c
fm

 

I laughed, I cried, I annoyed my workmates who don't get most of the in
jokes (If you get the Doug joke you have a pretty good grasp IMO).

 

Nice stuff guys, hope you had fun making it!

 

Gk.

Gregor Kiddie
Senior Developer
INPS

Tel:   01382 564343

Registered address: The Bread Factory, 1a Broughton Street, London SW8
3QJ

Registered Number: 1788577

Registered in the UK

Visit our Internet Web site at www.inps.co.uk
blocked::http://www.inps.co.uk/ 

The information in this internet email is confidential and is intended
solely for the addressee. Access, copying or re-use of information in it
by anyone else is not authorised. Any views or opinions presented are
solely those of the author and do not necessarily represent those of
INPS or any of its affiliates. If you are not the intended recipient
please contact [EMAIL PROTECTED]

 



Re: [flexcoders] Help-files as PDF-documents?

2008-02-26 Thread Paul Andrews
- Original Message - 
From: hyes3mn3 [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Tuesday, February 26, 2008 1:32 PM
Subject: [flexcoders] Help-files as PDF-documents?


 Hi,

 When I'm trying to learn a new technology, in this case flex, I like
 to sit in my comfortable chair and read old fashioned papers. Yes - I
 know - I'm old. Therefore it would have been nice if the help files
 where available as PDF documents, I could print. I think I saw such
 PDF documents from a previous beta edition somewhere, but I decided to
 wait until the actual release, and now I can't find it.

It has been possible to buy the Flex documentation set in book form - I did 
so for Flex 2. You might have to wait for Flex 3.

I did consider printing out the PDFs, but it's totally impractical to do it 
all - even in book form it takes up quite a bit of room and that's with much 
thinner paper than you'll have. It was far cheaper to buy the paper 
documentation than print the entire set. One thing I hate about printing off 
large PDFs - they are so bulky.

In practice I tend to look more at the pdfs and the help files inside 
flexbuilder. You might want to consider getting a Flex3 book and/or  looking 
at the online offerings of lynda.com/totaltraining.com

BTW I'm not trying to dissuade you from printing off small sections of the 
docs!

Paul


 /Hye



[flexcoders] Re: Passing data from grid row to form components problem

2008-02-26 Thread greenfishinwater
Kapil,

You have to do the work yourself.

In the datagrid use itemClick=rowSelected(event)

Then in ActionScript

private function rowSelected(evt:ListEvent):void {
  rowData = dgDataProvider(evt.rowIndex);

Now rowData contains the data from the datagrid on the row selected by
the user, you can now pass this data to the Form and use databinding
to display the data.

That is a simple approach, but there will be a lot more code to
implement it.

Andrew

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

 Hi All,
 
 I am new to flex... in my sample application i m retrieving the data
from the xml and displaying it in the grid.
 
 On clicking on particular row, the row data should get populated in
a form (containing text boxs) so that i can delete and update the
contents and save back to database.
 
 I am using java remote object to save/update the data on submitting
the form
 
 Problem : Row Data doesn't  get populated in the form on clicking
the row in grid.
 
 Please give me approach to solve this problem
 
 Thanks,
 Kapil
 
 
 
 
 
   Save all your chat conversations. Find them online at
http://in.messenger.yahoo.com/webmessengerpromo.php





Re: [flexcoders] Great Flex Insider video

2008-02-26 Thread Matt Chotin
Glad you enjoyed.  Log in and give it 5 stars to help my ego and also let me 
prove to management I didn't waste their time and money :-)


On 2/26/08 9:07 AM, Gregor Kiddie [EMAIL PROTECTED] wrote:





http://weblogs.macromedia.com/mchotin/archives/2008/02/flex_behind_the.cfm

I laughed, I cried, I annoyed my workmates who don't get most of the in jokes 
(If you get the Doug joke you have a pretty good grasp IMO).

Nice stuff guys, hope you had fun making it!

Gk.
Gregor Kiddie
Senior Developer
INPS

Tel:   01382 564343

Registered address: The Bread Factory, 1a Broughton Street, London SW8 3QJ
Registered Number: 1788577
Registered in the UK
Visit our Internet Web site at www.inps.co.uk blocked::http://www.inps.co.uk/

The information in this internet email is confidential and is intended solely 
for the addressee. Access, copying or re-use of information in it by anyone 
else is not authorised. Any views or opinions presented are solely those of the 
author and do not necessarily represent those of INPS or any of its affiliates. 
If you are not the intended recipient please contact [EMAIL PROTECTED]






[flexcoders] How to get all itemrenderer instances of a tree?

2008-02-26 Thread xmwang1982
Hi experts,

I want to listen to the MouseDown event of some of the tree nodes. So
maybe I need to get their itemrenderer instances then add event
listeners to them. However, I have no idea to get a list of item
renderers... seems  no such a method exists.

Could you please give some hints?

Thanks a lot.



[flexcoders] Why no Adobe Flex Language Reference PDF file

2008-02-26 Thread greenfishinwater
I've looked on the Flex documentation site and there is no PDF file
for Adobe Flex Language Reference, there seems to be only a LiveDocs
version.

I feel more comfortable having it on my own system.

Is it available as a PDF?

Andrew




Re: [flexcoders] Carousel component - help yourself

2008-02-26 Thread Paul Decoursey

the left right arrows don't always work.
 cool component however
.
On Feb 22, 2008, at 1:06 PM, Giles Roadnight wrote:


Hi All

A friend needed a carousel compnent the other and I had a pretty  
good idea of how to implement it so I went ahead and had a go one  
evening.


I'm really pleased with the result and have uploaded it and the code:

http://giles.roadnight.name/components.cfm

If anyone wants to make use of it please do. I'd appreciate it if  
you could let me know if you do use it.


Comments and feedback appreciated.

--
Giles Roadnight
http://giles.roadnight.name 




Re: Migration Guide? was RE: [flexcoders] Flex 3 and AIR 1 are now live!

2008-02-26 Thread jrunrandy
Alex is right. We didn't feel there were enought API changes to 
warrant a full Migration Guide. That said:
* If you run into something, please post it as a comment on the 
Backwards Compatibility page and we'll add it to the page.
* One aspect of migration is understanding new features. You might 
want to check out 
http://www.adobe.com/products/flex/features/flex_builder/ for an 
overview of new features, including a few videos.

HTH
Randy Nielsen
Flex Learning Resources Manager
Adobe Systems Incorporated



[flexcoders] Loading a sequence of SWF files

2008-02-26 Thread uriel_tru
I'm working on a project where I need to use Flex 2 to load either a
sequence of .swf files from an xml parser after 30 seconds or to load
an image then a .swf file from an sml parser after 30 seconds. I've
been searching for a way to do this. Does anyone have any ideas? 
Thanks,
U.T.



[flexcoders] Reloading data into repeater child on runtime

2008-02-26 Thread Wyn Hou
Hi, 

How do I dynamically add data to a repeater component if I update the
array in the data provider on runtime?

Do I have to reload the entire repeater?

I would like to do this through a call function but can't fathom how.

Thanks!





[flexcoders] Re: Why no Adobe Flex Language Reference PDF file

2008-02-26 Thread greenfishinwater
What I meant to ask was: is there a zip file to download? I realize
that a PDF file is not relevant.

Andrew


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

 I've looked on the Flex documentation site and there is no PDF file
 for Adobe Flex Language Reference, there seems to be only a LiveDocs
 version.
 
 I feel more comfortable having it on my own system.
 
 Is it available as a PDF?
 
 Andrew





[flexcoders] Re: Passing data from grid row to form components problem

2008-02-26 Thread greenfishinwater
A slight mistake in my reply, the line should have been:

rowData = dgDataProvider[evt.rowIndex];

But this line is relevant for an ArrayCollection. You will need
different syntax to access data in XML, depending on how deep it is
nested.

Andrew

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

 Kapil,
 
 You have to do the work yourself.
 
 In the datagrid use itemClick=rowSelected(event)
 
 Then in ActionScript
 
 private function rowSelected(evt:ListEvent):void {
   rowData = dgDataProvider(evt.rowIndex);
 
 Now rowData contains the data from the datagrid on the row selected by
 the user, you can now pass this data to the Form and use databinding
 to display the data.
 
 That is a simple approach, but there will be a lot more code to
 implement it.
 
 Andrew
 
 --- In flexcoders@yahoogroups.com, kapil b kapil_b15@ wrote:
 
  Hi All,
  
  I am new to flex... in my sample application i m retrieving the data
 from the xml and displaying it in the grid.
  
  On clicking on particular row, the row data should get populated in
 a form (containing text boxs) so that i can delete and update the
 contents and save back to database.
  
  I am using java remote object to save/update the data on submitting
 the form
  
  Problem : Row Data doesn't  get populated in the form on clicking
 the row in grid.
  
  Please give me approach to solve this problem
  
  Thanks,
  Kapil
  
  
  
  
  
Save all your chat conversations. Find them online at
 http://in.messenger.yahoo.com/webmessengerpromo.php
 





RE: [flexcoders] Re: Why no Adobe Flex Language Reference PDF file

2008-02-26 Thread Stephen Gilson
Ask and you shall receive. You can download the entire doc set,
including the API Reference, from
http://livedocs.adobe.com/flex/3/flex3_documentation.zip. 
 
That link was omitted from the main doc page, but we will add it.
 
Stephen



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of greenfishinwater
Sent: Tuesday, February 26, 2008 9:57 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Why no Adobe Flex Language Reference PDF file



What I meant to ask was: is there a zip file to download? I realize
that a PDF file is not relevant.

Andrew

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

 I've looked on the Flex documentation site and there is no PDF file
 for Adobe Flex Language Reference, there seems to be only a LiveDocs
 version.
 
 I feel more comfortable having it on my own system.
 
 Is it available as a PDF?
 
 Andrew




 


[flexcoders] Loading an image file and then a swf file in sequence

2008-02-26 Thread uriel_tru
I'm working on a project where I need to use Flex 2 to load 
an image then a .swf file from an xml parser after 30 seconds. Where
the xml will contain the time settings, the image and the .swf name. I've
been searching for a way to do this. Does anyone have any ideas?
Thanks,
U.T.



RE: [flexcoders] Loading an image file and then a swf file in sequence

2008-02-26 Thread Merrill, Jason
All you need to do is read up on how to do three things:
 
1) Load and use XML data
2) Load a .swf file, add it to the display list
3) Use the Timer class
 
If you search those three topics in the Flex help, you should have
enough info to accomplish this. 

Jason Merrill 
Bank of America 
GTO LLD Solutions Design  Development 
eTools  Multimedia 

Bank of America Flash Platform Developer Community 


Are you a Bank of America associate interested in innovative learning
ideas and technologies?
Check out our internal  GTO Innovative Learning Blog
http://sharepoint.bankofamerica.com/sites/ddc/rd/blog/default.aspx
and  subscribe
http://sharepoint.bankofamerica.com/sites/ddc/rd/blog/_layouts/SubNew.a
spx?List=%7B41BD3FC9%2DBB07%2D4763%2DB3AB%2DA6C7C99C5B8D%7DSource=http%
3A%2F%2Fsharepoint%2Ebankofamerica%2Ecom%2Fsites%2Fddc%2Frd%2Fblog%2FLis
ts%2FPosts%2FArchive%2Easpx . 




 




From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of uriel_tru
Sent: Tuesday, February 26, 2008 10:19 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Loading an image file and then a swf file
in sequence



I'm working on a project where I need to use Flex 2 to load 
an image then a .swf file from an xml parser after 30 seconds.
Where
the xml will contain the time settings, the image and the .swf
name. I've
been searching for a way to do this. Does anyone have any ideas?
Thanks,
U.T.



 



[flexcoders] images dissappearing on zoom

2008-02-26 Thread mr.octopz
Hi All

I am porting a flash 8/avm1 app to flex/avm2. The app loads images and 
allows the user to zoom in on them. In the flex/avm2 app the image 
dissappears if you zoom in a long way. This did not happen the the 
flash 8/avm1 version.

I have tried zooming using scaleX and scaleY, width and height, and 
matrix, but the result is the same in all cases. The problem goes away 
if I wrap the image in a swf before it is loaded in the app. Loading it 
into a swf in the already in the app does not solve the problem. I 
would prefer not to wrap the image in a swf before I load it.

Has anyone seen this problem before, or know of a solution?

Thanks



Re: [flexcoders] images dissappearing on zoom

2008-02-26 Thread Tom Chiverton
On Tuesday 26 Feb 2008, mr.octopz wrote:
 Has anyone seen this problem before, or know of a solution?

Cynergy Systems ImageZoomer component has the same issue.
I don't know of a solution, apart from limiting the max zoom in your GUI.

-- 
Tom Chiverton
Helping to completely syndicate fine-grained communities
on: http://thefalken.livejournal.com



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at 
Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB.  A list 
of members is available for inspection at the registered office. Any reference 
to a partner in relation to Halliwells LLP means a member of Halliwells LLP.  
Regulated by The Solicitors Regulation Authority.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and may be 
confidential or legally privileged.  If you are not the addressee you must not 
read it and must not use any information contained in nor copy it nor inform 
any person other than Halliwells LLP or the addressee of its existence or 
contents.  If you have received this email in error please delete it and notify 
Halliwells LLP IT Department on 0870 365 2500.

For more information about Halliwells LLP visit www.halliwells.com.


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

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 


RE: [flexcoders] images dissappearing on zoom

2008-02-26 Thread Lee Evans
Can you provide any details as to how you are doing the zooming?   Is it
a dynamic variable zoom or a one-time one click to a preset zoom level?
If you zoom to the same image size do you have the same problem?

 

Lee

 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of mr.octopz
Sent: Tuesday, February 26, 2008 9:34 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] images dissappearing on zoom

 

Hi All

I am porting a flash 8/avm1 app to flex/avm2. The app loads images and 
allows the user to zoom in on them. In the flex/avm2 app the image 
dissappears if you zoom in a long way. This did not happen the the 
flash 8/avm1 version.

I have tried zooming using scaleX and scaleY, width and height, and 
matrix, but the result is the same in all cases. The problem goes away 
if I wrap the image in a swf before it is loaded in the app. Loading it 
into a swf in the already in the app does not solve the problem. I 
would prefer not to wrap the image in a swf before I load it.

Has anyone seen this problem before, or know of a solution?

Thanks

 



[flexcoders] DateTimeAxis - how to get discrete days

2008-02-26 Thread j_lentzz
Hi,

I've got an app with a column chart (7 columns possible) that is using
the DateTimeAxis.  The data coming down (milliseconds) contains hour,
min, etc value.  Meaning that it comes down as Feb 5 with 20 hours, 15
mins, etc.  When the data is displayed on the chart, it appears to be
displayed proportionally, so that it looks like it is on Feb 6th.  If
the data comes down with a very low hour, then it looks OK.  On the
server side, I can remove all hours etc, so that the Date comes down
as Feb 5, 0hours, etc and the data is centered nicely on the chart.
However, is there a way to set up the DateTimeAxis to force it to
center the columns on the date - without having to modify the data? 
I've tried combinations of dataUnits, dataInterval and labelUnits, but
nothing is working out for me.  

Any ideas on how to set Flex to do this?  I'm using version 2.01

Thanks,
John



[flexcoders] Re: images dissappearing on zoom

2008-02-26 Thread mr.octopz

Hi Lee

The zoom tool in our app is similar to the zoom tool in photoshop. You 
can click on the image to zoom incrementaly or you can marquee zoom. 
The image jumps to the new zoom level it does not animate. I can 
reproduce this problem in a very simple flex app. I can post the code 
if it is helpful.

Thanks,
Paul 




Re: [flexcoders] Re: images dissappearing on zoom

2008-02-26 Thread Daniel Freiman
The flash player has a maximum value for placement (x/y coordinates) of
DisplayObjects of +/-8191.  I think I've seen that there's a similar
limitation to the size of a DisplayObject but I can't find it right now.  If
these limitations are exceeded, the DisplayObject will simply disappear.
That's probably what you're running into.  I don't know of a workaround.

- Dan Freiman

On Tue, Feb 26, 2008 at 11:31 AM, mr.octopz [EMAIL PROTECTED] wrote:


 Hi Lee

 The zoom tool in our app is similar to the zoom tool in photoshop. You
 can click on the image to zoom incrementaly or you can marquee zoom.
 The image jumps to the new zoom level it does not animate. I can
 reproduce this problem in a very simple flex app. I can post the code
 if it is helpful.

 Thanks,
 Paul

  



[flexcoders] Re: Carousel component - help yourself

2008-02-26 Thread redden96
Very cool component, I love it. You just saved me a ton of time.

There seems to be a glitch in the Carousel.Next() and
Carousel.Previous code. I could not, at quick glance at the source
code, pinpoint the issue as the logic looks good. I notice that once
you make it around the carousel once with either button it stops and
the only way to be able to use either button is to select an image,
(effectively reseting the _selectedindex variable).

DL

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

 Hi All
 
 A friend needed a carousel compnent the other and I had a pretty
good idea
 of how to implement it so I went ahead and had a go one evening.
 
 I'm really pleased with the result and have uploaded it and the code:
 
 http://giles.roadnight.name/components.cfm
 
 If anyone wants to make use of it please do. I'd appreciate it if
you could
 let me know if you do use it.
 
 Comments and feedback appreciated.
 
 -- 
 Giles Roadnight
 http://giles.roadnight.name





[flexcoders] FB3 + Aptana Plug In = warring CSS editors

2008-02-26 Thread Battershall, Jeff
I added the Aptana plugin to my FB3 instance and started getting errors
with Aptana not liking Flex Styles.

Only solution was to remove the Apatana Plug In. Yes, I could install
Apatana Studio, but it would be nice to get FB + Aptana working well
together and to have Aptana to defer to FB on CSS.  I just can't figure
out how to do it.  

Jeff Battershall
Application Architect
Dow Jones Indexes
[EMAIL PROTECTED]
(609) 520-5637 (p)
(484) 477-9900 (c)


Re: [flexcoders] Re: HTTP Methods

2008-02-26 Thread Fidel Viegas
On Mon, Feb 25, 2008 at 5:03 PM, Troy Gilbert [EMAIL PROTECTED] wrote:

  Hum... so it does work with the normal HTTPService without using a proxy?

  Nope, not at all. If you want the full HTTP verb set you've got to use
  a proxy. Flash Player only speaks GET and POST, due to legacy issues
  where browsers used to only speak GET and POST (and some still do as
  far as I know) and the Flash Player uses the browser's network stack.

  So, without a proxy, it's only GET and POST. With a proxy, it's
  whatever HTTP supports.

Ok, thanks!
I just wanted to test them with the restful webservices.

I have decided to use BlazeDS.

Thanks for the replies.

Fidel.


RE: [flexcoders] does anyone know if ILOG Elixir

2008-02-26 Thread Kevin Aebig
I was sincerely interested in there components until the licensing options
came out. Now I'd rather re-develop them myself to suite my needs and
honestly, I'm nearly done the dials and gauges, the diagramming and the
scheduler. 

 

Considering that many of their components should've been included with Flex
to begin with, it's pretty ridiculous.

 

!k

 

  _  

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Pat Buchanan
Sent: Monday, February 25, 2008 6:09 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] does anyone know if ILOG Elixir

 

$799 is nothin' if you read their licensing info. :)

 

If you want to resell it, and you used all of their components in one way or
another, it would cost you $20,000 if I remember correctly.

 

Ouch.

-Pat



 

On 2/25/08, Sherif Abdou [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] com
wrote: 


will also sell an education version for a discounted price,$799 is crazy
money and yes i am trying to milk this whole education thing.

 

  _  

Never miss a thing. Make Yahoo your homepage.
http://us.rd.yahoo.com/evt=51438/*http:/www.yahoo.com/r/hs  

 

 



[flexcoders] Load HTML from URL into Flex Component (via iframe)

2008-02-26 Thread byte.sensei

I've got a Flex site with several pages that load HTML content from an
older HTML version of the site into an iframe that I then place over the
Flash movie so it looks like the content has been embedded into the Flex
UI even though it's still being loaded from the old HTML site.

I've got the following Javascript function to load the HTML content into
the iframe:

function loadIFrame(url){
  document.getElementById(myFrame).innerHTML = iframe id='myIFrame'
src=' + url + ' frameborder='0'/iframe;
  Alert.show(url);
}

I added the Alert.show for testing so I'd get a Javascript alert box
if/when this Javascript function fires.

Inside my Flex app, I'm using the following code to refresh the iframe
based on a URL:

ExternalInterface.call(loadIFrame, source);

I'm using the show event of a VBox component to make the
ExternalInterface.call to the Javascript function.  I've verified via
trace that the show event is firing and the ExternalInterface.call()
function is executing, but the iframe never loads the URL nor does the
Javascript Alert.show() function execute.

It seems to work some of the time, but not consistently and not in any
pattern I can distinguish.  Am I missing something here? Is there a
different/better approach for loading HTML content via an HTTP GET into
a Flex UI?  If not, how can I get this to work properly/consistently?

Cheers!







[flexcoders] referencing a private function

2008-02-26 Thread Dominic Pazula
I have a component extending MenuBar whose data provider provides the 
internal handler for the itemClick.  I have a generic function that 
checks the MenuEvent for the needed property and then trys to call 
the function it specifies.

Specifically

mx:MenuBar xmlns:mx=http://www.adobe.com/2006/mxml; 
itemClick=internalClick(event)
mx:Script
![CDATA[
private function internalClick(event:MenuEvent):void{
if (event.item.hasOwnProperty(internalEvt)){
try{
this[event.item.internalEvt]()
}
catch(e:Error){

}
}
}

...

Now this works well as long as the specified function is public.  
However, I don't want all of these functions to be public.  How can I 
reference and call a private function dynamically?

Thanks
Dominic




[flexcoders] Be the tree, Bob

2008-02-26 Thread Brad Bueche
http://blog.flexexamples.com/2007/11/29/opening-nodes-in-a-flex-tree-con
trol-using-the-expanditem-method/
 
Is there anyway to get the tree view INTO the combo box?
 
I really like the idea of having a hierarchical menu that looks exactly
like the tree in this example.  I just want it to drop down and be a
menu like the combo box.  I detest the windows file manager interface
(because of its inefficient use of screen real-estate) and I dont like
cascading menu's because I get really annoyed having to slow down and
use my mouse in slow motion just so I can get to the sub-menu I want.
 
I think the drop down tree hiearchy within a combobox solves both of
these problems. 1).  Its a great use of screen real-estate  --- if you
are not using it it takes up practically no room and 2) the hierarchy is
persistent and I dont have to be a jedi master with my mouseand I
dont have to move %80 down and to the right to get the menu I want.
 
So would it be possible to do a tree in a combo box?  Or, if thats
impossible, I guess I can just put the tree on a application bar and use
it like a menu?
 
brad


RE: [flexcoders] How to get all itemrenderer instances of a tree?

2008-02-26 Thread Alex Harui
Renderers are virtual  Only as many instances exist as you can see on
screen.  They are recycled and used to display other dataprovider items
as you scroll or expand/contract.  That's why there is no such method.
You can get to the on-screen renderers via indexToItemRenderer(), but
you'll be better off working from within the renderers do handle the
mouse.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of xmwang1982
Sent: Tuesday, February 26, 2008 6:24 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] How to get all itemrenderer instances of a tree?

 

Hi experts,

I want to listen to the MouseDown event of some of the tree nodes. So
maybe I need to get their itemrenderer instances then add event
listeners to them. However, I have no idea to get a list of item
renderers... seems no such a method exists.

Could you please give some hints?

Thanks a lot.

 



[flexcoders] Re: referencing a private function

2008-02-26 Thread Dominic Pazula
I understand the public/private nature of referencing the function 
from outside the component.  However, this is inside the same 
component.  The function resides one line down from the function I 
posted.  

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

 You have to make a reference to the function public.  Private means 
just
 that: can't be called from the outside.
 
  
 
 I would recommend having the renderers attach listeners to the 
MenuBar
 instead.
 
  
 
 
 
 From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
 Behalf Of Dominic Pazula
 Sent: Tuesday, February 26, 2008 9:32 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] referencing a private function
 
  
 
 I have a component extending MenuBar whose data provider provides 
the 
 internal handler for the itemClick. I have a generic function that 
 checks the MenuEvent for the needed property and then trys to call 
 the function it specifies.
 
 Specifically
 
 mx:MenuBar xmlns:mx=http://www.adobe.com/2006/mxml
 http://www.adobe.com/2006/mxml  
 itemClick=internalClick(event)
 mx:Script
 ![CDATA[
 private function internalClick(event:MenuEvent):void{
 if (event.item.hasOwnProperty(internalEvt)){
 try{
 this[event.item.internalEvt]()
 }
 catch(e:Error){
 
 }
 }
 }
 
 ...
 
 Now this works well as long as the specified function is public. 
 However, I don't want all of these functions to be public. How can 
I 
 reference and call a private function dynamically?
 
 Thanks
 Dominic





[flexcoders] Flex and PHP Issue. Please help!!!

2008-02-26 Thread Omar Fouad
In my flex application i have a form with some text fields. When I submit
the form an HTTPService.send() methid is called.

mx:HTTPService id=PostUser method=GET
url=http://localhost/Flex/Pastarino/PostUsers.php; useProxy=false
showBusyCursor=true
resultFormat=text result=PostNewUserResponse(event);
/mx:HTTPService

the function is:

public function PostNewUserResponse(event:ResultEvent):void {
PostStatusL.text = String(event.result); // response from
the php to the label in FLEX
}

when the Submit Button Is pressed it calls the following function

public function PostNewUser():void {
var PostArray:Array= new Array();
PostArray = [{
UserName: PostUserNameTF.text,
Password: PostPasswordTF.text,
name: PostNameTF.text,
Position: PostPositionTF.text,
ManageUsers: PostManageUsersCB.selected,
CreateOrders: PostCreateOrdersCB.selected,
CreateDishes: PostCreateDishesCB.selected
}];

var DataToSend:Object = new Object();
var DataString:String = JSON.encode(PostArray);
DataString = escape(DataString);
DataToSend.PostUsers = true;
DataToSend.DataSent = DataString;
PostUser.send(DataToSend);
}

At this point the php code would be:

if(isset($_GET['PostUsers'])) {
  $jsonString = urldecode($_GET['DataSent']);
  $jsonString = str_replace(\\, , $jsonString);
  $data = json_decode($jsonString, true);

  $connection = mysql_connect($URL, $USERNAME, $PASSWORD);
  mysql_select_db($DATABASE) or die('Cannot connect to database. Please Try
Again...');

$query = INSERT INTO Users (name) VALUES ($data['name']); // only the
name field for now...

$result = mysql_query($query, $connection);


But it is not working. I realized that $data['name'] is not getting the name
field from flex.

I also tried adding the values manually in php as in

$query = INSERT INTO Users (name) VALUES ('The Name is here');

and it WORKED!!. So i think the problem is that $data['name'] is not really
retrieving the data from the array decoded by json_decode() (this is really
frustrating me!!)

How should It be?

thanks for the help

-- 
Omar M. Fouad - Digital Emotions
http://www.omarfouad.net

This e-mail and any attachment is for authorised use by the intended
recipient(s) only. It may contain proprietary material, confidential
information and/or be subject to legal privilege. It should not be copied,
disclosed to, retained or used by, any other party. If you are not an
intended recipient then please promptly delete this e-mail and any
attachment and all copies and inform the sender. Thank you.


[flexcoders] Flex 3: The Problem with Repeater with recycleChildren=true and states

2008-02-26 Thread tearaway_tea
Hi guys,

After installing Release of Flex 3 I have received a lot of surprises. So, 
first of them is the 
exception:

RangeError: Error #2006: The supplied index is out of bounds.
at flash.display::DisplayObjectContainer/setChildIndex()
at mx.core::UIComponent/setChildIndex()
at mx.core::Container/setChildIndex()
at mx.core::Repeater/recycle()
at mx.core::Repeater/execute()
at mx.core::Repeater/collectionChangedHandler()
...

in such example:

?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
mx:states
mx:State
name=repeaterVisible
mx:AddChild
relativeTo={repeaterVBox}
mx:Repeater
id=labelRepeater
dataProvider={dataProvider}
recycleChildren=true
mx:Label

text={labelRepeater.currentItem.text} /
/mx:Repeater  
/mx:AddChild
/mx:State
/mx:states
mx:ArrayCollection
id=dataProvider /
mx:Button
label=show repeater
click=currentState = 'repeaterVisible' /
mx:Button
label=add
click=dataProvider.addItem({text : 'item' + 
dataProvider.length}) /
mx:VBox
id=repeaterVBox /
/mx:Application

As I see the problem rises then I'm trying to add a new item to dataProvider of 
Repeater 
which locates in AddChild in states. Could anybody help me?



RE: [flexcoders] Using embeded icons in MenuBar

2008-02-26 Thread Alex Harui
The icon field holds the name of the image class, and we have to look it
up somewhere to convert it to an actual class and where we look is the
MenuBar's document.  That's why they must be instance variables of the
same MXML file as the MenuBar.  Statics won't work and other documents
won't work either.  You can customize your renderer to get smarter about
where it looks.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Danish Tehseen
Sent: Tuesday, February 26, 2008 2:47 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Using embeded icons in MenuBar

 

There is a case where I have to show icons in the MenuBar. I have
created a component which extends from HBox and contains a MenuBar.
labelField, iconFeild  dataProvider property of the MenuBar are set
from the parent page.

XMLList which is assigned to the dataProvider property of the MenuBar,
contains icon field which holds the name of the image class.

- First Issue:
Icon is not shown by the MenuBar if the image class object is static.

-Second Issue:
I am using RSL library project for embeded assets. If I am providing the
icon field in the dataProvider as below, icons are not shown in MenuBar.

icon=parentClass.assetClass

assetClass is also bindable.

Can somebody guide me what I am doing wrong.

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

 



[flexcoders] List ItemRenderer and variableRowHeight

2008-02-26 Thread Phil Heinz
I have a List component with a custom item renderer. The List is set
to variableRowHeight=true.

In the renderer is a regular TextArea component that I want to grow in
size vertically for the longer data strings.

My problem is I don't quite understand how to automate the process of
sizing the TextArea and then the renderer height from the
TextArea.textHeight property.

I can successfully do it manually, attaching a click event to the
TextArea, that calls the following function in the renderer:

private function updateHeight(ev:MouseEvent):void {
 ev.target.height = ev.target.textHeight + 5;
 this.height = ev.target.y + ev.target.height + 25;
}

This perfectly sizes each item when I click on them. 

The problem is I can't get it to function properly when I try to size
them from an event representing the item's creation. I have tried
sizing on the following events:

1) renderer creationComplete and added events
2) in the data setter override function for the renderer

No matter what I try to do, automated sizing produces incorrect
results. I am sure I just don't understand - not the first time!!!

Thanks for any help!!!
Phil



RE: [flexcoders] Be the tree, Bob

2008-02-26 Thread Alex Harui
Start with setting dropDownFactory=Tree.  There might be some other
things that need fixing though.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Brad Bueche
Sent: Tuesday, February 26, 2008 9:41 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Be the tree, Bob

 

http://blog.flexexamples.com/2007/11/29/opening-nodes-in-a-flex-tree-con
trol-using-the-expanditem-method/
http://blog.flexexamples.com/2007/11/29/opening-nodes-in-a-flex-tree-co
ntrol-using-the-expanditem-method/ 

 

Is there anyway to get the tree view INTO the combo box?

 

I really like the idea of having a hierarchical menu that looks exactly
like the tree in this example.  I just want it to drop down and be a
menu like the combo box.  I detest the windows file manager interface
(because of its inefficient use of screen real-estate) and I dont like
cascading menu's because I get really annoyed having to slow down and
use my mouse in slow motion just so I can get to the sub-menu I want.

 

I think the drop down tree hiearchy within a combobox solves both of
these problems. 1).  Its a great use of screen real-estate  --- if you
are not using it it takes up practically no room and 2) the hierarchy is
persistent and I dont have to be a jedi master with my mouseand I
dont have to move %80 down and to the right to get the menu I want.

 

So would it be possible to do a tree in a combo box?  Or, if thats
impossible, I guess I can just put the tree on a application bar and use
it like a menu?

 

brad

 



RE: [flexcoders] List ItemRenderer and variableRowHeight

2008-02-26 Thread Alex Harui
Unless you want the TextArea's scrollbars, you should just set
wordWrap=true and the default renderer will take care of it.  If you
want to customize the renderer, copy the code and modify it.  TextArea
is a bit heavy for renderers especially if you don't need the
scrollbars, and the default renderer code will show you how to figure
out the appropriate measuredHeight.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Phil Heinz
Sent: Tuesday, February 26, 2008 10:05 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] List ItemRenderer and variableRowHeight

 

I have a List component with a custom item renderer. The List is set
to variableRowHeight=true.

In the renderer is a regular TextArea component that I want to grow in
size vertically for the longer data strings.

My problem is I don't quite understand how to automate the process of
sizing the TextArea and then the renderer height from the
TextArea.textHeight property.

I can successfully do it manually, attaching a click event to the
TextArea, that calls the following function in the renderer:

private function updateHeight(ev:MouseEvent):void {
ev.target.height = ev.target.textHeight + 5;
this.height = ev.target.y + ev.target.height + 25;
}

This perfectly sizes each item when I click on them. 

The problem is I can't get it to function properly when I try to size
them from an event representing the item's creation. I have tried
sizing on the following events:

1) renderer creationComplete and added events
2) in the data setter override function for the renderer

No matter what I try to do, automated sizing produces incorrect
results. I am sure I just don't understand - not the first time!!!

Thanks for any help!!!
Phil

 



RE: [flexcoders] referencing a private function

2008-02-26 Thread Gordon Smith
To add to what Alex has said... In AS3, access specifiers such as
'protected' and 'private' aren't just compile-time concepts, they're
also runtime concepts that are rigorously enforced by the ActionScript
Virtual Machine. If your class makes something private, it is really
inaccessible except by your class. AS3 takes this kind of security issue
as seriously as Java does.
 
Gordon Smith
Adobe Flex SDK Team



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Alex Harui
Sent: Tuesday, February 26, 2008 9:52 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] referencing a private function



You have to make a reference to the function public.  Private means just
that: can't be called from the outside.

I would recommend having the renderers attach listeners to the MenuBar
instead.



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Dominic Pazula
Sent: Tuesday, February 26, 2008 9:32 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] referencing a private function

I have a component extending MenuBar whose data provider provides the 
internal handler for the itemClick. I have a generic function that 
checks the MenuEvent for the needed property and then trys to call 
the function it specifies.

Specifically

mx:MenuBar xmlns:mx=http://www.adobe.com/2006/mxml
http://www.adobe.com/2006/mxml  
itemClick=internalClick(event)
mx:Script
![CDATA[
private function internalClick(event:MenuEvent):void{
if (event.item.hasOwnProperty(internalEvt)){
try{
this[event.item.internalEvt]()
}
catch(e:Error){

}
}
}

...

Now this works well as long as the specified function is public. 
However, I don't want all of these functions to be public. How can I 
reference and call a private function dynamically?

Thanks
Dominic

 


RE: [flexcoders] Re: referencing a private function

2008-02-26 Thread Alex Harui
Event.item in an itemClick is not the MenuBar, so I don't see how it can
be a function in the same file.

 

Even if it is, there is no guarantee that it is the same object, so you
still can't call it if it is private.

 

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Dominic Pazula
Sent: Tuesday, February 26, 2008 9:56 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: referencing a private function

 

I understand the public/private nature of referencing the function 
from outside the component. However, this is inside the same 
component. The function resides one line down from the function I 
posted. 

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

 You have to make a reference to the function public. Private means 
just
 that: can't be called from the outside.
 
 
 
 I would recommend having the renderers attach listeners to the 
MenuBar
 instead.
 
 
 
 
 
 From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com

[mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
] On
 Behalf Of Dominic Pazula
 Sent: Tuesday, February 26, 2008 9:32 AM
 To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com 
 Subject: [flexcoders] referencing a private function
 
 
 
 I have a component extending MenuBar whose data provider provides 
the 
 internal handler for the itemClick. I have a generic function that 
 checks the MenuEvent for the needed property and then trys to call 
 the function it specifies.
 
 Specifically
 
 mx:MenuBar xmlns:mx=http://www.adobe.com/2006/mxml
http://www.adobe.com/2006/mxml 
 http://www.adobe.com/2006/mxml http://www.adobe.com/2006/mxml   
 itemClick=internalClick(event)
 mx:Script
 ![CDATA[
 private function internalClick(event:MenuEvent):void{
 if (event.item.hasOwnProperty(internalEvt)){
 try{
 this[event.item.internalEvt]()
 }
 catch(e:Error){
 
 }
 }
 }
 
 ...
 
 Now this works well as long as the specified function is public. 
 However, I don't want all of these functions to be public. How can 
I 
 reference and call a private function dynamically?
 
 Thanks
 Dominic


 



[flexcoders] Re: images dissappearing on zoom

2008-02-26 Thread mr.octopz
Thanks thats helpful. I'm still cunfused though because if I wrap the 
image in a swf before I load it into the app I don't see the problem, 
but if I load the image directly I do.

Paul



RE: [flexcoders] referencing a private function

2008-02-26 Thread Alex Harui
You have to make a reference to the function public.  Private means just
that: can't be called from the outside.

 

I would recommend having the renderers attach listeners to the MenuBar
instead.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Dominic Pazula
Sent: Tuesday, February 26, 2008 9:32 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] referencing a private function

 

I have a component extending MenuBar whose data provider provides the 
internal handler for the itemClick. I have a generic function that 
checks the MenuEvent for the needed property and then trys to call 
the function it specifies.

Specifically

mx:MenuBar xmlns:mx=http://www.adobe.com/2006/mxml
http://www.adobe.com/2006/mxml  
itemClick=internalClick(event)
mx:Script
![CDATA[
private function internalClick(event:MenuEvent):void{
if (event.item.hasOwnProperty(internalEvt)){
try{
this[event.item.internalEvt]()
}
catch(e:Error){

}
}
}

...

Now this works well as long as the specified function is public. 
However, I don't want all of these functions to be public. How can I 
reference and call a private function dynamically?

Thanks
Dominic

 



RE: [flexcoders] Re: Embedded fonts not working in Flex 3?

2008-02-26 Thread Gordon Smith
 I guess advanced anti-aliasing isn't supported in the Open Source SDK?
 
Correct. The JARs that supported advanced anti-aliasing are in the repo,
but not their source code, and I don't think the JARs are
redistributable.
 
(Matt, is this correct?)
 
Gordon Smith
Adobe Flex SDK Team



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Stephen Roy J. Tang
Sent: Monday, February 25, 2008 11:58 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Embedded fonts not working in Flex 3?



Found the problem. Seems I need to set advanced anti-aliasing to false
in the flex-config.xml.

Also this problem doesn't seem to be encountered using the Adobe Flex
SDK download. I guess advanced anti-aliasing isn't supported in the
Open Source SDK?

--- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
, Stephen Roy J. Tang
[EMAIL PROTECTED] wrote:

 Hi all,
 
 I downloaded the 3.0.0.477 build from opensource.adobe.com and did a
 few simple test cases. The ff mxml failed to compile:
 ==
 ?xml version=1.0?
 !-- fonts/EmbeddedFontFace.mxml --
 mx:Application xmlns:mx=http://www.adobe.com/2006/mxml
http://www.adobe.com/2006/mxml 
 mx:Style
 @font-face {
 src: local(Arial);
 fontFamily: myFontFamily;
 advancedAntiAliasing: true;
 }
 
 VBox {
 fontFamily: myFontFamily;
 } 
 /mx:Style
 
 mx:Panel title=Embedded Font Applied With Type Selector
 mx:VBox
 mx:Button label=Click Me/
 mx:Label text=Label/ 
 mx:TextArea width=400 height=75 text=The text 
 uses the myClass class selector.
 /
 /mx:VBox
 /mx:Panel
 /mx:Application
 ==
 
 The code is copy-and-paste almost exactly from an example in the
 livedocs...I just changed the font from Myriad Pro to Arial.
 
 Compiling the above gives a null pointer exception:
 
 ==
 C:\flex3\binmxmlc test.mxml
 Loading configuration file C:\flex3\frameworks\flex-config.xml
 Error: null
 
 java.lang.NullPointerException
 at
flash.swf.TagEncoder.defineFontAlignZones(TagEncoder.java:1254)
 at
 flash.swf.tags.DefineFontAlignZones.visit(DefineFontAlignZones.java:2
 9)
 at flash.swf.MovieEncoder.visitAfter(MovieEncoder.java:259)
 at flash.swf.MovieEncoder.define(MovieEncoder.java:240)
 at flash.swf.MovieEncoder.export(MovieEncoder.java:116)
 at flex2.compiler.API.encode(API.java:4068)
 at flex2.tools.Compiler.mxmlc(Compiler.java:270)
 at flex2.tools.Compiler.main(Compiler.java:53)
 
 ==
 
 Any idea? Or is there anything I need to set in the compiler to embed
 fonts?
 
 Thanks!
 
 Roy




 


Re: [flexcoders] Flex and PHP Issue. Please help!!!

2008-02-26 Thread Ben Marchbanks
Why not submit as a regular POST ?

---snippet-

var params:Object = new Object()

params.UserName =  PostUserNameTF.text

PostUser.send(params).


--Then handle the POST in PHP.---

foreach($_POST AS $key = $values) { ${$key} = $values; }

  $query = INSERT INTO Users (`UserName`) VALUES ('.$UserName.');



Omar Fouad wrote:
 
 
 In my flex application i have a form with some text fields. When I 
 submit the form an HTTPService.send() methid is called.
 
 mx:HTTPService id=PostUser method=GET
 url=http://localhost/Flex/Pastarino/PostUsers.php 
 http://localhost/Flex/Pastarino/PostUsers.php useProxy=false
 showBusyCursor=true
 resultFormat=text result=PostNewUserResponse(event);
 /mx:HTTPService
 
 the function is:
 
 public function PostNewUserResponse(event:ResultEvent):void {
 PostStatusL.text = String(event.result); // response 
 from the php to the label in FLEX
 }
 
 when the Submit Button Is pressed it calls the following function
 
 public function PostNewUser():void {
 var PostArray:Array= new Array();
 PostArray = [{
 UserName: PostUserNameTF.text,
 Password: PostPasswordTF.text,
 name: PostNameTF.text,
 Position: PostPositionTF.text,
 ManageUsers: PostManageUsersCB.selected,
 CreateOrders: PostCreateOrdersCB.selected,
 CreateDishes: PostCreateDishesCB.selected
 }];

 var DataToSend:Object = new Object();
 var DataString:String = JSON.encode(PostArray);
 DataString = escape(DataString);
 DataToSend.PostUsers = true;
 DataToSend.DataSent = DataString;
 PostUser.send(DataToSend);
 }
 
 At this point the php code would be:
 
 if(isset($_GET['PostUsers'])) {
   $jsonString = urldecode($_GET['DataSent']);
   $jsonString = str_replace(\\, , $jsonString);
   $data = json_decode($jsonString, true);

   $connection = mysql_connect($URL, $USERNAME, $PASSWORD);
   mysql_select_db($DATABASE) or die('Cannot connect to database. Please 
 Try Again...');

 $query = INSERT INTO Users (name) VALUES ($data['name']); // only 
 the name field for now...
 
 $result = mysql_query($query, $connection);
 
 
 But it is not working. I realized that $data['name'] is not getting the 
 name field from flex.
 
 I also tried adding the values manually in php as in
 
 $query = INSERT INTO Users (name) VALUES ('The Name is here');
 
 and it WORKED!!. So i think the problem is that $data['name'] is not 
 really retrieving the data from the array decoded by json_decode() (this 
 is really frustrating me!!)
 
 How should It be?
 
 thanks for the help
 
 -- 
 Omar M. Fouad - Digital Emotions
 http://www.omarfouad.net http://www.omarfouad.net
 
 This e-mail and any attachment is for authorised use by the intended 
 recipient(s) only. It may contain proprietary material, confidential 
 information and/or be subject to legal privilege. It should not be 
 copied, disclosed to, retained or used by, any other party. If you are 
 not an intended recipient then please promptly delete this e-mail and 
 any attachment and all copies and inform the sender. Thank you.
 
 

-- 
Ben Marchbanks

::: magazooms :::
digital publishers,  taking print beyond paper..

http://www.magazooms.com

Greenville, SC
864.284.9918


[flexcoders] Flash Container Components and Event Handling

2008-02-26 Thread cougar_shuttle
I made a change to my Flash Container (built similarly to the examples
at
http://flexwiki.adobe.com/confluence/display/ADOBE/Flex+3+Details+-+Flex+Component+Kit)
and have accidentally disabled my event handlers.

I have a separate Flash Component that receives mouse+keyboard and
sends  custom events and a child of my container that receives events.
 These have all been working until...

I added another keyframe = flex state to my container and named keys
and the tween section open, open-bar:start and open-bar:end, bar.  

Now none of the keyboard/mouse events are being handled.

What would cause my events to get lost?




RE: [flexcoders] Re: Flex 3 and AIR 1 are now live!

2008-02-26 Thread Gordon Smith
 No one has chipped in claiming to build it first on a Mac...

or Linux! 

Gordon Smith
Adobe Flex SDK Team

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Tom Chiverton
Sent: Tuesday, February 26, 2008 2:03 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Re: Flex 3 and AIR 1 are now live!

On Monday 25 Feb 2008, Gordon Smith wrote:
 Anirudh wins the build-the-SDK-first contest, with Tom the runner-up.

No one has chipped in claiming to build it first on a Mac...

-- 
Tom Chiverton
Helping to completely promote holistic partnerships
on: http://thefalken.livejournal.com



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England
and Wales under registered number OC307980 whose registered office
address is at Halliwells LLP, 3 Hardman Square, Spinningfields,
Manchester, M3 3EB.  A list of members is available for inspection at
the registered office. Any reference to a partner in relation to
Halliwells LLP means a member of Halliwells LLP.  Regulated by The
Solicitors Regulation Authority.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and
may be confidential or legally privileged.  If you are not the addressee
you must not read it and must not use any information contained in nor
copy it nor inform any person other than Halliwells LLP or the addressee
of its existence or contents.  If you have received this email in error
please delete it and notify Halliwells LLP IT Department on 0870 365
2500.

For more information about Halliwells LLP visit www.halliwells.com.


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





[flexcoders] Re: Load HTML from URL into Flex Component (via iframe)

2008-02-26 Thread byte.sensei
OK, so I fixed the Javascript to use the correct alert box code (I've 
got Flex syntax on the brain):

alert(url);

Now I see that loadIFrame() is executing -- but it executes 3 times, 
or at least I'm getting 3 javascript alert boxes each time I load the 
iframe page.


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

 
 I've got a Flex site with several pages that load HTML content from 
an
 older HTML version of the site into an iframe that I then place 
over the
 Flash movie so it looks like the content has been embedded into the 
Flex
 UI even though it's still being loaded from the old HTML site.
 
 I've got the following Javascript function to load the HTML content 
into
 the iframe:
 
 function loadIFrame(url){
   document.getElementById(myFrame).innerHTML = iframe 
id='myIFrame'
 src=' + url + ' frameborder='0'/iframe;
   Alert.show(url);
 }
 
 I added the Alert.show for testing so I'd get a Javascript alert 
box
 if/when this Javascript function fires.
 
 Inside my Flex app, I'm using the following code to refresh the 
iframe
 based on a URL:
 
 ExternalInterface.call(loadIFrame, source);
 
 I'm using the show event of a VBox component to make the
 ExternalInterface.call to the Javascript function.  I've verified 
via
 trace that the show event is firing and the ExternalInterface.call()
 function is executing, but the iframe never loads the URL nor 
does the
 Javascript Alert.show() function execute.
 
 It seems to work some of the time, but not consistently and not in 
any
 pattern I can distinguish.  Am I missing something here? Is there a
 different/better approach for loading HTML content via an HTTP GET 
into
 a Flex UI?  If not, how can I get this to work 
properly/consistently?
 
 Cheers!





[flexcoders] Re: Flex and PHP Issue. Please help!!!

2008-02-26 Thread Abyss Knight
If I were you, I would just print_r or vardump the contents of
$_GET['DataSent'] or even $_REQUEST (everything on the page) and
examine the output of the json_decode. I have a hunch you're not
getting an array, but rather an object when you decode.

-- William


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

 In my flex application i have a form with some text fields. When I
submit
 the form an HTTPService.send() methid is called.
 
 mx:HTTPService id=PostUser method=GET
 url=http://localhost/Flex/Pastarino/PostUsers.php;
useProxy=false
 showBusyCursor=true
 resultFormat=text result=PostNewUserResponse(event);
 /mx:HTTPService
 
 the function is:
 
 public function PostNewUserResponse(event:ResultEvent):void {
 PostStatusL.text = String(event.result); // response
from
 the php to the label in FLEX
 }
 
 when the Submit Button Is pressed it calls the following function
 
 public function PostNewUser():void {
 var PostArray:Array= new Array();
 PostArray = [{
 UserName: PostUserNameTF.text,
 Password: PostPasswordTF.text,
 name: PostNameTF.text,
 Position: PostPositionTF.text,
 ManageUsers: PostManageUsersCB.selected,
 CreateOrders: PostCreateOrdersCB.selected,
 CreateDishes: PostCreateDishesCB.selected
 }];
 
 var DataToSend:Object = new Object();
 var DataString:String = JSON.encode(PostArray);
 DataString = escape(DataString);
 DataToSend.PostUsers = true;
 DataToSend.DataSent = DataString;
 PostUser.send(DataToSend);
 }
 
 At this point the php code would be:
 
 if(isset($_GET['PostUsers'])) {
   $jsonString = urldecode($_GET['DataSent']);
   $jsonString = str_replace(\\, , $jsonString);
   $data = json_decode($jsonString, true);
 
   $connection = mysql_connect($URL, $USERNAME, $PASSWORD);
   mysql_select_db($DATABASE) or die('Cannot connect to database.
Please Try
 Again...');
 
 $query = INSERT INTO Users (name) VALUES ($data['name']); //
only the
 name field for now...
 
 $result = mysql_query($query, $connection);
 
 
 But it is not working. I realized that $data['name'] is not getting
the name
 field from flex.
 
 I also tried adding the values manually in php as in
 
 $query = INSERT INTO Users (name) VALUES ('The Name is here');
 
 and it WORKED!!. So i think the problem is that $data['name'] is not
really
 retrieving the data from the array decoded by json_decode() (this is
really
 frustrating me!!)
 
 How should It be?
 
 thanks for the help
 
 -- 
 Omar M. Fouad - Digital Emotions
 http://www.omarfouad.net
 
 This e-mail and any attachment is for authorised use by the intended
 recipient(s) only. It may contain proprietary material, confidential
 information and/or be subject to legal privilege. It should not be
copied,
 disclosed to, retained or used by, any other party. If you are not an
 intended recipient then please promptly delete this e-mail and any
 attachment and all copies and inform the sender. Thank you.





[flexcoders] Re: Flex and PHP Issue. Please help!!!

2008-02-26 Thread Abyss Knight
Of course, Ben is right, this would work too. :) Of course, remember
to prepare the SQL statement using DBO or MDB2 to prevent injection,
or use addslashes/mysql_escape_string.

-- William

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

 Why not submit as a regular POST ?
 
 ---snippet-
 
 var params:Object = new Object()
 
 params.UserName =  PostUserNameTF.text
 
 PostUser.send(params).
 
 
 --Then handle the POST in PHP.---
 
 foreach($_POST AS $key = $values) { ${$key} = $values; }
 
   $query = INSERT INTO Users (`UserName`) VALUES ('.$UserName.');
 
 
 
 Omar Fouad wrote:
  
  
  In my flex application i have a form with some text fields. When I 
  submit the form an HTTPService.send() methid is called.
  
  mx:HTTPService id=PostUser method=GET
  url=http://localhost/Flex/Pastarino/PostUsers.php 
  http://localhost/Flex/Pastarino/PostUsers.php useProxy=false
  showBusyCursor=true
  resultFormat=text result=PostNewUserResponse(event);
  /mx:HTTPService
  
  the function is:
  
  public function PostNewUserResponse(event:ResultEvent):void {
  PostStatusL.text = String(event.result); // response 
  from the php to the label in FLEX
  }
  
  when the Submit Button Is pressed it calls the following function
  
  public function PostNewUser():void {
  var PostArray:Array= new Array();
  PostArray = [{
  UserName: PostUserNameTF.text,
  Password: PostPasswordTF.text,
  name: PostNameTF.text,
  Position: PostPositionTF.text,
  ManageUsers: PostManageUsersCB.selected,
  CreateOrders: PostCreateOrdersCB.selected,
  CreateDishes: PostCreateDishesCB.selected
  }];
 
  var DataToSend:Object = new Object();
  var DataString:String = JSON.encode(PostArray);
  DataString = escape(DataString);
  DataToSend.PostUsers = true;
  DataToSend.DataSent = DataString;
  PostUser.send(DataToSend);
  }
  
  At this point the php code would be:
  
  if(isset($_GET['PostUsers'])) {
$jsonString = urldecode($_GET['DataSent']);
$jsonString = str_replace(\\, , $jsonString);
$data = json_decode($jsonString, true);
 
$connection = mysql_connect($URL, $USERNAME, $PASSWORD);
mysql_select_db($DATABASE) or die('Cannot connect to database.
Please 
  Try Again...');
 
  $query = INSERT INTO Users (name) VALUES ($data['name']); //
only 
  the name field for now...
  
  $result = mysql_query($query, $connection);
  
  
  But it is not working. I realized that $data['name'] is not
getting the 
  name field from flex.
  
  I also tried adding the values manually in php as in
  
  $query = INSERT INTO Users (name) VALUES ('The Name is here');
  
  and it WORKED!!. So i think the problem is that $data['name'] is not 
  really retrieving the data from the array decoded by json_decode()
(this 
  is really frustrating me!!)
  
  How should It be?
  
  thanks for the help
  
  -- 
  Omar M. Fouad - Digital Emotions
  http://www.omarfouad.net http://www.omarfouad.net
  
  This e-mail and any attachment is for authorised use by the intended 
  recipient(s) only. It may contain proprietary material, confidential 
  information and/or be subject to legal privilege. It should not be 
  copied, disclosed to, retained or used by, any other party. If you
are 
  not an intended recipient then please promptly delete this e-mail and 
  any attachment and all copies and inform the sender. Thank you.
  
  
 
 -- 
 Ben Marchbanks
 
 ::: magazooms :::
 digital publishers,  taking print beyond paper..
 
 http://www.magazooms.com
 
 Greenville, SC
 864.284.9918





[flexcoders] Re: referencing a private function

2008-02-26 Thread rwinscot
Gordon - the application of such capability is arguable that is
true... but the capability to pass references is absolute. One could
for instance... create a custom event handler that passes a reference
to the private/internal function to event subscribers. If this were
truly and absolute - composition, introspection and reflection would
be forfeit.

So - if I can add a quickie. If your class makes something private, it
will only be accessible within your class unless you provide a
reference passing mechanism (e.g. a setter/getter).

Rick Winscot
 

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

 To add to what Alex has said... In AS3, access specifiers such as
 'protected' and 'private' aren't just compile-time concepts, they're
 also runtime concepts that are rigorously enforced by the ActionScript
 Virtual Machine. If your class makes something private, it is really
 inaccessible except by your class. AS3 takes this kind of security issue
 as seriously as Java does.
  
 Gordon Smith
 Adobe Flex SDK Team
 
 
 
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of Alex Harui
 Sent: Tuesday, February 26, 2008 9:52 AM
 To: flexcoders@yahoogroups.com
 Subject: RE: [flexcoders] referencing a private function
 
 
 
 You have to make a reference to the function public.  Private means just
 that: can't be called from the outside.
 
 I would recommend having the renderers attach listeners to the MenuBar
 instead.
 
 
 
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of Dominic Pazula
 Sent: Tuesday, February 26, 2008 9:32 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] referencing a private function
 
 I have a component extending MenuBar whose data provider provides the 
 internal handler for the itemClick. I have a generic function that 
 checks the MenuEvent for the needed property and then trys to call 
 the function it specifies.
 
 Specifically
 
 mx:MenuBar xmlns:mx=http://www.adobe.com/2006/mxml
 http://www.adobe.com/2006/mxml  
 itemClick=internalClick(event)
 mx:Script
 ![CDATA[
 private function internalClick(event:MenuEvent):void{
 if (event.item.hasOwnProperty(internalEvt)){
 try{
 this[event.item.internalEvt]()
 }
 catch(e:Error){
 
 }
 }
 }
 
 ...
 
 Now this works well as long as the specified function is public. 
 However, I don't want all of these functions to be public. How can I 
 reference and call a private function dynamically?
 
 Thanks
 Dominic





[flexcoders] Possible to gray out certain bars in a columnchart?

2008-02-26 Thread Rick Schmitty
In this modified example, I'd like to be able to gray out countries
with less than 20 medals.   Is it possible through styling or do I
need to get fancy with the dataprovider and work with 2 possible
series?


?xml version=1.0?
!-- Simple example to demonstrate the ColumnChart and BarChart controls. --
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;

mx:Script
![CDATA[

import mx.collections.ArrayCollection;

[Bindable]
private var medalsAC:ArrayCollection = new ArrayCollection( [
{ Country: USA, Gold: 15 },
{ Country: China, Gold: 25 },
{ Country: Russia, Gold: 35 },
{ Country: Germany, Gold: 20},
{ Country: France, Gold: 5 }

 ]);
]]
/mx:Script


mx:ColumnChart id=column height=100% width=45%
paddingLeft=5 paddingRight=5
showDataTips=true dataProvider={medalsAC}

mx:horizontalAxis
mx:CategoryAxis categoryField=Country/
/mx:horizontalAxis

mx:series
mx:ColumnSeries xField=Country yField=Gold
displayName=Gold/
/mx:series
/mx:ColumnChart

mx:Legend dataProvider={column}/

/mx:Application


[flexcoders] Re: Failure to access a WSDL file from Flex's WebService class over HTTPS on IE

2008-02-26 Thread eyal_c
Hi All,
I would like to thank all who tried to help, i was finally able to
solve the problem by:
1. Install all 3 FlexBuilder hotfixes.
2. Add the following http headers:
 header(Cache-Control: must-revalidate, post-check=0, pre-check=0);
 header('Pragma: private');
 In two places:
 a. In a php script which returns the WSDL file (see code below).
 b. In the service method which handles the WS calls, i was using PHP
as server side language and the headers should be set right before we
return the result object (inside the class which handles the WS
method) and not in the service PHP script which creates the PHP
SoapServer object.

Thanks,
Eyal






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

 Hi Eyal,
 
 My direct experience is limited to working with POSTs from IE over
HTTPS. POSTs are not idempotent and are not cacheable according to the
HTTP spec. 
 See section 9.5: http://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html
 
 snip
 Responses to this method are not cacheable, unless the response
includes appropriate Cache-Control or Expires header fields.
 /snip
 
 So one workaround for the IE issue is to always issue POSTs from the
player and not set any cache-related response headers at all. Note
that the player converts POSTs with an empty body to GETs
automatically (which is probably due to bugs in the underlying ActiveX
or Netscape Plugin APIs).
 
 For GETs, I've seen various posts online by people who claim to have
found header combinations to get IE HTTPS with no caching working but
I can't verify any of these for you based on my personal experience.
 
 Good luck,
 Seth
 
 
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
On Behalf Of eyal_c
 Sent: Wednesday, January 23, 2008 7:50 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: Failure to access a WSDL file from Flex's
WebService class over HTTPS on IE
 
 Hi,
 
 I am not sure i understood your reply, as i wrote, I also tried
 replacing the WSDL file with the following php script that handles the
 cache problem (after reading a post on the subject) 
 
 ?php
 
 $browser= (ereg('MSIE ([0-9].[0-9]{1,2})', $_SERVER['USER_AGENT'])) ?
 IE : FF;
 ob_end_clean();
 if ($browser == IE)
 {
 header(Cache-Control: must-revalidate, post-check=0, pre-check=0);
 header('Pragma: private');
 }
 else
 {
 header(Cache-Control: no-cache, must-revalidate); // HTTP/1.1
 header(Pragma: no-cache);
 header(Expires:  . gmdate(D, d M Y H:i:s) .  GMT);
 }
 
 readfile(dirname(__FILE__) . '/MyService.wsdl');
 
 ?
 
 This didn't solve the problem... is this what you suggested?
 
 Thanks,
 Eyal
 
 --- In flexcoders@yahoogroups.com, Seth Hodgson shodgson@ wrote:
 
  This is due to a long-standing IE bug with HTTPS and cache-related
 response headers.
  
  If you're not routing your web service invocations through the LCDS
 or BlazeDS proxy service, you'll need to tweak your application server
 to tweak the response headers related to caching if the user agent
 making the request is IE and the request arrives over HTTPS.
  
  Various folks have tried different header settings and combinations
 to work around this. Google for their recommendations.
  
  Seth
  
  
  From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
 On Behalf Of eyal_c
  Sent: Wednesday, January 16, 2008 10:52 PM
  To: flexcoders@yahoogroups.com
  Subject: [flexcoders] Failure to access a WSDL file from Flex's
 WebService class over HTTPS on IE
  
  Hello,
  
  I have a problem to access a WSDL file from Flex's WebService class
  over HTTPS on IE.
  
  I have tried using Flex Builder 2 / 3 but the problem is the same. 
  The web-server I am using is appWeb.
  Note that the same code works ok when I run it over HTTP (both IE and
  FF), and also over HTTPS but only from FireFox.
  The only problem is running it from IE over HTTPS.
  
  Analyzing the tcpdump I have compared the attempt to fetch the SWDL
  file from the flex code to a similar request done from the IE
  web-browser by typing the WSDL address in the URL field (This works ok
  and the browser displays the WSDL file). It seems that after the
  initial handshake the TCP connection is closed and the flex code
  doesn't open a new connection (like the IE does in the direct
attempt).
  
  I am using the following lines of code in Flex:
  
  var webService:WebService = new WebService();
  webService.showBusyCursor = true;
  webService.useProxy = false;
  webService.wsdl = https://IP_ADDRESS/MyService.wsdl;
  webService.endpointURI =
  https://IP_ADDRESS/SoapServer.php?serviceName=MyService;
  webService.addEventListener(LoadEvent.LOAD, handleLoad);
  webService.useProxy = false;
  
  I have received the following error: 
  
  [SWF] C:\f2rca\_workspace\List\bin\List-debug.swf - 1,187,356 bytes
  after decompression
  'DDDB2F4F-F7C5-676C-DDC6-819D636D5140' producer set destination to
  'DefaultHTTP'.
  warning: unable to bind 

[flexcoders] Drag Move Drop help needed with NESTED list items...

2008-02-26 Thread Boson Au
hi everyone, this is making me contemplating switching fields to
carpentry.

here's the gist of it:  I'm trying to build a 'libray' of sorts that
have folders of items... basically the idea is to have folders that
can have subfolders too.  here's the xml

http://distance.jhsph.edu/bau/flex/dragDrop/data/data.xml

to compound complexity; I'm trying to make the 'drag and drop'
reordering of items based on a button press (will skin everything
later.) so that when the user mouses down the button it broadcasts an
event making all the lists drag/drop able.

something is going wonky... its not moving the items, but rather,
copying them.

if anyone has insight to this, it'd be much appreciated

here's the url: I have the file source enabled:
http://distance.jhsph.edu/bau/flex/dragDrop/index.html



I'm losing hair!





RE: [flexcoders] Be the tree, Bob

2008-02-26 Thread Peter DeHaan
You could also try something like this:

 

mx:PopUpButton label=Please select a team... width={tree.width}

  mx:popUp

  mx:Tree id=tree

  dataProvider={mlb}

  labelField=@label

  showRoot=false

  width=300

  rowCount=8 /

  /mx:popUp

/mx:PopUpButton

 

 

And then tweak it slightly to fit your needs.

 

Peter

 

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Alex Harui
Sent: Tuesday, February 26, 2008 10:04 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Be the tree, Bob

 

Start with setting dropDownFactory=Tree.  There might be some other
things that need fixing though.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Brad Bueche
Sent: Tuesday, February 26, 2008 9:41 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Be the tree, Bob

 

http://blog.flexexamples.com/2007/11/29/opening-nodes-in-a-flex-tree-con
trol-using-the-expanditem-method/
http://blog.flexexamples.com/2007/11/29/opening-nodes-in-a-flex-tree-co
ntrol-using-the-expanditem-method/ 

 

Is there anyway to get the tree view INTO the combo box?

 

I really like the idea of having a hierarchical menu that looks exactly
like the tree in this example.  I just want it to drop down and be a
menu like the combo box.  I detest the windows file manager interface
(because of its inefficient use of screen real-estate) and I dont like
cascading menu's because I get really annoyed having to slow down and
use my mouse in slow motion just so I can get to the sub-menu I want.

 

I think the drop down tree hiearchy within a combobox solves both of
these problems. 1).  Its a great use of screen real-estate  --- if you
are not using it it takes up practically no room and 2) the hierarchy is
persistent and I dont have to be a jedi master with my mouseand I
dont have to move %80 down and to the right to get the menu I want.

 

So would it be possible to do a tree in a combo box?  Or, if thats
impossible, I guess I can just put the tree on a application bar and use
it like a menu?

 

brad

 



RE: [flexcoders] Be the tree, Bob

2008-02-26 Thread Brad Bueche
Thanks for the feedback Peter and Alex!
 
I have also found these two possible solutions:
 
http://cyberdust.wordpress.com/2007/02/23/introducing-selecttree-the-dro
p-down-tree-control/#comment-4946
 
However, this guy did part of it with cf and I'm getting an 1180 Error
Call to possibly undefined method SubjectGateway.  I've asked if he
can give a flex only example.  As I'm a newbie, I'm much more into
re-use at this stage than writing the specifics myself (Im learning as
fast as I can!). 
 
There is also this solution:
 
http://kmossman.blogspot.com/2007/03/blog-post.html
 
I'm still taking a look at this one.
 
Its a good sign though that you can think of something you might like in
flex, google it, and get multiple samples.  This is what enabled me to
learn php so fast.  I found them both by just typing dropDownFactory =
Tree into Google.
 
brad
 
keywords:  Tree Combobox dropDownFactory

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Peter DeHaan
Sent: Tuesday, February 26, 2008 2:04 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Be the tree, Bob






You could also try something like this:



mx:PopUpButton label=Please select a team... width={tree.width}

  mx:popUp

  mx:Tree id=tree

  dataProvider={mlb}

  labelField=@label

  showRoot=false

  width=300

  rowCount=8 /

  /mx:popUp

/mx:PopUpButton





And then tweak it slightly to fit your needs.



Peter






  _  


From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Alex Harui
Sent: Tuesday, February 26, 2008 10:04 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Be the tree, Bob



Start with setting dropDownFactory=Tree.  There might be some other
things that need fixing though.




  _  


From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Brad Bueche
Sent: Tuesday, February 26, 2008 9:41 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Be the tree, Bob



http://blog.
http://blog.flexexamples.com/2007/11/29/opening-nodes-in-a-flex-tree-co
ntrol-using-the-expanditem-method/
flexexamples.com/2007/11/29/opening-nodes-in-a-flex-tree-control-using-t
he-expanditem-method/



Is there anyway to get the tree view INTO the combo box?



I really like the idea of having a hierarchical menu that looks exactly
like the tree in this example.  I just want it to drop down and be a
menu like the combo box.  I detest the windows file manager interface
(because of its inefficient use of screen real-estate) and I dont like
cascading menu's because I get really annoyed having to slow down and
use my mouse in slow motion just so I can get to the sub-menu I want.



I think the drop down tree hiearchy within a combobox solves both of
these problems. 1).  Its a great use of screen real-estate  --- if you
are not using it it takes up practically no room and 2) the hierarchy is
persistent and I dont have to be a jedi master with my mouseand I
dont have to move %80 down and to the right to get the menu I want.



So would it be possible to do a tree in a combo box?  Or, if thats
impossible, I guess I can just put the tree on a application bar and use
it like a menu?



brad





 



RE: [flexcoders] Be the tree, Bob

2008-02-26 Thread Maciek Sakrejda
You may also want to consider the WindowShade component from FlexLib,
instead of the ComboBox:
http://flexlib.googlecode.com/svn/trunk/examples/WindowShade/WindowShade_Sample.swf

I found the kmossman example a little confusing to navigate, since
clicking on some things selected them (and collapsed the combobox), and
clicking others expanded the tree. I understand the intent of the
navigation, but it feels a little off. The windowshade may be a slicker
way to accomplish the same requirements you stated originally.


-- 
Maciek Sakrejda
Truviso, Inc.
http://www.truviso.com

-Original Message-
From: Brad Bueche [EMAIL PROTECTED]
Reply-To: flexcoders@yahoogroups.com
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Be the tree, Bob
Date: Tue, 26 Feb 2008 14:33:26 -0500

Thanks for the feedback Peter and Alex!
 
I have also found these two possible solutions:
 
http://cyberdust.wordpress.com/2007/02/23/introducing-selecttree-the-drop-down-tree-control/#comment-4946
 
However, this guy did part of it with cf and I'm getting an 1180 Error
Call to possibly undefined method SubjectGateway.  I've asked if he
can give a flex only example.  As I'm a newbie, I'm much more into
re-use at this stage than writing the specifics myself (Im learning as
fast as I can!). 
 
There is also this solution:
 
http://kmossman.blogspot.com/2007/03/blog-post.html
 
I'm still taking a look at this one.
 
Its a good sign though that you can think of something you might like in
flex, google it, and get multiple samples.  This is what enabled me to
learn php so fast.  I found them both by just typing dropDownFactory =
Tree into Google.
 
brad
 
keywords:  Tree Combobox dropDownFactory

-Original Message-
From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of Peter DeHaan
Sent: Tuesday, February 26, 2008 2:04 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Be the tree, Bob


You could also try something like this:

mx:PopUpButton label=Please select a team...
width={tree.width}

  mx:popUp

  mx:Tree id=tree

  dataProvider={mlb}

  labelField=@label

  showRoot=false

  width=300

  rowCount=8 /

  /mx:popUp

/mx:PopUpButton

And then tweak it slightly to fit your needs.

Peter



From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of Alex Harui
Sent: Tuesday, February 26, 2008 10:04 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Be the tree, Bob


Start with setting dropDownFactory=Tree.  There might be some
other things that need fixing though.



From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of Brad Bueche
Sent: Tuesday, February 26, 2008 9:41 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Be the tree, Bob



http://blog.flexexamples.com/2007/11/29/opening-nodes-in-a-flex-tree-control-using-the-expanditem-method/



Is there anyway to get the tree view INTO the combo box?



I really like the idea of having a hierarchical menu that looks
exactly like the tree in this example.  I just want it to drop
down and be a menu like the combo box.  I detest the windows
file manager interface (because of its inefficient use of screen
real-estate) and I dont like cascading menu's because I get
really annoyed having to slow down and use my mouse in slow
motion just so I can get to the sub-menu I want.



I think the drop down tree hiearchy within a combobox solves
both of these problems. 1).  Its a great use of screen
real-estate  --- if you are not using it it takes up practically
no room and 2) the hierarchy is persistent and I dont have to be
a jedi master with my mouseand I dont have to move %80 down
and to the right to get the menu I want.



So would it be possible to do a tree in a combo box?  Or, if
thats impossible, I guess I can just put the tree on a
application bar and use it like a menu?



brad




 




Re: [flexcoders] Re: images dissappearing on zoom

2008-02-26 Thread Daniel Freiman
That is confusing.  I'll look into it after work if I have time.

- Dan Frieman

On Tue, Feb 26, 2008 at 1:13 PM, mr.octopz [EMAIL PROTECTED] wrote:

   Thanks thats helpful. I'm still cunfused though because if I wrap the
 image in a swf before I load it into the app I don't see the problem,
 but if I load the image directly I do.

 Paul

  



[flexcoders] Family Tree / Flow chart

2008-02-26 Thread Murali sankar
Hi All,
   
  I am new to Flex. I want to develop a organization structure like in 
geni.com. Can you please help me anyone, How to develop or where can i get that 
kind of component?
   
  Thanks in advance
  Murali Sankar

   
-
Looking for last minute shopping deals?  Find them fast with Yahoo! Search.

[flexcoders] testability in flex w/cairngorm

2008-02-26 Thread researchinmachine
Hello there,

Looking to see how smooth will it be to separate cairngorm apart and 
for example swap the User Interface with a bunch of set commands.

i.e I want to unit test, and pretend as if I'm playing a game made in 
Flex with visual controls.  But, instead of clicking I'm just 
submitting commands from a console.  This would allow rapid unit 
testing.

In order to do this, the framework or architecture has to clearly 
separate the UI and game engine.  

Let me know what you think, I'm digging in Cairngorm for this as I 
type :)

If you have any examples, I'd understand it from a Java and/or 
regular Flash viewpoint.  Moving in to Flex, it definitely seems like 
a choice of Cairngorm or my own custom MVC which allows this UI 
swapping will be necessary.

Testability is #1!

Regards,

RMachine



[flexcoders] How to make Button show when it's outside the parent's boundaries?

2008-02-26 Thread wwaishan
I have a Canvas with one Combobox and one Button within.  I'm trying
to visually append the button below the dropdown so the button looks
like it's part of the dropdown.  On the DropdownEvent.OPEN event, the
button is moved to be below that dropdown.  On the DropdownEvent.CLOSE
event, the button's visibility is set to false.  My code mostly works.
 My problem is when the dropdown extends past the parent canvas's
boundaries (I don't mean the application window's boundaries).  The
dropdown appears fine but my button doesn't appear at all.  I suspect
it has something to do with z-order.

The dropdown displays fine when it extends past parent's boundaries. 
How do I do this for the button also?

Thanks.



[flexcoders] Drag and Drop between NativeWindows

2008-02-26 Thread Nick Collins
Does anybody have any examples of being able to drag from one native
window to another? I've tried both the DragManager and the Native
Drand and Drop functionality, but neither seem to work for this case.
Whenever my dragging leaves the window, it cancals the drag.


[flexcoders] unable to access UserTransaction in DataService on Websphere 6.0

2008-02-26 Thread msankar_igst
Hi All,

I downloaded Life Cycle FDS and configured into Websphere application 
server 6.0. 
I deployed flex.war, flex-admin.war and samples.war into Webshpere 
6.0. 
I can able to access all these 3 web modules. 
samples web application using 2037 RTMP port and port is listening. 
I can able to retrive the values from HSQL database. 
But if i try to update the values to HSQL database from any one of 
the CRM or sqlassembler 
or any other sample applications, i am getting the following popup 
error message in Flex, 

unable to access UserTransaction in DataService

I am getting the following error message in websphere application 
server console,

[Flex] [DEBUG] cause=javax.naming.NameNotFoundException: 
Name comp/UserTransaction not found in context java:. type=class 
javax.naming.NameNotFoundException
javax.naming.NameNotFoundException: Name comp/UserTransaction not 
found in context java:.
at com.ibm.ws.naming.ipbase.NameSpace.lookupInternal
(NameSpace.java:1094)
at com.ibm.ws.naming.ipbase.NameSpace.lookup
(NameSpace.java:990)
at com.ibm.ws.naming.urlbase.UrlContextImpl.lookup
(UrlContextImpl.java:1263)
at com.ibm.ws.naming.java.javaURLContextRoot.lookup
(javaURLContextRoot.java:201)
at com.ibm.ws.naming.java.javaURLContextRoot.lookup
(javaURLContextRoot.java:142)
at javax.naming.InitialContext.lookup(InitialContext.java:361)
at flex.data.DataServiceTransaction.doBegin
(DataServiceTransaction.java:836)
at flex.data.DataServiceTransaction.begin
(DataServiceTransaction.java:807)
at flex.data.DataService.serviceTransactedMessage
(DataService.java:705)
at flex.data.DataService.serviceMessage(DataService.java:429)
at flex.messaging.MessageBroker.routeMessageToService
(MessageBroker.java:1165)
at flex.messaging.endpoints.AbstractEndpoint.serviceMessage
(AbstractEndpoint.java:757)
at 
flex.messaging.endpoints.rtmp.AbstractRTMPServer.dispatchMessage
(AbstractRTMPServer.java:888)
at 
flex.messaging.endpoints.rtmp.NIORTMPConnection$RTMPReader.run
(NIORTMPConnection.java:424)
at 
edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Work
er.runTask(ThreadPoolExecutor.java:665)
at 
edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Work
er.run(ThreadPoolExecutor.java:690)
at java.lang.Thread.run(Thread.java:816)

I have written a sample jsp to test whether UserTransaction is 
working or not in websphere. 
It is successfully doing begin() and commit() functionality.

Can anyone help me to resolve this issue?

Thanks,
Murali Sankar



[flexcoders] New files in project not compiled?

2008-02-26 Thread Barnaby Jones
My flex project (using flex builder 3) has somehow gotten into a state
where any new AS class I add to the project is not even attempted to
be compiled.  I throw tons of syntax errors into it, and the project
builds just fine.  If I put an error in an already existing file, the
build fails and reports the error on the existing file.  I have tried
deleting and rebuilding the project.  I have also tried upgrading to
the release version of FB3 (was using beta).  Hope someone can help. 

Thanks
Todd



[flexcoders] Decrease vertical space between children of VBox

2008-02-26 Thread Merrill, Jason
How do I decrease the vertical space between these two labels?  I tried
adding a spacer but it has no effect.  Also tried looking in help for
any properties of Vbox I can set, but to no avail.   Thanks.
 
mx:VBox 
mx:Label fontSize=16 text=Title /
mx:Label fontSize=10 text=Subtitle /
mx:Spacer height=100%/
/mx:VBox


Jason Merrill
Bank of America  
GTO LLD Solutions Design  Development 
eTools  Multimedia 

Bank of America Flash Platform Developer Community


Are you a Bank of America associate interested in innovative learning
ideas and technologies? 
Check out our internal  GTO Innovative Learning Blog
http://sharepoint.bankofamerica.com/sites/ddc/rd/blog/default.aspx
and  subscribe
http://sharepoint.bankofamerica.com/sites/ddc/rd/blog/_layouts/SubNew.a
spx?List=%7B41BD3FC9%2DBB07%2D4763%2DB3AB%2DA6C7C99C5B8D%7DSource=http%
3A%2F%2Fsharepoint%2Ebankofamerica%2Ecom%2Fsites%2Fddc%2Frd%2Fblog%2FLis
ts%2FPosts%2FArchive%2Easpx .







Re: [flexcoders] New files in project not compiled?

2008-02-26 Thread Paul Andrews
In Flex 2 the only time that happens to me is when I mess up the package 
names..

Paul
- Original Message - 
From: Barnaby Jones [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Tuesday, February 26, 2008 8:35 PM
Subject: [flexcoders] New files in project not compiled?


 My flex project (using flex builder 3) has somehow gotten into a state
 where any new AS class I add to the project is not even attempted to
 be compiled.  I throw tons of syntax errors into it, and the project
 builds just fine.  If I put an error in an already existing file, the
 build fails and reports the error on the existing file.  I have tried
 deleting and rebuilding the project.  I have also tried upgrading to
 the release version of FB3 (was using beta).  Hope someone can help.

 Thanks
 Todd



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



 



RE: [flexcoders] New files in project not compiled?

2008-02-26 Thread Merrill, Jason
Have you also tried cleaning the project?
 

Jason Merrill 
Bank of America 
GTO LLD Solutions Design  Development 
eTools  Multimedia 

Bank of America Flash Platform Developer Community 


Are you a Bank of America associate interested in innovative learning
ideas and technologies?
Check out our internal  GTO Innovative Learning Blog
http://sharepoint.bankofamerica.com/sites/ddc/rd/blog/default.aspx
and  subscribe
http://sharepoint.bankofamerica.com/sites/ddc/rd/blog/_layouts/SubNew.a
spx?List=%7B41BD3FC9%2DBB07%2D4763%2DB3AB%2DA6C7C99C5B8D%7DSource=http%
3A%2F%2Fsharepoint%2Ebankofamerica%2Ecom%2Fsites%2Fddc%2Frd%2Fblog%2FLis
ts%2FPosts%2FArchive%2Easpx . 




 




From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of Barnaby Jones
Sent: Tuesday, February 26, 2008 3:35 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] New files in project not compiled?



My flex project (using flex builder 3) has somehow gotten into a
state
where any new AS class I add to the project is not even
attempted to
be compiled. I throw tons of syntax errors into it, and the
project
builds just fine. If I put an error in an already existing file,
the
build fails and reports the error on the existing file. I have
tried
deleting and rebuilding the project. I have also tried upgrading
to
the release version of FB3 (was using beta). Hope someone can
help. 

Thanks
Todd



 



RE: [flexcoders] Re: referencing a private function

2008-02-26 Thread Gordon Smith
You're quite right... sorry I forgot this exception. If a class C
decides to pass a reference-to-one-of-its-private-methods to code
outside C, then any code that gets that reference can call the private
method. The point is that if you're the author of C, then you have the
prerogative to publicize something that you declare private. What the
AVM enforces is that others can't access your private stuff without your
permission.
 
Gordon Smith
Adobe Flex SDK Team



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of rwinscot
Sent: Tuesday, February 26, 2008 10:42 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: referencing a private function



Gordon - the application of such capability is arguable that is
true... but the capability to pass references is absolute. One could
for instance... create a custom event handler that passes a reference
to the private/internal function to event subscribers. If this were
truly and absolute - composition, introspection and reflection would
be forfeit.

So - if I can add a quickie. If your class makes something private, it
will only be accessible within your class unless you provide a
reference passing mechanism (e.g. a setter/getter).

Rick Winscot


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

 To add to what Alex has said... In AS3, access specifiers such as
 'protected' and 'private' aren't just compile-time concepts, they're
 also runtime concepts that are rigorously enforced by the ActionScript
 Virtual Machine. If your class makes something private, it is really
 inaccessible except by your class. AS3 takes this kind of security
issue
 as seriously as Java does.
 
 Gordon Smith
 Adobe Flex SDK Team
 
 
 
 From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
[mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
] On
 Behalf Of Alex Harui
 Sent: Tuesday, February 26, 2008 9:52 AM
 To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com 
 Subject: RE: [flexcoders] referencing a private function
 
 
 
 You have to make a reference to the function public. Private means
just
 that: can't be called from the outside.
 
 I would recommend having the renderers attach listeners to the MenuBar
 instead.
 
 
 
 From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
[mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
] On
 Behalf Of Dominic Pazula
 Sent: Tuesday, February 26, 2008 9:32 AM
 To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com 
 Subject: [flexcoders] referencing a private function
 
 I have a component extending MenuBar whose data provider provides the 
 internal handler for the itemClick. I have a generic function that 
 checks the MenuEvent for the needed property and then trys to call 
 the function it specifies.
 
 Specifically
 
 mx:MenuBar xmlns:mx=http://www.adobe.com/2006/mxml
http://www.adobe.com/2006/mxml 
 http://www.adobe.com/2006/mxml http://www.adobe.com/2006/mxml   
 itemClick=internalClick(event)
 mx:Script
 ![CDATA[
 private function internalClick(event:MenuEvent):void{
 if (event.item.hasOwnProperty(internalEvt)){
 try{
 this[event.item.internalEvt]()
 }
 catch(e:Error){
 
 }
 }
 }
 
 ...
 
 Now this works well as long as the specified function is public. 
 However, I don't want all of these functions to be public. How can I 
 reference and call a private function dynamically?
 
 Thanks
 Dominic




 


Re: [flexcoders] New files in project not compiled?

2008-02-26 Thread Jeffry Houser

  Try cleaning the project.  It's a menu item option.

Barnaby Jones wrote:
 
 
 My flex project (using flex builder 3) has somehow gotten into a state
 where any new AS class I add to the project is not even attempted to
 be compiled. I throw tons of syntax errors into it, and the project
 builds just fine. If I put an error in an already existing file, the
 build fails and reports the error on the existing file. I have tried
 deleting and rebuilding the project. I have also tried upgrading to
 the release version of FB3 (was using beta). Hope someone can help.
 
 Thanks
 Todd


-- 
Jeffry Houser
Flex, ColdFusion, AIR
AIM: Reboog711  | Phone: 1-203-379-0773
--
Adobe Community Expert 
http://www.adobe.com/communities/experts/members/JeffryHouser.html
My Company: http://www.dot-com-it.com
My Podcast: http://www.theflexshow.com
My Blog: http://www.jeffryhouser.com


[flexcoders] Re: New files in project not compiled?

2008-02-26 Thread Barnaby Jones
I have cleaned the project( many times actually ).  I also checked the
package names and they are correct.  I even deleted the package and
ctrl+spaced to let FB generate the package declaration.  Still no luck :(



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

 Have you also tried cleaning the project?
  
 
 Jason Merrill 
 Bank of America 
 GTO LLD Solutions Design  Development 
 eTools  Multimedia 
 
 Bank of America Flash Platform Developer Community 
 
 
 Are you a Bank of America associate interested in innovative learning
 ideas and technologies?
 Check out our internal  GTO Innovative Learning Blog
 http://sharepoint.bankofamerica.com/sites/ddc/rd/blog/default.aspx
 and  subscribe
 http://sharepoint.bankofamerica.com/sites/ddc/rd/blog/_layouts/SubNew.a
 spx?List=%7B41BD3FC9%2DBB07%2D4763%2DB3AB%2DA6C7C99C5B8D%7DSource=http%
 3A%2F%2Fsharepoint%2Ebankofamerica%2Ecom%2Fsites%2Fddc%2Frd%2Fblog%2FLis
 ts%2FPosts%2FArchive%2Easpx . 
 
 
 
 
  
 
 
 
 
   From: flexcoders@yahoogroups.com
 [mailto:[EMAIL PROTECTED] On Behalf Of Barnaby Jones
   Sent: Tuesday, February 26, 2008 3:35 PM
   To: flexcoders@yahoogroups.com
   Subject: [flexcoders] New files in project not compiled?
   
   
 
   My flex project (using flex builder 3) has somehow gotten into a
 state
   where any new AS class I add to the project is not even
 attempted to
   be compiled. I throw tons of syntax errors into it, and the
 project
   builds just fine. If I put an error in an already existing file,
 the
   build fails and reports the error on the existing file. I have
 tried
   deleting and rebuilding the project. I have also tried upgrading
 to
   the release version of FB3 (was using beta). Hope someone can
 help. 
   
   Thanks
   Todd





[flexcoders] Re: AIR v1 - Initial blank screen

2008-02-26 Thread Tom Sobut
I found the problem.

If you declare minWidth and minHeight in your WindowedApplication tag, and the 
values are 
equal or greater than the initialWindow height and width values in your 
descriptor file, the 
initial application window appears empty until you resize.

SoDONT DO THAT!

Tom






Re: [flexcoders] Decrease vertical space between children of VBox

2008-02-26 Thread Daniel Freiman
verticalGap.  I believe it is a style, not a property.

- Dan Freiman

On Tue, Feb 26, 2008 at 3:37 PM, Merrill, Jason 
[EMAIL PROTECTED] wrote:

   How do I decrease the vertical space between these two labels? I tried
 adding a spacer but it has no effect. Also tried looking in help for
 any properties of Vbox I can set, but to no avail. Thanks.

 mx:VBox 
 mx:Label fontSize=16 text=Title /
 mx:Label fontSize=10 text=Subtitle /
 mx:Spacer height=100%/
 /mx:VBox

 Jason Merrill
 Bank of America
 GTO LLD Solutions Design  Development
 eTools  Multimedia

 Bank of America Flash Platform Developer Community

 Are you a Bank of America associate interested in innovative learning
 ideas and technologies?
 Check out our internal GTO Innovative Learning Blog
 http://sharepoint.bankofamerica.com/sites/ddc/rd/blog/default.aspx
 and  subscribe
 http://sharepoint.bankofamerica.com/sites/ddc/rd/blog/_layouts/SubNew.a
 spx?List=%7B41BD3FC9%2DBB07%2D4763%2DB3AB%2DA6C7C99C5B8D%7DSource=http%
 3A%2F%2Fsharepoint%2Ebankofamerica%2Ecom%2Fsites%2Fddc%2Frd%2Fblog%2FLis
 ts%2FPosts%2FArchive%2Easpx .

  



Re: [flexcoders] Re: New files in project not compiled?

2008-02-26 Thread Aaron Miller
What happens when you try to use the class with the syntax error. Just
curious.

Regards,
~Aaron


On 2/26/08, Barnaby Jones [EMAIL PROTECTED] wrote:

   I have cleaned the project( many times actually ). I also checked the
 package names and they are correct. I even deleted the package and
 ctrl+spaced to let FB generate the package declaration. Still no luck :(

 --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com,
 Merrill, Jason
 [EMAIL PROTECTED] wrote:
 
  Have you also tried cleaning the project?
 
 
  Jason Merrill
  Bank of America
  GTO LLD Solutions Design  Development
  eTools  Multimedia
 
  Bank of America Flash Platform Developer Community
 
 
  Are you a Bank of America associate interested in innovative learning
  ideas and technologies?
  Check out our internal GTO Innovative Learning Blog
  http://sharepoint.bankofamerica.com/sites/ddc/rd/blog/default.aspx
  and  subscribe
  http://sharepoint.bankofamerica.com/sites/ddc/rd/blog/_layouts/SubNew.a
  spx?List=%7B41BD3FC9%2DBB07%2D4763%2DB3AB%2DA6C7C99C5B8D%7DSource=http%
  3A%2F%2Fsharepoint%2Ebankofamerica%2Ecom%2Fsites%2Fddc%2Frd%2Fblog%2FLis
  ts%2FPosts%2FArchive%2Easpx .
 
 
 
 
 
 
 
  
 
  From: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com
  [mailto:flexcoders@yahoogroups.com flexcoders%40yahoogroups.com] On
 Behalf Of Barnaby Jones
  Sent: Tuesday, February 26, 2008 3:35 PM
  To: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com
  Subject: [flexcoders] New files in project not compiled?
 
 
 
  My flex project (using flex builder 3) has somehow gotten into a
  state
  where any new AS class I add to the project is not even
  attempted to
  be compiled. I throw tons of syntax errors into it, and the
  project
  builds just fine. If I put an error in an already existing file,
  the
  build fails and reports the error on the existing file. I have
  tried
  deleting and rebuilding the project. I have also tried upgrading
  to
  the release version of FB3 (was using beta). Hope someone can
  help.
 
  Thanks
  Todd
 

 




-- 
Aaron Miller
Chief Technology Officer
Splash Labs, LLC.
[EMAIL PROTECTED]  |  360-255-1145
http://www.splashlabs.com


Re: [flexcoders] Re: New files in project not compiled?

2008-02-26 Thread Paul Andrews
Look for a binding with a missing closing brace..

Paul
- Original Message - 
From: Barnaby Jones [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Tuesday, February 26, 2008 8:46 PM
Subject: [flexcoders] Re: New files in project not compiled?


I have cleaned the project( many times actually ).  I also checked the
 package names and they are correct.  I even deleted the package and
 ctrl+spaced to let FB generate the package declaration.  Still no luck :(



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

 Have you also tried cleaning the project?


 Jason Merrill
 Bank of America
 GTO LLD Solutions Design  Development
 eTools  Multimedia

 Bank of America Flash Platform Developer Community


 Are you a Bank of America associate interested in innovative learning
 ideas and technologies?
 Check out our internal  GTO Innovative Learning Blog
 http://sharepoint.bankofamerica.com/sites/ddc/rd/blog/default.aspx
 and  subscribe
 http://sharepoint.bankofamerica.com/sites/ddc/rd/blog/_layouts/SubNew.a
 spx?List=%7B41BD3FC9%2DBB07%2D4763%2DB3AB%2DA6C7C99C5B8D%7DSource=http%
 3A%2F%2Fsharepoint%2Ebankofamerica%2Ecom%2Fsites%2Fddc%2Frd%2Fblog%2FLis
 ts%2FPosts%2FArchive%2Easpx .







 

 From: flexcoders@yahoogroups.com
 [mailto:[EMAIL PROTECTED] On Behalf Of Barnaby Jones
 Sent: Tuesday, February 26, 2008 3:35 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] New files in project not compiled?



 My flex project (using flex builder 3) has somehow gotten into a
 state
 where any new AS class I add to the project is not even
 attempted to
 be compiled. I throw tons of syntax errors into it, and the
 project
 builds just fine. If I put an error in an already existing file,
 the
 build fails and reports the error on the existing file. I have
 tried
 deleting and rebuilding the project. I have also tried upgrading
 to
 the release version of FB3 (was using beta). Hope someone can
 help.

 Thanks
 Todd





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



 



[flexcoders] Flex 3 is cool ... but I still need 2.0.1

2008-02-26 Thread Jeff Hindman
Is it still possible to download Flex 2.0.1 from the Adobe website?  I 
couldn't seem fo find it anywhere ...

Thanks --

  -- jake



RE: [flexcoders] Flex 3 is cool ... but I still need 2.0.1

2008-02-26 Thread Peter DeHaan
Flex Builder or Flex SDK?

 

You can get the SDK from
http://labs.adobe.com/technologies/flex/sdk/flex2sdk.html

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Jeff Hindman
Sent: Tuesday, February 26, 2008 12:29 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Flex 3 is cool ... but I still need 2.0.1

 

Is it still possible to download Flex 2.0.1 from the Adobe website? I 
couldn't seem fo find it anywhere ...

Thanks --

-- jake

 



RE: [flexcoders] Decrease vertical space between children of VBox

2008-02-26 Thread Merrill, Jason
Bam! verticalGap was it, thanks!
 

Jason Merrill 
Bank of America 
GTO LLD Solutions Design  Development 
eTools  Multimedia 

Bank of America Flash Platform Developer Community 


Are you a Bank of America associate interested in innovative learning
ideas and technologies?
Check out our internal  GTO Innovative Learning Blog
http://sharepoint.bankofamerica.com/sites/ddc/rd/blog/default.aspx
and  subscribe
http://sharepoint.bankofamerica.com/sites/ddc/rd/blog/_layouts/SubNew.a
spx?List=%7B41BD3FC9%2DBB07%2D4763%2DB3AB%2DA6C7C99C5B8D%7DSource=http%
3A%2F%2Fsharepoint%2Ebankofamerica%2Ecom%2Fsites%2Fddc%2Frd%2Fblog%2FLis
ts%2FPosts%2FArchive%2Easpx . 





[flexcoders] How do I connect LCDS Remoting to a CFC in another folder and port?

2008-02-26 Thread flexuser1
Well I want to use mx:Remoting but my application is on localhost:8700
and my authentication.cfc (which I use to check login details) is in
localhost:8500/CFC

My question is: How do I use the remoting to set the proper
destination and source? Do I have to move the CFC files elsewhere, or
can I just somehow set all the destination properties in the LCDS
remoting XML?

Thank you guys in advance

-Mike



[flexcoders] problem running in flex 3 what does run in flex 201

2008-02-26 Thread Justin DeVuyst
Hello,

I have an app that works when compiled with flex 201.  It is
a non-trivial setup.  I have a loader app that uses
framework.swc and flex.swc as RSLs.  The loader app then
manually loads any custom RSLs we have (we have one at the moment)
the style swf, and finally the app swf.  Note that the custom
RSLs and the app swf are all linked against framework.swc
and flex.swc as RSLs.

I tried compiling it today with the flex 3 stuff and it
seemed to compile it fine but when it ran I got this trace:

Error: Key invalidBookmark was not found in resource bundle collections
at mx.resources::ResourceBundle/_getObject()
at mx.resources::ResourceBundle/getString()
at
ListCollectionViewCursor$/loadResources()[C:\dev\flex_201_ja\sdk\frameworks\mx\collections\ListCollectionView.as:1537]
at ListCollectionViewCursor$cinit()
at
global$init()[C:\dev\flex_201_ja\sdk\frameworks\mx\collections\ListCollectionView.as:1455]
at
global$init()[C:\dev\flex_201_ja\sdk\frameworks\mx\collections\ArrayCollection.as:59]
at _ImageTest_FlexInit$/init()
at
mx.managers::SystemManager/http://www.adobe.com/2006/flex/mx/internal::docFrameHandler()

That's really interesting since I used fcsh that came with flex 3 to
compile my RSL, style swf, and app swf.

Why does it have flex_201 in the stack trace?

Also, line 1537 in ListCollectionView.as in the flex 3 source doesn't
match the error but that line in the flex 201 source does.

Anybody have any idea what's going on here?

Thanks,
   jdv



RE: [flexcoders] Re: Embedded fonts not working in Flex 3?

2008-02-26 Thread Gordon Smith
Sorry... I read further and see that you're getting a Java
NullPointerException. I think we'll want to fix that!
 
Gordon Smith
Adobe Flex SDK Team



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Gordon Smith
Sent: Tuesday, February 26, 2008 10:21 AM
To: flexcoders@yahoogroups.com
Cc: Matt Chotin
Subject: RE: [flexcoders] Re: Embedded fonts not working in Flex 3?



 I guess advanced anti-aliasing isn't supported in the Open Source SDK?
 
Correct. The JARs that supported advanced anti-aliasing are in the repo,
but not their source code, and I don't think the JARs are
redistributable.
 
(Matt, is this correct?)
 
Gordon Smith
Adobe Flex SDK Team



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Stephen Roy J. Tang
Sent: Monday, February 25, 2008 11:58 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Embedded fonts not working in Flex 3?



Found the problem. Seems I need to set advanced anti-aliasing to false
in the flex-config.xml.

Also this problem doesn't seem to be encountered using the Adobe Flex
SDK download. I guess advanced anti-aliasing isn't supported in the
Open Source SDK?

--- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
, Stephen Roy J. Tang
[EMAIL PROTECTED] wrote:

 Hi all,
 
 I downloaded the 3.0.0.477 build from opensource.adobe.com and did a
 few simple test cases. The ff mxml failed to compile:
 ==
 ?xml version=1.0?
 !-- fonts/EmbeddedFontFace.mxml --
 mx:Application xmlns:mx=http://www.adobe.com/2006/mxml
http://www.adobe.com/2006/mxml 
 mx:Style
 @font-face {
 src: local(Arial);
 fontFamily: myFontFamily;
 advancedAntiAliasing: true;
 }
 
 VBox {
 fontFamily: myFontFamily;
 } 
 /mx:Style
 
 mx:Panel title=Embedded Font Applied With Type Selector
 mx:VBox
 mx:Button label=Click Me/
 mx:Label text=Label/ 
 mx:TextArea width=400 height=75 text=The text 
 uses the myClass class selector.
 /
 /mx:VBox
 /mx:Panel
 /mx:Application
 ==
 
 The code is copy-and-paste almost exactly from an example in the
 livedocs...I just changed the font from Myriad Pro to Arial.
 
 Compiling the above gives a null pointer exception:
 
 ==
 C:\flex3\binmxmlc test.mxml
 Loading configuration file C:\flex3\frameworks\flex-config.xml
 Error: null
 
 java.lang.NullPointerException
 at
flash.swf.TagEncoder.defineFontAlignZones(TagEncoder.java:1254)
 at
 flash.swf.tags.DefineFontAlignZones.visit(DefineFontAlignZones.java:2
 9)
 at flash.swf.MovieEncoder.visitAfter(MovieEncoder.java:259)
 at flash.swf.MovieEncoder.define(MovieEncoder.java:240)
 at flash.swf.MovieEncoder.export(MovieEncoder.java:116)
 at flex2.compiler.API.encode(API.java:4068)
 at flex2.tools.Compiler.mxmlc(Compiler.java:270)
 at flex2.tools.Compiler.main(Compiler.java:53)
 
 ==
 
 Any idea? Or is there anything I need to set in the compiler to embed
 fonts?
 
 Thanks!
 
 Roy




 


[flexcoders] Re: Flex 3 is cool ... but I still need 2.0.1

2008-02-26 Thread Jeff Hindman
Flex Builder ...

Thanks,

--Jake

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

 Flex Builder or Flex SDK?
 
  
 
 You can get the SDK from
 http://labs.adobe.com/technologies/flex/sdk/flex2sdk.html
 
  
 
 
 
 From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
 Behalf Of Jeff Hindman
 Sent: Tuesday, February 26, 2008 12:29 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Flex 3 is cool ... but I still need 2.0.1
 
  
 
 Is it still possible to download Flex 2.0.1 from the Adobe 
website? I 
 couldn't seem fo find it anywhere ...
 
 Thanks --
 
 -- jake





[flexcoders] Re: New files in project not compiled? RESOLVED

2008-02-26 Thread Barnaby Jones
I put a dummy reference to the missing classes, and then the ide
decides they are worth compiling, and does so.  Before everyone laughs
at my ineptitude, I'd like to explain what I was doing.  I'm using a
rails back end, and returning a collection of objects that map to AS
objects.  On the rails side, I create the mapping (i.e. Chart -
model.vo.Chart).  I was inspecting the objects I was getting back, and
 they were just plain Object, not the model.vo.Chart I was expecting.
 Turns out the model.vo.Chart was not compiled, because I had yet to
do anything with the returned objects.  I wrote some dummy code that
actually referenced the returned data, and whala.  It compiled the
classes, and now I'm getting correctly typed collections back from
rails now.  Kind of a chicken before the egg thing.  

Thank you guys for all your help!
Todd


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

 What happens when you try to use the class with the syntax error. Just
 curious.
 
 Regards,
 ~Aaron
 
 
 On 2/26/08, Barnaby Jones [EMAIL PROTECTED] wrote:
 
I have cleaned the project( many times actually ). I also
checked the
  package names and they are correct. I even deleted the package and
  ctrl+spaced to let FB generate the package declaration. Still no
luck :(
 
  --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com,
  Merrill, Jason
  jason.merrill@ wrote:
  
   Have you also tried cleaning the project?
  
  
   Jason Merrill
   Bank of America
   GTO LLD Solutions Design  Development
   eTools  Multimedia
  
   Bank of America Flash Platform Developer Community
  
  
   Are you a Bank of America associate interested in innovative
learning
   ideas and technologies?
   Check out our internal GTO Innovative Learning Blog
   http://sharepoint.bankofamerica.com/sites/ddc/rd/blog/default.aspx
   and  subscribe
  
http://sharepoint.bankofamerica.com/sites/ddc/rd/blog/_layouts/SubNew.a
  
spx?List=%7B41BD3FC9%2DBB07%2D4763%2DB3AB%2DA6C7C99C5B8D%7DSource=http%
  
3A%2F%2Fsharepoint%2Ebankofamerica%2Ecom%2Fsites%2Fddc%2Frd%2Fblog%2FLis
   ts%2FPosts%2FArchive%2Easpx .
  
  
  
  
  
  
  
   
  
   From: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com
   [mailto:flexcoders@yahoogroups.com
flexcoders%40yahoogroups.com] On
  Behalf Of Barnaby Jones
   Sent: Tuesday, February 26, 2008 3:35 PM
   To: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com
   Subject: [flexcoders] New files in project not compiled?
  
  
  
   My flex project (using flex builder 3) has somehow gotten into a
   state
   where any new AS class I add to the project is not even
   attempted to
   be compiled. I throw tons of syntax errors into it, and the
   project
   builds just fine. If I put an error in an already existing file,
   the
   build fails and reports the error on the existing file. I have
   tried
   deleting and rebuilding the project. I have also tried upgrading
   to
   the release version of FB3 (was using beta). Hope someone can
   help.
  
   Thanks
   Todd
  
 
  
 
 
 
 
 -- 
 Aaron Miller
 Chief Technology Officer
 Splash Labs, LLC.
 [EMAIL PROTECTED]  |  360-255-1145
 http://www.splashlabs.com





RE: [flexcoders] Re: Sprite.children

2008-02-26 Thread Gordon Smith
 So how come you don't sub class Array and add an 'on added' event that
tells the Player when something is added?
 
One reason is that there is no way that even a subclass of Array could
know when children[i] was assigned a new value. (EcmaScript and
ActionScript have ino equivalent of a setter function for array
elements.) And, of course, there would still be no type safety.
 
Another reason is that Arrays can be sparse -- you can have an Array
with elements 0, 1, 17, and 99. The Flash Player team didn't want this
model for the children of a DisplayObjectContainer.

 Who cares if Array isn't strongly typed? So long as the Player finds
 something that looks and smells like a DisplayObject, wouldn't that be
enough?
 
Most people who are writing nontrival apps come to rely heavily on type
safety as the single most important thing that the compiler provides. It
catches a huge number of bugs when you're writing your app rather than
leaving them for your customers to find at runtime.
 
Gordon Smith
Adobe Flex SDK Team



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of kjorn
Sent: Tuesday, February 26, 2008 1:20 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Sprite.children



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

 Are you asking Why doesn't Sprite have a 'children' Array rather than
a
 numChildren property and a getChildAt() method?. The answer to that
is
 that AS3 lacks strongly typed Arrays, and lacks a way to know when
 you've modified an Array. For example, if you pushed a Sprite onto the
 Array, the Player wouldn't know to add it to the display list.
 
 Gordon Smith
 Adobe Flex SDK Team
 

Oh, OK. That is a bit annoying though.

So how come you don't sub class Array and add an 'on added' event that
tells the Player when something is added?

Who cares if Array isn't strongly typed? So long as the Player finds
something that looks and smells like a DisplayObject, wouldn't that be
enough?

Cheers,

monk.e.boy



 


RE: [flexcoders] problem running in flex 3 what does run in flex 201

2008-02-26 Thread Alex Harui
Looks like you may be compiling in the 2.0.1 libraries.  Make sure your
paths are up to date.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Justin DeVuyst
Sent: Tuesday, February 26, 2008 1:17 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] problem running in flex 3 what does run in flex
201

 

Hello,

I have an app that works when compiled with flex 201. It is
a non-trivial setup. I have a loader app that uses
framework.swc and flex.swc as RSLs. The loader app then
manually loads any custom RSLs we have (we have one at the moment)
the style swf, and finally the app swf. Note that the custom
RSLs and the app swf are all linked against framework.swc
and flex.swc as RSLs.

I tried compiling it today with the flex 3 stuff and it
seemed to compile it fine but when it ran I got this trace:

Error: Key invalidBookmark was not found in resource bundle collections
at mx.resources::ResourceBundle/_getObject()
at mx.resources::ResourceBundle/getString()
at
ListCollectionViewCursor$/loadResources()[C:\dev\flex_201_ja\sdk\framewo
rks\mx\collections\ListCollectionView.as:1537]
at ListCollectionViewCursor$cinit()
at
global$init()[C:\dev\flex_201_ja\sdk\frameworks\mx\collections\ListColle
ctionView.as:1455]
at
global$init()[C:\dev\flex_201_ja\sdk\frameworks\mx\collections\ArrayColl
ection.as:59]
at _ImageTest_FlexInit$/init()
at
mx.managers::SystemManager/http://www.adobe.com/2006/flex/mx/internal::d
ocFrameHandler
http://www.adobe.com/2006/flex/mx/internal::docFrameHandler ()

That's really interesting since I used fcsh that came with flex 3 to
compile my RSL, style swf, and app swf.

Why does it have flex_201 in the stack trace?

Also, line 1537 in ListCollectionView.as in the flex 3 source doesn't
match the error but that line in the flex 201 source does.

Anybody have any idea what's going on here?

Thanks,
jdv

 



  1   2   >