[flexcoders] (unknown)

2008-07-09 Thread venkat eswar
hi
anyone worked with FLEXFTP. in my application the directories are not listing.
i gave 
HOST:    ftp.ujueta.com
USERNAME:  ujuetac
PASSWORD: ujueta1

ERROR shown like this
TypeError: Error #1009: Cannot access a property or method of a null object 
reference.
    at 
pl.maliboo.ftp::FTPFile$/parseFormListing()[G:\Projects\FlexFTP\src\pl\maliboo\ftp\FTPFile.as:72]
    at 
pl.maliboo.ftp.invokers::ListInv/responseHandler()[G:\Projects\FlexFTP\src\pl\maliboo\ftp\invokers\ListInv.as:50]
    at flash.events::EventDispatcher/dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at 
pl.maliboo.ftp.core::FTPClient/handleData()[G:\Projects\FlexFTP\src\pl\maliboo\ftp\core\FTPClient.as:148]




  

[flexcoders] Actionscript pop3 code? And what the hell is an IFBIN / why doesn't it go?

2008-07-09 Thread Josh McDonald
Hey guys,

It seems there's some pop3 code, but it's trapped in IFBIN. Which looked
hella dodgey until I found it was something Ted (on Flex) wrote. Why the
hell did we need another closed system to share code when we already have
this internet dealie I've heard so much about? But I digress.

It sure doesn't work :)

Does anybody know why IFBIN doesn't work (OS X)? I'm assuming there was some
server-side widget that's now dead?

More importantly, does anybody actually have a copy of the pop3 code lying
around they can point me to or send me off-list?

Cheers,
-Josh

-- 
Therefore, send not to know For whom the bell tolls. It tolls for thee.

:: Josh 'G-Funk' McDonald
:: 0437 221 380 :: [EMAIL PROTECTED]


[flexcoders] Re: Programatically add new groupedColumns to AdvancedDataGrid

2008-07-09 Thread christophers1228
I'm running into the same issue, did you ever figure out a solution?

Thanks,
Chris

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

 I am trying to create a gantt chart, and would want groupedColumns
 with month spanning the dates of the month.  
 
 I tried to concat and push a AdvancedDataGridColumnGroup onto
 groupedColumns, it only worked with push, it adds to the array, but
 doens't update the display of the ADG.
 
 adg.groupedColumns.push( new
 AdvancedDataGridColumnGroup(monthNames[date.getMonth()]));
 
 (monthNames is an array of strings of month names)
 
 I tried running adg.invalidateDisplay() and reset the dataprovider
 groupingCollection source and it still didn't update.
 
 Is there a way to programatically create these columns or do you have
 to do it with the mxml?
 
 Thanks.






[flexcoders] Re: Air and Blazeds?

2008-07-09 Thread meteatamel
Noone can help you if you can't tell us what kind of errors you're
getting.

-Mete

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

 The Flex application link is here:
 
 http://techblogging.wordpress.com/2008/03/02/setting-up-blazeds-with-
 flex/
 
 Thanks
 
 Mark
 --- In flexcoders@yahoogroups.com, markflex2007 markflex2007@ 
 wrote:
 
  Hi,
  
  The following link is a chat application with Flex and Blazeds.
  
  I try to convert it to air application but I get errors.
  
  Do you have a idea how to build a Air application with BlazeDS?
  
  Thanks
  
  
  Mark
 





[flexcoders] Re: Starting Builder problem

2008-07-09 Thread Amy
--- In flexcoders@yahoogroups.com, markgoldin_2000 
[EMAIL PROTECTED] wrote:

 It started working.
 Filter on errors? What's that?

On the problems pane there's a button that looks like a yellow arrow 
with a smaller blue one above and below it.  If you click that, you can 
set filters on the compiler errors that FB will show you.  Nice when 
you get someone else's code that generates (hopefully harmless) errors, 
but it can make it harder to remove those errors in your own.

I make a habit of looking at the bar down the right side of the FB3 
window for yellow blobs that will at least alert me to errors in the 
focused document.

HTH;

Amy



[flexcoders] Clicking BACKSPACE button in TextField (and thus TextArea) does not fire change event when the character removed is ENTER (char code 13)

2008-07-09 Thread Sergey Kovalyov
Hi All!

Clicking backspace button in TextField (and thus TextArea) does not fire
change event when the character removed by backspace is enter (char code 13)

Run the example below in the debug mode and perform this scenario:

1. Click on the text area to set focus on it.
2. Click 1, ENTER, 2, ENTER, 3, BACKSPACE, BACKSPACE.
3. As a result the change event is not fired after the last BACKSPACE click.

Is it bug or feature? I assume that it is a bug, because the text length
actually changes and the textField height changes also if the TextField has
autoSize property set to other value than none.

Sergey.


?xml version=1.0 encoding=utf-8?

mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;

mx:Script

![CDATA[

*private* *function* onTextAreaChange() : *void* {

*trace*(*new* Date().time, textArea.length,
textArea.text.charCodeAt(textArea.text.length - 1));

}

]]

/mx:Script

mx:TextArea id=textArea

width=200

height=200

change=onTextAreaChange() /

/mx:Application


[flexcoders] ModuleLoader

2008-07-09 Thread David Gironella
How can I pas parameters to a module loaded with ModuleLoader?

 

Can I access to parentApplication from module?

 

Thank,

Giro.



[flexcoders] search functionality

2008-07-09 Thread litesh_b321
hi guys
can you please tell me how can we designed a search functionality
where backend is XML and frontend is in flex.where parameter of search
is not fixed. user can search by  various fields  



[flexcoders] Flex

2008-07-09 Thread litesh_b321
Hi guys
i have a bit problem while doing a code in flex. i am unable to bring
  Vscroll to application how i can bring it 
Thank you



[flexcoders] Flash/Flex/ActionScript/Video ClearSpring?

2008-07-09 Thread Mike Schinkel

Hi all:

When it comes to developing for Flash, Flex, and ActionScript I am a
total noob even though I've been a developer with 20+ years database
programming experience and 10+ years programming for the web. And I've
spent many hours trying to understand the right approach to my use-case
but am still feeling a long way from understanding.   I'm hoping after I
explain my use case you guys can help guide me in the right direction.
Thanks in advance.

Basically I need to develop a video widget whose marketing goal is viral
distribution. Tthe client wants me to use ClearSpring
http://www.clearspring.com/  which is a widget container
http://www.testspring.com/docs/tech/widget-dev/container  than manages
the platform nuances (i.e. FaceBook vs. MySpace vs. WordPress, etc.) and
also provides reporting.  It doesn't provide any widget functionality,
it just packages it to run on the different platforms.  As far as I can
tell, ClearSpring is a good thing but I've not been able to get it to
work yet because of my lack of Flash/Flex experience. But although
ClearSpring supports functionality using both HTML+CSS+Javascript and
Flash/Flex
http://www.clearspring.com/docs/tech/distribution/destinations  the
former doesn't work on Facebook and Facebook is a client requirement.

The functionality I need to build is simple.  I need to build a SWF that
contains a simple video player that will load and play an .FLV file (no
frills needed here, at least not for v1, just start and stop a video),
but it needs to be able to call a simple REST-based webservice to
retrieve the name of the current .FLV to play (i.e. the service will
just be an HTTP GET to a URL like
http://services.example.com/current-video/
http://services.example.com/current-video/  that returns the full URL
of the current .FLV file in text/plain, nothing more, and I plan to
use PHP for the REST service on the server.) If this were Javascript in
the browser with a video playing SWF (i.e. Flowplayer
http://flowplayer.org/ )  it would be a no-brainer for me. But since I
need the client-side functionality packaged in a SWF file I don't know
what to do next.

So my questions are:

1. In a nutshell, what's the difference between Flash or Flex or
ActionScript? (After much googling I still can't find a definitive
answer.)2. Do I need to learn Flash or Flex or ActionScript, or all
of the above?3. If more than one of the above, what do I use each
for?4. Which Adobe Software would I need to buy for this?5. Are
there free or open-source versions of software that would give me what I
need? (I'm not making that much on the project so I'd hate to have to
drop drop US$1000+ for an Adobe product .)6. Are there any books
you'd highly recommend for what I need?7. Are there any examples you
can point me to on the web of things very similar to what I am trying to
accomplish?

MANY THANKS IN ADVANCE for any and all help on this.

-Mike Schinkel
http://mikeschinkel.com http://mikeschinkel.com



[flexcoders] Re: DataGrid

2008-07-09 Thread Amy
--- In flexcoders@yahoogroups.com, Tim Hoff [EMAIL PROTECTED] wrote:

 
 Damn Niraj, this is an old thread. :-)
 
 Rob said the right things.  To do what you want, will take more than
 just over-riding a method or two.  This is more in the area of
 flexcomponents 
http://tech.groups.yahoo.com/group/flexcomponents/ .  
 Not for the faint of heart, but if you really want to get into that
 level of component development, there's a good place to start.

Couldn't you make something that _looks_ like what he wants with a pair 
of nested repeaters?



[flexcoders] Re: Passing data from top level component to lower level component

2008-07-09 Thread mpricope1980
I think you can use the Event Capture phase to register an Event. 

In the capture phase, the visual events in AS3 are dispatched from the
root ancestor to the target. 

To register an event on the capture phase you need to write something
like:

object.addEventListener(Event, listener, true)

where the third argument does just that.

But this will work only if I understood well your problem :)

Regards,
Miti

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

 Hi gang,
 
 I'm having a dense moment.  How do I pass data through an event from  
 the application level component to a child component?  I know how to  
 pass data through an event from a child component to the application  
 component, is it a similar process?
 
 Thanks!
 
 Steve Good
 http://lanctr.com





[flexcoders] Background Color of AdvancedDataGrid

2008-07-09 Thread mvbaffa
Hi All,

I am trying to change the background color of a row in response to a 
keyboard action. What I am doing is to drive the keyboard event and 
doing this:

 adgDatagrid.dataProvider[adgDatagrid.selectedIndex].verified = true;
 adgDatagrid.invalidateList();

When I call invalidateList the styleFunction defined in my 
AdvancedDataGrid is activated. This is working OK.

The styleFunction changes the foreground, because of another 
condition, perfectly. The problem is when I try to return a 
background style in the same styleFunction it does not change the 
backgroundColor. Below is my styleFunction code:


public function customStyleFunctionstyle(data:Object, 
col:AdvancedDataGridColumn):Object {
 try {
   if (data[source]) return {color:0x008000};
   if (data[verified]) return {backgroundColor:0x008000};
 }
 catch (err:Error) {}
return null;  
}


Can you help me !!!

Thanks in advance




[flexcoders] Re: Question: need flex to read text files on another server and display in textArea

2008-07-09 Thread valdhor
I don't know if it's the best way but the way I would do it is with a
value object and WebORB.

Just read the file in, place the contents into the value object and
send it to Flex as a remote object.



--- In flexcoders@yahoogroups.com, Body Works Studio
[EMAIL PROTECTED] wrote:

 Hello All,
 
 I need to make a pop up that will display the contents of a text file.
 I want to use a text Area as the file is read only. What is the best
 way to get Flex to access and read the file on the other server. The
 file contents are currently ascii text files.
 
 Any help would be much appreciated.
 
 Thanks for your time
 
 Jeff





[flexcoders] Convert Text to Bitmap using ActionScript-3 .

2008-07-09 Thread Joy
Hi
  I wanted to know is there a way, where we can take a Text, and
convert it to an image-object (PNG) using ActionScript-3. Basically, I
wanted the typed-in text to be converted to an Image. I want to do the
same as breaking-text ie.CTRL+B (in Flash), in ActionScript-3.

  Thanks in advance
   enJOY



[flexcoders] Where is URLRequest data on server side

2008-07-09 Thread schneiderjim
I'm using URLRequest and navigateToUrl to invoke a server side (java
servlet) reporting function (returns PDF in new browser window). To
get it to work quickly, i just attached HTTP parameters to the URL and
grabbed them from the HTTPServletRequest on the server. However, I
believe we are now hitting the limit on the query string, and I'd
rather not do this anyway. 

I've looked at the URLVariables and the data property and that seemed
like what I should do, but on the server, I'm not sure where I would
grab that data in my servlet. Does that come through the InputStream
somehow? 

Would HTTPService be better (noting that I need to pop the resulting
PDF into a new window)?

Any pointers to docs or samples would be appreciated.

Thx,

Jim



Re: [flexcoders] search functionality

2008-07-09 Thread Fidel Viegas
On Wed, Jul 9, 2008 at 11:43 AM, litesh_b321 [EMAIL PROTECTED] wrote:
 hi guys
 can you please tell me how can we designed a search functionality
 where backend is XML and frontend is in flex.where parameter of search
 is not fixed. user can search by various fields

Hi there,

This is something you need to define between what you are using on
your server side and Flex. You do have to send search parameters to
your server side script, and the script will then return the xml as
you want. Is your data coming from a database?
You will have to process the search conditions on the server side, and
process the resulting xml in flex.

Fidel.


[flexcoders] Re: Air and Blazeds?

2008-07-09 Thread markflex2007
Hi

It seems the Air app can not get the config file in Tomcat.

I am wondering if it is possible to convert the Flex chat application
to air chat application and keep use BlazeDS message feature.

Thanks

Mark

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

 Noone can help you if you can't tell us what kind of errors you're
 getting.
 
 -Mete
 
 --- In flexcoders@yahoogroups.com, markflex2007 markflex2007@
 wrote:
 
  The Flex application link is here:
  
  http://techblogging.wordpress.com/2008/03/02/setting-up-blazeds-with-
  flex/
  
  Thanks
  
  Mark
  --- In flexcoders@yahoogroups.com, markflex2007 markflex2007@ 
  wrote:
  
   Hi,
   
   The following link is a chat application with Flex and Blazeds.
   
   I try to convert it to air application but I get errors.
   
   Do you have a idea how to build a Air application with BlazeDS?
   
   Thanks
   
   
   Mark
  
 





[flexcoders] Container for a from

2008-07-09 Thread markgoldin_2000
I am trying to come up with a container to hold a form in. I want to 
use as much space of the container as possible. So, I dont want to have 
any space on left, right, top, and bottom of the container.
Also I want to have formitems stuck to the left of the form. Is that 
possible?

Thanks



[flexcoders] Re: Newbie Nested Remote Object Question

2008-07-09 Thread kroghadam
Perhaps I should provide a little more detail on my problem, here are
three stripped down java classes I am using,


public class Project {
  private String name;
  private Summary summary;

  public Project(){
  }

  ...usual get/set methods

}

public class Summary {
  private String clientName;
  private int budget;

  public Summary(){
  }

  ...usual get/set methods
}

public ProjectList {
  private ArrayListProject projects;

  public ProjectList(){
  }

  public Project[] getProjects() {
buildProjects();
return projects.toArray(new Project[0]);
  }

  public void buildProjects() {
Project project;
Summary summary;
projects = new ArrayListProject();
for(int i = 0; i10;i++) {
  project = new Project();
  project.setName(Name+i);
  summary = new Summary();
  summary.setBudget(1);
  summary.setClientName(Client+i);
  project.setSummary(summary);
  projects.add(projects);
}
}

Within my flex code I use a remote object to the ProjectList and bind
an ArrayCollection to the return value of getProjects(). I then pass
the Project elements of this array to a component to display its values. 
This is where my problem comes in. I can display the name of the
project fine in the component by just using {project.name} but I have
no idea how to access my Summary object to get its data. 
I thought I could just do {project.summary.budget} but that doesn't
display anything. 
I really hope someone can help me solve this problem as I'v been stuck
on it for some time now. 

Thanks again,

-Adam
--Flex Newbie


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

 Hi everybody, I am really enjoying my first look into flex! 
 Unfortunately I have ran into a problem with remote objects to java
 classes that have compositions of objects in them. In other words my
 class has an instance variable that is another object whose data i
 also want to access, preferably through the same remote object.
 
 If anyone has some pointers, links to examples or even source code I
 would really appreciate it.
 
 Thanks in advance,
 
 -Adam
 --Flex Newbie





[flexcoders] Web Developer SAMURAI needed -- Waltham, MA

2008-07-09 Thread Josh
Web Development Samurai

You will take part in designing and building the front end of our web 
applications from the ground up, using today's cutting edge 
technologies such as Flex, Ajax, Rails, HTML, and CSS. 

Required Skills: 
+ Flex, CSS, XHTML, Ajax, Javascript, ActionScript
+ Proven portfolio of exceptional web sites or web applications
+ 3+ years of experience developing in web technoligies
+ Back end web technologies is a plus -- Java MVC frameworks 
(spring/struts and hibernate), Ruby on Rails 

This is a full-time position in our Waltham, MA office. 
HIGHLY competitive compensation/benefits package!

Contact Joshua Anderson ([EMAIL PROTECTED]) for more information.



[flexcoders] Re: DataGrid

2008-07-09 Thread Tim Hoff

Depends on the rest of what he wants.  If he wants to be able to sort
and select items, there's a lot of code to write crossing the repeaters.
If it's just for show, either repeaters or a list would work fine. 
Interesting how we get used to thinking in a certain direction.  Easy to
change axis on a chart; but a dataGrid?

-TH

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

 --- In flexcoders@yahoogroups.com, Tim Hoff TimHoff@ wrote:
 
 
  Damn Niraj, this is an old thread. :-)
 
  Rob said the right things. To do what you want, will take more than
  just over-riding a method or two. This is more in the area of
  flexcomponents
 http://tech.groups.yahoo.com/group/flexcomponents/ .
  Not for the faint of heart, but if you really want to get into that
  level of component development, there's a good place to start.

 Couldn't you make something that _looks_ like what he wants with a
pair
 of nested repeaters?






[flexcoders] AdvancedDataGrid with GroupingCollection Expand on Refresh

2008-07-09 Thread gjessup1
I have a GroupingCollection whose source is an ArrayCollection. 
Then have an advanced datagrid who's dataprovider is the
GroupingCollection. This gives me the expand collapse.

The ArrayCollection is populated by a real time event which fires
every (x) seconds. At that point I do a gc.refresh(true).

The problem is, that when the refresh is fired, it collapses any
folder that was expanded in the datagrid.

Does anyone know how to maintain state of the expanded Category? I
have tried to do Datagrid.ExpandAll(); as a test, but did not seem to
work.
Sample code would be great. Or if anyone can think of a better way of
doing...also please let me know...thanks

-greg

Thanks in advance.



[flexcoders] Re: Container for a from

2008-07-09 Thread Tim Hoff

Search for Using constraints to control component layout in the help
docs.

-TH

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

 I am trying to come up with a container to hold a form in. I want to
 use as much space of the container as possible. So, I dont want to
