[flexcoders] Re: WebService bug?

2007-01-12 Thread herrodius
Hi Ben,

We are using the 2.0.1 version.

I have just discovered that this problem only occurs when using
collections of objects that are typed to a superclass of the objects.

For instance, I have a class MediaItem. My 2 concrete subclasses are
CD and DVD. A CD has a Tracks property and a DVD has a Actors
property. When I send over a MediaItem array, it is correctly
converted to an ArrayCollection but the Tracks and the Actors
collections in the subclasses of MediaItem are ObjectProxy instances.

To solve this, let's move the Tracks property of the CD class to the
MediaItem superclass. The Tracks property is then also converted to an
ArrayCollection.

Seems like a bug in the deserialisation of the data, what do you and
others think? Should I file a bug and where?

regards,
Christophe

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

 Are you using 2.0.1? There were a handful of WebService
 serialization/deserialization issues resolved, some of which were
 specific to .NET services.
 
 You might also want to check out Darron Schall's ObjectTranslator
 class: http://www.darronschall.com/weblog/archives/000247.cfm.
 
 HTH,
 Ben
 
 
 --- In flexcoders@yahoogroups.com, herrodius lists@ wrote:
 
  Hi all,
  
  we are currently creating a series of webservices to talk to our .Net
  backend system. We are sending over nested value objects which
  sometimes contain nested arrays of objects. When we receive an array
  in Flex, it is mapped to an ArrayCollection. We then have to do the
  actual object mapping manually, which is the way to go I suppose.
  
  But when we send over nested arrays, the first array is converted to
  an ArrayCollection successfully but every other (deeper) array is
  converted to an ObjectProxy in which there is an ArrayCollection that
  contains the actual data of the Array. There seems to be an extra
  object/level that gets created.
  
  An example (debugger output):
  
  result (ObjectProxy)
  - Components (ArrayCollection)
  -- [0] (ObjectProxy)
  -- [1] (ObjectProxy)
  --- Answers (ObjectProxy, should be ArrayCollection)
   GapAnswer (ArrayCollection, does not exist in the original object
  and should not be here)
  - [0]
  - [1]
  
  As you can see there is an Answers property in the second item of
  the Components ArrayCollection. This should be an ArrayCollection
  instead of an ObjectProxy and the GapAnswer property in it should
  not even exist. (GapAnswer is the type of the .Net Answers array -
  GapAnswer[] Answers)
  
  Has anyone run into this before? Could this be a bug in the
  deserialization of the objects?
  
  regards,
  Christophe
 





Re: [flexcoders] Cairngorm / MVC Best Practice

2007-01-12 Thread Tom Chiverton
On Friday 05 January 2007 16:07, Stembert Olivier (BIL) wrote:
 the view and the command are better decoupled with the ViewHelper
 pattern, no?

ViewHelper isn't recommended anymore, is it ?

-- 
Tom Chiverton
Helping to competently compete 24/7 mindshares



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 St 
James's Court Brown Street Manchester M2 2JF.  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 Law 
Society.

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 8008.

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] Re: datagrid error w/2.01

2007-01-12 Thread Tom Chiverton
On Thursday 11 January 2007 15:16, bsdensmore wrote:
 I didn't submit it as a bug but maybe it should be?

Def. ! If you have a simple test case so much the better.

-- 
Tom Chiverton
Helping to paradigmatically innovate seamless products



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 St 
James's Court Brown Street Manchester M2 2JF.  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 Law 
Society.

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 8008.

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/
 


[flexcoders] Newbie alert - Trying to populate combobox w. httpservice

2007-01-12 Thread Mark Bjærgager

Being a newbie at Flex2 (and AS) I am trying to populate a combobox with
specific values from a HTTPService.

The xml is retrieved and the datagrid works fine, but the combobox dont
display the data.
What I'd like is to have {title} as label and {edition} as value - later I
will be using the selected value as a parameter for a new http call.

Any help will be really appreciated.

thanks,
Mark

Here's my code :
?xml version=1.0?
!-- Simple example to demonstrate the HTTPService tag. --
mx:Application xmlns:mx= http://www.adobe.com/2006/mxml;
   creationComplete=xmlEdition.send();
   mx:HTTPService
   id=xmlEdition
   url= http://flex2.dk/mark/xml/ddt/xmlEdition.xml;
   useProxy=false
   showBusyCursor=true /
   mx:Panel title=DDT height=95% width=95%
   paddingTop=10 paddingBottom=10 paddingLeft=10
paddingRight=10
   mx:DataGrid id=dgPosts height=50% width=75%
   dataProvider={xmlEdition.lastResult.action.item}
   mx:columns
   mx:DataGridColumn headerText=Posts dataField=edition/
   mx:DataGridColumn headerText=Date dataField=title/
   /mx:columns
   /mx:DataGrid
   mx:ComboBox id=cbEdition dataProvider={
xmlEdition.lastResult.action.item}  /
   /mx:Panel
/mx:Application


Re: [flexcoders] Capturing an event everytime an item becomes visibile in a viewstate

2007-01-12 Thread Roman Protsiuk

Do you have some effect played in transition? It dispatches effectEnd.

R.

On 1/11/07, Sam Shrefler [EMAIL PROTECTED] wrote:


  Enterstate is actually called before the creationComplete on the child.
I have the state display to a transition.  I'd actually like to call the
function after the transition finishes.  Any thoughts on how to do that?

On 1/11/07, Roman Protsiuk [EMAIL PROTECTED] wrote:

   enterState?

 R.

 On 1/11/07, Sam Shrefler  [EMAIL PROTECTED] wrote:
 
I have a canvas that is part of a view state.  I'd like to know how
  to call a method on that canvas everytime that canvas is made visible
  because the view state it's contained in is made visible.  Also, I'd only
  like this to happen after the creationComplete event-init method has
  completed.  I'd like this to totally be taken care of Any thoughts on how
  this could be done?  Thanks!
 
  Sam
 
 

 



Re: [flexcoders] Uploading flex applictions to the web

2007-01-12 Thread Tom Chiverton
On Thursday 11 January 2007 15:20, retrogamer4ever wrote:
 page http://www.ctrlzsc.com/other/bin/theCartoonExpress.html all that
 shows up is a blank default Flex swf file. What is the problem, why
 won't it display?

Runs fine here, though I notice your minimum player version is wrong in the 
HTML wrappers JavaScript.
It throws a RTE after loading because it's trying to read content from my disk 
though.

-- 
Tom Chiverton
Helping to collaboratively enhance web-enabled mindshares



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 St 
James's Court Brown Street Manchester M2 2JF.  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 Law 
Society.

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 8008.

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/
 


[flexcoders] Inerface IManaged not found Re: Performance Enhancement of Flex Application

2007-01-12 Thread haravallabhan
Thanks Clint for the links.. Was useful. 

I have added ant tags to compile and build the Flex application 
manually with precompilation.But When I tried to complie the mxml 
file using the ant build file I get an error which I didnt get when I 
compile normally. The error says Interface IManaged not found and the 
ant says the build was Failed. 

Whats the error mean? I am using the exec tag to use the mxmlc.exe in 
the fsdk2/bin in the Flex Builder installed directory.

Thanks
regards
Hara




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

 http://livedocs.flexsearch.org/index.shtml?cx=017079146949617508304%
3Amv4wpsyofxucof=FORID%3A9q=mxmlc#1126
 
 What you really want to do is setup ant to build it for you in 
flexbuilder
 2.
 http://www.flex2ant.org/
 
 Or setup ant from the command line.
 http://webddj.sys-con.com/read/309503.htm
 http://webddj.sys-con.com/read/310378.htm
 
 
 On 1/10/07, haravallabhan [EMAIL PROTECTED] wrote:
 
Hi Rob and Mod,
  Thanks for your itme guys. Rob I use FDS and there are no images
  loaded initally. I directly call the application which initially
  shows
  Vbox--
  Hbox-a Logo-/Hbox
  applictionControlBar-- /
  viewStack
  -- first tab(visible first time) - 3 viewstack each has a chart
  and datagrid
  -- second tab - a tree, 2 data grid and a viewstack with a
  datagrid and a chart
  /viewstack
  /vbox
  Rob what do you mean by the controls in this context.
  Hi Mod where do I compile the files-- through FlexSDK folder???
 
  Thanks
  regards
  Hara
 
  --- In flexcoders@yahoogroups.com flexcoders%
40yahoogroups.com, Clint
  Modien cmodien@ wrote:
  
   Ya... precompiling would definitely help. While your waiting for
  that
   minute. 90% of that time is probably compilation.
  
   Precompiling is in the docs...
  
   http://livedocs.flexsearch.org/index.shtml?
cx=017079146949617508304%http://livedocs.flexsearch.org/index.shtml?
cx=017079146949617508304%25
  3Amv4wpsyofxucof=FORID%3A9q=precompiling#816
  
   Which version of Flex is this?
  
  
   On 1/10/07, haravallabhan haravallabhan@ wrote:
   
Hi guys,
How to improve the startup performance of the flex 
application.
  That is
before the application initializes a blank screen appears for
  over a
minute after that a progress bar shows up.I want to minimize 
the
  time
the blank page appears. I am using Tomcat server for running 
the
application. Does the usage of containers play a role on such
  behaviour
or is that a server problem.
   
Will I be helped if the application is precompiled??.. If so 
how
  do I
precompile the application :). Or is there any other way to
  improve the
performance. I did try out ceratin links but they recommend 
using
  timer
to check the initialization performance. But I need to 
improve the
performance before initialization.
   
I need to recommend flex for RIA development.But this thing is
  like a
black mark for Flex. Can anybody help me.
   
Thanks in advance
Cheers
Hara
   
   
   
  
 
   
 





[flexcoders] Re: Filters with DataGrid - Excel

2007-01-12 Thread sanjaypmg
Hi,

I have tried it but facing a problem when I try to access 
DataCollection from another MXML testCombo.mxml. 

Please Suggest:::

See the following Code:

filterTest.mxml

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