have
 any space on left, right, top, and bottom of the container.
 Also I want to have formitems stuck to the left of the form. Is that
 possible?

 Thanks






Re: [flexcoders] Flash/Flex/ActionScript/Video ClearSpring?

2008-07-09 Thread Alan


On Jul 9, 2008, at 7:18 AM, Mike Schinkel wrote:


So my questions are:

In a nutshell, what's the difference between Flash or Flex or  
ActionScript? (After much googling I still can't find a definitive  
answer.)
ActionScript is an ECMA standard Programming language.  Until about 3  
years ago it was a hackish language similar to Javascript, referred  
to as Actionscript 2.  Adobe took it over, and rewrote the VM.  It now  
is adn Object Orientated - event driven language,  closer in behaviour  
and structure to Java, it is reffered to as Actionscript 3

.
Actionscript is the prgramming language that the technology Flash is  
build on.  There is a program that is often referred to as Flash  
whose current version is Flash CS3 (yes it is confusiing).  The word  
Flash in general usage, can refer to a technology and an IDE.


Flex is a framework of prebuilt Flash (the technology) components.  
When using Flex, you use a language called MXML (which in turn refers  
to components built with Actionscript), which is just an XML language,  
whose tags refer to Actionscript(Flash the technology) components.


Flash (the IDE whose current version is CS3) is more suited for  
designers who draw and arrange animations.  There is an option to  
write classes and code an application, but it haslimited supporting  
features like code hinting, variable searching etc.


Flex (the framework) is most suited to make RIAs, not websites.  
Generally, people use Flex Builder (an IDE) or download the Flex SDK  
and use it as a plug-in for Eclipse.



If more than one of the above, what do I use each for?
Which Adobe Software would I need to buy for this?


You don't need to buy anything.  Websites and RIAs can be built with  
SDKs that can be downloaded from Adobe http://opensource.adobe.com/wiki/display/site/Home


You can download a free full working version and it will last 60 days.

You can buy Flex Builder for 300 dollars, and you don't have to go  
through any possible integration problems with using it with Eclipse.   
If you are new to Flash (the technology) and need to build an RIA,  
Flex Builder is the way to go.


To build a Flash website that does not use the Flex Framework ( i.e  
with no prebuilt components) You download the SDK from adobe and can  
use a simple text editor to write your code, then you need to use a  
compiler (which can be dl for free) to compile the program.
Are there free or open-source versions of software that would give  
me what I need? (I'm not making that much on the project so I'd hate  
to have to drop drop US$1000+ for an Adobe product .)

Are there any books you'd highly recommend for what I need?


For beginners, Learning Actionscript http://oreilly.com/catalog/9780596527877/

IF you understand programming pretty well already

http://oreilly.com/catalog/9780596526948/?CMP=AFC-ak_bookATT=Essential+ActionScript+3.0

For beginning Flex

http://www.amazon.com/gp/product/1590599500




[flexcoders] Re: Cancelling a list change event using an Alert popup

2008-07-09 Thread mpricope1980
Hi,

I don't know if this solve your problem but I've posted something here
(http://miti.pricope.com/2008/07/09/datagrid-canceling-a-grid-change-event-using-an-alert-popup/)
regarding this.

Miti

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

 I have a list of items and a corresponding form to edit values based
 on what the user has selected.
 
 If the user selects another by clicking the grid, I want to provide an
 Alert popup if they have not saved their changes.  If the user clicks
 OK, then the selection takes place as normal, but if they click
 cancel, I want to cancel the change event and have the editor stay on
 the selected item.
 
 I can get the event to cancel by declaring an event handler for
 MouseDown in the creationComplete event, and then having the following
 lines in the MouseDown handler:
 
 event.stopImmediatePropagation();
 event.stopPropagation();
 event.preventDefault();
 
 The problem is that I can only successfully cancel the event
 propogation from within this method.
 
 If I want to have an alert box with an OK and Cancel button, how do I
 achieve this?
 
 I have tried calling an Alert handler and using a class event variable
 to store the event that is received by the MouseDown handler, but
 if I try to cancel the event from within the Alert handler, nothing
 happens - I think it is too late at that point.
 
 Can someone provide me with an example of how to cancel event
 propogation on a grid click or other similar event based on the user's
 selection from an Alert prompt?
 
 Thanks!





[flexcoders] Re: As3Crypto - Can't read RSA Public Key

2008-07-09 Thread Uber_Nick
Hi Jim,

I copied your code into a project and pulled in the latest As3Crypto
source.  Your project compiled and worked as expected.  I was unable
to replicate the error, and would assume it's an environment issue.

-Nick Matelli

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

 Hi,
 
 I posted this on the As3Crypto discussion list but there is very
 little activity there.  Maybe someone in this group has encrypted
 something using an RSA public key that they might share.
 
 I am trying to read a RSA public key so I can encrypt data in my
 application. I assembled a test app just to learn how the library
 works. Unfortunately, I didn't get very far. I get the message I DONT
 KNOW HOW TO HANDLE DER stuff of TYPE 1 when I try to run the
 following code. I have downloaded the latest source from trunk but I
 still get the error. I generated the private and public keys using
 openssl as shown below:
 
 openssl genrsa -out private.pem 1024
 openssl rsa -in private.pem -pubout -out public.pem
 
 Any clue what is happening here?
 
 ?xml version=1.0 encoding=utf-8?
 mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
 layout=absolute creationComplete=init()
 
 mx:Script
 ![CDATA[
 import com.hurlant.util.Hex;
 import com.hurlant.util.der.PEM;
 import com.hurlant.crypto.rsa.RSAKey;
 
 private var publicKey:String = -BEGIN
 PUBLIC KEY-+

 MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCq63UvOM+wA3FYLl7X5v5US1bd+

 BP43wScM3boptegIIIO0ghhzhtmCUv7/278Jow9xI/za0CTf8DL9pSDu8+T+RY7U+

 WOMaX/IK9D9tqxztDdPu29qSJFenun1O9OL+HaUYaNWSTLirHMZN67/aITtuyV6++
 ikAJfa9EOKAnT/CLIQIDAQAB+
 -END PUBLIC KEY-;
 
 private function init():void
 {
 var rsaPublicKey:RSAKey =
 PEM.readRSAPublicKey(publicKey);
 
 var message:ByteArray =
 Hex.toArray(now listen to this);
 var encryptedMessage:ByteArray = new
 ByteArray;

 rsaPublicKey.encrypt(message,encryptedMessage,message.length);
 
 trace(Hex.fromArray(encryptedMessage));
 }
 ]]
 /mx:Script
 /mx:Application
 
 ~~~ Error ~~
 
 I DONT KNOW HOW TO HANDLE DER stuff of TYPE 1
 Error: Error #2030: End of file was encountered.
 at flash.utils::ByteArray/readBytes()
 at
 com.hurlant.util.der::DER$/parse()[C:\flex\crypto_1.3\com\hurlant
 \util\der\DER.as:134]
 at com.hurlant.util.der::PEM$/readRSAPublicKey()[C:\flex
 \crypto_1.3\com\hurlant\util\der\PEM.as:84]
 at
 Test/init()[C:\flex\workspaces\smtoolsPrototype\Test\src\Test.mxml:
 28]
 
 ~Jim





[flexcoders] Canvas border and clipcontent false problem

2008-07-09 Thread cenkhchuluun
Hi guys~
I've a weird problem with canvas border~

I have a canvas with border of 3 pixel and the canvas's clipcontent is
set to false and a child canvas with percentage height and
width of 100%.
The problem is that the canvas border and child canvas are overlapped.
What i expected is that the inner chid canvas should be positioned
inside the border as when clipconent is set true, not overlapped.


code here:
mx:Canvas x=50 y=100 backgroundColor=#ee
borderColor=#FFDE00 borderThickness=3
 borderStyle=solid height=100 width=100
clipContent=false 
 mx:Canvas width=100% height=100%
backgroundColor=#00ff00 includeInLayout=true autoLayout=false /
 /mx:Canvas

Any ideas?

Thanks~








[flexcoders] Re: Container for a from

2008-07-09 Thread markgoldin_2000
Thanks, that helped. But I am also trying to find out how to position 
a FormItem closer to a left side of the form to avoid a gap between 
left edge of the form and a FormItem. Is that possible?

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

 
 Search for Using constraints to control component layout in the 
help
 docs.
 
 -TH
 
 --- In flexcoders@yahoogroups.com, markgoldin_2000
 markgoldin_2000@ wrote:
 
  I am trying to come up with a container to hold a form in. I want 
to
  use as much space of the container as possible. So, I dont want to
 have
  any space on left, right, top, and bottom of the container.
  Also I want to have formitems stuck to the left of the form. Is 
that
  possible?
 
  Thanks
 





[flexcoders] HTTP Request Error: Design View in Flex Builder 3?

2008-07-09 Thread cox.blair
Hi all,

I was working on my application before lunch, all was well. No errors,
worked great.

Had to reboot due to a totally unrelated issue to Flex, when I started
the program back up, I'm greeted with a error dialuge box in Design
view that I cannot remove. 

Anyone have any idea where I should look to correct this? I'm on a Mac
running MAMP.

Cheers,



[flexcoders] Re: Newbie Nested Remote Object Question

2008-07-09 Thread valdhor
Caveat: I use PHP with WebORB but I have done a lot of C++ in the past.

So, to get this straight, you have a value object with a property that
contains another value object, right? Try...

(project.summary as Summary).budget

or

Summary(project.summary).budget






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

 Perhaps I should provide a little more detail on my problem, here are
 three stripped down java classes I am using,
 
 
 public class Project {
   private String name;
   private Summary summary;
 
   public Project(){
   }
 
   ...usual get/set methods
 
 }
 
 public class Summary {
   private String clientName;
   private int budget;
 
   public Summary(){
   }
 
   ...usual get/set methods
 }
 
 public ProjectList {
   private ArrayListProject projects;
 
   public ProjectList(){
   }
 
   public Project[] getProjects() {
 buildProjects();
 return projects.toArray(new Project[0]);
   }
 
   public void buildProjects() {
 Project project;
 Summary summary;
 projects = new ArrayListProject();
 for(int i = 0; i10;i++) {
   project = new Project();
   project.setName(Name+i);
   summary = new Summary();
   summary.setBudget(1);
   summary.setClientName(Client+i);
   project.setSummary(summary);
   projects.add(projects);
 }
 }
 
 Within my flex code I use a remote object to the ProjectList and bind
 an ArrayCollection to the return value of getProjects(). I then pass
 the Project elements of this array to a component to display its
values. 
 This is where my problem comes in. I can display the name of the
 project fine in the component by just using {project.name} but I have
 no idea how to access my Summary object to get its data. 
 I thought I could just do {project.summary.budget} but that doesn't
 display anything. 
 I really hope someone can help me solve this problem as I'v been stuck
 on it for some time now. 
 
 Thanks again,
 
 -Adam
 --Flex Newbie
 
 
 --- In flexcoders@yahoogroups.com, kroghadam kroghadam@ wrote:
 
  Hi everybody, I am really enjoying my first look into flex! 
  Unfortunately I have ran into a problem with remote objects to java
  classes that have compositions of objects in them. In other words my
  class has an instance variable that is another object whose data i
  also want to access, preferably through the same remote object.
  
  If anyone has some pointers, links to examples or even source code I
  would really appreciate it.
  
  Thanks in advance,
  
  -Adam
  --Flex Newbie
 





[flexcoders] Re: HTTP Request Error: Design View in Flex Builder 3?

2008-07-09 Thread cox.blair
I think I know what is causing the problem. the bin folders are
missing? They show up in Flex Navigator, however when I look at the
path information, they do not exist in any of the possible locations
listed.

I've noticed over the past two days, that files with the Flex
Navigator will disappear. I'll have module open and it will only exist
FB as an open file, the original file in the Navigator has been removed?

I'm test driving the trial version on a Mac - is this normal
behaviour? How do I correct this?

Thanks,



Re: [flexcoders] Re: Air and Blazeds?

2008-07-09 Thread João Fernandes
Mark, how does your endpoint URL in your services-config.xml look like? 
Are you using the default file as the one use in a Flex Project?


-- 

João Fernandes

http://www.onflexwithcf.org
http://www.riapt.org
Portugal Adobe User Group (http://aug.riapt.org)



[flexcoders] AIR Features

2008-07-09 Thread mvbaffa
Hi All,

I have some experience in Flex but I wil develop my first application 
in AIR. The are some features that I need and I do not know if they are 
available in AIR, they are:

- Call a COM object
- Execute (shell) a DOS application

Are these features avaiable in AIR 

Thanks in advance



[flexcoders] Re: Background Color of AdvancedDataGrid

2008-07-09 Thread Amy
--- In flexcoders@yahoogroups.com, mvbaffa [EMAIL PROTECTED] wrote:

 Hi All,
 
 I am trying to change the background color of a row in response to 
a 
 keyboard action. What I am doing is to drive the keyboard event and 
 doing this:
 
  adgDatagrid.dataProvider[adgDatagrid.selectedIndex].verified = 
true;
  adgDatagrid.invalidateList();
 
 When I call invalidateList the styleFunction defined in my 
 AdvancedDataGrid is activated. This is working OK.
 
 The styleFunction changes the foreground, because of another 
 condition, perfectly. The problem is when I try to return a 
 background style in the same styleFunction it does not change the 
 backgroundColor. Below is my styleFunction code:
 
 
 public function customStyleFunctionstyle(data:Object, 
 col:AdvancedDataGridColumn):Object {
  try {
if (data[source]) return {color:0x008000};
if (data[verified]) return {backgroundColor:0x008000};
  }
  catch (err:Error) {}
 return null;  
 }
 
 
 Can you help me !!!
 
 Thanks in advance

http://flexdiary.blogspot.com/2008/06/musings-on-advanceddatagrid-
part-1.html



[flexcoders] Trouble passing values to a child window

2008-07-09 Thread Andrew Wetmore
Hi. I have an app where the user can select a note and opt to pop
the note into a child window that will float beside the main window. I
can create the window fine, and I can pass it its title. However, when
I try to pass the title and contents of the note, I get a null object
reference error.

The relevant code in the main file is this:

public var theNote:noteWindow;

//** popup selected note
public function floatingNote():void{
var theNote:noteWindow = new noteWindow();
theNote.title = Floating note;
//theNote.noteContents.text=contents;
//theNote.noteTitle.text = title;
theNote.maximizable = false;
theNote.open();
}

if don't comment out those two lines, the code runs fine. At the
moment they are trying to pass static values; but eventually they will
take the relevant values from the selected item in the Notes datagrid.

The noteWindow component looks like this:

?xml version=1.0 encoding=utf-8?
mx:Window xmlns:mx=http://www.adobe.com/2006/mxml; width=300
height=400 layout=absolute backgroundColor=#FF
transparent=false systemChrome=standard
mx:TextArea x=10 y=10 width=278 height=62 id=noteTitle
wordWrap=true editable=false fontWeight=bold fontSize=12
borderStyle=none text=title/
mx:TextArea x=10 y=89 width=278 height=289 id=noteContents
wordWrap=true editable=false borderStyle=solid fontSize=12
text=The note/

/mx:Window

Anybody see what I am missing?

Thanks in advance.

andrew



Re: [flexcoders] Trouble passing values to a child window

2008-07-09 Thread Andrew Wetmore
sorry, I should have said below if I DO comment out the two lines that are
currently commented out, the code runs fine

On Wed, Jul 9, 2008 at 2:02 PM, Andrew Wetmore [EMAIL PROTECTED] wrote:

   Hi. I have an app where the user can select a note and opt to pop


 




-- 
Andrew Wetmore
User Experience Director
Open Learning Exchange - www.ole.org
978-319-7324


[flexcoders] ComboBox ItemRenderer Custom Events only go to SystemManager - WHY?????

2008-07-09 Thread Battershall, Jeff
I've been remiss in addressing my less-than-perfect understanding of
Events and event bubbling.

My custom itemRenderer needs to fire a custom event. I've spent the last
day trying to get it to bubble up from my custom itemRenderer to the
ComboBox, but no dice. If I add an eventListener in my ComboBox, it does
not receive the event. However when I use
systemManager.addEventListener(myCustomEvent,myHandler), suddenly I
can receive the event.

Is this the expected behavior?  Why?

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


[flexcoders] RE: [flexcomponents] Clicking BACKSPACE button in TextField (and thus TextArea) does not fire change event when the character removed is ENTER (char code 13)

2008-07-09 Thread Alex Harui
Please file a bug

 



From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Sergey Kovalyov
Sent: Wednesday, July 09, 2008 4:38 AM
To: flexcoders@yahoogroups.com; [EMAIL PROTECTED]
Subject: [flexcomponents] Clicking BACKSPACE button in TextField (and
thus TextArea) does not fire change event when the character removed is
ENTER (char code 13)

 

Hi All!

 

Clicking backspace button in TextField (and thus TextArea) does not fire
change event when the character removed by backspace is enter (char code
13)

 

Run the example below in the debug mode and perform this scenario:

 

1. Click on the text area to set focus on it.

2. Click 1, ENTER, 2, ENTER, 3, BACKSPACE, BACKSPACE.

3. As a result the change event is not fired after the last BACKSPACE
click.

 

Is it bug or feature? I assume that it is a bug, because the text length
actually changes and the textField height changes also if the TextField
has autoSize property set to other value than none.

 

Sergey.

 

?xml version=1.0 encoding=utf-8?

mx:Application

xmlns:mx=http://www.adobe.com/2006/mxml
http://www.adobe.com/2006/mxml  

mx:Script 

![CDATA[

private function onTextAreaChange() : void { 

trace(new Date().time, textArea.length,
textArea.text.charCodeAt(textArea.text.length - 1)); 

}

]]

/mx:Script 

mx:TextArea id=textArea 

width=

200 

height=

200 

change=onTextAreaChange() 

/ 

/mx:Application

 



[flexcoders] Re: ViewStack init images problem

2008-07-09 Thread doubleyoucue
Thanks but no dice.
I tried to explicitly set the dimensions on the mx:Image but still had
the same flicker result on the transition. For that matter I tried
to explicitly set the same image dimensions on it's containing mx:Box
and the ViewStack as well... but the same thing happens.

The best short-term workaround I could muster was to set the initial
selectedIndex to the second image which loads it, then set the
ViewStack to it's proper position via a actionscript call later. The
flicker behavior is still there, but I think it's slightly less
noticeable on the first image when the application loads then on the
second (but still a bit ugly).

Here's my ViewStack if anyone can see anything wrong with it:

mx:ViewStack id=bgImageStack
  width=100% height=100% creationPolicy=all selectedIndex=1
  creationCompleteEffect={blurIn}
mx:Box width=1024 height=768
  horizontalScrollPolicy=off verticalScrollPolicy=off
  hideEffect={blurOut} showEffect={blurIn}
mx:Image
  source=@Embed('assets/images/background/myBig01.jpg')
  width=1024 height=768 scaleContent=false
  horizontalAlign=left verticalAlign=top/
/mx:Box
mx:Box width=1024 height=768
  horizontalScrollPolicy=off verticalScrollPolicy=off
  hideEffect={blurOut} showEffect={blurIn}
mx:Image
  source=@Embed('assets/images/background/myBig02.jpg')
  width=1024 height=768 scaleContent=false
  horizontalAlign=left verticalAlign=top/
/mx:Box
/mx:ViewStack




Alex Harui [EMAIL PROTECTED] wrote:

 The problem usually has to do with the fact that images are loaded
 asynch so they don't get measured properly the first time.
 
 If you know the size of the image, set the mx:Image to that size so it
 will hold space for it when it comes in.




RE: [flexcoders] Re: ViewStack init images problem

2008-07-09 Thread Alex Harui
That's a big image so I would expect a flicker as there would be a delay
before the image finishes loading, especially once you deploy to a slow
network

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of doubleyoucue
Sent: Wednesday, July 09, 2008 9:37 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: ViewStack init images problem

 

Thanks but no dice.
I tried to explicitly set the dimensions on the mx:Image but still had
the same flicker result on the transition. For that matter I tried
to explicitly set the same image dimensions on it's containing mx:Box
and the ViewStack as well... but the same thing happens.

The best short-term workaround I could muster was to set the initial
selectedIndex to the second image which loads it, then set the
ViewStack to it's proper position via a actionscript call later. The
flicker behavior is still there, but I think it's slightly less
noticeable on the first image when the application loads then on the
second (but still a bit ugly).

Here's my ViewStack if anyone can see anything wrong with it:

mx:ViewStack id=bgImageStack
width=100% height=100% creationPolicy=all selectedIndex=1
creationCompleteEffect={blurIn}
mx:Box width=1024 height=768
horizontalScrollPolicy=off verticalScrollPolicy=off
hideEffect={blurOut} showEffect={blurIn}
mx:Image
source=@Embed('assets/images/background/myBig01.jpg')
width=1024 height=768 scaleContent=false
horizontalAlign=left verticalAlign=top/
/mx:Box
mx:Box width=1024 height=768
horizontalScrollPolicy=off verticalScrollPolicy=off
hideEffect={blurOut} showEffect={blurIn}
mx:Image
source=@Embed('assets/images/background/myBig02.jpg')
width=1024 height=768 scaleContent=false
horizontalAlign=left verticalAlign=top/
/mx:Box
/mx:ViewStack

Alex Harui [EMAIL PROTECTED] wrote:

 The problem usually has to do with the fact that images are loaded
 asynch so they don't get measured properly the first time.
 
 If you know the size of the image, set the mx:Image to that size so it
 will hold space for it when it comes in.

 



RE: [flexcoders] ComboBox ItemRenderer Custom Events only go to SystemManager - WHY?????

2008-07-09 Thread Alex Harui
Popups have to float over everything so they are parented by SM and
not the CB or the app.   If you dispatch the event off the owner it
will go to the CB and bubble up from there

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Battershall, Jeff
Sent: Wednesday, July 09, 2008 10:23 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] ComboBox ItemRenderer Custom Events only go to
SystemManager - WHY?

 

I've been remiss in addressing my less-than-perfect understanding of
Events and event bubbling.

My custom itemRenderer needs to fire a custom event. I've spent the last
day trying to get it to bubble up from my custom itemRenderer to the
ComboBox, but no dice. If I add an eventListener in my ComboBox, it does
not receive the event. However when I use
systemManager.addEventListener(myCustomEvent,myHandler), suddenly I
can receive the event.

Is this the expected behavior? Why?

Jeff Battershall
Application Architect
Dow Jones Indexes
[EMAIL PROTECTED] mailto:jeff.battershall%40dowjones.com 
(609) 520-5637 (p)
(484) 477-9900 (c)

 



RE: [flexcoders] Convert Text to Bitmap using ActionScript-3 .

2008-07-09 Thread Alex Harui
Readup on BitmapData.draw() and PNGEncoder

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Joy
Sent: Wednesday, July 09, 2008 6:47 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Convert Text to Bitmap using ActionScript-3 .

 

Hi
I wanted to know is there a way, where we can take a Text, and
convert it to an image-object (PNG) using ActionScript-3. Basically, I
wanted the typed-in text to be converted to an Image. I want to do the
same as breaking-text ie.CTRL+B (in Flash), in ActionScript-3.

Thanks in advance
enJOY

 



RE: [flexcoders] Flex

2008-07-09 Thread Alex Harui
Need more details

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of litesh_b321
Sent: Wednesday, July 09, 2008 3:40 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Flex

 

Hi guys
i have a bit problem while doing a code in flex. i am unable to bring
Vscroll to application how i can bring it 
Thank you 

 



RE: [flexcoders] ModuleLoader

2008-07-09 Thread Alex Harui
moduleLoader.child is the thing you loaded. Normally you set properties
on it, and it can access parentApplication

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of David Gironella
Sent: Wednesday, July 09, 2008 4:40 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] ModuleLoader

 

How can I pas parameters to a module loaded with ModuleLoader?

 

Can I access to parentApplication from module?

 

Thank,

Giro.

 



RE: [flexcoders] ComboBox ItemRenderer Custom Events only go to SystemManager - WHY?????

2008-07-09 Thread Battershall, Jeff
Alex,
 
I thought that might be the case, but when I use
owner.dispatchEvent(myCustomEventInstance,true) from within my
itemRenderer, and I have previously added an event listener to my
ComboBox, no event is broadcast from my ComboBox.
 
Jeff

-Original Message-
From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of Alex Harui
Sent: Wednesday, July 09, 2008 1:47 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] ComboBox ItemRenderer Custom Events
only go to SystemManager - WHY?



Popups have to float over everything so they are parented by
SM and not the CB or the app.   If you dispatch the event off the
owner it will go to the CB and bubble up from there

 





From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of Battershall, Jeff
Sent: Wednesday, July 09, 2008 10:23 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] ComboBox ItemRenderer Custom Events only
go to SystemManager - WHY?

 

I've been remiss in addressing my less-than-perfect
understanding of
Events and event bubbling.

My custom itemRenderer needs to fire a custom event. I've spent
the last
day trying to get it to bubble up from my custom itemRenderer to
the
ComboBox, but no dice. If I add an eventListener in my ComboBox,
it does
not receive the event. However when I use
systemManager.addEventListener(myCustomEvent,myHandler),
suddenly I
can receive the event.

Is this the expected behavior? Why?

Jeff Battershall
Application Architect
Dow Jones Indexes
[EMAIL PROTECTED]
mailto:jeff.battershall%40dowjones.com 
(609) 520-5637 (p)
(484) 477-9900 (c)



 



[flexcoders] mxml to swf on a J2EE server

2008-07-09 Thread pankajtandon2003
Hello,
I'm trying to integrate a Flex app with a J2EE app. After reading up a
little I determined that LifeCycle Data ES is what I would need to
effect this. LifeCycle Data ES is what allows me to get data from the
server and save data etc. However I really don't need that level of
integration. All I need is the ability to compile my .mxml file on the
server so that it is rendered as a .swf file on the client. LifeCycle
Data ES seems like overkill for just this.

How can I achieve above.

Secondly, I need to pass in a file name to my .mxml file dynamically.
Traditionally, since the mxml file is executing on the client, I would
expect a HTTPService call to get the file name. However, if my .mxml
file is dynamically compiled on the server into an .swf (like a .jsp
into a servlet), then I can really place the file name dynamically in
the source code of the mxml file. How can I do so specifically?

So there are two questions:
1. How can I compile .mxml files into .swfs on a J2EE server without
using LifeCycle Data ES.
2. How can I specify a filename dynamically in a .mxml file so that it
compiles int a .swf with the right filename (and executes on the
client as usual)

Thanks in advance,
Pankaj




[flexcoders] Logging best practice

2008-07-09 Thread Richard Rodseth
I was delighted to learn recently about this:

http://www.pixelate.de/blog/debug-and-release-builds-with-as3-conditional-compilation

So I thought I'd pass that along.

So now I can wrap some asserts and alerts in CONFIG::debug.
My understanding is that it's OK to include trace() statements in a
release build. Please set me straight if that's not the case.


[flexcoders] Re: Background Color of AdvancedDataGrid

2008-07-09 Thread mvbaffa
It worked !!!

Thank you very much

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

 --- In flexcoders@yahoogroups.com, mvbaffa mvbaffa@ wrote:
 
  Hi All,
  
  I am trying to change the background color of a row in response 
to 
 a 
  keyboard action. What I am doing is to drive the keyboard event 
and 
  doing this:
  
   adgDatagrid.dataProvider[adgDatagrid.selectedIndex].verified = 
 true;
   adgDatagrid.invalidateList();
  
  When I call invalidateList the styleFunction defined in my 
  AdvancedDataGrid is activated. This is working OK.
  
  The styleFunction changes the foreground, because of another 
  condition, perfectly. The problem is when I try to return a 
  background style in the same styleFunction it does not change the 
  backgroundColor. Below is my styleFunction code:
  
  
  public function customStyleFunctionstyle(data:Object, 
  col:AdvancedDataGridColumn):Object {
   try {
 if (data[source]) return {color:0x008000};
 if (data[verified]) return {backgroundColor:0x008000};
   }
   catch (err:Error) {}
  return null;  
  }
  
  
  Can you help me !!!
  
  Thanks in advance
 
 http://flexdiary.blogspot.com/2008/06/musings-on-advanceddatagrid-
 part-1.html





[flexcoders] Re: ComboBox ItemRenderer Custom Events only go to SystemManager - WHY?????

2008-07-09 Thread reflexactions
Try owner.owner

Inside itemRenderer owner would be the List, the Lists' owner would 
be the CB I think



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

 Alex,
  
 I thought that might be the case, but when I use
 owner.dispatchEvent(myCustomEventInstance,true) from within my
 itemRenderer, and I have previously added an event listener to my
 ComboBox, no event is broadcast from my ComboBox.
  
 Jeff
 
   -Original Message-
   From: flexcoders@yahoogroups.com
 [mailto:[EMAIL PROTECTED] On Behalf Of Alex Harui
   Sent: Wednesday, July 09, 2008 1:47 PM
   To: flexcoders@yahoogroups.com
   Subject: RE: [flexcoders] ComboBox ItemRenderer Custom Events
 only go to SystemManager - WHY?
   
   
 
   Popups have to float over everything so they are parented by
 SM and not the CB or the app.   If you dispatch the event off the
 owner it will go to the CB and bubble up from there
 

 
   
 
 
 
   From: flexcoders@yahoogroups.com
 [mailto:[EMAIL PROTECTED] On Behalf Of Battershall, Jeff
   Sent: Wednesday, July 09, 2008 10:23 AM
   To: flexcoders@yahoogroups.com
   Subject: [flexcoders] ComboBox ItemRenderer Custom Events only
 go to SystemManager - WHY?
 

 
   I've been remiss in addressing my less-than-perfect
 understanding of
   Events and event bubbling.
   
   My custom itemRenderer needs to fire a custom event. I've 
spent
 the last
   day trying to get it to bubble up from my custom itemRenderer 
to
 the
   ComboBox, but no dice. If I add an eventListener in my 
ComboBox,
 it does
   not receive the event. However when I use
   systemManager.addEventListener(myCustomEvent,myHandler),
 suddenly I
   can receive the event.
   
   Is this the expected behavior? Why?
   
   Jeff Battershall
   Application Architect
   Dow Jones Indexes
   [EMAIL PROTECTED]
 mailto:jeff.battershall%40dowjones.com 
   (609) 520-5637 (p)
   (484) 477-9900 (c)





RE: [flexcoders] ComboBox ItemRenderer Custom Events only go to SystemManager - WHY?????

2008-07-09 Thread Battershall, Jeff
Seriously Alex, 
 
I have been tearing my hair out over this.  When I trace owner from
within my itemRenderer I get List496 or something like that. If I use
owner.dispatchEvent(myCustomEventInstance,true), and listen on the
ComboBox, nothing is transmitted.
 
At this point I'm glad I've got something that will work, i.e., using
SystemManager, but I want to know if there's something I'm doing wrong
that requires this approach, because it seems to break the chain of
responsibility.  Shouldn't a combo box be able to relay events from its
list?
 
Jeff

-Original Message-
From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of Alex Harui
Sent: Wednesday, July 09, 2008 1:47 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] ComboBox ItemRenderer Custom Events
only go to SystemManager - WHY?



Popups have to float over everything so they are parented by
SM and not the CB or the app.   If you dispatch the event off the
owner it will go to the CB and bubble up from there

 





From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of Battershall, Jeff
Sent: Wednesday, July 09, 2008 10:23 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] ComboBox ItemRenderer Custom Events only
go to SystemManager - WHY?

 

I've been remiss in addressing my less-than-perfect
understanding of
Events and event bubbling.

My custom itemRenderer needs to fire a custom event. I've spent
the last
day trying to get it to bubble up from my custom itemRenderer to
the
ComboBox, but no dice. If I add an eventListener in my ComboBox,
it does
not receive the event. However when I use
systemManager.addEventListener(myCustomEvent,myHandler),
suddenly I
can receive the event.

Is this the expected behavior? Why?

Jeff Battershall
Application Architect
Dow Jones Indexes
[EMAIL PROTECTED]
mailto:jeff.battershall%40dowjones.com 
(609) 520-5637 (p)
(484) 477-9900 (c)



 



RE: [flexcoders] Re: ComboBox ItemRenderer Custom Events only go to SystemManager - WHY?????

2008-07-09 Thread Battershall, Jeff
OK, I tried this but I get a compiler error - owner (which is a
DisplayObjectContainer) doesn't have a property owner.

Jeff

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of reflexactions
Sent: Wednesday, July 09, 2008 2:17 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: ComboBox ItemRenderer Custom Events only go to
SystemManager - WHY?


Try owner.owner

Inside itemRenderer owner would be the List, the Lists' owner would 
be the CB I think



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

 Alex,
  
 I thought that might be the case, but when I use
 owner.dispatchEvent(myCustomEventInstance,true) from within my 
 itemRenderer, and I have previously added an event listener to my 
 ComboBox, no event is broadcast from my ComboBox.
  
 Jeff
 
   -Original Message-
   From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] 
 On Behalf Of Alex Harui
   Sent: Wednesday, July 09, 2008 1:47 PM
   To: flexcoders@yahoogroups.com
   Subject: RE: [flexcoders] ComboBox ItemRenderer Custom Events
only go 
 to SystemManager - WHY?
   
   
 
   Popups have to float over everything so they are parented by
 SM and not the CB or the app.   If you dispatch the event off the
 owner it will go to the CB and bubble up from there
 

 
   
 
 
 
   From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] 
 On Behalf Of Battershall, Jeff
   Sent: Wednesday, July 09, 2008 10:23 AM
   To: flexcoders@yahoogroups.com
   Subject: [flexcoders] ComboBox ItemRenderer Custom Events only
go to 
 SystemManager - WHY?
 

 
   I've been remiss in addressing my less-than-perfect
understanding of
   Events and event bubbling.
   
   My custom itemRenderer needs to fire a custom event. I've
spent
 the last
   day trying to get it to bubble up from my custom itemRenderer
to
 the
   ComboBox, but no dice. If I add an eventListener in my
ComboBox,
 it does
   not receive the event. However when I use
   systemManager.addEventListener(myCustomEvent,myHandler),
 suddenly I
   can receive the event.
   
   Is this the expected behavior? Why?
   
   Jeff Battershall
   Application Architect
   Dow Jones Indexes
   [EMAIL PROTECTED] mailto:jeff.battershall%40dowjones.com
   (609) 520-5637 (p)
   (484) 477-9900 (c)






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





[flexcoders] Dynamically generated dataGrid not showing up in Print View component

2008-07-09 Thread bredwards358
I have a problem which is proving very difficult to place, I am
implementing logic to dynamically generate an advanced datagrid and
set it as the source to a printAdvancedDataGrid in a component which
is the print view of whatever report that needs to be printed. Problem
is, while it looks like the dataGrid, its columns and thier dataFields
are being generated properly, when I try to print out the report or
display the printView component in a simple little print Preview I
whipped up, the PrintAdvancedDataGrid is not showing up at all. I
really don't have much to go on so here's some code so you might be
able to see where I might be going wrong.