mx:Script
![CDATA[
import mx.collections.ArrayCollection;
import mx.core.ClassFactory;

public var object2:Object = new Object();
public var object:Object = new Object();
[Bindable]

 
 [Bindable]
   public var authorsDataProvider : ArrayCollection = new 
ArrayCollection( [
{ Country: USA, Gold: 35, Status:Active, 
URL:http://www.google.com; },
{ Country: China, Gold: 32, 
Status:Deactive,URL:http://www.yahoo.com},
{ Country: Russia, Gold: 27,Status:Deactive, 
URL:http://www.hotmail.com; },
{ Country: India, Gold: 12, 
Status:Active,URL:http://www.gmail.com},
{Country: Russia, Gold: 27, 
Status:Deleted,URL:http://www.hotmail.com; },
{Country: Russia, Gold: 27, 
Status:Deleted,URL:http://www.hotmail.com; } ]);

]]
/mx:Script
mx:Panel title=Header Filter width=100% height=100%
  mx:DataGrid id=grid dataProvider={authorsDataProvider} 
width=100% height=100% sortableColumns=false   
mx:columns
  mx:Array
mx:DataGridColumn width=300 headerText=Country 
dataField=Country /
mx:DataGridColumn width=300 headerText=Value 
dataField=Gold/
mx:DataGridColumn width=300 headerText=Status 
dataField=Status headerRenderer=testCombo/
mx:DataGridColumn width=300 headerText=URL 
dataField=URL/
  /mx:Array
/mx:columns
  /mx:DataGrid
/mx:Panel
/mx:Application



testCombo.mxml:


?xml version=1.0 encoding=utf-8?

mx:HBox xmlns:mx=http://www.adobe.com/2006/mxml;
mx:Label text=Sale Price!/
mx:ComboBox id=cboAuthorsStatusFilter
dataProvider={authorsStatusArray} 
change=filterAuthorsGrid();



!-- dataProvider={_parent._parent.gridData}--
mx:Script
![CDATA[
import mx.controls.Alert;
import mx.collections.*;
[Bindable]  
public var authorsArray:Array = [All,
Active,
Deactive,
Deleted];

 [Bindable] 
public var authorsStatusArray : Array = 
populateAuthorsStatusArray(authorsArray);

public function populateAuthorsStatusArray
(authorsArray:Array):Array
{
//Alert.show
(authorsArray: +authorsArray.toString())
var statusArrayHashMap : Object = 
new Object();   
var statusArray : Array = new Array; 
var n:int = authorsArray.length; 
for (var i:int = 0; i  n; 
i++) 
{
if (statusArrayHashMap
[authorsArray] == undefined)

{   
statusArrayHashMap
[authorsArray] = new Object();   
statusArray.push
(authorsArray[i]);
} else
{
statusArray.push
(authorsArray [i]);  
}
   
} 
return statusArray;
} 
public function filterAuthorsGrid():void
{
Alert.show(this.toString() 
+ : +authorsDataProvider)

//authorsDataProvider.filterFunction=authorsStatusFilter;
   
//authorsDataProvider.refresh();
}
public function authorsStatusFilter
(item:Object):Boolean   
{   
if 
(cboAuthorsStatusFilter.selectedItem != All)   
{   
return item.status == 
cboAuthorsStatusFilter.selectedItem; 
} else {
return true;   
} 
//return true; 
}


]]

RE: [flexcoders] Replacement of headerRenderer of Datagrid??

2007-01-12 Thread Stephen Gilson
headerRenderer is a property of DataGridColumn.
 
Stephen



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of sanjaypmg
Sent: Friday, January 12, 2007 2:18 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Replacement of headerRenderer of Datagrid??



Hi All,

Does anyone now What is the replacement of headerRenderer of Flex 
1.5 in Flex 2.0?

headerRenderer was a property of DataGrid in flex 1.5.

If anyone knows, please let me know.

Thanks,
Sanjay Sharma



 


[flexcoders] ComboBox ItemEditor

2007-01-12 Thread Devin Holloway
I'm using combobox as a dropin item editor in a datagrid. I don't like
how many steps it takes to edit a cell...

1: click the cell (renderer turns into editor)
2: click the editor (combobox drops down)
3: click the desired selection (combobox closes)
4: click outside or tab-out to convert the editor back to the renderer
and dispatch the itemEditEnd event.

When you make a selection in the combobox, I'd prefer it to close up,
switch back to the renderer, and then dispatch the itemEditEnd event
right away.

I've noticed that making a selection in the combobox editor does not
dispatch any of the itemEdit events, so I figured I would need to
dispatch a combobox change event (from the combobox) and then
hopefully use a listener to programmatically destroy the editor and
dispatch the itemEditEvent or something.

Not sure if this is even possible, but in any case, I can't seem to
find anything that can listen to a dispatched event from the editor.
I've tried listening for the event on the datagrid, the datagrid
column, and the component containing the datagrid... all giving
errors.  Is this not possible? Or is there a better way to approach this?



[flexcoders] Need primer on Events, from the List Gurus -

2007-01-12 Thread Mike Anderson
Hello All,

This thread, directly relates to all the other ones I've posted recently
- as I think one of my root problems, is truly understanding on how
Events get propagated within an application.

They say the Event model is so great, due to all the components being so
loosely coupled.  So either I am missing something really rudimentary
here, or the Event model doesn't work the way I thought it did.

In every example I've seen, for an Event Listener and Broadcaster setup
to work properly, there must be a common link (like a container) between
the 2 components - and then, there are the 3 key things which must be in
place: The Event Listener, the Broadcaster, and the Function that gets
run whenever the Event gets triggered.

But what about the times, where I won't know for sure beforehand, which
component I will be using at the time?  Especially in a Cairngorm
Application, where the Commands (which is where I desperately need to
broadcast my Custom Events from) literally NEVER know where their Result
Events are going to be sent.  Of course, this is where the true power of
Cairngorm-based Applications comes into play.

All the Commands do really, is update the ModelLocater with their
updated results - and because of Data Binding, the Components in the
Application show the updated results.  For me unfortunately, there is
always much more that needs to be done, after a Result is brought back -
and I need to find a way to tell my Application Components, to perform
their next task (based on a Custom Event, that I broadcast).

Can anybody show me how to Broadcast Events in such a manner, that they
get disseminated Application-wide???  This way, I don't need to know
beforehand, which Components will be Receiving the Events.

This is the final thing on my plate that I must figure out, then I can
FINALLY finish my app and find some peace in my life

Thanks in advance,

Mike




[flexcoders] 2.0.1 release - Patch?

2007-01-12 Thread Adam Reynolds
Hi Guys,
I'm assuming with the number of issues people are having with 2.0.1, 
Adobe will be releasing a patch at some point?

Adam



[flexcoders] FDS 2.0.1 API Java Docs?

2007-01-12 Thread Dirk Eismann
Have the JavaDocs for the server side FDS API been updated for 2.0.1? If
so, where can we download it from?

Dirk.


RE: [flexcoders] PIVOT CHART (table) .

2007-01-12 Thread Ely Greenfield
 
 
 
I've been building some Pivot / OLAP experiments on the side, and gotten
pretty far without doing any custom modifications to the default
charting components.  The result isn't _exactly_ what you're looking
for...in my example, each label along the X axis was a multi-line label
with each line representing a value from one of the N dimensions
(columns) stacked along the X axis.  With an added labelFunction, I was
able to eliminate the redundant labels and only show them when they're
different from the previous label. So it looked something like this:
 
 
Product:   Electronics  Clothing  ProduceElectronics   Clothing
Produce Electronics Clothing Produce ...
Quarter:Q1   Q2
Q3 ...
 
 
It's not the prettiest axis in the world, but it get the info across.
To do something really well tuned for Pivot/OLAP, you'll need to write a
custom axis renderer  But that may be all you need to write.
 
 
Ely.
 
p.s. oo man, not sure I love the name Chartman ;)  Charts are really
only my night job...
 
 
 
 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of leds usop
Sent: Thursday, January 11, 2007 11:21 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] PIVOT CHART (table) .



HI All, (Especially hi to Chartman Ely ahem. :))

We have a current project which requires a datagrid to
have filter and pivot table capabilities on top of the
sort capability. Using that custom datagrid's pivot
table functionality will be based on using MS Excel's
pivot table. OUr problem however is not on the table
but on the chart that is supposedly generated from the
pivot table. A pivot chart can have multi-level
horizontal labels and tick marks (for those not
familiar with pivot table chart, if you have say, a
chain of 3 row categories with 3 non-numeric values
for each, the x-axis will be divided primarily by the
3 values from the first category - then each of those
values will be subvidivided by the number of values
the second category have and so on - sort of a
fractal/recursive/pyramiding behavior). So with all
that said and knowing that we are to use stacked bar
chart mean time (although we will probably be required
to support the other chart types as well) what is the
best way to go about this? Should we play around with
the horizontal axis renderer alone? OR should we
sublass the whole chart? Or is the data drawing canvas
(with custom components inside) the best way to do
this? Any suggestion will be greatly appreciated. Thnx !

__
Food fight? Enjoy some healthy debate 
in the Yahoo! Answers Food  Drink QA.
http://answers.yahoo.com/dir/?link=listsid=396545367
http://answers.yahoo.com/dir/?link=listsid=396545367 


 


[flexcoders] Minimized Panel

2007-01-12 Thread Pavel Zabelin

Hi all! People have you any idea how to develop Panel that have minimize
functionality?


[flexcoders] Should I be using States to switch between views?

2007-01-12 Thread erikbianchi
I'm a flex n00b but long time Flash Developer and am having some 
trouble dealing with states.

Basically, I can get State:AddChild to work, but this only adds a 
component / ui element to an existing view.

What I'm looking to do is toggle between two completely separate 
views. For example:

Login View:
Username Label / TextInput
Password Label / TextInput
Submit Button

Userinfo View:
User pictures
Bio
etc

So when the app first loads it displays the Login View and if the 
user logins correctly I get ride of the login view and display the 
UserInfo View. This view looks completely different then the Login so 
I don't think I want to use AddChild, but then again I have no idea.

My terminology may be all wrong here so my apologies. =)

Help!

-erik




Re: [flexcoders] Inerface IManaged not found Re: Performance Enhancement of Flex Application

2007-01-12 Thread Clint Modien

Sounds like you're missing the fds.swc .  It's not included in the SDK.

You can get the express version of FDS here:
http://www.adobe.com/go/flex_trial

On 1/12/07, haravallabhan [EMAIL PROTECTED] wrote:


  Thanks Clint for the links.. Was useful.

I have added ant tags to compile and build the Flex application
manually with precompilation.But When I tried to complie the mxml
file using the ant build file I get an error which I didnt get when I
compile normally. The error says Interface IManaged not found and the
ant says the build was Failed.

Whats the error mean? I am using the exec tag to use the mxmlc.exe in
the fsdk2/bin in the Flex Builder installed directory.

Thanks
regards
Hara

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

 
http://livedocs.flexsearch.org/index.shtml?cx=017079146949617508304%http://livedocs.flexsearch.org/index.shtml?cx=017079146949617508304%25
3Amv4wpsyofxucof=FORID%3A9q=mxmlc#1126

 What you really want to do is setup ant to build it for you in
flexbuilder
 2.
 http://www.flex2ant.org/

 Or setup ant from the command line.
 http://webddj.sys-con.com/read/309503.htm
 http://webddj.sys-con.com/read/310378.htm


 On 1/10/07, haravallabhan [EMAIL PROTECTED] wrote:
 
  Hi Rob and Mod,
  Thanks for your itme guys. Rob I use FDS and there are no images
  loaded initally. I directly call the application which initially
  shows
  Vbox--
  Hbox-a Logo-/Hbox
  applictionControlBar-- /
  viewStack
  -- first tab(visible first time) - 3 viewstack each has a chart
  and datagrid
  -- second tab - a tree, 2 data grid and a viewstack with a
  datagrid and a chart
  /viewstack
  /vbox
  Rob what do you mean by the controls in this context.
  Hi Mod where do I compile the files-- through FlexSDK folder???
 
  Thanks
  regards
  Hara
 
  --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.comflexcoders%
40yahoogroups.com, Clint
  Modien cmodien@ wrote:
  
   Ya... precompiling would definitely help. While your waiting for
  that
   minute. 90% of that time is probably compilation.
  
   Precompiling is in the docs...
  
   http://livedocs.flexsearch.org/index.shtml?
cx=017079146949617508304%http://livedocs.flexsearch.org/index.shtml?
cx=017079146949617508304%25
  3Amv4wpsyofxucof=FORID%3A9q=precompiling#816
  
   Which version of Flex is this?
  
  
   On 1/10/07, haravallabhan haravallabhan@ wrote:
   
Hi guys,
How to improve the startup performance of the flex
application.
  That is
before the application initializes a blank screen appears for
  over a
minute after that a progress bar shows up.I want to minimize
the
  time
the blank page appears. I am using Tomcat server for running
the
application. Does the usage of containers play a role on such
  behaviour
or is that a server problem.
   
Will I be helped if the application is precompiled??.. If so
how
  do I
precompile the application :). Or is there any other way to
  improve the
performance. I did try out ceratin links but they recommend
using
  timer
to check the initialization performance. But I need to
improve the
performance before initialization.
   
I need to recommend flex for RIA development.But this thing is
  like a
black mark for Flex. Can anybody help me.
   
Thanks in advance
Cheers
Hara
   
   
   
  
 
 
 


 



[flexcoders]Does Flex work with Java without FDS?

2007-01-12 Thread dorkie dork from dorktown

Does Flex work with Java without requiring FDS? I want to load up a Flex app
and using services similar to Flash Remoting run methods of a Java class and
return complex objects back.


[flexcoders] Does anyone know how to use this irc web client?

2007-01-12 Thread Rizwan S. Syed
Hello, I am new to adobe flex builder 2. I have been trying to compile 
the sources found at http://je2050.de/blog for flIRC web IRC client. I 
am unable to accomplish that. Can anyone tell me or guide me how can I 
do so.

Thanks in advance.



[flexcoders] Re: change menu style

2007-01-12 Thread wifi19
--- In flexcoders@yahoogroups.com, wifi19 [EMAIL PROTECTED] wrote:

 
 hie.
 
 i use mx:MenuBar labelField=@label itemClick=menuHandler(event); 
 dataProvider={menuBarCollection}  height=25 x=0 y=0 /
 
 i want to change menu style or graphic representation
 
 can you help me
 
 Regards !


Nobody s help me ?



[flexcoders] Re: Minimized Panel

2007-01-12 Thread Devin Holloway
The Flex2:Training From the Source book has you develop an
application that has panels with minimize/maximize buttons.

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

 Hi all! People have you any idea how to develop Panel that have
minimize
 functionality?





[flexcoders] ComboBox itemEditor

2007-01-12 Thread Devin Holloway
I'm using a combobox as a drop-in itemeditor in a datagrid. Whenever
they make a selection, I don't like how the user has to click outside
or tab-out to get the renderer to replace the editor and dispatch the
itemEditEnd event.

I'd prefer that once they make a selection in the combobox, it closes
up, goes away, label renderer reappears with new value, and
itemEditEnd event dispatches.

I've noticed taht making a selection in the combobox does not dispatch
any of the itemEdit events, so I figure I need to dispatch a change
event from the combo editor. And then I'm hoping I can have a change
listener programatically update the cell, destory the editor, and
dispatch the itemEditEnd event.

However, I can't find anything that can listen to an event broadcasted
from an itemEditor. I tried listening on the datagrid, the datagrid
column, and the component holding the datagrid.

is this even possible? Or is there a different approach to solving this?



Re: [flexcoders] Svn Flex

2007-01-12 Thread nitin jadhav
can tact me
  add me 
  nitkav_god
  nitin
  9892516802
   


-
 Here’s a new way to find what you're looking for - Yahoo! Answers 

RE: [flexcoders] Cairngorm / MVC Best Practice

2007-01-12 Thread Dimitrios Gianninas

Actually they are more coupled that way. The ViewHelper is no longer 
recommended, it is recommended for the command to update your model and then 
your model to binded to your view so that it updated itself accordingly.

Dimitrios Gianninas
RIA Developer
Optimal Payments Inc.

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Tom 
Chiverton
Sent: Friday, January 12, 2007 4:16 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Cairngorm / MVC Best Practice

On Friday 05 January 2007 16:07, Stembert Olivier (BIL) wrote:
 the view and the command are better decoupled with the ViewHelper 
 pattern, no?

ViewHelper isn't recommended anymore, is it ?

--
Tom Chiverton
Helping to competently compete 24/7 mindshares



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 St 
James's Court Brown Street Manchester M2 2JF.  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 Law 
Society.

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 8008.

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




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

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



--
Flexcoders 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] Re: fyi : Open Source ActionScript 3 Libraries Moved to Google Code

2007-01-12 Thread nitin jadhav
dear
  is it there any flex decomplier who decompile flex application
  if u r working in adobe  pls solve yhis problem 
  wh there is no shortcut for save as
  pls add me in yahoo
  nitkav_god
  9892516802

Mike Chambers [EMAIL PROTECTED] wrote:
  fyi

If anyone finds something doesnt compile in the source of any of the 
projects, please let us know (either post to the project list or log a bug).

thanks...

mike chambers

[EMAIL PROTECTED]

creacog wrote:
 
 
 --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com, 
 Darron J. Schall [EMAIL PROTECTED] wrote:
  You shouldn't use those instructions anymore. The code in the Adobe
  Labs SVN is now out-of-date, and is not going to be updated anymore.
 
 Sure - sorry - didn't mean to undermine the move to google-code.
 
 Trying to assist Carlos' immediate issue, I guess my advice adjusted...
 
 * Assuming the image encoders are not yet in the SWC
 * and the image encoders source in the clorelib source-zip doesn't compile
 * he can get hold good versions of the corelib image encoder source via 
 the SVN route and
 be up and running for his immediate requirement without awaiting the 
 impending
 updates.
 * But use the google-code SVN as per your instructions:


 


-
 Here’s a new way to find what you're looking for - Yahoo! Answers 

[flexcoders] relative paths in the Source paths of Flex Builder

2007-01-12 Thread Brian Deitte
Does anybody know how to create a relative path in the Additional
source folders section of Flex Builder?  These are for paths outside of
the main project path.  I would be fine with a way which involves
changing the project files directly, which I tried to do.  I also tried
adding the source paths as source-path parameters in the Additional
compiler arguments, but then auto-complete breaks.

Without relative paths, I can't create projects files that can be used
by a team without changes.  It's not that a big deal for me, but a bit
annoying.  -Brian


Re: [flexcoders] Adding a row at bottom in datagrid with total of all other rows

2007-01-12 Thread Janis Radins

I just tried to make same thing yesterday.
Collecting values is not a problem, and there is no problem with adding that
row to dataProvider.
Though I ran in huge problems while trying to keep that line on bottom of
dataGrid when user is rearanging data in table.
Code looked something like this:
 private function onSorting(event:DataGridEvent):void {
   setTimeout(function ():void {
   for(var i:uint = 0; idisplayTable.dataProvider.length;
i++){
   if(displayTable.dataProvider[i].num == ) {
   var totals:Object =
displayTable.dataProvider.removeItemAt(i);
   displayTable.dataProvider.addItem(totals);
   displayTable.invalidateList();
   return;
   }
   }
   }, 10);
   }
setTimeout is needed because DataGridEvent.HEADER_RELEASE is broadcasted
before actual rearranging of data.
This code actually never worked as I wanted to. I cought some strange tihngs
during testing like
displayTable.dataProvider.addItemAt(totals, 3);
trace(displayTable.dataProvider.getItemIndex(totals)); wont trace 3, but
last value, so theres maybe a bug in ArrayCollection class, or thats only me
who is doing something wrong.

Anyways, if someone has ideas how to keep one row constantly at bottom, I
preciate that.

Janis


RE: [flexcoders] Svn Flex

2007-01-12 Thread Brian Deitte
Well now I know where the random person who was IMing me (and I finally
had to ignore) came from... -Brian




From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of nitin jadhav
Sent: Friday, January 12, 2007 7:52 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Svn  Flex




can tact me
add me 
nitkav_god
nitin
9892516802
 




Here's a new way to find what you're looking for - Yahoo!
Answers
http://us.rd.yahoo.com/mail/in/yanswers/*http://in.answers.yahoo.com/




 



Re: [flexcoders] Datagrid Custom Renderer

2007-01-12 Thread Tom Chiverton
On Thursday 11 January 2007 10:25, Pradeep wrote:
 Is there a way to make the custom renderer aware of the data values
 passed to it?

It gets passed the whole row. Have you read the docs ?

-- 
Tom Chiverton
Helping to efficiently engineer interactive schemas



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 St 
James's Court Brown Street Manchester M2 2JF.  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 Law 
Society.

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 8008.

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] Anyone Using a Remote CF Server with Flex 2, Remoting?

2007-01-12 Thread Simeon Bateman

You got it doug.  Thats why i copy the services-config.xml file to a local
directory in my project and use the -services to tell flex builder how to
find it.  When I create  a new project I tell flex builder its a normal
project then I add the -services as a compiler argument.

This allows me to develop different applications for different servers
without having to manage them all in my main cf services-config file.

simeon


On 1/11/07, Douglas Knudsen [EMAIL PROTECTED] wrote:


  no way!  I thought that was for webservices or REST calls only.
Interesting, So I can have a SWF served from server A that connects to
server B via remoteobject if server B has a crossdomain file?   So, do I
need to compile against a services-config.xml that has the URI hardcoded
to server B to do this?

DK




[flexcoders] Re: Filters with DataGrid - Excel

2007-01-12 Thread phipzkillah
Sanjay,

Did you have any luck converting the DG Header Filter cell renderer to
Flex 2.0?  These are the cons that were posted with the code snippet:

CONS
1) you must maintain the same dataProvider.
2) sorting is no good. you might want to re-sort after a filter is
done (but providing events and what not are still something I need to
provide, probable a modelChanged event utilizing the eventName 'filter'

There is still a lot to do for this renderer to make it more usable,
but I figure I've gotten everyone to a dropping off point it shouldn't
be too hard. As I progress with this I'll post more to this thread

#

I'm not sure exactly what you are trying to do.  Do you just simply
want a combo-box that you select a field in the list and have it sort
the datagrid?  If so I believe you need to use an ArrayList collection
for your dataprovider.  

The link that I gave you earlier seems like it would be the best for
filtering a datagrid as you would be able to filter on each
field/column by clicking on the header and selecting an item - which
is exactly what Excel does.

If you were able to convert that datagrid header filter cell renderer
to Flex 2.0 can you please post the source up here?

-Phil

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

 Hi,
 
 I have tried it but facing a problem when I try to access 
 DataCollection from another MXML testCombo.mxml. 
 
 Please Suggest:::
 
 See the following Code:
 
 filterTest.mxml
 
 ?xml version=1.0 ?
 mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;  
 xmlns=../*  
 
 mx:Script
 ![CDATA[
   import mx.collections.ArrayCollection;
   import mx.core.ClassFactory;
 
 public var object2:Object = new Object();
 public var object:Object = new Object();
 [Bindable]
   

[Bindable]
public var authorsDataProvider : ArrayCollection = new 
 ArrayCollection( [
 { Country: USA, Gold: 35, Status:Active, 
 URL:http://www.google.com; },
 { Country: China, Gold: 32, 
 Status:Deactive,URL:http://www.yahoo.com},
 { Country: Russia, Gold: 27,Status:Deactive, 
 URL:http://www.hotmail.com; },
 { Country: India, Gold: 12, 
 Status:Active,URL:http://www.gmail.com},
 {Country: Russia, Gold: 27, 
 Status:Deleted,URL:http://www.hotmail.com; },
 {Country: Russia, Gold: 27, 
 Status:Deleted,URL:http://www.hotmail.com; } ]);
 
 ]]
 /mx:Script
 mx:Panel title=Header Filter width=100% height=100%
   mx:DataGrid id=grid dataProvider={authorsDataProvider} 
 width=100% height=100% sortableColumns=false   
 mx:columns
   mx:Array
 mx:DataGridColumn width=300 headerText=Country 
 dataField=Country /
 mx:DataGridColumn width=300 headerText=Value 
 dataField=Gold/
 mx:DataGridColumn width=300 headerText=Status 
 dataField=Status headerRenderer=testCombo/
 mx:DataGridColumn width=300 headerText=URL 
 dataField=URL/
   /mx:Array
 /mx:columns
   /mx:DataGrid
 /mx:Panel
 /mx:Application
 
 
 
 testCombo.mxml:
 
 
 ?xml version=1.0 encoding=utf-8?
 
 mx:HBox xmlns:mx=http://www.adobe.com/2006/mxml;
 mx:Label text=Sale Price!/
 mx:ComboBox id=cboAuthorsStatusFilter
 dataProvider={authorsStatusArray} 
 change=filterAuthorsGrid();
 
 
 
 !-- dataProvider={_parent._parent.gridData}--
   mx:Script
   ![CDATA[
   import mx.controls.Alert;
   import mx.collections.*;
   [Bindable]  
   public var authorsArray:Array = [All,
   Active,
   Deactive,
   Deleted];
   
[Bindable] 
   public var authorsStatusArray : Array = 
 populateAuthorsStatusArray(authorsArray);
 
   public function populateAuthorsStatusArray
 (authorsArray:Array):Array
   {
   //Alert.show
 (authorsArray: +authorsArray.toString())
   var statusArrayHashMap : Object = 
 new Object();   
   var statusArray : Array = new Array; 
   var n:int = authorsArray.length; 
   for (var i:int = 0; i  n; 
 i++) 
   {
   if (statusArrayHashMap
 [authorsArray] == undefined)
   
   {   
   statusArrayHashMap
 [authorsArray] = new Object();   
   statusArray.push
 (authorsArray[i]);
   } else
   {
   

RE: [cairngorm-devel] Re: [flexcoders] cairngorm flash lite/AS2 version

2007-01-12 Thread Alistair McLeod
Hi,
 
Things have gotten busier than expected here since Max, but the
Cairngorm Mobile Edition release is still on our plan to get out there. 
 
Please bear with us on this.
 
Best,
 
Alistair
 
PS. Please continue this discussion over at cairngorm-devel.
Cross-posting to both serves little purpose.



From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of greg h
Sent: 12 January 2007 06:46
To: flexcoders@yahoogroups.com; [EMAIL PROTECTED]
Subject: [cairngorm-devel] Re: [flexcoders] cairngorm flash lite/AS2
version



Robin,

I am not in the mobile space.  However at MAX Steven Webster had
Cairngorm 2 Mobile Edition on the roadmap.

Steven's slides (PDF downloadable at the link following) said Will be
available for download on Adobe Labs shortly  I just checked labs
and I still to not see it there.
http://weblogs.macromedia.com/swebster/archives/DevelopingNextGenRIAWith
Cairngorm2.pdf
http://weblogs.macromedia.com/swebster/archives/DevelopingNextGenRIAWit
hCairngorm2.pdf 
(Note:  In the PDF see pages 33-41)

Can anyone else give an update on the status of Cairngorm 2 Mobile
Edition?

g



On 11/28/06, Robin Burrer [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] 
wrote: 

Hi there,

I read that cairngorm has been back-ported for flash lite. Does
anyone know if there is a downloadable version available yet?

I guess that version could be used for any flash 8 - AS2
projects.


Cheers

Robin


 


[flexcoders] Faust - a method for using Flash in Hybrid HTML sites

2007-01-12 Thread Marc Jensen
Hi All,

I work at space150, and we've been creating hybrid HTML sites with
Flash content that is easy to update, search engine optimized, and
follows the progressive enhancement philosophy.  We've developed
this technique over the last year or so with a ton of help from the
community (sIFR and the like).

We finally put together a post about it with some next examples, and
we've dubbed it Faust (Flash Augmenting Standards).  If you're
interested in using Flash in this way, feel free to check it out:

  http://blog.space150.com/2007/1/11/faust-flash-augmenting-standards


Marc





Re: [flexcoders] making an entire hbox item linkable?

2007-01-12 Thread Tom Chiverton
On Thursday 11 January 2007 22:29, kasey.mccurdy wrote:
 any help is much appreciated

Have you seen the HistoryManager ?

-- 
Tom Chiverton
Helping to centrally synthesize unique e-tailers



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 St 
James's Court Brown Street Manchester M2 2JF.  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 Law 
Society.

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 8008.

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] Re: flex 2.0.1 feedback from the trenches (BUG with test case)

2007-01-12 Thread Tom Chiverton
On Wednesday 10 January 2007 10:47, Tom Chiverton wrote:
 Compile with 2.0 and all is well, both DataGrid have same columns.
 Compile with 2.0.1 and you get a spare empty column because it isn't
 hidden. For kicks, click the column header and watch the data appear.

I can restore normal functions by commenting out 'this.setStyle(left,1)' in 
the PrinatableDownloadableDatagird's _onResize() method.

Very, very odd.

-- 
Tom Chiverton
Helping to widespreadedly reintermediate best-of-breed infrastructures



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 St 
James's Court Brown Street Manchester M2 2JF.  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 Law 
Society.

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 8008.

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] Re: Minimized Panel

2007-01-12 Thread Merrill, Jason
The Flex2:Training From the Source book has you develop an
application that has panels with minimize/maximize buttons.
 
Just to add to that, I bought that book a few days ago, and am going
through the lessons and it's really great.  It's expensive, but well
worth it.

Jason Merrill 
Bank of America
Learning  Organizational Effectiveness 
  
  
  
  
  

 
http://geo.yahoo.com/serv?s=97359714/grpId=12286167/grpspId=1705007207/
msgId=61223/stime=1168632287/nc1=3848642/nc2=2/nc3=3 
 


[flexcoders] Re:Does Flex work with Java without FDS?

2007-01-12 Thread Juan Carlos Méndez

yes.. with openamf and
http://renaun.com/blog/flex-components/remoteobjectamf0/

--
Juan Carlos Méndez
Ingeniero de Sistemas.
Especialista en Telemática y Negocios Por Internet.
Consultor J2EE
Móvil: 300 8200601
[EMAIL PROTECTED]
[EMAIL PROTECTED]


[flexcoders] html renderer

2007-01-12 Thread mazarflex
im looking for a way to insert some html code into a field. is there 
some sort of html renderer? i want to use a hot spot linked State Map 
from dreamweaver.



[flexcoders] How to handle server side errors on the UI

2007-01-12 Thread Valy Sivec
Hello flexcoders,

I'm working on a project that uses HTTP services and I'm having difficulties 
catching the server side error on the client. In fact, I'd like to be able 
translate the  error code from the back-end to a meaningfull message to the 
client for certain error codes. 

It looks that faultString doesn't help me much. How do you guys deal with the 
server side errors on the client, if you want to have custom error messages 
depending on the error code?

Thanks,
Valy Sivec






 

No need to miss a message. Get email on-the-go 
with Yahoo! Mail for Mobile. Get started.
http://mobile.yahoo.com/mail 

[flexcoders] flexcoders == jupiter

2007-01-12 Thread Luis Eduardo


  This list is becomming HUGE!
  it is hard to read all messages.
  just one idea...
  why u guys (admin) dont split it ?   Perhaps one mailist for Flex 
Builder (the IDE for flex related.)  one for Cairgorm one for Charting 
and the flexcoders to the core ?
  (perhaps one for FDS too, dont know)
  here i dont use Cairgorm neither FDS.  Probably when people dont have 
huge project, they dont use too. I guess.

  just an idea...   its because is hard to read 120 email a day just for 
flexcoders...  plus 20 for flexcomponents  (expecially when arpan 
srivastava send all messages with copy to both lists  :)   )

  best regards,

 Luís Eduardo.





___ 
Yahoo! Mail - Sempre a melhor opção para você! 
Experimente já e veja as novidades. 
http://br.yahoo.com/mailbeta/tudonovo/
 



Re: [flexcoders] Dispatching an Event from a Class

2007-01-12 Thread Oliver Tupman

Hey Mike,

If I've understood the previous mails correctly you wish to implement
IEventDispatcher in a class that already derives from another? (i.e. your
ModelLocator).

If this is the case, then in your class that implement IEventDispatcher you
want to create an instance of EventDispatcher, for example:

package com.dts_workshop.flexcoders.eventDispatcher
{
   import flash.events.Event;
   import flash.events.IEventDispatcher;
   import flash.events.EventDispatcher;

   public class CustomEventDispatcher extends SomeOtherClass implements
IEventDispatcher
   {
   private var _dispatcher : EventDispatcher;

   public function CustomEventDispatcher() {
   _dispatcher = new EventDispatcher(this);
   }

   public function dispatchEvent(event:Event):Boolean
   {
   return _dispatcher.dispatchEvent(event);
   }

  // Rest of implementation 
}

EventDispatcher allows you to create an instance of it, passing in the class
that implements IEventDispatcher but cannot derive from EventDispatcher. Any
events raised will have the correct target.

For more information, take a look at the info for EventDispatcher in the
Flex 2 help.

Regards,

Oliver Tupman.

I hope that's what you're after.


[flexcoders] Does anyone know how to use this irc web client?

2007-01-12 Thread Rizwan S. Syed
Hello, I am new to adobe flex builder 2. I have been trying to compile 
the sources found at http://je2050.de/blog for flIRC web IRC client. I 
am unable to accomplish that. Can anyone tell me or guide me how can I 
do so.

Thanks in advance.



RE: [flexcoders] Need primer on Events, from the List Gurus -

2007-01-12 Thread Dimitrios Gianninas
what other thing do u want to do? give an example and we can take it from 
there.
 
Dimitrios Gianninas
RIA Developer
Optimal Payments Inc.
 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Mike 
Anderson
Sent: Friday, January 12, 2007 1:53 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Need primer on Events, from the List Gurus -



Hello All,

This thread, directly relates to all the other ones I've posted recently
- as I think one of my root problems, is truly understanding on how
Events get propagated within an application.

They say the Event model is so great, due to all the components being so
loosely coupled. So either I am missing something really rudimentary
here, or the Event model doesn't work the way I thought it did.

In every example I've seen, for an Event Listener and Broadcaster setup
to work properly, there must be a common link (like a container) between
the 2 components - and then, there are the 3 key things which must be in
place: The Event Listener, the Broadcaster, and the Function that gets
run whenever the Event gets triggered.

But what about the times, where I won't know for sure beforehand, which
component I will be using at the time? Especially in a Cairngorm
Application, where the Commands (which is where I desperately need to
broadcast my Custom Events from) literally NEVER know where their Result
Events are going to be sent. Of course, this is where the true power of
Cairngorm-based Applications comes into play.

All the Commands do really, is update the ModelLocater with their
updated results - and because of Data Binding, the Components in the
Application show the updated results. For me unfortunately, there is
always much more that needs to be done, after a Result is brought back -
and I need to find a way to tell my Application Components, to perform
their next task (based on a Custom Event, that I broadcast).

Can anybody show me how to Broadcast Events in such a manner, that they
get disseminated Application-wide??? This way, I don't need to know
beforehand, which Components will be Receiving the Events.

This is the final thing on my plate that I must figure out, then I can
FINALLY finish my app and find some peace in my life

Thanks in advance,

Mike



 

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

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



[flexcoders] Cairngorm 2.1 temporary 'stuff'

2007-01-12 Thread Oliver Tupman

Hi all,

I've just finished re-coding an application so that it uses Cairngorm 2.1,
and was wondering what other people did in a few situations that I came
across.

In Cairngorm the general idea is for the view to be bound to the model, or
for some code that watches for changes to the model and then updates the
view. The commands update the model, the stuff watching the model updates
the view. That's great, but what does everyone do for transitory parts of
their workflow, for something that comes and goes quite quickly?

For example, I have an initialisation routine that needs to set various bits
and pieces up in the application. I display a small window to the user
informing them of this process (I don't want to use the preloader). To me,
the Cairngorm methodology says to put some sort of initialisation status
data in the model, perhaps an array of tasks that need to be completed
before the application is ready to roll. My initialisation window should
then watch these items in the model.

To me it seems a tad wrong to put data that is required on a one-off basis
into the model, though I can't quite put my finger on what's bad about it.
Perhaps the fear that the model will become a dumping ground for every piece
of data, regardless of the lifetime of that data. Has anyone got another way
of doing this sort of thing or any thoughts on the matter?

Another similar area that I'm curious about is the subject of presenting
alerts to the user. A simple example is warning the user about deleting
something on the server that will result in other items being deleted too.
Let's say that the user decides to delete something from within the Flex
app, the app queries the server asking whether it's possible OK to delete
it, the server says not quite and so the app must ask the user what to do. I
think that a command in there is going to have to present the user with an
message of some description. I'd rather not tie a command to the Alert class
because I may want to use some sort of custom class to display the message
at a later date.

Anyone any ideas on that? The thought that pops into my head is to have some
sort of factory class that the command accesses to get some sort of alerter,
one of which could wrap/extend Alert, another could be a custom alerter
class. Or perhaps it would be better to make use of the ViewLocator?

Cheers,

Oliver Tupman.


Re: [flexcoders] 2.0.1 release - Patch?

2007-01-12 Thread Clint Tredway

I am using 2.0.1 with no issues...

On 1/12/07, Adam Reynolds [EMAIL PROTECTED] wrote:


  Hi Guys,
I'm assuming with the number of issues people are having with 2.0.1,
Adobe will be releasing a patch at some point?

Adam

 





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


[flexcoders] datagrid row moves up to the header when scrolled?

2007-01-12 Thread arpan srivastava
Hi All,

I am facing lot of problem with datagrid. In my datagrid i have area chart 
in each cell. When i scroll the datagrid down, then first row moves upto the 
header instead of disappearing and extra comes from down, so if you have 
rowcount as 3 you will see 4 rows with one row on the header. Is this a 
performance issue or a flex bug ?




 

Have a burning question?  
Go to www.Answers.yahoo.com and get answers from real people who know.

[flexcoders] Getting height of dynamically-adjusted component?

2007-01-12 Thread zzwi89
Here is what I am attempting to do:

I have a series of canvases that have a specified width. Each canvas
also has a different text string in it. The height of the canvas will
change based on the length of the text string. I would like to place
these in an HBox and have their heights equal to the tallest canvas.

All of this is being done programatically. When I try something like:

(hbox.getChildAt(0) as Canvas).height

I always get a return of 0. I know the height can't be zero, but there
it is. I would like to know the height, because I could then loop and
set the height of each canvas to the tallest.

An example I am working off of can be found here:
http://pastebin.com/857934

I appreciate any and all feedback!



[flexcoders] MDI, Cairngorm TitleWindow

2007-01-12 Thread Juan Carlos M.
Context:
I am trying to simulate a MDI application with TitleWindow
containers (poor's man MDI :P ) loading diferent forms compiled into
modules (flex 2.0.1)...   [server side: java, openamf, spring, hibernate]

I'am a newbie in flex 2.0.1 and Cairngorm 2.1 ... and have a couple of
questions... 

Questions
- How TitleWindow can be extended to support more buttons? (ie. help,
minimize, custom tools, ...) (something like this:
http://www.flex2components.com/screenshots/taskpanefx/examples/WorkSpaceApplicationExplorer.html
)

- Do singleton commands and models in Cairngorm could work in a MDI
(multiple document interface)? (I think that singleton models won't
work for some forms that user can load n times...)  [multiple
instances of models and callbacks in events could be a solution?]

thanks for your help





[flexcoders] Patterns for managing large collections of data model objects in ActionScript

2007-01-12 Thread johntwilger
Greetings,

I've been working the past few months on building a fairly complex
application using a Rails back-end and Flex front-end. It's just about
ready for release to our client, but I'm having trouble with one area
of the applications.

The application itself is a workflow tracking/automation and
softproofing application. The main sturcture of the app is such that
(at a high-level view) a user can select a set of filters based on
production data, apply those filter to get a result set that
consisting of View objects that are displayed in a datagrid, drag
certain Views from the result set into a lightbox, and then open one
of those Views in the softproofing screen.

The result set data grid, lightbox and softproofing screen all use
seperate data providers, so that -- for instance -- you can place a
View in the lightbox and then apply a different set of filters while
still keeping that view in the lightbox.

I'm using REST webservices to communicate between the Flex client and
the server (Ruby on Rails), and all results are returned in XML. When
a model object (on the Flex side) is hydrated from the XML, I place it
in a master collection that is independent of any display object's
data provider. When the object is placed in a display object's data
provider, it is referencing the object from this master collection.
This is to ensure that if the data for the object is updated by either
an action within the client or an update form the server, it is
updated everywhere that it is displayed.

I'm using (perhaps abusing, even ;-) ) Cairngorm for this project. The
master collections are stored as ArrayCollections on the
ModelLocator instance, and the model classes themselves refer to these
collections to keep track of the instances. So my ModelLocator might
be defined as:

## BEGIN Locator.as ##
[Bindable]
public class Locator implements ModelLocator
{
  private static var modelLocator:Locator;

  public static function getInstance():Locator {
if (modelLocator == null) {
  modelLocator = new Locator();
}
return modelLocator;
  }

  public function Locator() {
if (modelLocator != null) {
  throw new Error('Only one Locator should be instantiated!');
}
modelLocator = this;
  }

  public var views:ArrayCollection = new ArrayCollection();
  public var filteredViews:ArrayCollection = new ArrayCollection();
}
## END Locator.as ##

and the View class defined as:

## BEGIN View.as ##
[Bindable]
public class View
{
  public var id:Number;
  public var code:String;
  // more attributes defined as needed

  private static var model:Locator = Locator.getInstance();

  public function View(data:XML = null) {
if (data) {
  update(data);
}
  }

  public function update(data:XML):void {
this.id = Number(data.id);
this.code = data.code
// more attributes pulled from XML data s needed
  }

  public static function find(id:Number):View {
var cursor:IViewCursor = model.views.createCursor();
var view:View;
while (!cursor.afterLast) {
  var item:View = View(cursor.current);
  if (item.id == id) {
view = item;
break;
  }
  cursor.moveNext();
}
return view;
  }

  public static function addOrUpdate(data:XML):View {
var view:View = find(Number(data.id));
if (view) {
  view.update(data);
} else {
  view = new View(data);
  model.views.addItem(view);
}
return view;
  }
}
## END View.as ##

When a user applies a filter set to query for a set of views, the
following occurs:

1. a FiltersEvent is dispatched with type APPLY
2. the FrontController associates this event with an ApplyFiltersCommand
   instance and calls the execute method on it.
3. the execute method call a ViewDelegate to invoke the service
asynchronously.
4. the service returns an XML dataset and the result method is called
on the
   ApplyFiltersCommand instance

The result method is defined as:

## BEGIN ApplyFiltersCommand.as result method ##
public class ApplyFiltersCommand implements Command, IResponder
{
  private var model:Locator = Locator.getInstance();

  // execute and fault methods excluded for brevity

  public function result(data:Object):void
  {
var result:XMLListCollection = new
XMLListCollection(XML(data.result).children());
var cursor:IViewCursor = result.createCursor();
var views:Array = new Array();
while (!cursor.afterLast) {
  views.push(View.addOrUpdate(XML(cursor.current)));
  cursor.moveNext();
}
model.filteredViews.source = views;
  }
}
## END ApplyFiltersCommand.as result method ##

The result method sets up the data provider for the results data grid
as an ArrayCollection containing View objects. Rather than just
creating new View objects, it uses the View.addOrUpdate method to make
sure that, if a View object with the same id attribute is being used
elsewhere (in the lightbox, for instance), it's properties are updated
with whatever the server returns.

This approach works 

[flexcoders] Flex 2 profiler?

2007-01-12 Thread Reid Priedhorsky
Hi guys,

Do you have any suggestions on profiling my Flex 2 application? Any 
tools you like?

Thanks,

Reid


[flexcoders] Export FLEX page to PDF

2007-01-12 Thread Navert, Bruno \(IT\)
Hi flexcoders,
 
I'm evaluating FLEX as a solution to our reporting needs. One of our
requirements is the ability to build static PDF reports. I would like to
know whether it is possible to export the contents of a FLEX page into a
PDF document ?
 
A quick search yielded no promising results, so that's why I'm asking on
this mailing list.
 
If it is possible, can this be done server-side (without user
intervention) ? Or must it be in a browser window ?
 
thanks,
Bruno


NOTICE: If received in error, please destroy and notify sender. Sender does not 
intend to waive confidentiality or privilege. Use of this email is prohibited 
when received in error.


[flexcoders] Re: gradient itemrenderer and resize (charts)

2007-01-12 Thread vigen2000
it seems to be a small problem that is complicated to solve so it's in
low priority now. post the code if u manage to implement it.
thanks,
vigen

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

 Thanks Vigen!
 
 Were you able to fix the tooltip so it's border matches the column
 gradient color?
 
 -phil
 
 --- In flexcoders@yahoogroups.com, vigen2000 vigen2000@ wrote:
 
  try this out:
  
  var g:Graphics = graphics; 
  g.clear(); 
  var fill:LinearGradient = _linearGrad; //some gradient
  fill.angle = angle;   //put it in the right angle   
  g.moveTo(0,0);
  fill.begin(g,new Rectangle(0,0,width,height));
  g.lineTo(width,0);
  g.lineTo(width,height);
  g.lineTo(0,height);
  g.lineTo(0,0);  
  fill.end(g);
  
  --- In flexcoders@yahoogroups.com, phipzkillah pkrasko@ wrote:
  
   Vigen,
   
   Do you mind posting your source for the gradient item renderer?  I
   have tried to implement this, but was unsuccessful.
   
   Or if you can see where I went wrong here...
   
   private static const fills:Array = getColors();
 
 
 private static function getColors():Array{
 var gradients:Array = new Array();
 //Green - Registered
   
 var gradient:LinearGradient = new LinearGradient();
 var g1:GradientEntry = new GradientEntry(0x048f32,0);
 var g2:GradientEntry = new GradientEntry(0x8ed1a5,.2);
 var g3:GradientEntry = new GradientEntry(0x048f32,.4);  
 var g4:GradientEntry = new GradientEntry(0x59bd7d,.8);
 var g5:GradientEntry = new GradientEntry(0x04852e,1);
 
 gradient.entries = [g1,g2,g3,g4,g5];
   
 gradients.splice(-1,0,gradient);
 
 
 //Orange - Unregistered 
 gradient = new LinearGradient();
   
 g1 = new GradientEntry(0xff8500,0);
 g2 = new GradientEntry(0xfaaa5f,.2);
 g3 = new GradientEntry(0xff8500,.4);
 g4 = new GradientEntry(0xfeddbe,.8);
 g5 = new GradientEntry(0xff7b00,1);
 
 gradient.entries = [g1,g2,g3,g4,g5];
   
 gradients.splice(-1,0,gradient);
 
 //Red - Rejected
 gradient = new LinearGradient();
   
 g1 = new GradientEntry(0xa72323,0);
 g2 = new GradientEntry(0xb35f5f,.2);
 g3 = new GradientEntry(0xa72323,.4);
 g4 = new GradientEntry(0xd86456,.8);
 g5 = new GradientEntry(0xa92a2a,1);
 
 gradient.entries = [g1,g2,g3,g4,g5];
   
 gradients.splice(-1,0,gradient);
 
 //Blue - Unknown
 gradient = new LinearGradient();
   
 g1 = new GradientEntry(0x1414a1,0);
 g2 = new GradientEntry(0x503a88,.2);
 g3 = new GradientEntry(0x1414a1,.4);
 g4 = new GradientEntry(0x928ec,.8);
 g5 = new GradientEntry(0x99,1);
 
 gradient.entries = [g1,g2,g3,g4,g5];
   
 gradients.splice(-1,0,gradient);
 
 return gradients;
 }
   
   override protected function updateDisplayList(unscaledWidth:Number,
 
 unscaledHeight:Number):void
 {
 super.updateDisplayList(unscaledWidth, unscaledHeight);
 
 var fill:Number = (_chartItem == null)? 
   0:fills[_chartItem.index %
   fills.length];
 
 
 var rc:Rectangle = new Rectangle(0, 0, width , height );
 
 var g:Graphics = graphics;
 g.clear();  
 g.moveTo(rc.left,rc.top);
 g.beginFill(fill);
 g.lineTo(rc.right,rc.top);
 g.lineTo(rc.right,rc.bottom);
 g.lineTo(rc.left,rc.bottom);
 g.lineTo(rc.left,rc.top);
 g.endFill();
 }
   
   --- In flexcoders@yahoogroups.com, vigen2000 vigen2000@ wrote:
   
Hi,

i have a weired thing going on. i implemented a gradient
 itemrenderer
for the series to color the bars according to the data. all
 works well
until i resize the chart with AS. the bars are covering each
 other in
an ugly way. only recreating the object solve the problem
(scrolling
out of the chart and scrolling back)

any ideas?


[flexcoders] how to draw over an image

2007-01-12 Thread dodger6135396
Using ActionScript3.0 and Flex2.0.1 I want to display an image
/photograph. Then I want to draw shapes on top of this image, but I
dont want to alter the image. For example the  image would be located
at x=0, y=0, width = 320 and height = 240, then at a Z order higher
above the image a transparent something located at the same
coordinates would allow the user to highlight parts of the image.
Please is this even possible?. Is there a technique for doing this?.

Thanks in anticipation.



RE: [flexcoders] Export FLEX page to PDF

2007-01-12 Thread Merrill, Jason
It is possible, I searched a while back for a similar solution and found
some .NET components that would do it (not from Flex/Flash, but from
data inputs - you would send your app data to a script like c# which
would send the required data to the .NET component which would spit out
the PDF).  You should be able to find some solutions with some Googling.

 

Jason Merrill 
Bank of America
Learning  Organizational Effectiveness 
  
  
  
  
  

 




From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of Navert, Bruno (IT)
Sent: Friday, January 12, 2007 1:38 PM
To: flexcoders@yahoogroups.com
Cc: Brodeur, David (IT)
Subject: [flexcoders] Export FLEX page to PDF




Hi flexcoders,
 
I'm evaluating FLEX as a solution to our reporting needs. One of
our requirements is the ability to build static PDF reports. I would
like to know whether it is possible to export the contents of a FLEX
page into a PDF document ?
 
A quick search yielded no promising results, so that's why I'm
asking on this mailing list.
 
If it is possible, can this be done server-side (without user
intervention) ? Or must it be in a browser window ?
 
thanks,
Bruno



NOTICE: If received in error, please destroy and notify sender.
Sender does not intend to waive confidentiality or privilege. Use of
this email is prohibited when received in error.



 



Re: [flexcoders] FDS 2.0.1 API Java Docs?

2007-01-12 Thread Thijs Triemstra
The documentation .zip, including fds 2.0.1 api, is on http:// 
www.adobe.com/support/documentation/en/flex/ (bottom of page)


Thijs


Op 12-jan-2007, om 16:33 heeft Dirk Eismann het volgende geschreven:

Have the JavaDocs for the server side FDS API been updated for  
2.0.1? If

so, where can we download it from?

Dirk.






RE: [flexcoders] Cairngorm / MVC Best Practice

2007-01-12 Thread Stembert Olivier (BIL)
I don't know. Why is it still in the framework? 

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Tom Chiverton
Sent: Friday, January 12, 2007 10:16 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Cairngorm / MVC Best Practice

On Friday 05 January 2007 16:07, Stembert Olivier (BIL) wrote:
 the view and the command are better decoupled with the ViewHelper 
 pattern, no?

ViewHelper isn't recommended anymore, is it ?

--
Tom Chiverton
Helping to competently compete 24/7 mindshares



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 St James's Court Brown Street Manchester M2 2JF.  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 Law Society.

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
8008.

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




-
An electronic message is not binding on its sender.
Any message referring to a binding engagement must be confirmed in
writing and duly signed.
-


-
An electronic message is not binding on its sender.
Any message referring to a binding engagement must be confirmed in writing and 
duly signed.
-



[flexcoders] Re: Should I be using States to switch between views?

2007-01-12 Thread boy_trike
I have found that using states is the best solution for me.  Remember you can 
add OR remove 
items from your view and if you are using components, just by removing 1 or 2 
of them, the 
view can drastically change.  Also, states lets you base a state on a previous 
one so there is 
very little code required:   Also, since you can have a function called when 
the state has been 
instantiated, I have found that a great place to call any startup function 
(which can be a 
problem since everything in flex is Async. 

Bruce



RE: [flexcoders] relative paths in the Source paths of Flex Builder

2007-01-12 Thread Dimitrios Gianninas
I dont think you can and thats one of my pet peeves as well, I'm would file for 
an enchancement.
 
Dimitrios Gianninas
RIA Developer
Optimal Payments Inc.
 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Brian 
Deitte
Sent: Friday, January 12, 2007 3:01 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] relative paths in the Source paths of Flex Builder



Does anybody know how to create a relative path in the Additional
source folders section of Flex Builder? These are for paths outside of
the main project path. I would be fine with a way which involves
changing the project files directly, which I tried to do. I also tried
adding the source paths as source-path parameters in the Additional
compiler arguments, but then auto-complete breaks.

Without relative paths, I can't create projects files that can be used
by a team without changes. It's not that a big deal for me, but a bit
annoying. -Brian


 

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

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



[flexcoders] Re: Customizing the index.template.html wrapper

2007-01-12 Thread dario.drome
Ben,
That's great!... it is what I need.

Thank you very much.

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

 http://www.morearty.com/blog/2006/12/11/changing-the-filenames-in-
flex-builder-html-templates/
 
 HTH,
 Ben
 
 
 
 --- In flexcoders@yahoogroups.com, dario.drome dario.drome@ 
wrote:
 
  Hello Flexcoders,
  I'm trying to figure out if there is a way to change the usual 
  behaviour of the flex builder's generated html wrapper:
  
  I want that the final html hosting my swf is an html generated by 
an 
  aspx page on the server. Thus, I would like to configure 
FlexBuilder in 
  such a way that it uses my own, let's say, index.template.aspx 
to 
  have myFlexApp.aspx and myFlexApp-Debug.aspx generated at 
output.
  
  If I replace the standard index.template.html with 
  an index.template.aspx, I get only one index.aspx at output 
which 
  is the debug version (I think that FlexBuilder generates the 
release 
  version first and then, it overwrites it with the debug version)
  
  Is there any way possibility to do this?
  
  Thank you in advance.
 





[flexcoders] Drawing a custom component in offscreen

2007-01-12 Thread dario.drome
Hello,
I would like to know if it is possible to draw a component in a Bitmap.
I have a custom component that graphically render some data tha user 
has input. I do no want to display it on screen but I would need to 
convert it to bimap data and send it to the server for storing.

I am able to do that if I first display the component on screen and 
then draw it in a BitmapData.

Any ideas?

Thank you in advance.



Re: [flexcoders] flexcoders == jupiter

2007-01-12 Thread Diego Guebel
Hi Eduardo,
There are list for cairngorm and components already:  
cairngorm-devel.yahoogroups.com and flexcomponents.yahoogroups.com




On Sat, 13 Jan 2007 11:02:18 +1300, Luis Eduardo  
[EMAIL PROTECTED] wrote:



   This list is becomming HUGE!
   it is hard to read all messages.
   just one idea...
   why u guys (admin) dont split it ?   Perhaps one mailist for Flex
 Builder (the IDE for flex related.)  one for Cairgorm one for Charting
 and the flexcoders to the core ?
   (perhaps one for FDS too, dont know)
   here i dont use Cairgorm neither FDS.  Probably when people dont have
 huge project, they dont use too. I guess.

   just an idea...   its because is hard to read 120 email a day just for
 flexcoders...  plus 20 for flexcomponents  (expecially when arpan
 srivastava send all messages with copy to both lists  :)   )

   best regards,

  Luís Eduardo.




   
 ___
 Yahoo! Mail - Sempre a melhor opção para você!
 Experimente já e veja as novidades.
 http://br.yahoo.com/mailbeta/tudonovo/





--
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/
 


[flexcoders] Todays date without the Time

2007-01-12 Thread boy_trike
using: var X : Date = new Date(); returns the current date and time.  What is 
the easiest way 
to just get the date (with the time set to midnight).

thanks
Bruce



Re: [flexcoders] Should I be using States to switch between views?

2007-01-12 Thread Ralf Bokelberg

If you need to switch the complete view, a viewstack is the easier solution
imho.
Cheers,
Ralf.

On 1/12/07, erikbianchi [EMAIL PROTECTED] wrote:


  I'm a flex n00b but long time Flash Developer and am having some
trouble dealing with states.

Basically, I can get State:AddChild to work, but this only adds a
component / ui element to an existing view.

What I'm looking to do is toggle between two completely separate
views. For example:

Login View:
Username Label / TextInput
Password Label / TextInput
Submit Button

Userinfo View:
User pictures
Bio
etc

So when the app first loads it displays the Login View and if the
user logins correctly I get ride of the login view and display the
UserInfo View. This view looks completely different then the Login so
I don't think I want to use AddChild, but then again I have no idea.

My terminology may be all wrong here so my apologies. =)

Help!

-erik

 





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


Re: [flexcoders] flexcoders == jupiter

2007-01-12 Thread Stacy Tyler Young
And/or if you can sort messages by conversation ...much easier IMO.

-Stace


On 1/12/07 5:26 PM, Diego Guebel [EMAIL PROTECTED] wrote:

 Hi Eduardo,
 There are list for cairngorm and components already:
 cairngorm-devel.yahoogroups.com and flexcomponents.yahoogroups.com
 
 
 
 
 On Sat, 13 Jan 2007 11:02:18 +1300, Luis Eduardo
 [EMAIL PROTECTED] wrote:
 
 
 
   This list is becomming HUGE!
   it is hard to read all messages.
   just one idea...
   why u guys (admin) dont split it ?   Perhaps one mailist for Flex
 Builder (the IDE for flex related.)  one for Cairgorm one for Charting
 and the flexcoders to the core ?
   (perhaps one for FDS too, dont know)
   here i dont use Cairgorm neither FDS.  Probably when people dont have
 huge project, they dont use too. I guess.
 
   just an idea...   its because is hard to read 120 email a day just for
 flexcoders...  plus 20 for flexcomponents  (expecially when arpan
 srivastava send all messages with copy to both lists  :)   )
 
   best regards,
 
  Luís Eduardo.
 
 
 
 
 
 ___
 Yahoo! Mail - Sempre a melhor opção para você!
 Experimente já e veja as novidades.
 http://br.yahoo.com/mailbeta/tudonovo/
 
 
 
 
 
 --
 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] how to draw over an image

2007-01-12 Thread dodger6135396
Using ActionScript3.0 and Flex2.0.1 I want to display an image
/photograph. Then I want to draw shapes on top of this image, but I
dont want to alter the image. For example the  image would be located
at x=0, y=0, width = 320 and height = 240, then at a Z order higher
above the image a transparent something located at the same
coordinates wouls allow the user to highlight parts of the image.
Please is this even possible. Is there a technique for doing this.

Thanks in anticipation.



[flexcoders] How do you get the color changed for a Radio Button Label for mouseOnRollOver ?

2007-01-12 Thread helihobby
How do you get the color changed for a Radio Button Label ?

I changed the label color no problem using the CSS ( or Inlline Tag ) 
using the color: #FF no problem.

But I can't seem to be able to change the color of the lable text WHEN 
THE MOUSE is over it.

I tried a few tags and nothing worked ... any idea ?

Thank you for all the help,

Sean.



[flexcoders] Where do you download Flex 2.0.1 ?

2007-01-12 Thread helihobby
Where do you download the newer 2.0.1 version ?
Regards,
Sean.



Re: [flexcoders] Adobe Labs XMPP errors

2007-01-12 Thread Daniel Dura

Hey Kevin,

I found a few more issues and fixed them yesterday. The code is now in the
Google Code svn repository. The project is called as3xmpp. You may want to
do a clean sync from that location.

http://code.google.com/p/as3xmpp/

- Danny

On 1/10/07, Kevin Newman [EMAIL PROTECTED] wrote:


  Hi Danny,

Thanks for adding that file, that seemed to clean up a lot of the
compile errors. There is still one error though, there does not seem to
be a definition for PacketExtension, which is referenced in several
places in mx.collaboration.xmpp.protocol.packets.Packet.as

I've also noticed that there are a few references to a import
mx.collaboration.xmpp.protocol.extensions package, but do not see that
in the SVN repository. I tried making a dud PacketExtension Class to see
if I could get it to compile, but then I got errors about the
ExtensionManager class being missing (in the extensions package
presumably).

Like I said, I'm just playing around with this and XIFF so far. I'm not
doing anything critical with it, so there's no pressure (at least not
from me). :-)

I'm still using the labs svn btw.

Thanks,

Kevin N.

Daniel Dura wrote:
 Kevin,

 I added the file. You should be able to update from the labs
 repository and get the file. I will be moving to Google Code later
 today, so future updates will be added there.

 Let me know if you have any other issues.

 - Danny

 On 1/9/07, *Kevin Newman* [EMAIL PROTECTED] CaptainN%40unfocus.com
 mailto:[EMAIL PROTECTED] CaptainN%40unfocus.com wrote:

 Danny,

 Sweet! I'll just wait for the update, but there's honestly no
 rush, I am
 really just playing around at this point.

 Thanks for the quick response. :-)

 Kevin N.

 Daniel Dura wrote:
  Hey Kevin
 
  I am actually getting ready to move the XMPP library over to Google
  Code today, and will fix that bug. Basically, there is a namespace
  called 'xmpp_internal' that I am using. You should be able to define
  it yourself (the package location for that namespace should be
  specified in the imports for Packet.) and work around it until I
  update. Or if you can wait until this afternoon I will have an
 update
  for you.
 
  - Danny
 
 
  On 1/9/07, *Kevin Newman* [EMAIL PROTECTED]CaptainN%40unfocus.com
 mailto:CaptainN% CaptainN%2540unfocus.com
  mailto:[EMAIL PROTECTED] CaptainN%40unfocus.com mailto:
CaptainN% CaptainN%2540unfocus.com wrote:
 
  Hello,
 
  I have been getting some errors trying to compile the XMPP library
  from
  Adobe Labs.
 
  It seems that the namespace xmpp_internal is not defined
  anywhere, and
  there is no class for PacketExtension which is used several
  times in
  Packet.as http://Packet.as  http://packet.as/.
 
  Is there a solution to these problems? Or should I wait for an
  update,
  or use XIFF?
 
  Thanks,
 
  Kevin N.
 
  P.S. Here are the errors:
 
  Severity Description Resource In Folder Location Creation
  Time Id
  2 1004: Namespace was not found or is not a compile-time constant.
  XMPPStream.as
  xmpp/src/actionscript3/mx/collaboration/xmpp/protocol line 48
  January 8, 2007 6:06:01 PM 68
  2 1004: Namespace was not found or is not a compile-time constant.
  Packet.as http://Packet.as  http://packet.as/
  xmpp/src/actionscript3/mx/collaboration/xmpp/protocol/packets line
  51 January 8, 2007 6:06:01 PM 67
  2 1004: Namespace was not found or is not a compile-time constant.
  Packet.as http://Packet.as  http://packet.as/
  xmpp/src/actionscript3/mx/collaboration/xmpp/protocol/packets line
  62 January 8, 2007 6:06:01 PM 66
  2 1046: Type was not found or was not a compile-time constant:
  PacketExtension. Packet.as http://Packet.as  http://packet.as/
  xmpp/src/actionscript3/mx/collaboration/xmpp/protocol/packets line
  187 January 8, 2007 6:06:01 PM 62
  2 1046: Type was not found or was not a compile-time constant:
  PacketExtension. Packet.as http://Packet.as  http://packet.as/
  xmpp/src/actionscript3/mx/collaboration/xmpp/protocol/packets line
  193 January 8, 2007 6:06:01 PM 63
  2 1046: Type was not found or was not a compile-time constant:
  PacketExtension. Packet.as http://Packet.as  http://packet.as/
  xmpp/src/actionscript3/mx/collaboration/xmpp/protocol/packets line
  207 January 8, 2007 6:06:01 PM 64
  2 1046: Type was not found or was not a compile-time constant:
  PacketExtension. Packet.as http://Packet.as  http://packet.as/
  xmpp/src/actionscript3/mx/collaboration/xmpp/protocol/packets line
  237 January 8, 2007 6:06:01 PM 65
 
 
 


 



[flexcoders] Modules Example and Tutorial

2007-01-12 Thread phillips1021
Peter Ent has posted an excellent example of how to use modules,
including how to communicate with modules and handle module events. 
See: 
http://weblogs.macromedia.com/pent/archives/2007/01/building_module.cfm

His example and explanations answer many of the questions I've seen
lately about Modules.  He includes a complete code download.






[flexcoders] Re: Compile sizes of swf file getting bigger and bigger

2007-01-12 Thread patricklemiuex
This is not the answer to my problem, thanks tho.

Patrick


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

 
 Make sure your swf files / extensions are marked as binary in CVS. It 
 could be that its checking it in as ascii, which might explain the file 
 size increase.
 
 patricklemiuex wrote:
 
  Any body notice the size of their swf files increasing after
  committing to a cvs server. I am having an issue where my swf file
  went from 490 to 1.7 meg.
 
  To fix this I have to check out my project into a new workspace. This
  happens every time I commit.
 
  Thanks,
  Patrick
 
 





[flexcoders] Re: how to draw over an image

2007-01-12 Thread patricklemiuex
Quite simply you can create a VBox, HBox or Canvas, add a SWFloader
then add a UIcomponent to draw what you want, stacking order is all
based on adding Children to the display object. Here's a sample of
some code I used to add a horizontal Gradient Bar inside and HBox for
a poll and quiz app... I hope this helps you out.

Patrick




var myUIComponent:UIComponent = new UIComponent;
tileHolder.addChild(myUIComponent);
var colors:Array = [0xFEAF39,0xFF9900];
var barHeight:Number = 25;
var barWidth:Number = 270;

if (leftMove==true) imageHolder.width = 0;
if (leftMove!=true) barWidth = (barWidth - 
imageHolder.width);

textHolder.width = barWidth;
textHolder.maxWidth = barWidth;

if (yesno==true) colors = [0xBD0202,0xFF];
if ((yesno==true)(i%2!=1)) colors = 
[0x009900,0x00FF00];

if (quiz==true) colors = [0xBD0202,0xFF];
if ((quiz==true)(setCorrect==true)) colors = 
[0x009900,0x00FF00]; 

var _backSprite:Sprite = new Sprite();
var matrix:Matrix = new Matrix();


matrix.createGradientBox(barWidth,barHeight,0,0,0);

var alphasGrey:Array = [10,10];
var ratiosGrey:Array = [0x00,0xFF];
var colorsGrey:Array = [0xCC,0x66]; 
_backSprite.graphics.lineStyle();

_backSprite.graphics.beginGradientFill(GradientType.LINEAR,colorsGrey,alphas,ratiosGrey,matrix);

_backSprite.graphics.drawRect(0,0,barWidth,barHeight+2);
_backSprite.graphics.endFill();
_backSprite.alpha=.2;

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

 Using ActionScript3.0 and Flex2.0.1 I want to display an image
 /photograph. Then I want to draw shapes on top of this image, but I
 dont want to alter the image. For example the  image would be located
 at x=0, y=0, width = 320 and height = 240, then at a Z order higher
 above the image a transparent something located at the same
 coordinates would allow the user to highlight parts of the image.
 Please is this even possible?. Is there a technique for doing this?.
 
 Thanks in anticipation.





Re: [flexcoders] Export FLEX page to PDF

2007-01-12 Thread Kevin
I struggled (and am still struggling) with this very topic while  
designing Flash applications and ultimately bought a component for  
Flash called blazepdf (http://blazepdf.com).  It can't do everything,  
but it allowed me to dynamically create reports which could be  
printed or sent as PDF data to wherever you desire (attach to email  
or stream to desktop)  There are many limitation to this, some of  
which come from the limitations within Flash, but I was able to use  
it pretty successfully to get what I needed AND have created  
thousands of pages of reports with this.  (If you need help using it,  
let me know.)


You could also use a scripting language like PHP to construct pdf's  
very easily however, the advantage to blazepdf if that it allows the  
user to preview what you build and can act as a print preview and PDF  
creator all-in-one  (thank you greg!)


My biggest questions which I have posted to the list (but not gotten  
any answer to) is whether it is possible to use Flash to design a  
mini SWF Print Module AND then load it into Flex when I need it to  
handle my printing  PDF creation.   I am going to be trying this  
soon, so I will let you know if I can get it to work.  I am pretty  
sure the blazepdf component uses AS2 so I don't know if that will  
pose problems??


I have also approached greg (the creator of blazepdf) a number of  
times to see if I could help build his component into a Flex  
component.  I wouldn't be too hard to replicate the interface in  
Flex, and then port the AS2 to AS3, but I haven't seen the code so I  
don't know for certain the level of difficulty.  Unfortunately, I  
haven't heard from greg either.


If FlexPaper could output to PDF that could be a great solutions as  
well.  I know you can go PDF to SWF, but it seems most products don't  
convert the other way.


Ultimately (if anyone at Adobe is listening) my wish list is the  
following:


1. Create a similar blaze PDF or FlashPaper like component for  
printing  print preview (which can output contents to a printer as  
well as PDF).

AND
2. Create a better print class which can control the user's print  
window more than is possible now.


Flex is great, FlashPaper is great, and PDF's are needed (and the  
standard in my business) .   The same company owns them all. It  
should be easy right?


I would think that printing  report creation are of major importance  
to many RIA developers.


I am happy to help with coding a Flex solution

- Kevin





On Jan 12, 2007, at 1:38 PM, Navert, Bruno ((IT)) wrote:



Hi flexcoders,

I'm evaluating FLEX as a solution to our reporting needs. One of  
our requirements is the ability to build static PDF reports. I  
would like to know whether it is possible to export the contents of  
a FLEX page into a PDF document ?


A quick search yielded no promising results, so that's why I'm  
asking on this mailing list.


If it is possible, can this be done server-side (without user  
intervention) ? Or must it be in a browser window ?


thanks,
Bruno
NOTICE: If received in error, please destroy and notify sender.  
Sender does not intend to waive confidentiality or privilege. Use  
of this email is prohibited when received in error.








[flexcoders] Re: Submenus that open up to the left

2007-01-12 Thread graysonpierce
Still stuck on this.  All my attempt have resulted in movement of the
menu.  Submenus seem impossible to move.

If anyone has any suggestions, I'd really appreciate it.


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

 Hello,
 
 I have a menu that is aligned to the right side of the screen which
 doesn't leave any screen real-estate for submenus so I'd like to have my
 submenus open up to the left.
 
 As an example, Windows Media Player does their application menus this
 way if you access it with the down button next to window
 minimize/maximize icons.
 
 Here is a screenshot:
 
 http://aycu22.webshots.com/image/8101/2000880980537753248_rs.jpg
 
 I looked into openSubMenu function of Menu but can't seem to get over
 the mx_internal issues and don't know where to get row to pass into it.
 
 override mx_internal function openSubMenu(row:IListItemRenderer):void
 
 There must be an easier solution.
 
 GP





[flexcoders] Dispatch and Listen for events?

2007-01-12 Thread malik_robinson
Hi,

I am not using Cairngorm or anything yet, but trying to learn to build
some of this on my own through tutorials, books, etc.

I am trying to build a basic login and I created a custom component
called LoginPanel.mxml, and created a LoginEvent.as.   I call
LoginPanel.mxml in my Main application file by doing:
comps:LoginPanel /  My goal is to let the user click the login button,
create a loginEvent then dispatch the event, finally have some event
listener on the other end receive notification then make a call to my
Remote Object in my Services.mxml file.  I think once I get to the
remote Object call I can fiddle my way from there.

I am confused on how and where to tie my event listener in and once
the listener receives notification, the code that follows.

I have a private function in LoginPanel.mxml (my login form)  called
doLogin().  Code is shown below:

 private function doLogin():void {

 var loginEvent:LoginEvent = new
LoginEvent(username.text, password.text);
 this.dispatchEvent(loginEvent);

 }
}

My LoginEvent.as code is here:

package com.adobe.events {

 import flash.events.Event;
 import flash.events.EventDispatcher;

 public class LoginEvent extends Event{

 public var username : String;
 public var password : String;

 // constructor function
 public function LoginEvent( username:String, password:String ) {
 this.username = username;
 this.password = password;
 }

 }

}

Is this correct?

Thanks in advance for any assistance...





[flexcoders] Webservices request serialization issues.

2007-01-12 Thread Dima Gutzeit
Hi,

I am using Flex 2.0.1 based application to communicate with web services 
written in Java (JAXWS). 
System should send requests using complex objects with nested structure and it 
does it ok.

The problem appears when I have inheritance in the object graph.

I have base class X , two derived classes, Y and Z, and two more YA and ZA.
x - y - ya

x - z - za

X contains common fields such as ID and NAME.

Object that I send contains reference to the base class X, but the instance of 
the objects is YA or ZA.

When the request is being sent, I can see only the common properties taken from 
X, and none of the impl specific fields, although wsdl/schema defines those.

When I change the reference type to Y or Z I get the same behavior, so the only 
way is to define reference to YA and ZA directly, which is not a nice way to go.

Now the funny part that the situation is being solved if I move the common 
fields from x to y and z (duplicate the fields), and leave the X class empty !!!
But this approach stops working if I use array of objects, and not only one.

Can anyone shed some light of the serialization logic in case of inheritance?

One more thing, what is the way Flex deals with inheritance when reference is 
not the final impl, but to the base class ??? Other WS entities would use 
techniques such as xsi:type definitions in the dispatched XML ...

For now I am solving it by adding field to each derived class, with the actual 
class name, catch it on the server side, and add xsi:type manually, but this 
way is not the one I would like to stick with 

Thanks in advance.

Regards,
Dima Gutzeit.

[flexcoders] Re: Where do you download Flex 2.0.1 ?

2007-01-12 Thread helihobby
--- In flexcoders@yahoogroups.com, helihobby [EMAIL PROTECTED] wrote:

 Where do you download the newer 2.0.1 version ?
 Regards,
 Sean.


Found it ... on Adobe / Flex / Support page ...





Re: [flexcoders] Export FLEX page to PDF

2007-01-12 Thread [EMAIL PROTECTED]
I have a requirement right now to generate flex charting components to a pdf 
file, it looks like I'm going to have to use one of the tools that can hit a 
url and then write a image file from the browser and then convert that to a pdf 
(all server side) which is a bit of a pain.

let me know what you find, I'd love to see something from mm.

Grant

- Original Message -
From: Kevin [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: 1/12/07 8:47 PM
Subject: Re: [flexcoders] Export FLEX page to PDF

 I struggled (and am still struggling) with this very topic while  
 designing Flash applications and ultimately bought a component for  
 Flash called blazepdf (http://blazepdf.com).  It can't do everything,  
 but it allowed me to dynamically create reports which could be  
 printed or sent as PDF data to wherever you desire (attach to email  
 or stream to desktop)  There are many limitation to this, some of  
 which come from the limitations within Flash, but I was able to use  
 it pretty successfully to get what I needed AND have created  
 thousands of pages of reports with this.  (If you need help using it,  
 let me know.)
 
 You could also use a scripting language like PHP to construct pdf's  
 very easily however, the advantage to blazepdf if that it allows the  
 user to preview what you build and can act as a print preview and PDF  
 creator all-in-one  (thank you greg!)
 
 My biggest questions which I have posted to the list (but not gotten  
 any answer to) is whether it is possible to use Flash to design a  
 mini SWF Print Module AND then load it into Flex when I need it to  
 handle my printing  PDF creation.   I am going to be trying this  
 soon, so I will let you know if I can get it to work.  I am pretty  
 sure the blazepdf component uses AS2 so I don't know if that will  
 pose problems??
 
 I have also approached greg (the creator of blazepdf) a number of  
 times to see if I could help build his component into a Flex  
 component.  I wouldn't be too hard to replicate the interface in  
 Flex, and then port the AS2 to AS3, but I haven't seen the code so I  
 don't know for certain the level of difficulty.  Unfortunately, I  
 haven't heard from greg either.
 
 If FlexPaper could output to PDF that could be a great solutions as  
 well.  I know you can go PDF to SWF, but it seems most products don't  
 convert the other way.
 
 Ultimately (if anyone at Adobe is listening) my wish list is the  
 following:
 
 1. Create a similar blaze PDF or FlashPaper like component for  
 printing  print preview (which can output contents to a printer as  
 well as PDF).
 AND
 2. Create a better print class which can control the user's print  
 window more than is possible now.
 
 Flex is great, FlashPaper is great, and PDF's are needed (and the  
 standard in my business) .   The same company owns them all. It  
 should be easy right?
 
 I would think that printing  report creation are of major importance  
 to many RIA developers.
 
 I am happy to help with coding a Flex solution
 
 - Kevin
 
 
 
 
 
 On Jan 12, 2007, at 1:38 PM, Navert, Bruno ((IT)) wrote:
 
 
  Hi flexcoders,
 
  I'm evaluating FLEX as a solution to our reporting needs. One of  
  our requirements is the ability to build static PDF reports. I  
  would like to know whether it is possible to export the contents of  
  a FLEX page into a PDF document ?
 
  A quick search yielded no promising results, so that's why I'm  
  asking on this mailing list.
 
  If it is possible, can this be done server-side (without user  
  intervention) ? Or must it be in a browser window ?
 
  thanks,
  Bruno
  NOTICE: If received in error, please destroy and notify sender.  
  Sender does not intend to waive confidentiality or privilege. Use  
  of this email is prohibited when received in error.
 
 
  



[flexcoders] Re: AC Observe Tag

2007-01-12 Thread Bjorn Schultheiss
Hey Alex,

yes,

not the 'smallest tag ever' version

This is something i would like really like to get working as i have a
lot of use for it.



regards,

Bjorn

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

 Hi Bjorn,
  
 are you using the extended version of Observe?
 http://weblogs.macromedia.com/auhlmann/archives/2006/09/using_binding_s.
 cfm#more
  
 Best,
 Alex
  
 
Alex Uhlmann 
 Consultant (Rich Internet Applications)
 Adobe Consulting
 Westpoint, 4 Redheughs Rigg, 
 South Gyle, Edinburgh, EH12 9DQ, UK
 p: +44 (0) 131 338 6969
 m: +44 (0) 7917 428 951
 [EMAIL PROTECTED]
 http://weblogs.macromedia.com/auhlmann
 
  
 
 
 
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of Bjorn Schultheiss
 Sent: 12 January 2007 05:09
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] AC Observe Tag
 
 
 
 More or less this post is a question. 
 
 With regards to the use of Adobe Consulting's Observe utility i'm not
 getting the expected result.
 
 I've got some simple code where i wish to execute a function when a
 value gets set via binding.
 When i create my Observe instance the value has not yet been set.
 
 The unexpected result is that,
 1. The callbackHandler gets fired immediately after i set
 observe.handler, even though the value i have set to observe.source is
 == null
 2. The callbackHandler is not getting called when the value does get
 set.
 
 Here's my code anyway.
 
 private function init():void
 {
 var ac:Observe = new Observe();
 ac.source = distribMap_model.templateSwfAsset;
 ac.handler = playTemplatePreview;
 }
 
 private function playTemplatePreview(e:*):void
 {
 trace('playTemplatePreview');
 }
 
 private var model:AMModelLocator = AMModelLocator.getInstance();
 [Bindable]
 private var distribMap_model:DistribMappingModel =
 model.tc_model.distribMap_model;





RE: [flexcoders] Need primer on Events, from the List Gurus -

2007-01-12 Thread Mike Anderson
Hello Dimitrios,
 
I was trying to keep my post as generic as possible - which is why I didn't 
post specifics.
 
In this particular instance however, I want to broadcast a Custom Event to a 
DataGrid residing on a Panel Control - to Scroll to the very top, whenever I 
add a new record to an ArrayCollection (residing in the ModelLocater).  This 
can happen ONLY when I add a new record - and this is why I want to create a 
Custom Event for this.  I am pushing for a Custom Event, because I don't think 
there is a built-in Event native to the DataGrid, that I can count on 100% of 
the time, to fire off ONLY when New Records are being added.
 
The catch is, I can't dispatch the Event until I get my onResult response from 
the ColdFusion Server - indicating that the Database Insert was in fact 
successful, and that it's now okay to update the Model's ArrayCollection with 
the new ValueObject.
 
Since the onResult logic resides in a Cairngorm Command Class, this is where I 
need to dispatch the Event from.  Or at least initiate the command to dispatch 
the Event, which can reside in the ModelLocater - and dispatch it from there.
 
Since all of my primary Views containing the Model-bound Controls, have a 
reference to the ModelLocater, I am thinking that there must be a way to 
dispatch these Events from the Model - and have a way for these Views to 
respond accordingly.
 
If you could help me out in this regard, I really would be truly grateful.  My 
application development, has literally come to a screeching HALT, because of me 
not knowing how to handle all these issues.
 
I am tracking down every Event Broadcaster and Listener Tutorial I can get my 
hands on, so that I can learn more about how all this works.  But in all of the 
examples I download and dissect, they ALL have a common View, that centralizes 
the code - in which it's quite easy to tie everything together.
 
In my case, I have Views and Controls scattered all over the place - and they 
can be instantiated (or not be for that matter) at any given moment.  I just 
don't know how to write code to broadcast Events in such a manner, so that each 
component has no prior knowledge of any other component.
 
I hope I'm explaining all this properly...
 
Thanks in advance,
 
Mike



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of 
Dimitrios Gianninas
Sent: Friday, January 12, 2007 3:01 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Need primer on Events, from the List Gurus -


what other thing do u want to do? give an example and we can take it from 
there.
 
Dimitrios Gianninas
RIA Developer
Optimal Payments Inc.
 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Mike 
Anderson
Sent: Friday, January 12, 2007 1:53 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Need primer on Events, from the List Gurus -



Hello All,

This thread, directly relates to all the other ones I've posted recently
- as I think one of my root problems, is truly understanding on how
Events get propagated within an application.

They say the Event model is so great, due to all the components being so
loosely coupled. So either I am missing something really rudimentary
here, or the Event model doesn't work the way I thought it did.

In every example I've seen, for an Event Listener and Broadcaster setup
to work properly, there must be a common link (like a container) between
the 2 components - and then, there are the 3 key things which must be in
place: The Event Listener, the Broadcaster, and the Function that gets
run whenever the Event gets triggered.

But what about the times, where I won't know for sure beforehand, which
component I will be using at the time? Especially in a Cairngorm
Application, where the Commands (which is where I desperately need to
broadcast my Custom Events from) literally NEVER know where their Result
Events are going to be sent. Of course, this is where the true power of
Cairngorm-based Applications comes into play.

All the Commands do really, is update the ModelLocater with their
updated results - and because of Data Binding, the Components in the
Application show the updated results. For me unfortunately, there is
always much more that needs to be done, after a Result is brought back -
and I need to find a way to tell my Application Components, to perform
their next task (based on a Custom Event, that I broadcast).

Can anybody show me how to Broadcast Events in such a manner, that they
get disseminated Application-wide??? This way, I don't need to know
beforehand, which Components will be Receiving the Events.

This is the final thing on my plate that I must figure out, then I can
FINALLY finish my app and find some peace in my life

Thanks in advance,

Mike



AVIS IMPORTANT

WARNING

Ce message électronique et ses pièces jointes peuvent contenir des 
renseignements confidentiels, exclusifs ou légalement 

[flexcoders] Flex Job Opening in Irvine, CA

2007-01-12 Thread nextadvantage
we are looking to add another flex programmer to our team, building
automotive tools for car dealers. Please post resumes to 

jobs at idealernetwork.com



[flexcoders] Filter An ArrayCollection By Multiple ArrayCollections (selectedItems)

2007-01-12 Thread m_ollman

I'm trying to think of the best way to approach this.

I have 3 main arrayCollections - store, store_category and 6 X 
categories (categories filtered into groupings).

A user would select several items from the cats AC's that would 
filter store_cats AC (the mappings). Then the stores with matches 
are filtered from the stores AC.

I have a filter function in place but can only figure out out to 
feed it one value - not an array of selected values from several 
DataGrids.

public function addMapping():void 
{
ac.addItem({dg1:selectedItem.text});
}


Any thoughts throbbing Flex Brain?



Great example by Bruce Phillips

http://www.brucephillips.name/blog/index.cfm/2006/11/23/Sort-An-
ArrayCollection-By-Multiple-Fields-and-Filter-An-ArrayCollection-By-
Multiple-Fields-In-Flex






Re: [flexcoders] Need primer on Events, from the List Gurus -

2007-01-12 Thread Brian
Maybe the following will help.

Data Binding is really just a short hand version of an event broadcast, and 
listener and function to be executed.

Take the example:

[Bindable]
private var lastname:String;

mx:Text text={lastname}/

mx:Button click=lastname='My last Name'/

--
When the button is click the variable lastname value is updated to 'my last 
name'.

Since lastname is Bindable, it dispatches an event (broadcaster) that the value 
has changed. Any control listening to the change event, receives the event and 
runs a function to updates the property text to the new value. This of course, 
invalidates the display which then the display gets updated. 

The Bindable metatag creates a dispatch change event  (Broadcaster)

The {lastname} creates a listener for the text control to listen to the 
lastname change event 

A function is created that updates the property, text in this case, to the new 
value of last name.

I am sure it is more complicated than this (A function can also be Bindable, 
how does the function know when it changes value?). 

You can implement data binding using the event model.  It might be a good 
exercise, but you would not want to do it this way in an application. 

I know the above helped me greatly in understanding the events model. I hope it 
helps.

To answer your question 
But what about the times, where I won't know for sure beforehand, which 
component I will be using at the time?  

Using the above data binding example, data binding has no knowledge of what 
component will be using data binding. Data binding can be used on just about 
any component property. Again, data binding is a short hand of an event model 
and each component doesn't care what component will be used. 


The event model loosely couples the components, but both components must know 
about the event model.  Any component that creates an event listener and the 
function that should be executed when that event is triggered. The component 
must know about the event structure. The component that dispatches the event 
must also know the event structure. The event becomes an API, so to speak. Any 
component can listen or dispatch to that api. In other words, the event itself 
is communication between the two components and both components must know how 
to speak and listen to the event.


---


On Fri, 12 Jan 2007 12:53:14 -0600, Mike Anderson wrote:
 Hello All,

 This thread, directly relates to all the other ones I've posted recently
 - as I think one of my root problems, is truly understanding on how
 Events get propagated within an application.

 They say the Event model is so great, due to all the components being so
 loosely coupled.  So either I am missing something really rudimentary
 here, or the Event model doesn't work the way I thought it did.

 In every example I've seen, for an Event Listener and Broadcaster setup
 to work properly, there must be a common link (like a container) between
 the 2 components - and then, there are the 3 key things which must be in
 place: The Event Listener, the Broadcaster, and the Function that gets
 run whenever the Event gets triggered.

 But what about the times, where I won't know for sure beforehand, which
 component I will be using at the time?  Especially in a Cairngorm
 Application, where the Commands (which is where I desperately need to
 broadcast my Custom Events from) literally NEVER know where their Result
 Events are going to be sent.  Of course, this is where the true power of
 Cairngorm-based Applications comes into play.

 All the Commands do really, is update the ModelLocater with their
 updated results - and because of Data Binding, the Components in the
 Application show the updated results.  For me unfortunately, there is
 always much more that needs to be done, after a Result is brought back -
 and I need to find a way to tell my Application Components, to perform
 their next task (based on a Custom Event, that I broadcast).

 Can anybody show me how to Broadcast Events in such a manner, that they
 get disseminated Application-wide???  This way, I don't need to know
 beforehand, which Components will be Receiving the Events.

 This is the final thing on my plate that I must figure out, then I can
 FINALLY finish my app and find some peace in my life

 Thanks in advance,

 Mike



RE: [flexcoders] Need primer on Events, from the List Gurus -

2007-01-12 Thread Mike Anderson
With what you said, it pretty much backs up what I already knew to be
true.

When it comes to the basics, I am pretty well-versed with Data Binding -
and of course, writing some pretty extensive Cairngorm-based RIA, I have
a pretty good handle on the flow of things.

I guess what is making me second guess what I know about Events, is the
fact that I can't get this damn thing to work.  I am scratching my head
on this, and can't figure out what I am missing.

Take this simple example:

Main Application
  View1
  View2

In View1, I have a basic Panel with a DataGrid.  I have a Bindable
public var (myArrayCollection), and assigned it as the dataSource for my
Grid.  In my AS Code, I created a var referencing my ModelLocater.  Then
I set local myArrayCollection var equal to model.myArrayCollection.
This takes care of all the var declarations, as well as properly
dataBinding it to the Model.

Everything is great - data updates perfect, yada yada yada...

Now I want to add 1 more piece of functionality - broadcast an event, to
make my Grid scroll to the top, after a new record is added.  Sounds
easy enough...

Here is what I added to make this happen:

1) Added an eventListener to View1, that listens for scrollGrid -
which gets attached to the appropriate function (scrolling the Grid to
the very top).

2) Added extra logic to my Cairngorm getDataCommand Command - which I
put in the onResult Event Function.  The code to call the function
(because the function resides in my ModelLocater) is
model.fireOffScrollEvent.  The function simply dispatches a generic
Event (with the Event String being scrollGrid).

Now here is where I get confused:

Other than the simple variable reference in View1 to ModelLocater, there
is nothing else tying these 2 Classes together.  I say Classes, because
Controls in essence are simply Classes, in addition to the fact that
ModelLocater really doesn't extend anything.

So now, when I dispatch the scrollGrid Event from inside of
ModelLocater, nothing happens on View1.  See, this is where my
understanding of Events, falls terribly short.

See, in the times like this, I am not sure how the Application
propagates these Events.  When an Event gets dispatched, does Flex
systematically broadcast it to each and every component??

What confuses me too, is all the scoping stuff - which was a really big
deal in Flash.  In Flex, you don't use any dot-notation to specify
where the Event should go (like
Application.application.View1.myDataGrid) - it just goes somewhere out
there - like a black hole some place.  When they mention bubbling, I
thought this meant just that - 

Since this isn't working for me, I am obviously doing something wrong.
So the question is, what extra code must I add, to make the ModelLocater
aware of View1 and vice versa?

Thanks in advance for your time on this -

Mike


-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Brian
Sent: Friday, January 12, 2007 11:10 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Need primer on Events, from the List Gurus -

Maybe the following will help.

Data Binding is really just a short hand version of an event broadcast,
and listener and function to be executed.

Take the example:

[Bindable]
private var lastname:String;

mx:Text text={lastname}/

mx:Button click=lastname='My last Name'/

--
When the button is click the variable lastname value is updated to 'my
last name'.

Since lastname is Bindable, it dispatches an event (broadcaster) that
the value has changed. Any control listening to the change event,
receives the event and runs a function to updates the property text to
the new value. This of course, invalidates the display which then the
display gets updated. 

The Bindable metatag creates a dispatch change event  (Broadcaster)

The {lastname} creates a listener for the text control to listen to the
lastname change event 

A function is created that updates the property, text in this case, to
the new value of last name.

I am sure it is more complicated than this (A function can also be
Bindable, how does the function know when it changes value?). 

You can implement data binding using the event model.  It might be a
good exercise, but you would not want to do it this way in an
application. 

I know the above helped me greatly in understanding the events model. I
hope it helps.

To answer your question
But what about the times, where I won't know for sure beforehand, which
component I will be using at the time?  

Using the above data binding example, data binding has no knowledge of
what component will be using data binding. Data binding can be used on
just about any component property. Again, data binding is a short hand
of an event model and each component doesn't care what component will be
used. 


The event model loosely couples the components, but both components must
know about the event model.  Any component that creates an event
listener and the function that should