private function openPOPrint():void
{
dgProvider = new ArrayCollection();
DataManager.openIndex = 0;
dataManager.selectPOData();
dgProvider = model.purchaseOrderData;
reportHead = Open Purchase Orders;
dfArray =
[{label:'POID'},{label:'DateUpdated'},{label:'ListCost'},{label:'ProductCost'}]
headerArray = [{label:'PO
ID'},{label:'Date'},{label:'List'},{label:'Cost'}]
Alert.show(Preview?,Preview?,Alert.YES
|Alert.NO|Alert.CANCEL,null,clickHandler);
//doPrint();
}

private function buildDG(dfArray:Array,headerArray:Array):void
{
var aColumnDef:Array = getColumnDefArray(dfArray,headerArray);
var bColumnDef:Object;
adgTemplate = new AdvancedDataGrid();
var adgc:AdvancedDataGridColumn;
var columnsToAdd:Array = adgTemplate.columns;
for(var i:int = 0;i aColumnDef.length; i++)
{
bColumnDef = aColumnDef[i];
adgc = new 
AdvancedDataGridColumn(bColumnDef.headerText);
adgc.dataField = bColumnDef.dataField;
adgc.visible = bColumnDef.visible;
columnsToAdd.push(adgc);
}
adgTemplate.columns = columnsToAdd;
Application.application.addChild(adgTemplate);
}

private function
getColumnDefArray(dfArray:Array,headerArray:Array):Array
{
var aColumns:Array = new Array();
var df:Array = dfArray;
var headers:Array = headerArray;
var columnDef:Object;
for(var i:int = 0;i  df.length;i++)
{
columnDef = new Object;
columnDef.headerText = headers[i].label;
columnDef.dataField = df[i].label;
columnDef.visible = true;
aColumns.push(columnDef);

}
return aColumns;
}

//The last two functions are based off this:
http://www.cflex.net/showFileDetails.cfm?ObjectID=552Object=FileChannelID=1
//Here is my doPrint();

private function doPrint():void {

var printJob:FlexPrintJob = new FlexPrintJob();
if (printJob.start()) {

var thePrintView:FormPrintView = new FormPrintView();
Application.application.addChild(thePrintView);

thePrintView.width=printJob.pageWidth;
thePrintView.height=printJob.pageHeight;
thePrintView.myDataGrid.source = adgTemplate;
thePrintView.prodTotal = prodTotal;
thePrintView.reportHead = reportHead;
thePrintView.myDataGrid.dataProvider = dgProvider;
thePrintView.showPage(single);

if(!thePrintView.myDataGrid.validNextPage)
{
printJob.addObject(thePrintView);
}
else
{
thePrintView.showPage(first);
printJob.addObject(thePrintView);
thePrintView.pageNumber++;

while(true)
{
thePrintView.myDataGrid.nextPage();
thePrintView.showPage(last);

if(!thePrintView.myDataGrid.validNextPage) 
{
printJob.addObject(thePrintView);
break;
}
else
{
thePrintView.showPage(middle);
printJob.addObject(thePrintView);
thePrintView.pageNumber++;
}
}
}
Application.application.removeChild(thePrintView);
}
printJob.send();
}

Thanks in advance, Brian Ross Edwards



[flexcoders] Set Datagrid Column Width

2008-07-09 Thread cox.blair
I read that the DataGrid was designed to adjust to the dimensions of
the browser, however my application has fixed dimensions to maintain
some sanity.

How can  I define the widths of individual columns in the datagrid?
For instance, the ID column does not need to be 20px wide.

Thanks,



[flexcoders] Re: As3Crypto - Can't read RSA Public Key

2008-07-09 Thread Jim Boone
Interesting enough, I was able to make it work as well on another
machine.  I checked out the latest code from Subversion and copied the
code into a Flex library project then referenced the new library swc.
Everything worked as expected! I will try to use the library swc on
my other machine to see if it continues to work there. 

For what it is worth, the checked-out code would not compile in AS3. 
There are many places in the code with int.MAX_VALUE is used as a
default parameter in a method call.  This must have been OK with AS2
but AS3 chokes.  You will need to replace these variables with the
actual numbers.

e.g.

public function
bmpString(size:int=int.MAX_VALUE,size2:int=0):BMPStringType {
return new BMPStringType(size, size2);
}

Thanks for your help Nick.

Jim

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

 Hi Jim,
 
 I copied your code into a project and pulled in the latest As3Crypto
 source.  Your project compiled and worked as expected.  I was unable
 to replicate the error, and would assume it's an environment issue.
 
 -Nick Matelli
 
 --- In flexcoders@yahoogroups.com, Jim Boone jim@ wrote:
 
  Hi,
  
  I posted this on the As3Crypto discussion list but there is very
  little activity there.  Maybe someone in this group has encrypted
  something using an RSA public key that they might share.
  
  I am trying to read a RSA public key so I can encrypt data in my
  application. I assembled a test app just to learn how the library
  works. Unfortunately, I didn't get very far. I get the message I DONT
  KNOW HOW TO HANDLE DER stuff of TYPE 1 when I try to run the
  following code. I have downloaded the latest source from trunk but I
  still get the error. I generated the private and public keys using
  openssl as shown below:
  
  openssl genrsa -out private.pem 1024
  openssl rsa -in private.pem -pubout -out public.pem
  
  Any clue what is happening here?
  
  ?xml version=1.0 encoding=utf-8?
  mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
  layout=absolute creationComplete=init()
  
  mx:Script
  ![CDATA[
  import com.hurlant.util.Hex;
  import com.hurlant.util.der.PEM;
  import com.hurlant.crypto.rsa.RSAKey;
  
  private var publicKey:String = -BEGIN
  PUBLIC KEY-+
 
  MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCq63UvOM+wA3FYLl7X5v5US1bd+
 
  BP43wScM3boptegIIIO0ghhzhtmCUv7/278Jow9xI/za0CTf8DL9pSDu8+T+RY7U+
 
  WOMaX/IK9D9tqxztDdPu29qSJFenun1O9OL+HaUYaNWSTLirHMZN67/aITtuyV6++
  ikAJfa9EOKAnT/CLIQIDAQAB+
  -END PUBLIC KEY-;
  
  private function init():void
  {
  var rsaPublicKey:RSAKey =
  PEM.readRSAPublicKey(publicKey);
  
  var message:ByteArray =
  Hex.toArray(now listen to this);
  var encryptedMessage:ByteArray = new
  ByteArray;
 
  rsaPublicKey.encrypt(message,encryptedMessage,message.length);
  
 
trace(Hex.fromArray(encryptedMessage));
  }
  ]]
  /mx:Script
  /mx:Application
  
  ~~~ Error ~~
  
  I DONT KNOW HOW TO HANDLE DER stuff of TYPE 1
  Error: Error #2030: End of file was encountered.
  at flash.utils::ByteArray/readBytes()
  at
  com.hurlant.util.der::DER$/parse()[C:\flex\crypto_1.3\com\hurlant
  \util\der\DER.as:134]
  at com.hurlant.util.der::PEM$/readRSAPublicKey()[C:\flex
  \crypto_1.3\com\hurlant\util\der\PEM.as:84]
  at
  Test/init()[C:\flex\workspaces\smtoolsPrototype\Test\src\Test.mxml:
  28]
  
  ~Jim
 





[flexcoders] Re: ComboBox ItemRenderer Custom Events only go to SystemManager - WHY?????

2008-07-09 Thread reflexactions
Cast owner to something like ListBase to get round the compiler error.


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

 OK, I tried this but I get a compiler error - owner (which is a
 DisplayObjectContainer) doesn't have a property owner.
 
 Jeff
 
 -Original Message-
 From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
 Behalf Of reflexactions
 Sent: Wednesday, July 09, 2008 2:17 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: ComboBox ItemRenderer Custom Events only 
go to
 SystemManager - WHY?
 
 
 Try owner.owner
 
 Inside itemRenderer owner would be the List, the Lists' owner would 
 be the CB I think
 
 
 
 --- In flexcoders@yahoogroups.com, Battershall, Jeff 
 jeff.battershall@ wrote:
 
  Alex,
   
  I thought that might be the case, but when I use
  owner.dispatchEvent(myCustomEventInstance,true) from within my 
  itemRenderer, and I have previously added an event listener to my 
  ComboBox, no event is broadcast from my ComboBox.
   
  Jeff
  
  -Original Message-
  From: flexcoders@yahoogroups.com
 [mailto:[EMAIL PROTECTED] 
  On Behalf Of Alex Harui
  Sent: Wednesday, July 09, 2008 1:47 PM
  To: flexcoders@yahoogroups.com
  Subject: RE: [flexcoders] ComboBox ItemRenderer Custom Events
 only go 
  to SystemManager - WHY?
  
  
  
  Popups have to float over everything so they are parented by
  SM and not the CB or the app.   If you dispatch the event off the
  owner it will go to the CB and bubble up from there
  
   
  
  
  
  
  
  From: flexcoders@yahoogroups.com
 [mailto:[EMAIL PROTECTED] 
  On Behalf Of Battershall, Jeff
  Sent: Wednesday, July 09, 2008 10:23 AM
  To: flexcoders@yahoogroups.com
  Subject: [flexcoders] ComboBox ItemRenderer Custom Events only
 go to 
  SystemManager - WHY?
  
   
  
  I've been remiss in addressing my less-than-perfect
 understanding of
  Events and event bubbling.
  
  My custom itemRenderer needs to fire a custom event. I've
 spent
  the last
  day trying to get it to bubble up from my custom itemRenderer
 to
  the
  ComboBox, but no dice. If I add an eventListener in my
 ComboBox,
  it does
  not receive the event. However when I use
  systemManager.addEventListener(myCustomEvent,myHandler),
  suddenly I
  can receive the event.
  
  Is this the expected behavior? Why?
  
  Jeff Battershall
  Application Architect
  Dow Jones Indexes
  jeff.battershall@ mailto:jeff.battershall%40dowjones.com
  (609) 520-5637 (p)
  (484) 477-9900 (c)
 
 
 
 
 
 
 --
 Flexcoders Mailing List
 FAQ: 
http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 Search Archives:
 http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! 
Groups
 Links





RE: [flexcoders] Re: ComboBox ItemRenderer Custom Events only go to SystemManager - WHY?????

2008-07-09 Thread Battershall, Jeff
OK, that works, thank you very much for your help. IMO, seems like an
awful lot of work to achieve this behavior, though.

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of reflexactions
Sent: Wednesday, July 09, 2008 2:39 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: ComboBox ItemRenderer Custom Events only go to
SystemManager - WHY?


Cast owner to something like ListBase to get round the compiler error.


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

 OK, I tried this but I get a compiler error - owner (which is a
 DisplayObjectContainer) doesn't have a property owner.
 
 Jeff
 
 -Original Message-
 From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On
 Behalf Of reflexactions
 Sent: Wednesday, July 09, 2008 2:17 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: ComboBox ItemRenderer Custom Events only
go to
 SystemManager - WHY?
 
 
 Try owner.owner
 
 Inside itemRenderer owner would be the List, the Lists' owner would
 be the CB I think
 
 
 
 --- In flexcoders@yahoogroups.com, Battershall, Jeff
 jeff.battershall@ wrote:
 
  Alex,
   
  I thought that might be the case, but when I use
  owner.dispatchEvent(myCustomEventInstance,true) from within my
  itemRenderer, and I have previously added an event listener to my 
  ComboBox, no event is broadcast from my ComboBox.
   
  Jeff
  
  -Original Message-
  From: flexcoders@yahoogroups.com
 [mailto:[EMAIL PROTECTED]
  On Behalf Of Alex Harui
  Sent: Wednesday, July 09, 2008 1:47 PM
  To: flexcoders@yahoogroups.com
  Subject: RE: [flexcoders] ComboBox ItemRenderer Custom Events
 only go
  to SystemManager - WHY?
  
  
  
  Popups have to float over everything so they are parented by
  SM and not the CB or the app.   If you dispatch the event off the
  owner it will go to the CB and bubble up from there
  
   
  
  
  
  
  
  From: flexcoders@yahoogroups.com
 [mailto:[EMAIL PROTECTED]
  On Behalf Of Battershall, Jeff
  Sent: Wednesday, July 09, 2008 10:23 AM
  To: flexcoders@yahoogroups.com
  Subject: [flexcoders] ComboBox ItemRenderer Custom Events only
 go to
  SystemManager - WHY?
  
   
  
  I've been remiss in addressing my less-than-perfect
 understanding of
  Events and event bubbling.
  
  My custom itemRenderer needs to fire a custom event. I've
 spent
  the last
  day trying to get it to bubble up from my custom itemRenderer
 to
  the
  ComboBox, but no dice. If I add an eventListener in my
 ComboBox,
  it does
  not receive the event. However when I use
  systemManager.addEventListener(myCustomEvent,myHandler),
  suddenly I
  can receive the event.
  
  Is this the expected behavior? Why?
  
  Jeff Battershall
  Application Architect
  Dow Jones Indexes
  jeff.battershall@ mailto:jeff.battershall%40dowjones.com
  (609) 520-5637 (p)
  (484) 477-9900 (c)
 
 
 
 
 
 
 --
 Flexcoders Mailing List
 FAQ:
http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 Search Archives: 
 http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo!
Groups
 Links






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





Re: [flexcoders] Re: ComboBox ItemRenderer Custom Events only go to SystemManager - WHY?????

2008-07-09 Thread Simon Bailey
Just as a precaution here, this owner parent stuff shouldn't be  
necessary, you should be picking up the event flow, just to check have  
you (a) set bubbles to true and (b) ensured if your using an mxml  
component you've assigned the appropriate metadata tag for your custom  
event in the ComboBox component i.e.  
mx:Metadata[Event(name=customSelect,  
type=myevents.CustomEvent)]/mx:Metadata


Cheers,

Simon

newtriks.com

On 9 Jul 2008, at 19:30, Battershall, Jeff wrote:

OK, I tried this but I get a compiler error - owner (which is a
DisplayObjectContainer) doesn't have a property owner.

Jeff

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of reflexactions
Sent: Wednesday, July 09, 2008 2:17 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: ComboBox ItemRenderer Custom Events only go to
SystemManager - WHY?

Try owner.owner

Inside itemRenderer owner would be the List, the Lists' owner would
be the CB I think

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

 Alex,

 I thought that might be the case, but when I use
 owner.dispatchEvent(myCustomEventInstance,true) from within my
 itemRenderer, and I have previously added an event listener to my
 ComboBox, no event is broadcast from my ComboBox.

 Jeff

 -Original Message-
 From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED]
 On Behalf Of Alex Harui
 Sent: Wednesday, July 09, 2008 1:47 PM
 To: flexcoders@yahoogroups.com
 Subject: RE: [flexcoders] ComboBox ItemRenderer Custom Events
only go
 to SystemManager - WHY?



 Popups have to float over everything so they are parented by
 SM and not the CB or the app. If you dispatch the event off the
 owner it will go to the CB and bubble up from there




 


 From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED]
 On Behalf Of Battershall, Jeff
 Sent: Wednesday, July 09, 2008 10:23 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] ComboBox ItemRenderer Custom Events only
go to
 SystemManager - WHY?



 I've been remiss in addressing my less-than-perfect
understanding of
 Events and event bubbling.

 My custom itemRenderer needs to fire a custom event. I've
spent
 the last
 day trying to get it to bubble up from my custom itemRenderer
to
 the
 ComboBox, but no dice. If I add an eventListener in my
ComboBox,
 it does
 not receive the event. However when I use
 systemManager.addEventListener(myCustomEvent,myHandler),
 suddenly I
 can receive the event.

 Is this the expected behavior? Why?

 Jeff Battershall
 Application Architect
 Dow Jones Indexes
 [EMAIL PROTECTED] mailto:jeff.battershall%40dowjones.com
 (609) 520-5637 (p)
 (484) 477-9900 (c)




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






[flexcoders] Re: Trouble passing values to a child window

2008-07-09 Thread Amy
--- In flexcoders@yahoogroups.com, Andrew Wetmore [EMAIL PROTECTED] 
wrote:

 sorry, I should have said below if I DO comment out the two lines 
that are
 currently commented out, the code runs fine

What happens if you use an event listener to detect that the window is 
fully open (maybe creationComplete, possibly update, possibly something 
you dispatch yourself in commitProperties or somewhere), then put those 
two lines in there?

HTH;

Amy



[flexcoders] Re: Background Color of AdvancedDataGrid

2008-07-09 Thread Amy
--- In flexcoders@yahoogroups.com, mvbaffa [EMAIL PROTECTED] wrote:

 It worked !!!
 
 Thank you very much

You're welcome :-)



[flexcoders] RegEx help please

2008-07-09 Thread Greg Hess
Hi All,

I am trying to use the RegExpValidator and am having MUCH trouble with
my expression and I think I am using characters that need escaping. I
need to write an expression that is used to restrict an EU specified
file name, the rules are:

 - must not start with .
 - must not contain *?/[EMAIL PROTECTED]:

My current expression is: [^?/[EMAIL PROTECTED]:] but it is not working

I had to remove (*) to resolve compiler errors, but even with
these chars removed and cant get the expression to work.

Any help is much appreciated.

Thanks!

-Greg


RE: [flexcoders] AIR Features

2008-07-09 Thread Dimitrios Gianninas
What you are asking in Windows specific and AIR is cross-platform, so this is 
not possible.
 
Dimitrios Gianninas
RIA Developer and Team Lead
Optimal Payments Inc.
 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of mvbaffa
Sent: Wednesday, July 09, 2008 12:46 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] AIR Features



Hi All,

I have some experience in Flex but I wil develop my first application 
in AIR. The are some features that I need and I do not know if they are 
available in AIR, they are:

- Call a COM object
- Execute (shell) a DOS application

Are these features avaiable in AIR 

Thanks in advance



 

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

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



RE: [flexcoders] mxml to swf on a J2EE server

2008-07-09 Thread Dimitrios Gianninas
Hi,
 
1) You don't LCDS to compile stuff, you can pre-compile your Flex application 
by simply using the Flex SDK. It comes with the compiler. You can read about it 
here: http://livedocs.adobe.com/flex/3/html/compilers_01.html
 
2) I dont completly understand this question is that in your Flex app you 
are trying to communicate with an HTTPService and you want to pass it the URL?
 
Dimitrios Gianninas
RIA Developer and Team Lead
Optimal Payments Inc.
 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of 
pankajtandon2003
Sent: Wednesday, July 09, 2008 2:01 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] mxml to swf on a J2EE server



Hello,
I'm trying to integrate a Flex app with a J2EE app. After reading up a
little I determined that LifeCycle Data ES is what I would need to
effect this. LifeCycle Data ES is what allows me to get data from the
server and save data etc. However I really don't need that level of
integration. All I need is the ability to compile my .mxml file on the
server so that it is rendered as a .swf file on the client. LifeCycle
Data ES seems like overkill for just this.

How can I achieve above.

Secondly, I need to pass in a file name to my .mxml file dynamically.
Traditionally, since the mxml file is executing on the client, I would
expect a HTTPService call to get the file name. However, if my .mxml
file is dynamically compiled on the server into an .swf (like a .jsp
into a servlet), then I can really place the file name dynamically in
the source code of the mxml file. How can I do so specifically?

So there are two questions:
1. How can I compile .mxml files into .swfs on a J2EE server without
using LifeCycle Data ES.
2. How can I specify a filename dynamically in a .mxml file so that it
compiles int a .swf with the right filename (and executes on the
client as usual)

Thanks in advance,
Pankaj



 

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

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



RE: [flexcoders] Re: ComboBox ItemRenderer Custom Events only go to SystemManager - WHY?????

2008-07-09 Thread Battershall, Jeff
Simon,
 
I had done as you have described and I agree that it should be that
simple, but the fact that a ComboBox is using PopUpManager to show it's
list appears to be the issue.  Firing the event from my custom
itemRenderer doesn't seem to get noticed by the ComboBox.  Of course
there's always the possibility I'm not doing something correctly, but to
my knowledge, what you decribe SHOULD work.  I don't partcularly care
for this ListBase(owner).owner stuff but it does have the virtue of
working. 
 
Jeff
 
 
-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Simon Bailey
Sent: Wednesday, July 09, 2008 2:48 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Re: ComboBox ItemRenderer Custom Events only
go to SystemManager - WHY?



Just as a precaution here, this owner parent stuff shouldn't be
necessary, you should be picking up the event flow, just to check have
you (a) set bubbles to true and (b) ensured if your using an mxml
component you've assigned the appropriate metadata tag for your custom
event in the ComboBox component i.e.
mx:Metadata[Event(name=customSelect,
type=myevents.CustomEvent)]/mx:Metadata

Cheers,

Simon


newtriks.com http://www.newtriks.com/ 


On 9 Jul 2008, at 19:30, Battershall, Jeff wrote:



OK, I tried this but I get a compiler error - owner (which is a
DisplayObjectContainer) doesn't have a property owner.

Jeff

-Original Message-
From: flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com
[mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
] On
Behalf Of reflexactions
Sent: Wednesday, July 09, 2008 2:17 PM
To: flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com 
Subject: [flexcoders] Re: ComboBox ItemRenderer Custom Events
only go to
SystemManager - WHY?

Try owner.owner

Inside itemRenderer owner would be the List, the Lists' owner
would 
be the CB I think

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

 Alex,
 
 I thought that might be the case, but when I use
 owner.dispatchEvent(myCustomEventInstance,true) from within my

 itemRenderer, and I have previously added an event listener to
my 
 ComboBox, no event is broadcast from my ComboBox.
 
 Jeff
 
 -Original Message-
 From: flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com 
[mailto:flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com ] 
 On Behalf Of Alex Harui
 Sent: Wednesday, July 09, 2008 1:47 PM
 To: flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com 
 Subject: RE: [flexcoders] ComboBox ItemRenderer Custom Events
only go 
 to SystemManager - WHY?
 
 
 
 Popups have to float over everything so they are parented by
 SM and not the CB or the app. If you dispatch the event off
the
 owner it will go to the CB and bubble up from there
 
 
 
 
 
 
 
 From: flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com 
[mailto:flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com ] 
 On Behalf Of Battershall, Jeff
 Sent: Wednesday, July 09, 2008 10:23 AM
 To: flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com 
 Subject: [flexcoders] ComboBox ItemRenderer Custom Events only
go to 
 SystemManager - WHY?
 
 
 
 I've been remiss in addressing my less-than-perfect
understanding of
 Events and event bubbling.
 
 My custom itemRenderer needs to fire a custom event. I've
spent
 the last
 day trying to get it to bubble up from my custom itemRenderer
to
 the
 ComboBox, but no dice. If I add an eventListener in my
ComboBox,
 it does
 not receive the event. However when I use
 systemManager.addEventListener(myCustomEvent,myHandler),
 suddenly I
 can receive the event.
 
 Is this the expected behavior? Why?
 
 Jeff Battershall
 Application Architect
 Dow Jones Indexes
 [EMAIL PROTECTED] mailto:jeff.battershall%40dowjones.com
 (609) 520-5637 (p)
 (484) 477-9900 (c)




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

[flexcoders] Re: ComboBox ItemRenderer Custom Events only go to SystemManager - WHY?????

2008-07-09 Thread Amy
--- In flexcoders@yahoogroups.com, Battershall, Jeff 
[EMAIL PROTECTED] wrote:

 OK, I tried this but I get a compiler error - owner (which is a
 DisplayObjectContainer) doesn't have a property owner.

I've used code like this in the past

var myParent:*=owner

while (myParent.className!='ComboBox'){
  //pretty much everything will have either a parent or an owner
  if (!(myParent.owner==null)){
  myParent=myParent.owner;
  }else{
 myParent=myParent.parent;
  }
}

//myParent is a ComboBox if you get to this point

Note that you need to be REALLY sure this will eventually hit a 
ComboBox, or it will result in an endless loop.  You can add in a 
loop counter for safety, and exit after, say, 100 loops in case of a 
failure to find a combobox.

Possibly you could also extend ComboBox to listen to SystemManager 
and redispatch events.  

HTH;

Amy



[flexcoders] Re: Trouble passing values to a child window

2008-07-09 Thread valdhor
I think it's a timing issue. Try this...

?xml version=1.0 encoding=utf-8?
mx:WindowedApplication xmlns:mx=http://www.adobe.com/2006/mxml;
layout=absolute
 mx:Script
 ![CDATA[
 public var theNote:noteWindow;

 //** popup selected note
 public function floatingNote():void
 {
 theNote = new noteWindow();
 theNote.title = Floating note;
 theNote.maximizable = false;
 theNote.open();
 theNote.noteContents.text=My contents;
 theNote.noteTitle.text = Mytitle;
 }
 ]]
 /mx:Script
 mx:Button label=Create Note Window click=floatingNote()/
/mx:WindowedApplication

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

 sorry, I should have said below if I DO comment out the two lines that
are
 currently commented out, the code runs fine

 On Wed, Jul 9, 2008 at 2:02 PM, Andrew Wetmore [EMAIL PROTECTED] wrote:

Hi. I have an app where the user can select a note and opt to
pop
 
 
 
 



 --
 Andrew Wetmore
 User Experience Director
 Open Learning Exchange - www.ole.org
 978-319-7324




[flexcoders] Re: Newbie Nested Remote Object Question

2008-07-09 Thread kroghadam
Sorry I am really new to flex, I'm not sure what you mean by value
objects. The three classes I gave are Java Classes that are
essentially a facade to further backend persistence code.

I remote directly to the ProjectList.java class and return an array of
Projects. I cannot do what you suggested in actionscript as I only
have the java objects that i am remoting to, and cannot reference those.
I am beginning to think I am doing something seriously wrong as I only
have one remote object, and am trying to access java objects contained
in it. Do I need to have some kind of mapping of action script objects
as well?
Any articles and tutorials about accessing java objects would be a
great help to.

Thanks for your patience,

Adam



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

 Caveat: I use PHP with WebORB but I have done a lot of C++ in the past.
 
 So, to get this straight, you have a value object with a property that
 contains another value object, right? Try...
 
 (project.summary as Summary).budget
 
 or
 
 Summary(project.summary).budget
 
 
 
 
 
 
 --- In flexcoders@yahoogroups.com, kroghadam akrogh@ wrote:
 
  Perhaps I should provide a little more detail on my problem, here are
  three stripped down java classes I am using,
  
  
  public class Project {
private String name;
private Summary summary;
  
public Project(){
}
  
...usual get/set methods
  
  }
  
  public class Summary {
private String clientName;
private int budget;
  
public Summary(){
}
  
...usual get/set methods
  }
  
  public ProjectList {
private ArrayListProject projects;
  
public ProjectList(){
}
  
public Project[] getProjects() {
  buildProjects();
  return projects.toArray(new Project[0]);
}
  
public void buildProjects() {
  Project project;
  Summary summary;
  projects = new ArrayListProject();
  for(int i = 0; i10;i++) {
project = new Project();
project.setName(Name+i);
summary = new Summary();
summary.setBudget(1);
summary.setClientName(Client+i);
project.setSummary(summary);
projects.add(projects);
  }
  }
  
  Within my flex code I use a remote object to the ProjectList and bind
  an ArrayCollection to the return value of getProjects(). I then pass
  the Project elements of this array to a component to display its
 values. 
  This is where my problem comes in. I can display the name of the
  project fine in the component by just using {project.name} but I have
  no idea how to access my Summary object to get its data. 
  I thought I could just do {project.summary.budget} but that doesn't
  display anything. 
  I really hope someone can help me solve this problem as I'v been stuck
  on it for some time now. 
  
  Thanks again,
  
  -Adam
  --Flex Newbie
  
  
  --- In flexcoders@yahoogroups.com, kroghadam kroghadam@ wrote:
  
   Hi everybody, I am really enjoying my first look into flex! 
   Unfortunately I have ran into a problem with remote objects to java
   classes that have compositions of objects in them. In other words my
   class has an instance variable that is another object whose data i
   also want to access, preferably through the same remote object.
   
   If anyone has some pointers, links to examples or even source code I
   would really appreciate it.
   
   Thanks in advance,
   
   -Adam
   --Flex Newbie
  
 





RE: [flexcoders] AIR Features

2008-07-09 Thread Jim Hayes
Not in AIR natively.

Have a look at http://aperture.fluorinefx.com/ though (Windows only).



-Original Message-
From: flexcoders@yahoogroups.com on behalf of Dimitrios Gianninas
Sent: Wed 09/07/2008 20:00
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] AIR Features
 
What you are asking in Windows specific and AIR is cross-platform, so this is 
not possible.
 
Dimitrios Gianninas
RIA Developer and Team Lead
Optimal Payments Inc.
 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of mvbaffa
Sent: Wednesday, July 09, 2008 12:46 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] AIR Features



Hi All,

I have some experience in Flex but I wil develop my first application 
in AIR. The are some features that I need and I do not know if they are 
available in AIR, they are:

- Call a COM object
- Execute (shell) a DOS application

Are these features avaiable in AIR 

Thanks in advance



 

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



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

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

[flexcoders] Clustered BarChart , how to make a distinction line between each part of the bar

2008-07-09 Thread alex
I want to have a 1px line between each sub-part of clustered bar.
I tried to use barWidthRatio=0.98 it sort of looks ok but it's ratio
and not pixels, when the window is resized it might have bigger gap
than 1px.
Also tried using Stroke on the BarSeries but it creates a line all
around the sub-part square meaning it's 1px less on left/right and
top/bottom it looks bad because the one part looks smaller than the
second sub-part.

Is there easy way to create the line as part of BarChart properties ?

Thank you.



RE: [flexcoders] Actionscript pop3 code? And what the hell is an IFBIN / why doesn't it go?

2008-07-09 Thread Tracy Spratt
Sorry, Josh, but I posted the exact same problem a few weeks ago, some
code I wanted in IFBIN, but IFBIN is broken.  I got no responses, so
even though I am not really helping, at least you know you are not
alone.

 

Maybe Ted will see this and either fix IFBIN, or make the code
available, or take it down completely.

 

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Josh McDonald
Sent: Wednesday, July 09, 2008 3:50 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Actionscript pop3 code? And what the hell is an
IFBIN / why doesn't it go?

 

Hey guys,

It seems there's some pop3 code, but it's trapped in IFBIN. Which looked
hella dodgey until I found it was something Ted (on Flex) wrote. Why the
hell did we need another closed system to share code when we already
have this internet dealie I've heard so much about? But I digress. 

It sure doesn't work :)

Does anybody know why IFBIN doesn't work (OS X)? I'm assuming there was
some server-side widget that's now dead?

More importantly, does anybody actually have a copy of the pop3 code
lying around they can point me to or send me off-list?

Cheers,
-Josh

-- 
Therefore, send not to know For whom the bell tolls. It tolls for
thee.

:: Josh 'G-Funk' McDonald
:: 0437 221 380 :: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]  

 



[flexcoders] Stump the Flex Nerd: Getting reference to the set method of a property

2008-07-09 Thread Charlie Hubbard
Ok, I think I've got a pretty difficult question here.  I want to the setter
method given a string containing the name of a property.  With normal
methods I can always do something like obj.myFunction to get a reference to
that function, then I can invoke that function with a func.call().  However,
if you do obj.someProperty that calls the get method.   I already tried obj[
propertyName ] which returned null so that's out.

It's almost like you need another language feature.  obj-property= and
obj-property for ( reference to setter and getter of this property).

Charlie


RE: [flexcoders] Re: DataGrid

2008-07-09 Thread Tracy Spratt
Compositing a new component would be my advice.  

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Amy
Sent: Wednesday, July 09, 2008 8:27 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: DataGrid

 

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

 
 Damn Niraj, this is an old thread. :-)
 
 Rob said the right things. To do what you want, will take more than
 just over-riding a method or two. This is more in the area of
 flexcomponents 
http://tech.groups.yahoo.com/group/flexcomponents/
http://tech.groups.yahoo.com/group/flexcomponents/  . 
 Not for the faint of heart, but if you really want to get into that
 level of component development, there's a good place to start.

Couldn't you make something that _looks_ like what he wants with a pair 
of nested repeaters?

 



[flexcoders] Re: Stump the Flex Nerd: Getting reference to the set method of a property

2008-07-09 Thread Amy
--- In flexcoders@yahoogroups.com, Charlie Hubbard 
[EMAIL PROTECTED] wrote:

 Ok, I think I've got a pretty difficult question here.  I want to 
the setter
 method given a string containing the name of a property.  With 
normal
 methods I can always do something like obj.myFunction to get a 
reference to
 that function, then I can invoke that function with a func.call().  
However,
 if you do obj.someProperty that calls the get method.   I already 
tried obj[
 propertyName ] which returned null so that's out.
 
 It's almost like you need another language feature.  obj-property= 
and
 obj-property for ( reference to setter and getter of this 
property).

obj['property']= 'foo'

should do it.  Since all setter methods are actually setting 
something, you can't just call the method without providing a value.

HTH;

Amy



RE: [flexcoders] Re: Trouble passing values to a child window

2008-07-09 Thread Tracy Spratt
When working with popups, rather than directly set properties of visual
controls, I set a public property, and in the popup I bind the control
property to the public property backing variable.

 

This helps avoid timing issues.

 

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of valdhor
Sent: Wednesday, July 09, 2008 3:19 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Trouble passing values to a child window

 

I think it's a timing issue. Try this...

?xml version=1.0 encoding=utf-8?
mx:WindowedApplication xmlns:mx=http://www.adobe.com/2006/mxml;
layout=absolute
mx:Script
![CDATA[
public var theNote:noteWindow;

//** popup selected note
public function floatingNote():void
{
theNote = new noteWindow();
theNote.title = Floating note;
theNote.maximizable = false;
theNote.open();
theNote.noteContents.text=My contents;
theNote.noteTitle.text = Mytitle;
}
]]
/mx:Script
mx:Button label=Create Note Window click=floatingNote()/
/mx:WindowedApplication

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

 sorry, I should have said below if I DO comment out the two lines that
are
 currently commented out, the code runs fine
 
 On Wed, Jul 9, 2008 at 2:02 PM, Andrew Wetmore [EMAIL PROTECTED] wrote:
 
  Hi. I have an app where the user can select a note and opt to pop
 
 
  
 
 
 
 
 -- 
 Andrew Wetmore
 User Experience Director
 Open Learning Exchange - www.ole.org
 978-319-7324


 



Re: [flexcoders] Stump the Flex Nerd: Getting reference to the set method of a property

2008-07-09 Thread Daniel Gold
What are you attempting to do with the reference to the setter? Maybe
there's some other workaround since I haven't seen a way to get a reference
to it, but also haven't really found a need to.

On Wed, Jul 9, 2008 at 2:43 PM, Charlie Hubbard [EMAIL PROTECTED]
wrote:


 Ok, I think I've got a pretty difficult question here.  I want to the
 setter method given a string containing the name of a property.  With normal
 methods I can always do something like obj.myFunction to get a reference to
 that function, then I can invoke that function with a func.call().  However,
 if you do obj.someProperty that calls the get method.   I already tried obj[
 propertyName ] which returned null so that's out.

 It's almost like you need another language feature.  obj-property= and
 obj-property for ( reference to setter and getter of this property).

 Charlie


  



[flexcoders] TextInput Reskin = runtime Error! ??

2008-07-09 Thread nathanpdaniel

I'm working on an app that's been reskinned.  When I use a TextInput
inside an Accordian, it causes the app to act funny.   I've posted a
simple example which causes the negative result.  Running the
application WITHOUT a skin (as it is) works as desired.  When I add
mx:Style source='assets.css' / to the code and rerun - I get the
error!  The error would be the equivalent of clicking a TextInput to
give it focus.  Upon doing so, focus is shifted elsewhere (away from the
TextInput).  When this happens, you can't ever edit the TextInput.  Any
ideas?

a simplified source:

mx:Application

  mx:Accordian width=100% height=100%

   mx:Canvas width=100% height=100%

mx:TextInput /

   /mxCanvas

  /mx:Accordian

/mx:Application




Re: [flexcoders] Framework Caching Affecting Security Settings?

2008-07-09 Thread Jamie S
I've put together an example that pretty clearly illustrates this
issue. This code is basically taken from the example code for the
Gigya Wildfire widget. When the Gigya widget loads one of the things
it does is reach out to the main Application in order to get it's
config params. Although Gigya's methods aren't what I'd call best
practices, it does conveniently illustrate the issue I encountered.
so...

Steps to reproduce:

1. Create a new project with the code below

2. Publish the project in debug mode ( you should not see any security
warnings )

3. Enable Framework Caching by selecting 'Framework Linkage: Runtime
shared library (RSL)'

4. Again publish the project in debug mode. You'll now get the following error:
SecurityError: Error #2047: Security sandbox violation: parent:
http://cdn.gigya.com/wildfire/swf/wildfireInAS3.swf?ModuleID=cfg
cannot access 
file://localhost/Users/thejamie/Documents/clientzerows/Security-Test/bin-debug/main.swf/[[DYNAMIC]]/1.
at flash.display::DisplayObject/get parent()
at WildfireInAS3_fla::MainTimeline/frame1()

Note: I'm using framework_3.0.0.477.swz. I haven't tested this earlier
versions of the framework

main.mxml:

?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
layout=absolute applicationComplete=handleAppComplete();

mx:Script
![CDATA[

public var cfg:Object = {};

public function handleAppComplete():void {
WFInit();
}

public function WFInit():void {
Security.allowDomain(cdn.gigya.com);
Security.allowInsecureDomain(cdn.gigya.com);
//This code assigns the configurations you set in our site
to the Wildfire configuration object
cfg['width']='400';
cfg['height']='300';
cfg['partner']='186912';
cfg['UIConfig']='configdisplay showEmail=true
showBookmark=true/display/config';;

// Please set up the content to be posted
cfg['defaultContent']= ''; // -- YOUR EMBED CODE GOES HERE

// set up an event handler for the postProfile event, this
is called when the used completed the proccess of posting to his
profile.
cfg['onPostProfile']=function(eventObj:Object):void{
 trace('event fired eventObj.type='+eventObj.type + '
eventObj.network='+eventObj.network +'
eventObj.partnerData='+eventObj.partnerData);
}

// set up an event handler for the onLoad event, this is
called when the Wildfire UI is loaded.
cfg['onLoad']=function(eventObj:Object):void{
 trace('event fired eventObj.type='+eventObj.type +
'eventObj.ModuleID='+eventObj.ModuleID);
}

// set up an event handler for the onClose event, this is
called when the Wildfire UI is closed.
cfg['onClose']=function(eventObj:Object):void{
//add here code to hide
var wfmc1:MovieClip = wfLoader.content as MovieClip;
wfmc1.visible=false;

}

if (wfLoader.content==null) {
// Load Wildfire

wfLoader.load('http://cdn.gigya.com/wildfire/swf/wildfireInAS3.swf?ModuleID=cfg');
}
else {
var wfmc:MovieClip = wfLoader.content as MovieClip;
wfmc.visible=true;
wfmc.INIT();
}
}
]]/mx:Script

mx:SWFLoader x=78 y=149 id=wfLoader/

/mx:Application


On Thu, Jul 3, 2008 at 11:53 AM, Alex Harui [EMAIL PROTECTED] wrote:
 Can you put together a mini-example of the issue so we can see more
 specifics?



 

 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of Jamie S
 Sent: Thursday, July 03, 2008 11:48 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Framework Caching Affecting Security Settings?



 Does Framework Caching affect the security settings?

 I was banging my head against a wall because my app was throwing
 security violations all over the place when an outside swf ( or
 JavaScript ) tried to access the main app. I was using
 Security.allowDomain(*) but it was being ignored completely. I
 turned framework caching off and everything worked again.

 What is the connection? How can I use framework caching and still keep
 my security settings intact?

 Jamie

 


Re: [flexcoders] Call container functions from swfloader?

2008-07-09 Thread Mario Vieira
haven't done this in AIR, but with Flex generated swfs, I have used  
the content object of the swfloader, and I have embedded the swf  
loader (AIR might have to do anyway)


private var _downMeter:MovieClip;
_downMeter = meter.content.getChildAt(0).getChildAt(0).getChildByName 
(Consts.DOWN_METER_MC);


however, meter is loading a AS3 swf, exported to ActionScript.  
Indeed, I can talk to my meter.swf methods


hope it helps


worked with AIRnot sure about the AIR / Flex SWF published for web
On 21 Jun 2008, at 10:52, zhuyuzhou wrote:


I have made a flash menu in Flash with actionscript 2.0, and i put a
swfloader in my AIR application, and load that menu swf file. How can
i call the function in AIR from my flash menu? (click on menu item,
and do certain staff in AIR.




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








[flexcoders] Re: mxml to swf on a J2EE server

2008-07-09 Thread pankajtandon2003
Thanks for the response Dimitrios.

I guess I need to be more specific.
I'm drawing a parallel between mxml file and a jsp file and I am
trying to get the mxml file to compile *like* a jsp file.

In a J2EE environment (say Tomcat), I write a jsp using custom jsp
tags, ensure that the jar files that contain the TagLibs and the
corresponding classes are in the class path of the server and when my
server encounters a URL ending in .jsp, it knows to compile the .jsp
into a servlet that then sends HTML in the response to the server.

I am looking for a similar way to achieve this behavior when I write a
.mxml file. Using Flex Builder as an eclipse plugin is great for unit
testing where I can see the results of the swf in a browser launched
from my IDE. However, how can I achieve this when I am using Tomcat. I
thought LCDS was the way to achieve this. 

You have stated that that is not the case. 

In other words how can I get from a .mxml to a .swf (that my browser
can display) in one step. OR.. is it necessary to do a two-step
process, where I compile into a .swf and then bundle the swf with my
J2EE artifact for deployment. If this is the case, then how can I
supply a filename to my swf dynamically.

I hope I am clear..er now :)
Thanks for your responses and patience!

Pankaj


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

 Hi,
  
 1) You don't LCDS to compile stuff, you can pre-compile your Flex
application by simply using the Flex SDK. It comes with the compiler.
You can read about it here:
http://livedocs.adobe.com/flex/3/html/compilers_01.html
  
 2) I dont completly understand this question is that in your
Flex app you are trying to communicate with an HTTPService and you
want to pass it the URL?
  
 Dimitrios Gianninas
 RIA Developer and Team Lead
 Optimal Payments Inc.
  
 
 
 
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
On Behalf Of pankajtandon2003
 Sent: Wednesday, July 09, 2008 2:01 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] mxml to swf on a J2EE server
 
 
 
 Hello,
 I'm trying to integrate a Flex app with a J2EE app. After reading up a
 little I determined that LifeCycle Data ES is what I would need to
 effect this. LifeCycle Data ES is what allows me to get data from the
 server and save data etc. However I really don't need that level of
 integration. All I need is the ability to compile my .mxml file on the
 server so that it is rendered as a .swf file on the client. LifeCycle
 Data ES seems like overkill for just this.
 
 How can I achieve above.
 
 Secondly, I need to pass in a file name to my .mxml file dynamically.
 Traditionally, since the mxml file is executing on the client, I would
 expect a HTTPService call to get the file name. However, if my .mxml
 file is dynamically compiled on the server into an .swf (like a .jsp
 into a servlet), then I can really place the file name dynamically in
 the source code of the mxml file. How can I do so specifically?
 
 So there are two questions:
 1. How can I compile .mxml files into .swfs on a J2EE server without
 using LifeCycle Data ES.
 2. How can I specify a filename dynamically in a .mxml file so that it
 compiles int a .swf with the right filename (and executes on the
 client as usual)
 
 Thanks in advance,
 Pankaj
 
 
 
  
 
 -- 
 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: TextInput Reskin = runtime Error! ??

2008-07-09 Thread nathanpdaniel
I did narrow it down to the TextInput focus skin - which was one 
generated in Photoshop CS3.  The designer said all he did was change 
the color of the skin from the blue to a green and exported.  Any 
idea why this causes the issue?


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

 
 I'm working on an app that's been reskinned.  When I use a TextInput
 inside an Accordian, it causes the app to act funny.   I've 
posted a
 simple example which causes the negative result.  Running the
 application WITHOUT a skin (as it is) works as desired.  When I add
 mx:Style source='assets.css' / to the code and rerun - I get the
 error!  The error would be the equivalent of clicking a TextInput to
 give it focus.  Upon doing so, focus is shifted elsewhere (away 
from the
 TextInput).  When this happens, you can't ever edit the TextInput.  
Any
 ideas?
 
 a simplified source:
 
 mx:Application
 
   mx:Accordian width=100% height=100%
 
mx:Canvas width=100% height=100%
 
 mx:TextInput /
 
/mxCanvas
 
   /mx:Accordian
 
 /mx:Application





Re: [flexcoders] Re: mxml to swf on a J2EE server

2008-07-09 Thread Douglas Knudsen
On Wed, Jul 9, 2008 at 4:14 PM, pankajtandon2003 [EMAIL PROTECTED] wrote:
 Thanks for the response Dimitrios.

 I guess I need to be more specific.
 I'm drawing a parallel between mxml file and a jsp file and I am
 trying to get the mxml file to compile *like* a jsp file.

 In a J2EE environment (say Tomcat), I write a jsp using custom jsp
 tags, ensure that the jar files that contain the TagLibs and the
 corresponding classes are in the class path of the server and when my
 server encounters a URL ending in .jsp, it knows to compile the .jsp
 into a servlet that then sends HTML in the response to the server.

 I am looking for a similar way to achieve this behavior when I write a
 .mxml file. Using Flex Builder as an eclipse plugin is great for unit
 testing where I can see the results of the swf in a browser launched
 from my IDE. However, how can I achieve this when I am using Tomcat. I
 thought LCDS was the way to achieve this.

 You have stated that that is not the case.

 In other words how can I get from a .mxml to a .swf (that my browser
 can display) in one step. OR.. is it necessary to do a two-step
 process, where I compile into a .swf and then bundle the swf with my
 J2EE artifact for deployment. If this is the case, then how can I
 supply a filename to my swf dynamically.


The accepted way is to do this, yes.  Use Ant to build your jars,
swfs, etc ball them up and deploy away.  Alternatively, you can use
LCDS to 'compile on the fly' like a jsp, php, or cfm does.  Flex 1.5
and earlier worked this way.  It is *horribly* slow on first request
though.  Its called web-tier-compiler IIRC.  Heck of a lot of cash to
outlay just for this when you can compile in your standard build
process.

DK

 I hope I am clear..er now :)
 Thanks for your responses and patience!

 Pankaj

 --- In flexcoders@yahoogroups.com, Dimitrios Gianninas

 [EMAIL PROTECTED] wrote:

 Hi,

 1) You don't LCDS to compile stuff, you can pre-compile your Flex
 application by simply using the Flex SDK. It comes with the compiler.
 You can read about it here:
 http://livedocs.adobe.com/flex/3/html/compilers_01.html

 2) I dont completly understand this question is that in your
 Flex app you are trying to communicate with an HTTPService and you
 want to pass it the URL?

 Dimitrios Gianninas
 RIA Developer and Team Lead
 Optimal Payments Inc.


 

 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
 On Behalf Of pankajtandon2003
 Sent: Wednesday, July 09, 2008 2:01 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] mxml to swf on a J2EE server



 Hello,
 I'm trying to integrate a Flex app with a J2EE app. After reading up a
 little I determined that LifeCycle Data ES is what I would need to
 effect this. LifeCycle Data ES is what allows me to get data from the
 server and save data etc. However I really don't need that level of
 integration. All I need is the ability to compile my .mxml file on the
 server so that it is rendered as a .swf file on the client. LifeCycle
 Data ES seems like overkill for just this.

 How can I achieve above.

 Secondly, I need to pass in a file name to my .mxml file dynamically.
 Traditionally, since the mxml file is executing on the client, I would
 expect a HTTPService call to get the file name. However, if my .mxml
 file is dynamically compiled on the server into an .swf (like a .jsp
 into a servlet), then I can really place the file name dynamically in
 the source code of the mxml file. How can I do so specifically?

 So there are two questions:
 1. How can I compile .mxml files into .swfs on a J2EE server without
 using LifeCycle Data ES.
 2. How can I specify a filename dynamically in a .mxml file so that it
 compiles int a .swf with the right filename (and executes on the
 client as usual)

 Thanks in advance,
 Pankaj





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

[flexcoders] AdvancedDataGridRendererProvider.renderer

2008-07-09 Thread Brandon Krakowsky
I'm trying to set the renderer property of an 
AdvancedDataGridRendererProvider in AS.

var iconRendererProvider:AdvancedDataGridRendererProvider = new 
AdvancedDataGridRendererProvider;
iconRendererProvider.columnIndex = 0;
iconRendererProvider.columnSpan = 1;
iconRendererProvider.dataField = icon;
iconRendererProvider.renderer = myClass;

myClass extends AdvancedDataGridItemRenderer and overrides the data function.

Here's the error I get:
1067: Implicit coercion of a value of type Class to an unrelated type 
mx.core:IFactory.

I can't seem to figure out how to specify the class.

Thanks,
Brandon


  

RE: [flexcoders] Re: mxml to swf on a J2EE server

2008-07-09 Thread Tracy Spratt
I also seem to recall an Apache thing, hold on, ... yes,

http://labs.adobe.com/wiki/index.php/Flex_Module_for_Apache_and_IIS 
http://labs.adobe.com/wiki/index.php/Flex_Module_for_Apache_and_IIS 

 

See if that is what you are looking for.

 

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Douglas 
Knudsen
Sent: Wednesday, July 09, 2008 4:22 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Re: mxml to swf on a J2EE server

 

On Wed, Jul 9, 2008 at 4:14 PM, pankajtandon2003 [EMAIL PROTECTED] 
mailto:pankajtandon%40gmail.com  wrote:
 Thanks for the response Dimitrios.

 I guess I need to be more specific.
 I'm drawing a parallel between mxml file and a jsp file and I am
 trying to get the mxml file to compile *like* a jsp file.

 In a J2EE environment (say Tomcat), I write a jsp using custom jsp
 tags, ensure that the jar files that contain the TagLibs and the
 corresponding classes are in the class path of the server and when my
 server encounters a URL ending in .jsp, it knows to compile the .jsp
 into a servlet that then sends HTML in the response to the server.

 I am looking for a similar way to achieve this behavior when I write a
 .mxml file. Using Flex Builder as an eclipse plugin is great for unit
 testing where I can see the results of the swf in a browser launched
 from my IDE. However, how can I achieve this when I am using Tomcat. I
 thought LCDS was the way to achieve this.

 You have stated that that is not the case.

 In other words how can I get from a .mxml to a .swf (that my browser
 can display) in one step. OR.. is it necessary to do a two-step
 process, where I compile into a .swf and then bundle the swf with my
 J2EE artifact for deployment. If this is the case, then how can I
 supply a filename to my swf dynamically.


The accepted way is to do this, yes. Use Ant to build your jars,
swfs, etc ball them up and deploy away. Alternatively, you can use
LCDS to 'compile on the fly' like a jsp, php, or cfm does. Flex 1.5
and earlier worked this way. It is *horribly* slow on first request
though. Its called web-tier-compiler IIRC. Heck of a lot of cash to
outlay just for this when you can compile in your standard build
process.

DK

 I hope I am clear..er now :)
 Thanks for your responses and patience!

 Pankaj

 --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , 
 Dimitrios Gianninas

 [EMAIL PROTECTED] wrote:

 Hi,

 1) You don't LCDS to compile stuff, you can pre-compile your Flex
 application by simply using the Flex SDK. It comes with the compiler.
 You can read about it here:
 http://livedocs.adobe.com/flex/3/html/compilers_01.html 
 http://livedocs.adobe.com/flex/3/html/compilers_01.html 

 2) I dont completly understand this question is that in your
 Flex app you are trying to communicate with an HTTPService and you
 want to pass it the URL?

 Dimitrios Gianninas
 RIA Developer and Team Lead
 Optimal Payments Inc.


 

 From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com  
 [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ]
 On Behalf Of pankajtandon2003
 Sent: Wednesday, July 09, 2008 2:01 PM
 To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com 
 Subject: [flexcoders] mxml to swf on a J2EE server



 Hello,
 I'm trying to integrate a Flex app with a J2EE app. After reading up a
 little I determined that LifeCycle Data ES is what I would need to
 effect this. LifeCycle Data ES is what allows me to get data from the
 server and save data etc. However I really don't need that level of
 integration. All I need is the ability to compile my .mxml file on the
 server so that it is rendered as a .swf file on the client. LifeCycle
 Data ES seems like overkill for just this.

 How can I achieve above.

 Secondly, I need to pass in a file name to my .mxml file dynamically.
 Traditionally, since the mxml file is executing on the client, I would
 expect a HTTPService call to get the file name. However, if my .mxml
 file is dynamically compiled on the server into an .swf (like a .jsp
 into a servlet), then I can really place the file name dynamically in
 the source code of the mxml file. How can I do so specifically?

 So there are two questions:
 1. How can I compile .mxml files into .swfs on a J2EE server without
 using LifeCycle Data ES.
 2. How can I specify a filename dynamically in a .mxml file so that it
 compiles int a .swf with the right filename (and executes on the
 client as usual)

 Thanks in advance,
 Pankaj





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

Re: [flexcoders] Re: mxml to swf on a J2EE server

2008-07-09 Thread Matt Chotin
Actually those are available from the opensource.adobe.com downloads page for 
Flex 3 (or maybe it's the main download page).

Matt


On 7/9/08 1:46 PM, Tracy Spratt [EMAIL PROTECTED] wrote:




I also seem to recall an Apache thing, hold on, ... yes,
http://labs.adobe.com/wiki/index.php/Flex_Module_for_Apache_and_IIS

See if that is what you are looking for.

Tracy




From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Douglas 
Knudsen
Sent: Wednesday, July 09, 2008 4:22 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Re: mxml to swf on a J2EE server


On Wed, Jul 9, 2008 at 4:14 PM, pankajtandon2003 [EMAIL PROTECTED] 
mailto:pankajtandon%40gmail.com  wrote:
 Thanks for the response Dimitrios.

 I guess I need to be more specific.
 I'm drawing a parallel between mxml file and a jsp file and I am
 trying to get the mxml file to compile *like* a jsp file.

 In a J2EE environment (say Tomcat), I write a jsp using custom jsp
 tags, ensure that the jar files that contain the TagLibs and the
 corresponding classes are in the class path of the server and when my
 server encounters a URL ending in .jsp, it knows to compile the .jsp
 into a servlet that then sends HTML in the response to the server.

 I am looking for a similar way to achieve this behavior when I write a
 .mxml file. Using Flex Builder as an eclipse plugin is great for unit
 testing where I can see the results of the swf in a browser launched
 from my IDE. However, how can I achieve this when I am using Tomcat. I
 thought LCDS was the way to achieve this.

 You have stated that that is not the case.

 In other words how can I get from a .mxml to a .swf (that my browser
 can display) in one step. OR.. is it necessary to do a two-step
 process, where I compile into a .swf and then bundle the swf with my
 J2EE artifact for deployment. If this is the case, then how can I
 supply a filename to my swf dynamically.


The accepted way is to do this, yes. Use Ant to build your jars,
swfs, etc ball them up and deploy away. Alternatively, you can use
LCDS to 'compile on the fly' like a jsp, php, or cfm does. Flex 1.5
and earlier worked this way. It is *horribly* slow on first request
though. Its called web-tier-compiler IIRC. Heck of a lot of cash to
outlay just for this when you can compile in your standard build
process.

DK

 I hope I am clear..er now :)
 Thanks for your responses and patience!

 Pankaj

 --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , 
 Dimitrios Gianninas

 [EMAIL PROTECTED] wrote:

 Hi,

 1) You don't LCDS to compile stuff, you can pre-compile your Flex
 application by simply using the Flex SDK. It comes with the compiler.
 You can read about it here:
 http://livedocs.adobe.com/flex/3/html/compilers_01.html

 2) I dont completly understand this question is that in your
 Flex app you are trying to communicate with an HTTPService and you
 want to pass it the URL?

 Dimitrios Gianninas
 RIA Developer and Team Lead
 Optimal Payments Inc.


 

 From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com 
 [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ]
 On Behalf Of pankajtandon2003
 Sent: Wednesday, July 09, 2008 2:01 PM
 To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
 Subject: [flexcoders] mxml to swf on a J2EE server



 Hello,
 I'm trying to integrate a Flex app with a J2EE app. After reading up a
 little I determined that LifeCycle Data ES is what I would need to
 effect this. LifeCycle Data ES is what allows me to get data from the
 server and save data etc. However I really don't need that level of
 integration. All I need is the ability to compile my .mxml file on the
 server so that it is rendered as a .swf file on the client. LifeCycle
 Data ES seems like overkill for just this.

 How can I achieve above.

 Secondly, I need to pass in a file name to my .mxml file dynamically.
 Traditionally, since the mxml file is executing on the client, I would
 expect a HTTPService call to get the file name. However, if my .mxml
 file is dynamically compiled on the server into an .swf (like a .jsp
 into a servlet), then I can really place the file name dynamically in
 the source code of the mxml file. How can I do so specifically?

 So there are two questions:
 1. How can I compile .mxml files into .swfs on a J2EE server without
 using LifeCycle Data ES.
 2. How can I specify a filename dynamically in a .mxml file so that it
 compiles int a .swf with the right filename (and executes on the
 client as usual)

 Thanks in advance,
 Pankaj





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

[flexcoders] Creating Moving Desktop (AIR)

2008-07-09 Thread armyofnuubs
Hi All,

just joined this group but have been reviewing it for how tos in
flex for the last 6 months.  Well here is my question: i was wondering
if there is any way that one can manipulate the desktop using flash? 
Any help, or direction much appreciated. 

Some background, i am trying to build a moving desktop a la
Dreamscape(or is it dreamscene) for vista ultimate.  This is more of a
personal project in which i hope to learn about leaving small memory
footprints, video optimization, cpu cycle optimizations, general
application optimizations, as well as application architecting among
other things.  

I have tried using flash.desktop but that really does not have
anything useful that i could find.  I have gone through the Screen
package, but have failed to find anything that would be useful.

Thanks.



[flexcoders] Re: Trouble passing values to a child window -- solved

2008-07-09 Thread Andrew Wetmore
Thank you all for your help! It was indeed a timing issue.

Be back at you with a couple more questions soon.

andrew



RE: [flexcoders] Stump the Flex Nerd: Getting reference to the set method of a property

2008-07-09 Thread Gordon Smith
There is no way in AS3 to get a reference of type Function to a getter
or setter. What is your use case for needing such a reference?

 

Gordon Smith

Adobe Flex SDK Team

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Charlie Hubbard
Sent: Wednesday, July 09, 2008 12:44 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Stump the Flex Nerd: Getting reference to the set
method of a property

 


Ok, I think I've got a pretty difficult question here.  I want to the
setter method given a string containing the name of a property.  With
normal methods I can always do something like obj.myFunction to get a
reference to that function, then I can invoke that function with a
func.call().  However, if you do obj.someProperty that calls the get
method.   I already tried obj[ propertyName ] which returned null so
that's out. 

It's almost like you need another language feature.  obj-property= and
obj-property for ( reference to setter and getter of this property).

Charlie



 



[flexcoders] Re: mxml to swf on a J2EE server

2008-07-09 Thread pankajtandon2003
Thanks Douglas and Tracy!
That was good information.
Any idea if the Apache/IIS plugin is also as slow as LCDS is supposed
to be (as per Doug's posting). 
I clearly ignored the ant task to do this step. I do agree it may be
the better way to go instead of forking out the $$ for LCDS.

Any suggestions for a good maven-plugin *that works*  for doing this..
that compiles .mxmls to .swfs. I'm trying to avoid the antrun plugin
if possible.

Thanks guys! I'm warming to this flex thing :)

Pankaj


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

 I also seem to recall an Apache thing, hold on, ... yes,
 
 http://labs.adobe.com/wiki/index.php/Flex_Module_for_Apache_and_IIS
http://labs.adobe.com/wiki/index.php/Flex_Module_for_Apache_and_IIS 
 
  
 
 See if that is what you are looking for.
 
  
 
 Tracy
 
  
 
 
 
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
On Behalf Of Douglas Knudsen
 Sent: Wednesday, July 09, 2008 4:22 PM
 To: flexcoders@yahoogroups.com
 Subject: Re: [flexcoders] Re: mxml to swf on a J2EE server
 
  
 
 On Wed, Jul 9, 2008 at 4:14 PM, pankajtandon2003 [EMAIL PROTECTED]
mailto:pankajtandon%40gmail.com  wrote:
  Thanks for the response Dimitrios.
 
  I guess I need to be more specific.
  I'm drawing a parallel between mxml file and a jsp file and I am
  trying to get the mxml file to compile *like* a jsp file.
 
  In a J2EE environment (say Tomcat), I write a jsp using custom jsp
  tags, ensure that the jar files that contain the TagLibs and the
  corresponding classes are in the class path of the server and when my
  server encounters a URL ending in .jsp, it knows to compile the .jsp
  into a servlet that then sends HTML in the response to the server.
 
  I am looking for a similar way to achieve this behavior when I write a
  .mxml file. Using Flex Builder as an eclipse plugin is great for unit
  testing where I can see the results of the swf in a browser launched
  from my IDE. However, how can I achieve this when I am using Tomcat. I
  thought LCDS was the way to achieve this.
 
  You have stated that that is not the case.
 
  In other words how can I get from a .mxml to a .swf (that my browser
  can display) in one step. OR.. is it necessary to do a two-step
  process, where I compile into a .swf and then bundle the swf with my
  J2EE artifact for deployment. If this is the case, then how can I
  supply a filename to my swf dynamically.
 
 
 The accepted way is to do this, yes. Use Ant to build your jars,
 swfs, etc ball them up and deploy away. Alternatively, you can use
 LCDS to 'compile on the fly' like a jsp, php, or cfm does. Flex 1.5
 and earlier worked this way. It is *horribly* slow on first request
 though. Its called web-tier-compiler IIRC. Heck of a lot of cash to
 outlay just for this when you can compile in your standard build
 process.
 
 DK
 
  I hope I am clear..er now :)
  Thanks for your responses and patience!
 
  Pankaj
 
  --- In flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com , Dimitrios Gianninas
 
  dimitrios.gianninas@ wrote:
 
  Hi,
 
  1) You don't LCDS to compile stuff, you can pre-compile your Flex
  application by simply using the Flex SDK. It comes with the compiler.
  You can read about it here:
  http://livedocs.adobe.com/flex/3/html/compilers_01.html
http://livedocs.adobe.com/flex/3/html/compilers_01.html 
 
  2) I dont completly understand this question is that in your
  Flex app you are trying to communicate with an HTTPService and you
  want to pass it the URL?
 
  Dimitrios Gianninas
  RIA Developer and Team Lead
  Optimal Payments Inc.
 
 
  
 
  From: flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com 
[mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ]
  On Behalf Of pankajtandon2003
  Sent: Wednesday, July 09, 2008 2:01 PM
  To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com 
  Subject: [flexcoders] mxml to swf on a J2EE server
 
 
 
  Hello,
  I'm trying to integrate a Flex app with a J2EE app. After reading
up a
  little I determined that LifeCycle Data ES is what I would need to
  effect this. LifeCycle Data ES is what allows me to get data from the
  server and save data etc. However I really don't need that level of
  integration. All I need is the ability to compile my .mxml file
on the
  server so that it is rendered as a .swf file on the client. LifeCycle
  Data ES seems like overkill for just this.
 
  How can I achieve above.
 
  Secondly, I need to pass in a file name to my .mxml file dynamically.
  Traditionally, since the mxml file is executing on the client, I
would
  expect a HTTPService call to get the file name. However, if my .mxml
  file is dynamically compiled on the server into an .swf (like a .jsp
  into a servlet), then I can really place the file name dynamically in
  the source code of the mxml file. How can I do so specifically?
 
  So there are two 

Re: [flexcoders] Re: mxml to swf on a J2EE server

2008-07-09 Thread Daniel Gold
I've started using velo's mojos to build with Maven. Working great so far
and he seems to be working on it quite a bit.

http://code.google.com/p/flex-mojos/

On Wed, Jul 9, 2008 at 3:49 PM, pankajtandon2003 [EMAIL PROTECTED]
wrote:

   Thanks Douglas and Tracy!
 That was good information.
 Any idea if the Apache/IIS plugin is also as slow as LCDS is supposed
 to be (as per Doug's posting).
 I clearly ignored the ant task to do this step. I do agree it may be
 the better way to go instead of forking out the $$ for LCDS.

 Any suggestions for a good maven-plugin *that works* for doing this..
 that compiles .mxmls to .swfs. I'm trying to avoid the antrun plugin
 if possible.

 Thanks guys! I'm warming to this flex thing :)

 Pankaj


 --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Tracy
 Spratt [EMAIL PROTECTED] wrote:
 
  I also seem to recall an Apache thing, hold on, ... yes,
 
  http://labs.adobe.com/wiki/index.php/Flex_Module_for_Apache_and_IIS
 http://labs.adobe.com/wiki/index.php/Flex_Module_for_Apache_and_IIS
 
 
 
  See if that is what you are looking for.
 
 
 
  Tracy
 
 
 
  
 
  From: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com [mailto:
 flexcoders@yahoogroups.com flexcoders%40yahoogroups.com]
 On Behalf Of Douglas Knudsen
  Sent: Wednesday, July 09, 2008 4:22 PM
  To: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com
  Subject: Re: [flexcoders] Re: mxml to swf on a J2EE server
 
 
 
  On Wed, Jul 9, 2008 at 4:14 PM, pankajtandon2003 [EMAIL PROTECTED]
 mailto:pankajtandon%40gmail.com pankajtandon%2540gmail.com  wrote:
   Thanks for the response Dimitrios.
  
   I guess I need to be more specific.
   I'm drawing a parallel between mxml file and a jsp file and I am
   trying to get the mxml file to compile *like* a jsp file.
  
   In a J2EE environment (say Tomcat), I write a jsp using custom jsp
   tags, ensure that the jar files that contain the TagLibs and the
   corresponding classes are in the class path of the server and when my
   server encounters a URL ending in .jsp, it knows to compile the .jsp
   into a servlet that then sends HTML in the response to the server.
  
   I am looking for a similar way to achieve this behavior when I write a
   .mxml file. Using Flex Builder as an eclipse plugin is great for unit
   testing where I can see the results of the swf in a browser launched
   from my IDE. However, how can I achieve this when I am using Tomcat. I
   thought LCDS was the way to achieve this.
  
   You have stated that that is not the case.
  
   In other words how can I get from a .mxml to a .swf (that my browser
   can display) in one step. OR.. is it necessary to do a two-step
   process, where I compile into a .swf and then bundle the swf with my
   J2EE artifact for deployment. If this is the case, then how can I
   supply a filename to my swf dynamically.
  
 
  The accepted way is to do this, yes. Use Ant to build your jars,
  swfs, etc ball them up and deploy away. Alternatively, you can use
  LCDS to 'compile on the fly' like a jsp, php, or cfm does. Flex 1.5
  and earlier worked this way. It is *horribly* slow on first request
  though. Its called web-tier-compiler IIRC. Heck of a lot of cash to
  outlay just for this when you can compile in your standard build
  process.
 
  DK
 
   I hope I am clear..er now :)
   Thanks for your responses and patience!
  
   Pankaj
  
   --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com
 mailto:flexcoders%40yahoogroups.com flexcoders%2540yahoogroups.com ,
 Dimitrios Gianninas
  
   dimitrios.gianninas@ wrote:
  
   Hi,
  
   1) You don't LCDS to compile stuff, you can pre-compile your Flex
   application by simply using the Flex SDK. It comes with the compiler.
   You can read about it here:
   http://livedocs.adobe.com/flex/3/html/compilers_01.html
 http://livedocs.adobe.com/flex/3/html/compilers_01.html
  
   2) I dont completly understand this question is that in your
   Flex app you are trying to communicate with an HTTPService and you
   want to pass it the URL?
  
   Dimitrios Gianninas
   RIA Developer and Team Lead
   Optimal Payments Inc.
  
  
   
  
   From: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com
 mailto:flexcoders%40yahoogroups.com flexcoders%2540yahoogroups.com
 [mailto:flexcoders@yahoogroups.com flexcoders%40yahoogroups.com mailto:
 flexcoders%40yahoogroups.com flexcoders%2540yahoogroups.com ]
   On Behalf Of pankajtandon2003
   Sent: Wednesday, July 09, 2008 2:01 PM
   To: flexcoders@yahoogroups.com flexcoders%40yahoogroups.commailto:
 flexcoders%40yahoogroups.com flexcoders%2540yahoogroups.com
   Subject: [flexcoders] mxml to swf on a J2EE server
  
  
  
   Hello,
   I'm trying to integrate a Flex app with a J2EE app. After reading
 up a
   little I determined that LifeCycle Data ES is what I would need to
   effect this. LifeCycle Data ES is what allows me to get data from the
   server 

[flexcoders] Re: Right Mouse click

2008-07-09 Thread Ben
I am in need of something like this as well.

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

 In my program when user clicks on a DG's cell I am changing cell's 
 color to show which cell was clicked. Now, they want to implement a 
 ContextMenu on the grids. Can I highlight a cell in the same manner but 
 from the right mouse click, just before the ContextMenu popups?
 
 Thanks





Re: [flexcoders] Stump the Flex Nerd: Getting reference to the set method of a property

2008-07-09 Thread Charlie Hubbard
Well that was a quick answer thanks.  Too bad you can't do this :-(  I
noticed in my debugger if I drop a breakpoint inside the set property
function it reports the name of the function as set property with a
space.  I haven't tested if obj[set property] would really return that
function or not, but I guess not.

I'm trying to save myself extra typing by going meta with my framework.
I'm trying to map the results coming back from say a RemoteObject onto a a
model's property inside the object receiving the server's response.  It's
really just trying to save myself the extra work of writing a bunch of tiny
little functions that just do a property set.  For example:

var token : AsyncToken = parent.getAllUsers( orderBy );
token.addResponder( new AsyncResponder( generateEvent(usersLoaded, users
), generateError(usersFailed), token ) );
return token;

The meat of this example is the generateEvent() and generateError()
methods.  These methods simply return a listener function that will generate
the event specified in the first parameter, and in the case of generateEvent
it will assign the results from the server to the property users.  This
allows the model to load the data form the server asynchronously, then when
the results arrive back it fires a domain level event so the Controller can
grab that event and respond to it, or just use simple Bindable on the
property to update the view if it's a simple response.

My work around is the following:

var token : AsyncToken = parent.getAllUsers( orderBy );
token.addResponder( new AsyncResponder( generateEvent(usersLoaded,
function( result : Object ) : void { users = result as ArrayCollection; }),
generateError(usersFailed), token ) );
return token;

It just saves me from having to inline an anonymous function that sets the
result onto the property.  Makes it slightly cleaner.  I'll probably
refactor the whole addResponder mess so that it's even less messy, but I
won't be able to reduce the inline function needed to route the result onto
the property.

Charlie


On Wed, Jul 9, 2008 at 4:40 PM, Gordon Smith [EMAIL PROTECTED] wrote:

There is no way in AS3 to get a reference of type Function to a getter
 or setter. What is your use case for needing such a reference?



 Gordon Smith

 Adobe Flex SDK Team


  --

 *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
 Behalf Of *Charlie Hubbard
 *Sent:* Wednesday, July 09, 2008 12:44 PM
 *To:* flexcoders@yahoogroups.com
 *Subject:* [flexcoders] Stump the Flex Nerd: Getting reference to the set
 method of a property




 Ok, I think I've got a pretty difficult question here.  I want to the
 setter method given a string containing the name of a property.  With normal
 methods I can always do something like obj.myFunction to get a reference to
 that function, then I can invoke that function with a func.call().  However,
 if you do obj.someProperty that calls the get method.   I already tried obj[
 propertyName ] which returned null so that's out.

 It's almost like you need another language feature.  obj-property= and
 obj-property for ( reference to setter and getter of this property).

 Charlie





RE: [flexcoders] Stump the Flex Nerd: Getting reference to the set method of a property

2008-07-09 Thread Gordon Smith
But do you really need a setter reference? You can set a property by
name with code like

 

this[users] = result as ArrayCollection;

 

Gordon Smith

Adobe Flex SDK Team

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Charlie Hubbard
Sent: Wednesday, July 09, 2008 2:03 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Stump the Flex Nerd: Getting reference to the
set method of a property

 

Well that was a quick answer thanks.  Too bad you can't do this :-(  I
noticed in my debugger if I drop a breakpoint inside the set property
function it reports the name of the function as set property with a
space.  I haven't tested if obj[set property] would really return that
function or not, but I guess not.

I'm trying to save myself extra typing by going meta with my
framework.  I'm trying to map the results coming back from say a
RemoteObject onto a a model's property inside the object receiving the
server's response.  It's really just trying to save myself the extra
work of writing a bunch of tiny little functions that just do a property
set.  For example:

var token : AsyncToken = parent.getAllUsers( orderBy );
token.addResponder( new AsyncResponder( generateEvent(usersLoaded,
users ), generateError(usersFailed), token ) );
return token;

The meat of this example is the generateEvent() and generateError()
methods.  These methods simply return a listener function that will
generate the event specified in the first parameter, and in the case of
generateEvent it will assign the results from the server to the property
users.  This allows the model to load the data form the server
asynchronously, then when the results arrive back it fires a domain
level event so the Controller can grab that event and respond to it, or
just use simple Bindable on the property to update the view if it's a
simple response.

My work around is the following:

var token : AsyncToken = parent.getAllUsers( orderBy );
token.addResponder( new AsyncResponder( generateEvent(usersLoaded,
function( result : Object ) : void { users = result as ArrayCollection;
}), generateError(usersFailed), token ) );
return token;

It just saves me from having to inline an anonymous function that sets
the result onto the property.  Makes it slightly cleaner.  I'll probably
refactor the whole addResponder mess so that it's even less messy, but I
won't be able to reduce the inline function needed to route the result
onto the property.

Charlie



On Wed, Jul 9, 2008 at 4:40 PM, Gordon Smith [EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]  wrote:

There is no way in AS3 to get a reference of type Function to a getter
or setter. What is your use case for needing such a reference?

 

Gordon Smith

Adobe Flex SDK Team

 



From: flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com
[mailto:flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com ]
On Behalf Of Charlie Hubbard
Sent: Wednesday, July 09, 2008 12:44 PM
To: flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com 
Subject: [flexcoders] Stump the Flex Nerd: Getting reference to the set
method of a property

 


Ok, I think I've got a pretty difficult question here.  I want to the
setter method given a string containing the name of a property.  With
normal methods I can always do something like obj.myFunction to get a
reference to that function, then I can invoke that function with a
func.call().  However, if you do obj.someProperty that calls the get
method.   I already tried obj[ propertyName ] which returned null so
that's out. 

It's almost like you need another language feature.  obj-property= and
obj-property for ( reference to setter and getter of this property).

Charlie

 

 



Re: [flexcoders] Re: mxml to swf on a J2EE server

2008-07-09 Thread Matt Chotin
He also has some prime bug candidates listed that could use some community 
patches :-)

Matt


On 7/9/08 1:53 PM, Daniel Gold [EMAIL PROTECTED] wrote:




I've started using velo's mojos to build with Maven. Working great so far and 
he seems to be working on it quite a bit.

http://code.google.com/p/flex-mojos/

On Wed, Jul 9, 2008 at 3:49 PM, pankajtandon2003 [EMAIL PROTECTED] wrote:



Thanks Douglas and Tracy!
That was good information.
Any idea if the Apache/IIS plugin is also as slow as LCDS is supposed
to be (as per Doug's posting).
I clearly ignored the ant task to do this step. I do agree it may be
the better way to go instead of forking out the $$ for LCDS.

Any suggestions for a good maven-plugin *that works*  for doing this..
that compiles .mxmls to .swfs. I'm trying to avoid the antrun plugin
if possible.

Thanks guys! I'm warming to this flex thing :)

Pankaj



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

 I also seem to recall an Apache thing, hold on, ... yes,

 http://labs.adobe.com/wiki/index.php/Flex_Module_for_Apache_and_IIS
http://labs.adobe.com/wiki/index.php/Flex_Module_for_Apache_and_IIS



 See if that is what you are looking for.



 Tracy



 

 From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com  
 [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ]
On Behalf Of Douglas Knudsen
 Sent: Wednesday, July 09, 2008 4:22 PM
 To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
 Subject: Re: [flexcoders] Re: mxml to swf on a J2EE server



 On Wed, Jul 9, 2008 at 4:14 PM, pankajtandon2003 [EMAIL PROTECTED]
mailto:pankajtandon%40gmail.com mailto:pankajtandon%2540gmail.com   wrote:
  Thanks for the response Dimitrios.
 
  I guess I need to be more specific.
  I'm drawing a parallel between mxml file and a jsp file and I am
  trying to get the mxml file to compile *like* a jsp file.
 
  In a J2EE environment (say Tomcat), I write a jsp using custom jsp
  tags, ensure that the jar files that contain the TagLibs and the
  corresponding classes are in the class path of the server and when my
  server encounters a URL ending in .jsp, it knows to compile the .jsp
  into a servlet that then sends HTML in the response to the server.
 
  I am looking for a similar way to achieve this behavior when I write a
  .mxml file. Using Flex Builder as an eclipse plugin is great for unit
  testing where I can see the results of the swf in a browser launched
  from my IDE. However, how can I achieve this when I am using Tomcat. I
  thought LCDS was the way to achieve this.
 
  You have stated that that is not the case.
 
  In other words how can I get from a .mxml to a .swf (that my browser
  can display) in one step. OR.. is it necessary to do a two-step
  process, where I compile into a .swf and then bundle the swf with my
  J2EE artifact for deployment. If this is the case, then how can I
  supply a filename to my swf dynamically.
 

 The accepted way is to do this, yes. Use Ant to build your jars,
 swfs, etc ball them up and deploy away. Alternatively, you can use
 LCDS to 'compile on the fly' like a jsp, php, or cfm does. Flex 1.5
 and earlier worked this way. It is *horribly* slow on first request
 though. Its called web-tier-compiler IIRC. Heck of a lot of cash to
 outlay just for this when you can compile in your standard build
 process.

 DK

  I hope I am clear..er now :)
  Thanks for your responses and patience!
 
  Pankaj
 
  --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
mailto:flexcoders%40yahoogroups.com mailto:flexcoders%2540yahoogroups.com  
, Dimitrios Gianninas

 
  dimitrios.gianninas@ wrote:
 
  Hi,
 
  1) You don't LCDS to compile stuff, you can pre-compile your Flex
  application by simply using the Flex SDK. It comes with the compiler.
  You can read about it here:
  http://livedocs.adobe.com/flex/3/html/compilers_01.html
http://livedocs.adobe.com/flex/3/html/compilers_01.html
 
  2) I dont completly understand this question is that in your
  Flex app you are trying to communicate with an HTTPService and you
  want to pass it the URL?
 
  Dimitrios Gianninas
  RIA Developer and Team Lead
  Optimal Payments Inc.
 
 
  
 
  From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
mailto:flexcoders%40yahoogroups.com mailto:flexcoders%2540yahoogroups.com 
[mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com  
mailto:flexcoders%40yahoogroups.com mailto:flexcoders%2540yahoogroups.com  ]

  On Behalf Of pankajtandon2003
  Sent: Wednesday, July 09, 2008 2:01 PM
  To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com  
  mailto:flexcoders%40yahoogroups.com 
  mailto:flexcoders%2540yahoogroups.com 
  Subject: [flexcoders] mxml to swf on a J2EE server
 
 
 
  Hello,
  I'm trying to integrate a Flex app with a J2EE app. After reading
up a
  

[flexcoders] Posted under another account OOPS!

2008-07-09 Thread daddyo_buckeye
I posted a reply inadvertantly from another Yahoo account of mine 
(sstevens69) that does not belong to this group. 

It was a long post with lots of details, and I don't really want to re-
compose it. Is it possible to find that post and post it, or add my 
other username (sstevens69) to the members list?





[flexcoders] Customizing TreeItemRenderer

2008-07-09 Thread thirtyfivemph
I want to display a custom widget (basically a glorified Image
control) in place of the icons in a Tree component. I've not been able
to get satisfactory results (yet), here's what I've done:

1) First, I tried creating a custom ItemRenderer, but discovered that
the disclosure icon (triangle), indenting, etc., are all features of
the item renderer, not the tree itself (which I found weird), and
that's more than I wanted to implement myself. BTW, if I just stick
any old item renderer into a tree, it seems like it starts working
almost identically to a standard List... seems like I'm missing
something... shouldn't the tree parts be handled by the Tree
component and not it's item renderer?

2) So, I created a custom item renderer that inherited from
TreeItemRender. Taking after some examples I've seen online, I
overrided updateDisplayList() to hide the icon and position my own
widget in its place. This works okay, with several problems:

a) I've got to do a lot of custom layout if my widget is a different
size than the icon (or sub in an icon of equivalent size).

b) I get weird rendering artifacts where when the tree is refreshed
(like if you open a branch) all of the item renderers beneath the
opened branch flash their disclosure icons (whether they had them or
not) and my custom widget jumps to position 0,0, for single frame then
everything corrects itself.

3) So, I got clever and looked through how TreeItemRenderer handles
it's icon. I found that the icon is created/destroyed in one spot,
commitProperties, which is the only place that has the knowledge
that it's based on a Class instead of being any old DisplayObject. So,
I overrided commitProperties() and replaced the icon instance with an
instance of my widget (a UIComponent). For some reason, this doesn't
work! The tree doesn't seem to compensate for the icon's larger size,
etc., even though calculations are done inside of updateDisplayList()!

Any clues? Any ideas?

Troy.




[flexcoders] Re: mxml to swf on a J2EE server

2008-07-09 Thread meteatamel
You can definitely compile mxml to swf on the LCDS server like jsps.
You need something that used to be called Flex Webtier Compiler (in
FDS 2.0/LCDS 2.5). I know it recently moved from the FDS/LCDS to Flex
SDK and its name might be a little different that I don't remember
right now.

There's also something called Flex Module for Apache and IIS where you
can do that sort of thing but if you're already using LCDS, Flex
Webtier Compiler (or whatever the new name of it is) is your best bet.

-Mete

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

 Thanks for the response Dimitrios.
 
 I guess I need to be more specific.
 I'm drawing a parallel between mxml file and a jsp file and I am
 trying to get the mxml file to compile *like* a jsp file.
 
 In a J2EE environment (say Tomcat), I write a jsp using custom jsp
 tags, ensure that the jar files that contain the TagLibs and the
 corresponding classes are in the class path of the server and when my
 server encounters a URL ending in .jsp, it knows to compile the .jsp
 into a servlet that then sends HTML in the response to the server.
 
 I am looking for a similar way to achieve this behavior when I write a
 .mxml file. Using Flex Builder as an eclipse plugin is great for unit
 testing where I can see the results of the swf in a browser launched
 from my IDE. However, how can I achieve this when I am using Tomcat. I
 thought LCDS was the way to achieve this. 
 
 You have stated that that is not the case. 
 
 In other words how can I get from a .mxml to a .swf (that my browser
 can display) in one step. OR.. is it necessary to do a two-step
 process, where I compile into a .swf and then bundle the swf with my
 J2EE artifact for deployment. If this is the case, then how can I
 supply a filename to my swf dynamically.
 
 I hope I am clear..er now :)
 Thanks for your responses and patience!
 
 Pankaj
 
 
 --- In flexcoders@yahoogroups.com, Dimitrios Gianninas
 dimitrios.gianninas@ wrote:
 
  Hi,
   
  1) You don't LCDS to compile stuff, you can pre-compile your Flex
 application by simply using the Flex SDK. It comes with the compiler.
 You can read about it here:
 http://livedocs.adobe.com/flex/3/html/compilers_01.html
   
  2) I dont completly understand this question is that in your
 Flex app you are trying to communicate with an HTTPService and you
 want to pass it the URL?
   
  Dimitrios Gianninas
  RIA Developer and Team Lead
  Optimal Payments Inc.
   
  
  
  
  From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
 On Behalf Of pankajtandon2003
  Sent: Wednesday, July 09, 2008 2:01 PM
  To: flexcoders@yahoogroups.com
  Subject: [flexcoders] mxml to swf on a J2EE server
  
  
  
  Hello,
  I'm trying to integrate a Flex app with a J2EE app. After reading up a
  little I determined that LifeCycle Data ES is what I would need to
  effect this. LifeCycle Data ES is what allows me to get data from the
  server and save data etc. However I really don't need that level of
  integration. All I need is the ability to compile my .mxml file on the
  server so that it is rendered as a .swf file on the client. LifeCycle
  Data ES seems like overkill for just this.
  
  How can I achieve above.
  
  Secondly, I need to pass in a file name to my .mxml file dynamically.
  Traditionally, since the mxml file is executing on the client, I would
  expect a HTTPService call to get the file name. However, if my .mxml
  file is dynamically compiled on the server into an .swf (like a .jsp
  into a servlet), then I can really place the file name dynamically in
  the source code of the mxml file. How can I do so specifically?
  
  So there are two questions:
  1. How can I compile .mxml files into .swfs on a J2EE server without
  using LifeCycle Data ES.
  2. How can I specify a filename dynamically in a .mxml file so that it
  compiles int a .swf with the right filename (and executes on the
  client as usual)
  
  Thanks in advance,
  Pankaj
  
  
  
   
  
  -- 
  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é.  

[flexcoders] Re: Newbie Nested Remote Object Question

2008-07-09 Thread kroghadam
Yay, I got something working. I added in a couple actionscript classes
that map to my java classes...somehow. One is as follows:

package
{
[RemoteClass(alias=test.summary)]

[Bindable]
public class Summary {
public var clientName:String = ;
public var budget:int;

public function Summary() {
}
}
}

This works, now I can cast the properties that I get in the way you
said. Is this the only way of doing it? And if it is, is there a code
generation tool that will create these .as files automatically?


-Adam

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

 Sorry I am really new to flex, I'm not sure what you mean by value
 objects. The three classes I gave are Java Classes that are
 essentially a facade to further backend persistence code.
 
 I remote directly to the ProjectList.java class and return an array of
 Projects. I cannot do what you suggested in actionscript as I only
 have the java objects that i am remoting to, and cannot reference those.
 I am beginning to think I am doing something seriously wrong as I only
 have one remote object, and am trying to access java objects contained
 in it. Do I need to have some kind of mapping of action script objects
 as well?
 Any articles and tutorials about accessing java objects would be a
 great help to.
 
 Thanks for your patience,
 
 Adam
 
 
 
 --- In flexcoders@yahoogroups.com, valdhor stevedepp@ wrote:
 
  Caveat: I use PHP with WebORB but I have done a lot of C++ in the
past.
  
  So, to get this straight, you have a value object with a property that
  contains another value object, right? Try...
  
  (project.summary as Summary).budget
  
  or
  
  Summary(project.summary).budget
  
  
  
  
  
  
  --- In flexcoders@yahoogroups.com, kroghadam akrogh@ wrote:
  
   Perhaps I should provide a little more detail on my problem,
here are
   three stripped down java classes I am using,
   
   
   public class Project {
 private String name;
 private Summary summary;
   
 public Project(){
 }
   
 ...usual get/set methods
   
   }
   
   public class Summary {
 private String clientName;
 private int budget;
   
 public Summary(){
 }
   
 ...usual get/set methods
   }
   
   public ProjectList {
 private ArrayListProject projects;
   
 public ProjectList(){
 }
   
 public Project[] getProjects() {
   buildProjects();
   return projects.toArray(new Project[0]);
 }
   
 public void buildProjects() {
   Project project;
   Summary summary;
   projects = new ArrayListProject();
   for(int i = 0; i10;i++) {
 project = new Project();
 project.setName(Name+i);
 summary = new Summary();
 summary.setBudget(1);
 summary.setClientName(Client+i);
 project.setSummary(summary);
 projects.add(projects);
   }
   }
   
   Within my flex code I use a remote object to the ProjectList and
bind
   an ArrayCollection to the return value of getProjects(). I then pass
   the Project elements of this array to a component to display its
  values. 
   This is where my problem comes in. I can display the name of the
   project fine in the component by just using {project.name} but I
have
   no idea how to access my Summary object to get its data. 
   I thought I could just do {project.summary.budget} but that doesn't
   display anything. 
   I really hope someone can help me solve this problem as I'v been
stuck
   on it for some time now. 
   
   Thanks again,
   
   -Adam
   --Flex Newbie
   
   
   --- In flexcoders@yahoogroups.com, kroghadam kroghadam@ wrote:
   
Hi everybody, I am really enjoying my first look into flex! 
Unfortunately I have ran into a problem with remote objects to
java
classes that have compositions of objects in them. In other
words my
class has an instance variable that is another object whose data i
also want to access, preferably through the same remote object.

If anyone has some pointers, links to examples or even source
code I
would really appreciate it.

Thanks in advance,

-Adam
--Flex Newbie
   
  
 





RE: [flexcoders] ComboBox ItemRenderer Custom Events only go to SystemManager - WHY?????

2008-07-09 Thread Alex Harui
It wasn't clear whether your renderer was dispatching the event or the
entire dropdown.  Yes, you may need two levels of owner..  A renderer in
the dropdown doesn't have any clue it is working for a combobox and you
just have to wire it up correctly.

 

Personally, I'm not a fan of using bubbling to pass events.  IMHO,
bubbling is designed for cases where you cannot know the relationship
(something internal got clicked, scrolled or added).  Everything else
should be handled without bubbling.  The CB listens for events from the
dropdown already.  If I were doing custom work, any additional event
would be dispatched from the dropdown and listened to from the CB.  Lots
of folks seem to love bubbling, but I think it is a bad practice when
you already have a defined relationship.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Battershall, Jeff
Sent: Wednesday, July 09, 2008 11:22 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] ComboBox ItemRenderer Custom Events only go to
SystemManager - WHY?

 

Seriously Alex, 

 

I have been tearing my hair out over this.  When I trace owner from
within my itemRenderer I get List496 or something like that. If I use
owner.dispatchEvent(myCustomEventInstance,true), and listen on the
ComboBox, nothing is transmitted.

 

At this point I'm glad I've got something that will work, i.e., using
SystemManager, but I want to know if there's something I'm doing wrong
that requires this approach, because it seems to break the chain of
responsibility.  Shouldn't a combo box be able to relay events from its
list?

 

Jeff

-Original Message-
From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of Alex Harui
Sent: Wednesday, July 09, 2008 1:47 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] ComboBox ItemRenderer Custom Events
only go to SystemManager - WHY?

Popups have to float over everything so they are parented by
SM and not the CB or the app.   If you dispatch the event off the
owner it will go to the CB and bubble up from there

 





From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of Battershall, Jeff
Sent: Wednesday, July 09, 2008 10:23 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] ComboBox ItemRenderer Custom Events only
go to SystemManager - WHY?

 

I've been remiss in addressing my less-than-perfect
understanding of
Events and event bubbling.

My custom itemRenderer needs to fire a custom event. I've spent
the last
day trying to get it to bubble up from my custom itemRenderer to
the
ComboBox, but no dice. If I add an eventListener in my ComboBox,
it does
not receive the event. However when I use
systemManager.addEventListener(myCustomEvent,myHandler),
suddenly I
can receive the event.

Is this the expected behavior? Why?

Jeff Battershall
Application Architect
Dow Jones Indexes
[EMAIL PROTECTED]
mailto:jeff.battershall%40dowjones.com 
(609) 520-5637 (p)
(484) 477-9900 (c)

 



[flexcoders] Re: ASDocs problem Unable to locate specified base class

2008-07-09 Thread Varun Shetty
I tried to create a log of the error and here is what I got..!!

at org.apache.tools.ant.taskdefs.ExecTask.runExecute(ExecTask.java:636)
at org.apache.tools.ant.taskdefs.ExecTask.runExec(ExecTask.java:662)
at org.apache.tools.ant.taskdefs.ExecTask.execute(ExecTask.java:487)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at
org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:105)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:357)
at org.apache.tools.ant.Target.performTasks(Target.java:385)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1329)
at org.apache.tools.ant.Project.executeTarget(Project.java:1298)
at
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
at
org.eclipse.ant.internal.ui.antsupport.EclipseDefaultExecutor.executeTargets(EclipseDefaultExecutor.java:32)
at org.apache.tools.ant.Project.executeTargets(Project.java:1181)
at
org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.run(InternalAntRunner.java:423)
at
org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.main(InternalAntRunner.java:137)



any clue, what would be the problem..!!! isnt there a ASDoc GUI tool that
can just get all this right?

regards,
Varun Shetty





On Tue, Jul 8, 2008 at 9:50 PM, Varun Shetty [EMAIL PROTECTED] wrote:

 Hi,

 I am trying to create ASDocs for my project and I am receiving the
 following error.

 pnpPanel.mxml: Error: Unable to locate specified base class
 'view.panels.customPanel' for component class 'pnpPanel'

 any clue why would I be receiving this error?

 I am customizing a panel component with some features and naming it
 customPanel.mxml. and I use pnpPanel.xml to extend/use the customPanel
 component.

 //contents of customPanel.mxml
 ?xml version=1.0 encoding=utf-8?
 mx:Panel xmlns:mx=http://www.adobe.com/2006/mxml; layout=vertical
 mx:Script
 .
 .
 .

 //contents of pnpPanel.mxml
 customPanel xmlns=view.panels.* xmlns:mx=
 http://www.adobe.com/2006/mxml;
 mx:Script
 .
 .
 .

 Is there a problem, If I have developed the project in such a manner. How
 else can we solve this ASDocs 'Unable to locate specified base class' issue.


 regards,
 Varun Shetty




[flexcoders] Why are icons typed as Classes and not just class factories?

2008-07-09 Thread thirtyfivemph
One of the beauties of Flash's display list API is the ability to
treat almost all visual elements as the universal DisplayObject and
not be concerned with whether they're a simple shape or whether
they're a complex, multi-state movie clip.

But, when it comes to Flex framework widgets, like buttons, trees,
etc., when an icon is referenced Flex expects a Class. Now, I
understand that this is done because (a) it gives you a factory and
(b) it makes CSS handling easier. But those don't seem like good
trade-offs considering the incredible limitation it introduces (no
dynamic instances for icons, for example) and the fact that Flex
already has a built-in mechanism for Factory interfaces.

So, what's the reasoning? What gives?

Troy.




  1   2   >