[flexcoders] Question about the flex samples

2005-05-20 Thread nostra72




http://localhost:8700/samples/flexstore/flexstore.mxml?versionChecked=true
I have a question about this webpage and others in the samples folder. I hope this is not a silly quesiton but is it ok to use the sample files as a template to make other webpages? In other words alter the data to fit your needs is that ok?







Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ 
To unsubscribe from this group, send an email to:[EMAIL PROTECTED] 
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.










[flexcoders] Re: Pass variable to mx:image tag

2005-05-20 Thread cazzaran
Matt,

I tried your suggestion, and something weird is happening...

In my code, I have (I also tried creating a variable):



At this point, I'm just hardcoding to test this. If I request my mxml
application with this Image tag in it, I can see that it makes the
correct request (GET /boxes.swf?line1=TESTLINE1), however, line1 in
the movie is undefined.

If I make the same exact request via a browser
(http://localhost:8080/boxes.swf?line1=TESTLINE1) line1 has the value
passed. 

It's like the Image tag is resetting all the variables I pass to my
movie to 'undefined'. Any idea? I can't think of any other way of
getting variables to my flash movies in Flex.

Thanks in advance! - Josh

--- In flexcoders@yahoogroups.com, "Matt Horn" <[EMAIL PROTECTED]> wrote:
> You can append query string params to pass variable data to an included
> SWF. psuedoexample:
>  
> var src = "IncludedTestFile.swf?myVar=" + myVar;
> ...
> 
> 
>  
> HTH,
>  
> matt horn
> flex docs
>  
> 
> 
> 
> 
>   From: flexcoders@yahoogroups.com
> [mailto:[EMAIL PROTECTED] On Behalf Of cazzaran
>   Sent: Thursday, May 12, 2005 11:51 AM
>   To: flexcoders@yahoogroups.com
>   Subject: [flexcoders] Pass variable to mx:image tag
>   
>   
>   I need to include an external SWF file that takes variables to
> display 
>   some content. It's just a banner, so the mx:Image tag is
> sufficient, 
>   except that I can't figure out how to pass variable information
> to it. 
>   There's talk of a flashVar tag, but that's for JSP, and it
> doesn't look 
>   like there's an equivilant mxml tag.
>   
>   My include is basic, and looks like  source="banner.swf" />
>   
>   Any help is appreciated!
>   
>   -Josh
>   
>   
>   
>   
> 
> 
>   Yahoo! Groups Links
>   
> 
>   *   To visit your group on the web, go to:
>   http://groups.yahoo.com/group/flexcoders/
> 
>   *   To unsubscribe from this group, send an email to:
>   [EMAIL PROTECTED]
>  
> 
>   *   Your use of Yahoo! Groups is subject to the Yahoo! Terms
> of Service  .




 
Yahoo! Groups Links

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

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

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




RE: [flexcoders] Flash version detection, precompiled swf's and t he jsp tag.

2005-05-20 Thread Abdul Qabiz
Hi,

> When deploying a flex app as a precompiled swf file, the flex jsp tag
>  appears to generate the same code as the
> Flex html wrapper as described in livedocs. 

That's I believe, History Management code in JavaScript.


> Does anyone know what sort of flash player detection is and isn't
> handled by the flash tag versus the mxml tag?
> Does anyone know what is meant by this statement in Livedocs: "When
> using the Flex JSP Tag Library to define a Flex application, Flex does
> not include the complete Flash Player detection scheme. However, the
>  and  tags do include minimum version information and
> download locations."

As you have already gone through "Flash Player detection and deployment"
section of doc. If you use mxml file, Flex server generates HTML wrapper
with detection code, that is multi-step process like:

-  Users are initially directed to a SWF file that detects the Flash Player
version.
- If they have the specified version or later, the SWF file redirects the
user to your content fil, and your SWF file plays as designed.
- If users don't have the specified version, they're redirected to an
alternate location to download an updated Flash Player. This location is
specified in the flex-config.xml file. The actual location depends on the
type of player they are upgrading.


Ok, if you use Flex JSP tag or  and  tag to directly embed
precompiled swf or app.mxml.swf, above mentioned steps are not performed.
However, Object and Embed tag contains the url of Flash Player download page
and minimum version required. In that case, if user doesn't have required
version of Flash Player, user would be prompted to install Flash player from
Macromedia website.

The difference between two is, in former approach(with default html
wrapper), you can configure flex-config.xml to send user to different
location than Macromedia site, say to internal server for Flash Player
download. I believe, you can also specify fallback page which is shown user
doesn't have required version of Macromedia Flash Player.

> And finally, when I load an mxml file directly via http://foo.xml,
> flex appears to do extra version testing optimizations (referred to in
> the LiveDocs under "Optimizing version detection").  When we use the
> mxml or jsp wrappers, does flex use these optimzations under the
> scenes?  If not, does anyone know if these optimizations affect the
> client alone or the client and the server?

Using MXML and JSP depends on requirement. JSP is used when you have other
content in same page. Use MXML when you know Flex app is the only thin in
the page. These optimization are client side, all detection is done
client-side.


Hope it helps..

-abdul



-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Eric Raymond
Sent: Saturday, May 21, 2005 5:22 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Flash version detection, precompiled swf's and the
 jsp tag.

When deploying a flex app as a precompiled swf file, the flex jsp tag
 appears to generate the same code as the
Flex html wrapper as described in livedocs. 

However, it is not clear what sort of Flash player version detection
this does versus the detection which is performaned when one uses the
 tag.  The livedocs imply that there is a
bit more going on with version detection than you can see by simply
viewing the source of the resulting html page.

Does anyone know what sort of flash player detection is and isn't
handled by the flash tag versus the mxml tag?

Does anyone know what is meant by this statement in Livedocs: "When
using the Flex JSP Tag Library to define a Flex application, Flex does
not include the complete Flash Player detection scheme. However, the
 and  tags do include minimum version information and
download locations."

And finally, when I load an mxml file directly via http://foo.xml,
flex appears to do extra version testing optimizations (referred to in
the LiveDocs under "Optimizing version detection").  When we use the
mxml or jsp wrappers, does flex use these optimzations under the
scenes?  If not, does anyone know if these optimizations affect the
client alone or the client and the server?

Thank you!




 
Yahoo! Groups Links



 




 
Yahoo! Groups Links

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

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

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




[flexcoders] Flash version detection, precompiled swf's and the jsp tag.

2005-05-20 Thread Eric Raymond
When deploying a flex app as a precompiled swf file, the flex jsp tag
 appears to generate the same code as the
Flex html wrapper as described in livedocs. 

However, it is not clear what sort of Flash player version detection
this does versus the detection which is performaned when one uses the
 tag.  The livedocs imply that there is a
bit more going on with version detection than you can see by simply
viewing the source of the resulting html page.

Does anyone know what sort of flash player detection is and isn't
handled by the flash tag versus the mxml tag?

Does anyone know what is meant by this statement in Livedocs: "When
using the Flex JSP Tag Library to define a Flex application, Flex does
not include the complete Flash Player detection scheme. However, the
 and  tags do include minimum version information and
download locations."

And finally, when I load an mxml file directly via http://foo.xml,
flex appears to do extra version testing optimizations (referred to in
the LiveDocs under "Optimizing version detection").  When we use the
mxml or jsp wrappers, does flex use these optimzations under the
scenes?  If not, does anyone know if these optimizations affect the
client alone or the client and the server?

Thank you!




 
Yahoo! Groups Links

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

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

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




[flexcoders] Using CFC's as RemoteObjects, naming, and flex-config.xml

2005-05-20 Thread temporal_illusion
Today we changed over to using our CFCs as Remote Objects so that the 
data was being passed via AMF and also so complex data types get 
passed.  Thanks to Tom Link btw for good info on how to get that 
started.

The problem I'm having though isn't in getting that to work, it's 
getting a named service / ro setup so that we don't have to have the 
URL in our code.

But how do I add it into the flex-config.xml?  

In my code my RemoteObject looks like this:
http://localhost:8300/ws/flashservices/gateway"; 
source="test">
 


But when I add it to the flex-config.xml there isn't a place to 
specify the different endpoint.  I tried adding an  tag, as 
well as adding an  tag to the  node but that 
doesn't seem to work.  I guess I could change the  tag 
for the whole  node but then I'd lose my ability to 
have Java remote objects.

Any insight?  Can I override the default AMF gateway for named remote 
objects defined in the flex-config.xml in that file, rather than 
overriding them in the mxml code?




 
Yahoo! Groups Links

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

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

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




RE: [flexcoders] Grid Creation from XML

2005-05-20 Thread Abdul Qabiz
 
> Is it possible to create GridRows and GridItems via Actionscript? 

Yes, you can see the following sample code.


> I have a Grid that I am using RowSpan and Colspan with the GridItem's. 
> I am curious if there is  any way to Create this Grid dynamically from 
> XML data? Or is there a way that i can achieve Colspan type formatting 
> in a DataGrid?

Grid from XML will not be generated automatically, but you can write your
logic to parse XML and add GridRow/GridItem as required. No, DataGrid
doesn't support ColSpan type formatting, but can it be achieved by writing
custom row renderer?



##DynamicGrid.mxml##
http://www.macromedia.com/2003/mxml";
creationComplete="createGrid()">









-abdul

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Jae Hess
Sent: Saturday, May 21, 2005 2:59 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Grid Creation from XML

Is it possible to create GridRows and GridItems via Actionscript?

I have a Grid that i am using RowSpan and Colspan with the GridItem's. 
I am curious if there is  any way to Create this Grid dynamically from 
XML data? Or is there a way that i can achieve Colspan type formatting 
in a DataGrid?

Thanks in Advance

-Jae



 
Yahoo! Groups Links



 




 
Yahoo! Groups Links

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

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

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




Re: [flexcoders] Scale the size of a whole application

2005-05-20 Thread Matthew Shirey



Well, I've tried what you suggested:

Stage.scaleMode = "showAll".

But I get very strange results.  The application is scaling up,
but not as desired.  It's actually getting larger than the browser
window.  It's really wierd and hard to describe.  I get the
feeling that this use was never intended

If you have some suggestions on how to actually use this and get it to
work right, I'd be very interested.  Otherwise, I'll stay with my
scaling routines which are similar to what Manish suggested, only not
quite as elegant. ;)

M.
On 5/19/05, Sreejith Unnikrishnan <[EMAIL PROTECTED]> wrote:



  




Jexter,

I did play around with that for a while ... could not make sense of
what was happening ... especially the zoom scale ...
Code below for u to try out!


"http://www.macromedia.com/2003/mxml"
width="100%" height="100%">



    
    
        
            
                
    


Regards
Sree


JesterXL wrote:

  
  
  
  ...this sounds like turning stage
scaling on.  For a test, try this in your main app:
   
  Stage.scaleMode = "showAll".
   
  I believe Flex has it set to
"noScale", and thus uses the Flex containers to draw the change in size
rather than have the SWF scale.  Try that, see if it works for you.
   
  -
Original Message -
  From:
  Matthew
Shirey 
  To: flexcoders@yahoogroups.com
  
  Sent: Friday, May 20, 2005 1:20 AM
  Subject: Re: [flexcoders] Scale the size of a whole
application
  
  
  
Actually, I am working down a path that uses a canvas and dynamically
adjusts the ScaleX and ScaleY properties based on the size of the
application in the browser using the applications onResize event.  So
far, the effect is exactly what I'm looking for.  Even the fonts are
getting scaled correctly.  It works okay with non-embeded fonts but
I've found it works perfectly with embeded fonts.  My only concern now
is how well it will perform once the UI gets a bit more complicated.
  
If anyone else is interested, I can post my solution once I get it a
little more perfected.
  
M.
  
  On 5/19/05, Sreejith Unnikrishnan <[EMAIL PROTECTED]
> wrote:
  One interesting adventure you can
embark on is to put the whole application in a mx:Canvas and use
mx:Zoom to scale it based on the resolution. I have never tried this
before, so can't tell. I have doubts about the font-size etc :-)

Sree


Matthew Shirey wrote:
I
was afraid I hadn't explained the problem right...
  
Setting to those just takes up the space, it doesn't actually scale the
content larger.  It resizes the layout managers larger which results in
a lot of unused white space for my application.  I need the contents to
scale so if you make the window twice as large, then all of the
contents are twice as big.  Bigger fonts, bigger everything.  I'm not
sure how I can clarify this any further... :(
  
-- Matthew
  
  On 5/19/05, JesterXL <[EMAIL PROTECTED]
  > wrote:
  
Make the width and height of
your application tag 100%...?  That's what I do to get full screen
real-estate usage.  Decreasing margins on things helps a lot too.

 
-
Original Message -
From:
Matthew Shirey 
To: flexcoders@yahoogroups.com

Sent: Thursday, May 19, 2005 6:31 PM
Subject: [flexcoders] Scale the size of a whole
application



This may sound like a odd request, but is there a way to scale the size
of a whole application so that all of the contents get larger?  The
functionality that I desire is similar to what happens to a Flash movie
when you make its size bigger.  I'd like to design an application at a
fixed resolution like 800x600.  If the user then makes the web browser
bigger, I'd like the contents to scale up in size.  Right now, with the
layout managers I basically just end up with more space.  A lot of it
is wasted empty space.  I have a specific user that is mildly vision
impaired.  He makes everything on his screen gigantic.  His monitor is
a nice 21" flat panel at 1600x1200 resolution.  I'd like him to be able
to maximize the application to 1600x1200 there by making everything in
the application which is designed at 800x600 scale up to that size.

Anyone have any suggestions?  I was a little long winded there, but I
hope I've accurately described my problem and the type of solution I'm
looking for.  Any other suggestions on how I can deal with visibility
impaired users would also be helpful.  Thank you!

-- Matthew



 Yahoo! Groups Links


   To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/
  
  To unsubscribe from this group, send an email to:
[EMAIL PROTECTED] 
  
  Your use of Yahoo! Groups is subject to the Yahoo! Terms
of Service. 
  


  
  



 Yahoo! Groups Links


  To visit your group on the web

[flexcoders] Grid Creation from XML

2005-05-20 Thread Jae Hess
Is it possible to create GridRows and GridItems via Actionscript?

I have a Grid that i am using RowSpan and Colspan with the GridItem's. 
I am curious if there is  any way to Create this Grid dynamically from 
XML data? Or is there a way that i can achieve Colspan type formatting 
in a DataGrid?

Thanks in Advance

-Jae



 
Yahoo! Groups Links

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

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

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




RE: [flexcoders] passing variables using getURL?

2005-05-20 Thread Tracy Spratt
Interesting.  Most of the examples I see use getURL.  Even Cristophe's
HTML-InIFrame-Over-Flex solution has the fscommand lines commented out
and is using getURL!

So far, we have been able to control the browser, but are there any
other advantages?

Tracy

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of John Dowdell
Sent: Friday, May 20, 2005 4:38 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] passing variables using getURL?

Abdul Qabiz wrote:
> No we don't get anything back if invoke JavaScript function using
> getURL(..). But you can do something similar, as described below:

For what it's worth, some of the various browsers *did* return 
JavaScript values to plugins after receiving a "javascript:" pseudo-URL.

I haven't tested whether any of the current browsers work like this.

But like all that underdocumented stuff, it worked in some browsers, 
didn't work in others, and was subject to side-effects in many cases 
(didn't work with WMODE on, etc).

Some of the browsers *do* offer a documented, tested, and supported 
plugin/browser intercommunication scheme, and where such an ability is 
offered the Macromedia Flash Player has exploited it, under the general 
"FSCommand" interface. I see lots of people continue to promote 
"javascript:" pseudo-URLs and this worries me, just because of the great

variability of browser support for this ability.

jd




-- 
John Dowdell . Macromedia Developer Support . San Francisco CA USA
Weblog: http://www.macromedia.com/go/blog_jd
Aggregator: http://www.macromedia.com/go/weblogs
Technotes: http://www.macromedia.com/support/
Spam killed my private email -- public record is best, thanks.


 
Yahoo! Groups Links



 






 
Yahoo! Groups Links

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

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

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




Re: [flexcoders] passing variables using getURL?

2005-05-20 Thread John Dowdell
Abdul Qabiz wrote:
> No we don't get anything back if invoke JavaScript function using
> getURL(..). But you can do something similar, as described below:

For what it's worth, some of the various browsers *did* return 
JavaScript values to plugins after receiving a "javascript:" pseudo-URL. 
I haven't tested whether any of the current browsers work like this.

But like all that underdocumented stuff, it worked in some browsers, 
didn't work in others, and was subject to side-effects in many cases 
(didn't work with WMODE on, etc).

Some of the browsers *do* offer a documented, tested, and supported 
plugin/browser intercommunication scheme, and where such an ability is 
offered the Macromedia Flash Player has exploited it, under the general 
"FSCommand" interface. I see lots of people continue to promote 
"javascript:" pseudo-URLs and this worries me, just because of the great 
variability of browser support for this ability.

jd




-- 
John Dowdell . Macromedia Developer Support . San Francisco CA USA
Weblog: http://www.macromedia.com/go/blog_jd
Aggregator: http://www.macromedia.com/go/weblogs
Technotes: http://www.macromedia.com/support/
Spam killed my private email -- public record is best, thanks.


 
Yahoo! Groups Links

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

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

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




RE: [flexcoders] creating row in datagrid at runtime

2005-05-20 Thread Tracy Spratt










Here's a little mod that automatically adds the new row when you tab
out of the last cell.  The doLater reminder solved an aggravating problem I
was having!

 





  xmlns="*">



   

 cellFocusOut="checkOnNav(event)">

  

 

    

    

 

  

   

 



 

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf
Of Manish Jethani
Sent: Friday, May 20, 2005 9:50 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] creating row in datagrid at runtime

 

On 5/19/05, shettyaditsathish <[EMAIL PROTECTED]>
wrote:

> i need to create a row in an existing datagrid on an event and
show the

> the 1st column of the newly created row in editable mode.

 





  xmlns="*">

  

    function enterNewRow():Void

    {

  grid.addItem();

  focusNewRow();

  doLater(this, "focusNewRow");

    }

    function focusNewRow():Void

    {

  grid.setFocus();

  grid.focusedCell = {columnIndex: 0,
itemIndex:

grid.dataProvider.length-1};

    }

  

  

    

  

    

    

  

    

  

  



 

Note:

 

 1.  grid.addItem() will add a blank row

 2.  call focusNewRow() in the next frame using doLater()

 

 

 

Yahoo! Groups Links

 

<*> To visit your group on the web, go to:

    http://groups.yahoo.com/group/flexcoders/

 

<*> To unsubscribe from this group, send an email to:

    [EMAIL PROTECTED]

 

<*> Your use of Yahoo! Groups is subject to:

    http://docs.yahoo.com/info/terms/

 

 

 

 











Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ 
To unsubscribe from this group, send an email to:[EMAIL PROTECTED] 
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.












RE: [flexcoders] Context Menus in complex apps

2005-05-20 Thread Abdul Qabiz
Hi Jeff,

I would appriciate if you can post the sample code demonstrating the
problem. I think I understand the problem but would like to see the code
before commenting.

Thanks

-abdul 

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Battershall, Jeff
Sent: Friday, May 20, 2005 10:59 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Context Menus in complex apps

I have an app that is built modularly with many sub-components
instantiated within my framework.

On the left is my tree menu and on the right is my ViewStack, where my
various sub-apps are instantiated. Both of these are within an Hbox,
which I have given the id "main". 

I create a custom context menu which I assign to "main" and this works
fine - it does not work fine, and in fact is completely ignored, when I
try to assign it to "this" which should be the Application. This
shouldn't be a problem in that my Hbox is 100% height and width and
should be covering the full available area, but I've noticed that there
is a small band at the very top of the app that it doesn't cover and
which has the default Flash context menu.

Anyone know why this band is showing up and how to get rid of it?  It
seems there is some padding being introduced - I just have to figure out
where it is coming from.

Also, anyone have strategies for custom context menus it apps that have
nested components? I'm hoping in Flash Player 8, we're able to control
context menus a bit more than we can currently in this sort of scenario.

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


 
Yahoo! Groups Links



 




 
Yahoo! Groups Links

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

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

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




RE: [flexcoders] passing variables using getURL?

2005-05-20 Thread Abdul Qabiz
Hi Tracy,


> Does this only apply if the url is external?  Do we get anything if we
> use getURL to call a JavaScript function in our html wrapper?

No we don't get anything back if invoke JavaScript function using
getURL(..). But you can do something similar, as described below:

- call js function from flex app using getURL(..)
- in return js sets the return value in a variable in flex app.


> I have been building delimited strings to pass arguments up to the
> wrapper.  Is there a better way?

I think, yeah its better way. You can also pass data as xml that can be
parsed in browser, but there is string length limitation in getURL(..), so
less verbose string would be efficient.


I am working on new version JSFCommunicator library(
http://www.abdulqabiz.com/files/JSFC/JSFCommunicator%20Library.htm ). Which
would work with Flex/Flash authored applications. I am thinking to many
things, some of them are:

- An easy and intuitive API to establish two-way connection between Flash
Player & JavaScript. Yeah, it would work with applications authored in Flash
IDE or Flex environment.

- Return values, if you call a JavaScript function from Flex you get the
return value immediately in flex or vice-versa.

- Making it work on most of the browsers and platforms. I will add
intelligent detection which would use JavaScript way or LocalConnection way
depending on browser or platform. I will try to keep things transparent to
library users by keeping interfaces common.


I am going to spend this weekend to make a list of To-Dos for JSFC, I will
appreciate if you can tell me what all you do with Flex/JavaScript, I might
be able to support in next version JSFC..

I hope, I can resolve this issue in JSFC...

Disclaimer: Note JSFC is something I started while back, it is not related
to my employer(Macromedia), that means I am responsible for
everything(support, bugs et al) :)


-abdul





-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Tracy Spratt
Sent: Saturday, May 21, 2005 1:10 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] passing variables using getURL?

Does this only apply if the url is external?  Do we get anything if we
use getURL to call a javascript function in our html wrapper?

I have been building delimited strings to pass arguments up to the
wrapper.  Is there a better way?

Tracy

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Abdul Qabiz
Sent: Friday, May 20, 2005 12:34 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] passing variables using getURL?

Hi,

You can pass variable to external script using getURL(...), getURL(..)
sends
all variable declared in current scope. Infact getURL(..) sends all
variable
declared, that means it sends unwanted stuff also.

But I think, you can use LoadVars object for such kind of work. LoadVars
gives more control and looks more clean. I am not sure why you launching
external page and passing variable, but following example might help
you.


##LoadVarsExample.mxml##

http://www.macromedia.com/2003/mxml";>










More about LoadVars:
http://www.macromedia.com/support/flash/action_scripts/actionscript_dict
iona
ry/actionscript_dictionary427.html


Hope that helps...

-abdul


-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of sbyrne_dorado
Sent: Friday, May 20, 2005 4:06 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] passing variables using getURL?

I'm having problems figuring out how to pass variables using getURL. 
The documentation that I can find seems to indicate that any random
variable that you declare that's in some (unspecified) scope, will be
appended (for GET) or passed (for POST) as parameters along with the
URL. 

So I have tried setting some typed local variables and invoking
getURL; no luck.  No luck with either POST or GET.  

What's the magic?  Do the variables have to be in the top level
application?  Do they have to be global within the the containing
class?   Does this functionality even work at all?





 
Yahoo! Groups Links



 




 
Yahoo! Groups Links



 






 
Yahoo! Groups Links



 




 
Yahoo! Groups Links

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

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

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




RE: [flexcoders] passing variables using getURL?

2005-05-20 Thread Matt Horn
If I understand you correctly, then no, getURL does not pass all
variables if you make a call using the javascript: pseudo-protocol
syntax because it's not generating the same kind of request. 
 
---
Example 1. 

function reportEvent(e) {
var eType = e.type;
var eName = e.target.id;
var url = "javascript:catchClick('" + eName + "','" + eType +
"')";
getURL(url);
}

Here, getURL only passes the two variables to a specific JavaScript
function (in this case, catchClick()) in the wrapper because it's using
only javascript on the current page, so no request headers (read: no GET
or POST) are being set:

---
Example 2.

var url;
function google() {
url = "http://www.google.com/search?hl=en&q="; + ta1.text;
getURL(url,"_blank","GET");
}

Here, getURL passes all of the root application's properties as well as
global variables (including the value of url) to the resulting page as a
GET request.

If you look at the request string, you'll see a lot of the app's
properties:
http://www.google.com/search?hl=en&q=fred&historyUrl=%2Fflex%2Fflex%2Din
ternal%3Faction%3Dhistory%5Fhtml&lconid=d357&liblist=&sizelist=&preloadO
bj=%5Bobject+Object%5D&width=undefined&height=undefined&nestLevel=0&focu
sManager=%5Flevel0%2EfocusManager&tabChildren=true&tabEnabled=false& ...
[snip]

---
Example 3.

function queryGoogle() {
var query = createEmptyMovieClip(null,0);
url = "http://www.google.com/search?hl=en&q="; + ta1.text;
query.getURL(url,"_blank","GET");
}
 
Here, getURL only invokes the GET request with the raw url string. There
are no properties of the movieclip to add on since we create an empty
movieclip and invoke getURL off of that.

---

HTH,

Matt Horn
Flex docs



From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of Tracy Spratt
Sent: Friday, May 20, 2005 3:40 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] passing variables using getURL?


Does this only apply if the url is external?  Do we get anything
if we
use getURL to call a javascript function in our html wrapper?

I have been building delimited strings to pass arguments up to
the
wrapper.  Is there a better way?

Tracy

-Original Message-
From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On
Behalf Of Abdul Qabiz
Sent: Friday, May 20, 2005 12:34 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] passing variables using getURL?

Hi,

You can pass variable to external script using getURL(...),
getURL(..)
sends
all variable declared in current scope. Infact getURL(..) sends
all
variable
declared, that means it sends unwanted stuff also.

But I think, you can use LoadVars object for such kind of work.
LoadVars
gives more control and looks more clean. I am not sure why you
launching
external page and passing variable, but following example might
help
you.


##LoadVarsExample.mxml##

http://www.macromedia.com/2003/mxml";>










More about LoadVars:

http://www.macromedia.com/support/flash/action_scripts/actionscript_dict
iona
ry/actionscript_dictionary427.html


Hope that helps...

-abdul


-Original Message-
From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On
Behalf Of sbyrne_dorado
Sent: Friday, May 20, 2005 4:06 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] passing variables using getURL?

I'm having problems figuring out how to pass variables using
getURL. 
The documentation that I can find seems to indicate that any
random
variable that you declare that's in some (unspecified) scope,
will be
appended (for GET) or passed (for POST) as parameters along with
the
URL. 

So I have tried setting some typed local variables and invoking
getURL; no luck.  No luck with either POST or GET.  

What's the magic?  Do the variables have to be in the top level
application?  Do they have to be global within the the
containing
class?   Does this functionality even work at all?






Yahoo! Groups Links









Yahoo! Groups Links









  

Re: [flexcoders] multiple threads?

2005-05-20 Thread JesterXL
You can spawn an interval to pick away at your task as well.

http://www.jessewarden.com/archives/2005/05/flex_flash_refr.html

- Original Message - 
From: "sanjayd" <[EMAIL PROTECTED]>
To: 
Sent: Friday, May 20, 2005 2:19 PM
Subject: [flexcoders] multiple threads?


Hi all.

Is there a way to create multiple threads in ActionScript, I have a
timeconsuming client-side task that I'd like to get done in a
secondary thread ..any ideas ?

Thanks in advance. Sanjay





 
Yahoo! Groups Links



 



 
Yahoo! Groups Links

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

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

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




RE: [flexcoders] passing variables using getURL?

2005-05-20 Thread Tracy Spratt
Does this only apply if the url is external?  Do we get anything if we
use getURL to call a javascript function in our html wrapper?

I have been building delimited strings to pass arguments up to the
wrapper.  Is there a better way?

Tracy

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Abdul Qabiz
Sent: Friday, May 20, 2005 12:34 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] passing variables using getURL?

Hi,

You can pass variable to external script using getURL(...), getURL(..)
sends
all variable declared in current scope. Infact getURL(..) sends all
variable
declared, that means it sends unwanted stuff also.

But I think, you can use LoadVars object for such kind of work. LoadVars
gives more control and looks more clean. I am not sure why you launching
external page and passing variable, but following example might help
you.


##LoadVarsExample.mxml##

http://www.macromedia.com/2003/mxml";>










More about LoadVars:
http://www.macromedia.com/support/flash/action_scripts/actionscript_dict
iona
ry/actionscript_dictionary427.html


Hope that helps...

-abdul


-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of sbyrne_dorado
Sent: Friday, May 20, 2005 4:06 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] passing variables using getURL?

I'm having problems figuring out how to pass variables using getURL. 
The documentation that I can find seems to indicate that any random
variable that you declare that's in some (unspecified) scope, will be
appended (for GET) or passed (for POST) as parameters along with the
URL. 

So I have tried setting some typed local variables and invoking
getURL; no luck.  No luck with either POST or GET.  

What's the magic?  Do the variables have to be in the top level
application?  Do they have to be global within the the containing
class?   Does this functionality even work at all?





 
Yahoo! Groups Links



 




 
Yahoo! Groups Links



 






 
Yahoo! Groups Links

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

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

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




[flexcoders] TabNavigator - Hiding Tabs

2005-05-20 Thread gevgelija50
I am trying to hide certain tabs from a Tab Navigator based on some 
criteria. If I follow this approach: tabnav[0].visible = false; the 
actual Tab is still visible but the children within that tab are 
invisible. 

How can I hide the tab button itself? 

Thanks,
Alex




 
Yahoo! Groups Links

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

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

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




RE: [flexcoders] Re: Flex as a Windows Service?

2005-05-20 Thread Tracy Spratt










If you do install full JRun and set up the
app server as a service, do NOT use the Jrun admin application to start or stop
this server.  It seems obvious in retrospect, I guess, but you must use
the Windows services mmc app.

 

There is nothing to stop you from
attempting to stop/start a service based server using Admin, but it apparently
causes multiple versions of the server to run and certainly causes very strange
behavior. 

 

Tracy

 









From:
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Peter Watson
Sent: Friday, May 20, 2005 12:46
PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Re: Flex
as a Windows Service?



 

The version of JRun included in the Flex
integrated install option does not provide this functionality.

It is for development only and as such has
been stripped down to the bare essentials.

The console provides easy access to server
output without having to look through logs while debugging issues, etc.

 

If you really need to run JRun as a service
then I suggest you download/install the trial version and deploy your flex
applications there.  You’ll notice that the full version recommends
running server instances as services for production and in the console for
development.  But of course everyone has there own preferences….

http://www.macromedia.com/cfusion/tdrc/index.cfm?product=jrun

 

 

Also, please put in a feature request if
you feel option should be available.

http://www.macromedia.com/support/email/wishform/

 

regards,

peter

 









From:
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Jeff Beeman
Sent: Friday, May 20, 2005 12:25
PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Re: Flex
as a Windows Service?



 

Unfortunately, searching for
"Windows service" only brings up this
thread in the archives and searching for
"service" brings up somewhere
around a trillion threads regarding web
services... can you point us in
the right direction of the discussion?  I'm
also interested in this
topic.


/**
* Jeff Beeman
**/
-Original Message-
From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On
Behalf Of Rich Butler
Sent: Friday, May 20, 2005 5:17 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Flex as a Windows
Service?

Not to worry, will search the archives, thanks.

*goes and sits in the naughty corner*

And thanks Sjors, will try that program :-)

Cheers,
Rich

--- In flexcoders@yahoogroups.com, Abdul Qabiz
<[EMAIL PROTECTED]> wrote:
> Hi Rich,
> 
> Never mind :)
> 
> Please search archives before posting. This
has been discussed several
> times...
> 
> 
> -abdul
> 
> -Original Message-
> From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED]
On
> Behalf Of Richard Butler
> Sent: Friday, May 20, 2005 4:28 PM
> To: [flexcoders]
> Subject: [flexcoders] Flex as a Windows
Service?
> 
> Hi all,
> 
> This may be a dumb question, so forgive me,
but is it possible to run
> Flex as a Windows Service? The DOS window
thing seems a nasty way of
> running it, or maybe that's just us...
> 
> Cheers,
> Rich
> 
> 
>
--
> 
> Richard Butler.
> Monochrome.
> Upper Floor 164a Portsmouth Road Cobham Surrey KT11 1HS.
> 
> Free: 08000 199 742
> Tel: +44 (0) 1932 862 874 
> Fax: +44 (0) 1932 866 065 
> 
> www.monochrome.co.uk
> 
> 
> 
>  
> Yahoo! Groups Links





Yahoo! Groups Links










 











Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ 
To unsubscribe from this group, send an email to:[EMAIL PROTECTED] 
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.












Re: [flexcoders] deserializing Maps with AMF (RemoteObject)

2005-05-20 Thread Joe Berkovitz
Peter,

You are right, the Map data is actually coming back intact; it is the 
debug console output that is omitting the data.  So there's no problem 
here except that the trace output is erroneous.

I'm not coercing anything to a String; the output you see is what one 
normally sees when running the Flash Player in debug mode with AMF 
logging enabled.  I rely on these printouts a lot for debugging.  I 
guess the AMF tracing code built into the player doesn't handle this 
case properly.

Thanks much for your assistance,

.   ..  . ...j


Peter Farland wrote:
> Are you coercing the Array to a String (say, via simple concatenation)
> in a trace()? Perhaps associative Array keys aren't shown when
> "toString" in Flash... can you try a for in loop instead? Or as a quick
> test do trace(result["key1"]).
> 
> The conversion of Map -> ECMA Array is a legacy behavior from Flash
> Remoting that we should consider making configurable in the next release
> of Flex as people would like to be able to do Map -> Object since it is
> a more useful type (associative arrays doesn't behave much like an
> Array) and allows you do use dot-syntax. Note that Map keys are
> "toString"'ed too as per the requirements for AMF / AS2 types.
> 
> 
> 
> 
> -Original Message-
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of Joe Berkovitz
> Sent: Friday, May 20, 2005 1:59 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] deserializing Maps with AMF (RemoteObject)
> 
> I can't for the life of me seem to pass a java.util.Map back from a 
> RemoteObject call.  The data comes back as an empty array object ([]) 
> rather than as an untyped object.
> 
> Anyone encountered this problem?
> 
> I have tried return-typing the method as HashMap and Object as well, no 
> dice in any case.
> 
> Here is my remote method that is being invoked:
> 
>  public Map test3()
>  {
>  HashMap map = new HashMap();
>  map.put("key1", "val1");
>  map.put("key2", "val2");
>  return map;
>  }
> 
> 
> Server trace looks like this:
> 
> Info: Processing batch of 1 request(s)
> Info: Requesting target 'testServer.test3'
> Info: Service 'com.allurent.arcx.test.TestServer' sent to adapter 'Java 
> Class Adapter'
> Info: Completed 'testServer.test3' with reply method 'onResult' in 10ms
> Info: Serializing response
>(Message #0 targetURI=/2/onResult, responseURI=null)
>  (ECMA Array #0)
>key1 = "val1"
>key2 = "val2"
> 
> Client trace looks like this:
> 
> [trace] 5/20 12:40:52 [INFO] RemoteObject_AMF: Invoking test3 on
> testServer
> [trace] 5/20 12:40:52 [INFO] RemoteObject_AMF: testServer.test3() 
> returned []  // where's my data, dude?
> 
> 
> 
>  
> Yahoo! Groups Links
> 
> 
> 
>  
> 
> 
> 
> 
>  
> Yahoo! Groups Links
> 
> 
> 
>  
> 
> 
> 
> 



 
Yahoo! Groups Links

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

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

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




Re: [flexcoders] multiple threads?

2005-05-20 Thread dave buhler



No.

You can change the timeout length from the default 15 seconds, though.

see : http://mxblogspace.journurl.com/index.cfm?fa=rd&m=1384

Your best option, though, is to let the server peform a long, complicated process, and not the client.

If you're filtering a lot of data, you can limit the result-set and give the user the option of paging results.

On 5/20/05, sanjayd <[EMAIL PROTECTED]> wrote:
Hi all.Is there a way to create multiple threads in ActionScript, I have atimeconsuming client-side task that I'd like to get done in asecondary thread ..any ideas ?Thanks in advance. Sanjay
Yahoo! Groups Links<*> To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]<*> Your use of Yahoo! Groups is subject to:http://docs.yahoo.com/info/terms/









Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ 
To unsubscribe from this group, send an email to:[EMAIL PROTECTED] 
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.










RE: [flexcoders] deserialization bug: constructor runs AFTER properties are populated

2005-05-20 Thread Peter Farland
Yep, it should be documented, sorry about that.

I can't find the post I was looking for but the short version is that
this deserialization order is by design (I want to reiterate that this
wasn't designed for Flex, it's a long standing Flash Player feature)
because you can't send constructor arguments in AMF instances. The
Player constructs a basic "shell" of the registered type, sets the
properties, then calls the real constructor. From the constructor you
initialize your object by making use of the preset properties (which
came from the server). 

The thing to watch out for is if your registered type has constructor
arguments:

public class MyType
{
public var p1:String;
public var p2:Object;

public function MyType(prop1:String, prop2:Object)
{
p1 = prop1; //Deserialization will override this to
undefined!
p2 = prop2; //Deserialization will override this to
undefined!
}
}

The above constructor is dangerous because it doesn't take into account
the player's deserialization order... it should be written like this:

public function MyType(prop1:String, prop2:Object)
{
if (prop1 !== undefined)
{
p1 = prop1;
p2 = prop2;
}
}

Also note that the current player doesn't take getter/setter functions
into account when serializing and deserializing objects... something we
obviously want to address in time for the next release of Flex.

Pete


-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Joe Berkovitz
Sent: Friday, May 20, 2005 2:12 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] deserialization bug: constructor runs AFTER
properties are populated

Peter,

I am sure that it's not a bug if you say it's not, but it should be 
clearly documented since it runs counter to the expectations of typical 
OOP behavior.  I read the Flex docs on object conversion back and forth 
several times and I find no mention there.

It is very difficult and awkward to search the Yahoo Groups archives, 
but I did actually search my own copy of the mailings which goes back a 
few months to when I joined the mailing list.  I guess the discussion 
must have been prior to that point.

.   ..  . ...j


Peter Farland wrote:
> Actually, this is not a bug and is by design as per the Flash Player's
> handling of any object deserialization (LSO, AMF, etc).
> 
> We discussed this on the list a few months ago... is it easy to search
> the archives for past messages (I admit I've not done it to date).
> 
> Pete
> 
>  
> 
> -Original Message-
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
On
> Behalf Of Joe Berkovitz
> Sent: Friday, May 20, 2005 1:53 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] deserialization bug: constructor runs AFTER
> properties are populated
> 
> I just found to my surprise and chagrin that when a typed AMF object
is 
> deserialized on the client, the constructor for the object is run 
> *after* the object's properties have been populated from the input 
> stream.  So if one innocently thinks that a constructor ought to be
able
> 
> to initialize various properties of the new object, well, this 
> initialization clobbers any deserialized values of those properties.
> 
> Macromedia support is entering this into their bug DB, but I thought 
> this was worth alerting folks to.  Obviously there's an easy
workaround,
> 
> which is to not do any initialization in constructors (or, if you do, 
> make sure that the properties actually are undefined before setting
> them).
> 
> .   ..  . ...j
> 
> P.S. note that this is totally different from a prior thread that 
> concerned constructors with arguments.  That is unsafe because the
args 
> will be undefined at deserialization time.  Here the issue is the 
> *timing* of the constructor call, not its argument values.
> 
> 
> 
>  
> Yahoo! Groups Links
> 
> 
> 
>  
> 
> 
> 
> 
>  
> Yahoo! Groups Links
> 
> 
> 
>  
> 
> 
> 
> 



 
Yahoo! Groups Links



 




 
Yahoo! Groups Links

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

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

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




RE: [flexcoders] Re: how can i stop my date-time timezone data from b eing adjusted

2005-05-20 Thread Tracy Spratt
Don't use binding.  Process the result data in your result handler,
reformatting as needed.  Then assign the dataProvider.

Tracy 

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of bhaq1972
Sent: Friday, May 20, 2005 11:13 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: how can i stop my date-time timezone data from
b eing adjusted

Thanks Manish. I tried out your suggestion but i would still prefer to 
change the dataProvider value  to be the same as the value in the 
database, rather than just effect the rendering.

thanks
bod





--- In flexcoders@yahoogroups.com, Manish Jethani 
<[EMAIL PROTECTED]> wrote:
> On 5/20/05, bhaq1972 <[EMAIL PROTECTED]> wrote:
> 
> >Do you have any recommendation how i would
> > apply this code before binding to a datagrid. My result handlers
> > after an async call usually look like this
> > 
> > function resultHandler(result){
> >   datagrid1.dataProvider = result;
> > }
> 
> Use a DataGridColumn, set a labelFunction on it, and format the data
> in the labelFunction.




 
Yahoo! Groups Links



 






 
Yahoo! Groups Links

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

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

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




RE: [flexcoders] deserializing Maps with AMF (RemoteObject)

2005-05-20 Thread Peter Farland
Are you coercing the Array to a String (say, via simple concatenation)
in a trace()? Perhaps associative Array keys aren't shown when
"toString" in Flash... can you try a for in loop instead? Or as a quick
test do trace(result["key1"]).

The conversion of Map -> ECMA Array is a legacy behavior from Flash
Remoting that we should consider making configurable in the next release
of Flex as people would like to be able to do Map -> Object since it is
a more useful type (associative arrays doesn't behave much like an
Array) and allows you do use dot-syntax. Note that Map keys are
"toString"'ed too as per the requirements for AMF / AS2 types.




-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Joe Berkovitz
Sent: Friday, May 20, 2005 1:59 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] deserializing Maps with AMF (RemoteObject)

I can't for the life of me seem to pass a java.util.Map back from a 
RemoteObject call.  The data comes back as an empty array object ([]) 
rather than as an untyped object.

Anyone encountered this problem?

I have tried return-typing the method as HashMap and Object as well, no 
dice in any case.

Here is my remote method that is being invoked:

 public Map test3()
 {
 HashMap map = new HashMap();
 map.put("key1", "val1");
 map.put("key2", "val2");
 return map;
 }


Server trace looks like this:

Info: Processing batch of 1 request(s)
Info: Requesting target 'testServer.test3'
Info: Service 'com.allurent.arcx.test.TestServer' sent to adapter 'Java 
Class Adapter'
Info: Completed 'testServer.test3' with reply method 'onResult' in 10ms
Info: Serializing response
   (Message #0 targetURI=/2/onResult, responseURI=null)
 (ECMA Array #0)
   key1 = "val1"
   key2 = "val2"

Client trace looks like this:

[trace] 5/20 12:40:52 [INFO] RemoteObject_AMF: Invoking test3 on
testServer
[trace] 5/20 12:40:52 [INFO] RemoteObject_AMF: testServer.test3() 
returned []  // where's my data, dude?



 
Yahoo! Groups Links



 




 
Yahoo! Groups Links

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

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

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




Re: [flexcoders] deserialization bug: constructor runs AFTER properties are populated

2005-05-20 Thread dave buhler



As a point of reference:

Many of us use GMail and create a FlexCoders label to store all list information.

Gmail is highly searchable, groups threads by Subject line, and with
2GB of storage, can store the List's threads for years to come.

I search my FlexCoders label before I post a question and many times, as an alternative to liveDocs.

Best,
DaveOn 5/20/05, Joe Berkovitz <[EMAIL PROTECTED]> wrote:
Peter,I am sure that it's not a bug if you say it's not, but it should beclearly documented since it runs counter to the expectations of typicalOOP behavior.  I read the Flex docs on object conversion back and forth
several times and I find no mention there.It is very difficult and awkward to search the Yahoo Groups archives,but I did actually search my own copy of the mailings which goes back afew months to when I joined the mailing list.  I guess the discussion
must have been prior to that point..   ..  . ...jPeter Farland wrote:> Actually, this is not a bug and is by design as per the Flash Player's> handling of any object deserialization (LSO, AMF, etc).
>> We discussed this on the list a few months ago... is it easy to search> the archives for past messages (I admit I've not done it to date).>> Pete -Original Message-
> From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On> Behalf Of Joe Berkovitz> Sent: Friday, May 20, 2005 1:53 PM
> To: flexcoders@yahoogroups.com> Subject: [flexcoders] deserialization bug: constructor runs AFTER> properties are populated>> I just found to my surprise and chagrin that when a typed AMF object is
> deserialized on the client, the constructor for the object is run> *after* the object's properties have been populated from the input> stream.  So if one innocently thinks that a constructor ought to be able
>> to initialize various properties of the new object, well, this> initialization clobbers any deserialized values of those properties.>> Macromedia support is entering this into their bug DB, but I thought
> this was worth alerting folks to.  Obviously there's an easy workaround,>> which is to not do any initialization in constructors (or, if you do,> make sure that the properties actually are undefined before setting
> them).>> .   ..  . ...j>> P.S. note that this is totally different from a prior thread that> concerned constructors with arguments.  That is unsafe because the args> will be undefined at deserialization time.  Here the issue is the
> *timing* of the constructor call, not its argument values.> Yahoo! Groups Links>> Yahoo! Groups Links
Yahoo! Groups Links<*> To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/
<*> To unsubscribe from this group, send an email to:[EMAIL PROTECTED]<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/








Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ 
To unsubscribe from this group, send an email to:[EMAIL PROTECTED] 
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.










RE: [flexcoders] Warning :Changes to unknown property, [Property], will not be detected.

2005-05-20 Thread Tracy Spratt
Try this:
text="{String(obj.childObj.someproperty)}

The compiler needs type information to set up binding correctly.

Tracy

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of joao_m_fernandes
Sent: Friday, May 20, 2005 5:31 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Warning :Changes to unknown property, [Property],
will not be detected.


Hi there,

I have an object declared on the top of my application and I have some
bindings to it. What happens is when a bindind is defined to a 2 level
child I get warnings but with a refresh It loads perfectly.

Even if in production it won't happen, for debugging in FB it's
impossible to go further. Is there a way do avoid this?

it's this simple:

var obj:Object;








 
Yahoo! Groups Links



 






 
Yahoo! Groups Links

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

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

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




[flexcoders] multiple threads?

2005-05-20 Thread sanjayd
Hi all.

Is there a way to create multiple threads in ActionScript, I have a
timeconsuming client-side task that I'd like to get done in a
secondary thread ..any ideas ?

Thanks in advance. Sanjay





 
Yahoo! Groups Links

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

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

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




Re: [flexcoders] deserialization bug: constructor runs AFTER properties are populated

2005-05-20 Thread Joe Berkovitz
Peter,

I am sure that it's not a bug if you say it's not, but it should be 
clearly documented since it runs counter to the expectations of typical 
OOP behavior.  I read the Flex docs on object conversion back and forth 
several times and I find no mention there.

It is very difficult and awkward to search the Yahoo Groups archives, 
but I did actually search my own copy of the mailings which goes back a 
few months to when I joined the mailing list.  I guess the discussion 
must have been prior to that point.

.   ..  . ...j


Peter Farland wrote:
> Actually, this is not a bug and is by design as per the Flash Player's
> handling of any object deserialization (LSO, AMF, etc).
> 
> We discussed this on the list a few months ago... is it easy to search
> the archives for past messages (I admit I've not done it to date).
> 
> Pete
> 
>  
> 
> -Original Message-
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of Joe Berkovitz
> Sent: Friday, May 20, 2005 1:53 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] deserialization bug: constructor runs AFTER
> properties are populated
> 
> I just found to my surprise and chagrin that when a typed AMF object is 
> deserialized on the client, the constructor for the object is run 
> *after* the object's properties have been populated from the input 
> stream.  So if one innocently thinks that a constructor ought to be able
> 
> to initialize various properties of the new object, well, this 
> initialization clobbers any deserialized values of those properties.
> 
> Macromedia support is entering this into their bug DB, but I thought 
> this was worth alerting folks to.  Obviously there's an easy workaround,
> 
> which is to not do any initialization in constructors (or, if you do, 
> make sure that the properties actually are undefined before setting
> them).
> 
> .   ..  . ...j
> 
> P.S. note that this is totally different from a prior thread that 
> concerned constructors with arguments.  That is unsafe because the args 
> will be undefined at deserialization time.  Here the issue is the 
> *timing* of the constructor call, not its argument values.
> 
> 
> 
>  
> Yahoo! Groups Links
> 
> 
> 
>  
> 
> 
> 
> 
>  
> Yahoo! Groups Links
> 
> 
> 
>  
> 
> 
> 
> 



 
Yahoo! Groups Links

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

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

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




RE: [flexcoders] deserialization bug: constructor runs AFTER properties are populated

2005-05-20 Thread Peter Farland
Actually, this is not a bug and is by design as per the Flash Player's
handling of any object deserialization (LSO, AMF, etc).

We discussed this on the list a few months ago... is it easy to search
the archives for past messages (I admit I've not done it to date).

Pete

 

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Joe Berkovitz
Sent: Friday, May 20, 2005 1:53 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] deserialization bug: constructor runs AFTER
properties are populated

I just found to my surprise and chagrin that when a typed AMF object is 
deserialized on the client, the constructor for the object is run 
*after* the object's properties have been populated from the input 
stream.  So if one innocently thinks that a constructor ought to be able

to initialize various properties of the new object, well, this 
initialization clobbers any deserialized values of those properties.

Macromedia support is entering this into their bug DB, but I thought 
this was worth alerting folks to.  Obviously there's an easy workaround,

which is to not do any initialization in constructors (or, if you do, 
make sure that the properties actually are undefined before setting
them).

.   ..  . ...j

P.S. note that this is totally different from a prior thread that 
concerned constructors with arguments.  That is unsafe because the args 
will be undefined at deserialization time.  Here the issue is the 
*timing* of the constructor call, not its argument values.



 
Yahoo! Groups Links



 




 
Yahoo! Groups Links

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

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

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




[flexcoders] deserializing Maps with AMF (RemoteObject)

2005-05-20 Thread Joe Berkovitz
I can't for the life of me seem to pass a java.util.Map back from a 
RemoteObject call.  The data comes back as an empty array object ([]) 
rather than as an untyped object.

Anyone encountered this problem?

I have tried return-typing the method as HashMap and Object as well, no 
dice in any case.

Here is my remote method that is being invoked:

 public Map test3()
 {
 HashMap map = new HashMap();
 map.put("key1", "val1");
 map.put("key2", "val2");
 return map;
 }


Server trace looks like this:

Info: Processing batch of 1 request(s)
Info: Requesting target 'testServer.test3'
Info: Service 'com.allurent.arcx.test.TestServer' sent to adapter 'Java 
Class Adapter'
Info: Completed 'testServer.test3' with reply method 'onResult' in 10ms
Info: Serializing response
   (Message #0 targetURI=/2/onResult, responseURI=null)
 (ECMA Array #0)
   key1 = "val1"
   key2 = "val2"

Client trace looks like this:

[trace] 5/20 12:40:52 [INFO] RemoteObject_AMF: Invoking test3 on testServer
[trace] 5/20 12:40:52 [INFO] RemoteObject_AMF: testServer.test3() 
returned []  // where's my data, dude?



 
Yahoo! Groups Links

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

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

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




RE: [flexcoders] Fully qualified URL

2005-05-20 Thread Tracy Spratt










And I added ContextRoot.

Tracy

 





    @ContextRoot()

      

 

 

 

 

 

 

     

  

   

 









From:
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Allen Manning
Sent: Thursday, May 19, 2005 6:56
AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Fully
qualified URL



 

Jeff,

 

Thanks.

 


http://www.macromedia.com/2003/mxml">
    
    



 



   

    
    http://{getPageDomain()}/"/>
    
    


Allen


 
  
  
  
   

 

   
   

Allen Manning, Technical Director 

   
   

Prismix
Ltd t:
+44 (0)870 749 1100 f: +44 (0)870 749 1200 w:
www.prismix.com 

   
  
  
  
  
 


 

 

 

 

 

 

 

 







From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf
Of Jeff Tapper
Sent: 19 May 2005 11:52
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Fully
qualified URL

Ugggh.  _root -- bad.

in the example below, since its running in the
core application tag, you 
can just remove the word _root entirely, and it
will still work,  or, as 
Abdul suggested,
mx.core.Application.application._url will work from any 
place in the app.




At 06:43 AM 5/19/2005, you wrote:
>Hello Jeroen,
>
>Below is an example of one way of doing it.
>
>
>http://www.macromedia.com/2003/mxml">
> 
>

>
>

>

>
http://{getPageDomain()}/"/>
>
> 
>
>
>HTH,
>Allen
>
>Allen Manning, Technical Director
>Prismix Ltd t: +44 (0)870 749 1100 f: +44
(0)870 749 1200 w: www.prismix.com
>
>
>
>
>
>
>
>
>From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On 
>Behalf Of Jeroen De Vos
>Sent: 19 May 2005 11:28
>To: flexcoders@yahoogroups.com
>Subject: [flexcoders] Fully qualified URL
>
>Hi all,
>
>In ActionScript I need to read the fully
qualified URL to the application 
>(http://x/x/…).
>How can I get this URL?
>
>Jeroen.
>
>
>
>Jeroen De Vos
>Gemeentelijk Havenbedrijf Antwerpen
>C/ICT - AMARIS
>
>
>Deze e-mail en alle gekoppelde bestanden zijn
officiele documenten van het 
>Gemeentelijk Havenbedrijf Antwerpen en kunnen
vertrouwelijke of 
>persoonlijke informatie bevatten. Gelieve de
afzender onmiddellijk via 
>e-mail of telefonisch te verwittigen als u
deze e-mail per vergissing 
>heeft ontvangen en verwijder vervolgens de
e-mail zonder deze te lezen, te 
>reproduceren, te verspreiden of te ontsluiten
naar derden. Het 
>Gemeentelijk Havenbedrijf Antwerpen is op geen
enkele manier 
>verantwoordelijk voor fouten of
onnauwkeurigheden in de inhoud van deze 
>e-mail. Het Gemeentelijk Havenbedrijf
Antwerpen kan
niet aansprakelijk 
>gesteld worden voor directe of indirecte
schade, verlies of ongemak 
>veroorzaakt als gevolg van een onnauwkeurigheid
of fout in deze e-mail.
>
>English Translation: This e-mail and all
attached files are official 
>documents of Antwerp Port Authority and may
contain confidential or 
>personal information. If you have received
this e-mail in error, you are 
>asked to inform the sender by e-mail or
telephone immediately, and to 
>remove it from your system without reading or
reproducing it or passing it 
>on to other parties. Antwerp Port Authority is
in no way responsible for 
>any errors or inaccuracies in the contents of
this e-mail, nor can it be 
>held liable for any direct or indirect loss,
damage or inconvenience 
>arising from any such errors or inaccuracies.
[GHA#Disclaimer]
>
>
>Yahoo! Groups Links
>To visit your group on the web, go to:
>http://groups.yahoo.com/group/flexcoders/
>
>To unsubscribe from this group, send an email
to:
>[EMAIL PROTECTED]
>
>Your use of Yahoo! Groups is subject to the
Yahoo! Terms of Service.













Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ 
To unsubscribe from this group, send an email to:[EMAIL PROTECTED] 
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.












[flexcoders] deserialization bug: constructor runs AFTER properties are populated

2005-05-20 Thread Joe Berkovitz
I just found to my surprise and chagrin that when a typed AMF object is 
deserialized on the client, the constructor for the object is run 
*after* the object's properties have been populated from the input 
stream.  So if one innocently thinks that a constructor ought to be able 
to initialize various properties of the new object, well, this 
initialization clobbers any deserialized values of those properties.

Macromedia support is entering this into their bug DB, but I thought 
this was worth alerting folks to.  Obviously there's an easy workaround, 
which is to not do any initialization in constructors (or, if you do, 
make sure that the properties actually are undefined before setting them).

.   ..  . ...j

P.S. note that this is totally different from a prior thread that 
concerned constructors with arguments.  That is unsafe because the args 
will be undefined at deserialization time.  Here the issue is the 
*timing* of the constructor call, not its argument values.



 
Yahoo! Groups Links

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

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

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




Re: [flexcoders] Help with node indentation after drag/drop

2005-05-20 Thread Rick Schmitty



Hi Manish thanks for taking the time.  I got this code from an
earlier post in the FlexCoders list.  I wanted to change it to
grab from an xml file instead of hard coding it into the mxml

To see it working, comment out line 50 and uncomment line 49 and 75-87



http://www.macromedia.com/2003/mxml">










    multipleSelection="true"
    initialize="initApp()"
    dragComplete="doDragComplete(event)"
    dragEnter="doDragEnter(event)"
    dragExit="doDragExit(event);"
    dragOver="doDragOver(event);"
    dragDrop="doDragDrop(event)"/>







Here is the nodes.xml file in the same directory as this mxml

        
            
                
                
            
            
                
                
            
        


On 5/20/05, Manish Jethani <[EMAIL PROTECTED]> wrote:
On 5/20/05, Rick Schmitty <[EMAIL PROTECTED]> wrote:>  Hi all, was wondering if there is some kind of function to 'correct' (?)> the indentation after doing a drag/drop with a tree
Can you post some code with instructions?Yahoo! Groups Links<*> To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/
<*> To unsubscribe from this group, send an email to:[EMAIL PROTECTED]<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/








Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ 
To unsubscribe from this group, send an email to:[EMAIL PROTECTED] 
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.










[flexcoders] Eclipse setup for Cairngorm (and a huge thank you!)

2005-05-20 Thread Hans Omli



I was just about to post a question about the .classpath files included in the samples, and how you're working with the samples in Eclipse.  I have a question before I wait patiently for the whitepaper...
 
It appears you're not using Sysdeo's Eclipse Tomcat Launcher plugin.  If this is correct, I assume you are manually creating a Context path/workDir in Tomcat such as:
 

 
Are you manually restarting Tomcat after compiling in Eclipse, or do you use Ant or another method to built and restart Tomcat?
 
On another note, I think a HUGE THANK YOU is in order for all of the time and energy Steven, Alistair, and the rest of the folks at iteration::two have dedicated to helping the Flex community... both in answering so many questions via FlexCoders as well as the work on Cairngorm, FlexUnit, blog posting, white papers, presentation, and all of the sample code they contribute.  
Thank you all!!!  Developing with Flex wouldn't be the same without you!!!
 
On 5/20/05, Steven Webster <[EMAIL PROTECTED]> wrote:
...
We do have another whitepaper that is being written at present,that will explain how to setup both Flexbuilder and Eclipse
with Cairngorm, to start a project with Cairngorm from scratch.However, it may be weeks, it may be months before thatwhitepaper is available ... I'm not willing to commit at thisstage, as we've already devoted a significant amount of time
to pulling together what you see in the 0.99 release
 








Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ 
To unsubscribe from this group, send an email to:[EMAIL PROTECTED] 
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.










RE: [flexcoders] Is there an easy way to do this

2005-05-20 Thread Tracy Spratt
Ahh, sortOn works with a property name.  I didn't know that. Pretty
handy
Tracy

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Manish Jethani
Sent: Thursday, May 19, 2005 3:36 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Is there an easy way to do this

On 5/19/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:

[...]
> 
>   
>Shopper1
>5
>   
>   
>Shopper2
>7
>   
> 
>Shopper3
>0
>   
[...]

You want to sort by the number of apples.

 apples.sortOn("Number");
 apples.sort().reverse(); // that was ascending

I'm pretty sure there's a way to directly sort descending, ...


 
Yahoo! Groups Links



 






 
Yahoo! Groups Links

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

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

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




[flexcoders] Context Menus in complex apps

2005-05-20 Thread Battershall, Jeff
I have an app that is built modularly with many sub-components
instantiated within my framework.

On the left is my tree menu and on the right is my ViewStack, where my
various sub-apps are instantiated. Both of these are within an Hbox,
which I have given the id "main". 

I create a custom context menu which I assign to "main" and this works
fine - it does not work fine, and in fact is completely ignored, when I
try to assign it to "this" which should be the Application. This
shouldn't be a problem in that my Hbox is 100% height and width and
should be covering the full available area, but I've noticed that there
is a small band at the very top of the app that it doesn't cover and
which has the default Flash context menu.

Anyone know why this band is showing up and how to get rid of it?  It
seems there is some padding being introduced - I just have to figure out
where it is coming from.

Also, anyone have strategies for custom context menus it apps that have
nested components? I'm hoping in Flash Player 8, we're able to control
context menus a bit more than we can currently in this sort of scenario.

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


 
Yahoo! Groups Links

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

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

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




[flexcoders] Trouble with mx:Image or mx:Loader

2005-05-20 Thread cazzaran
I have a flash banner that displays its content in the vertical 
middle. I have an application that is 800px wide, but the banner is, 
by default, only around 600px wide. My tag looks like:



If I specify the width attribute of the Image tag, the flash movie 
doesn't scale with it. 

Usually, the way I get this banner to work in html is to pass a 
scale=noborder attribute to the embed tag and it takes up as wide as 
the container (div for example) that the embed is contained in. How 
to I do this in Flex? Also, I need the vertical middle of the movie 
to show, not the top section that I specify. I tried using 
hPosition, but to no avail.

Any help is appreciated!

-Josh




 
Yahoo! Groups Links

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

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

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




RE: [flexcoders] Re: Default Chart Colors

2005-05-20 Thread Ely Greenfield

LineCharts have a property called 'stroke', which is of type
mx.graphics.Stroke, which specifies the weight, color, and alpha. This can't
be specified in CSS, as there's no shortcut for it. See my earlier response
for alternatives.

 

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Dave
Sent: Friday, May 20, 2005 7:44 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Default Chart Colors
Importance: High

Thanks for the info. What about LineCharts?

Thanks again,

-Dave

--- In flexcoders@yahoogroups.com, Ely Greenfield <[EMAIL PROTECTED]> 
wrote:
> 
> 
> 
> Hi Dave.  The answer is a teeny bit complex.
> 
> Each Series (except the pieSeries) has a style property 
called 'fill' that
> it pulls its fill from.  So what you're wondering is: how do I 
specify the
> fill style for each series that appears in my chart?
> 
> Each chart type, when it displays its series, assigns a CSS style 
selector
> to each series. In order to guarantee that each series gets a 
different
> fill, it assigns a different selector to each series, by index. 
> 
> The names of the selectors the chart assigns are, in turn, 
specified in a
> style property of the chart, called chartSeriesStyles.
> 
> So if you want to specify the fills to be used by ColumnCharts, 
you could do
> it like this:
> 
> 
> 
>   .customColumnSeries1 {
>   fill: #FF;
>   }
>   .customColumnSeries2 {
>   fill: #00FF00;
>   }
>   .customColumnSeries3 {
>   fill: #FF;
>   }
> 
>   ColumnChart { 
>   chartSeriesStyles: customColumnSeries1, 
customColumnSeries2,
> customColumnSeries3;
>   }
> 
> 
> PieCharts work a little differently. Since each pie series needs 
more that
> one fill (one for each wedge), the pieSeries draw its fills from a 
property
> called fills. You can specify this in CSS as well:
> 
> 
> 
> PieSeries {
>   Fills: #Ff, #00FF00, #FF;
> }
> 
> 
> Now there's a little bit of handwaving going on here.  The reason 
is, the
> fill properties of the charts aren't really rgb hex values, they 
are fill
> objects. We made them fill objects so that you could fill a chart 
with other
> fill types -- gradients, etc.  
> 
> However, CSS doesn't support a syntax for specifying an object.  
Which means
> there's really no way to specify a Fill object -- SolidColor,
> LinearGradient, etc. -- in CSS.  If you want to specify a complex 
fill type,
> you need to either do it on a per-component basis, or set the 
style through
> actionscript.
> 
> But, since there _is_ a way to specify simple color values in CSS, 
and
> that's what most designers typically want to do, we provided a 
shortcut.
> When the charts render themselves, if they find a simple RGB value 
in their
> fill or fills properties, they'll convert them to a SolidColor on 
the fly.
> Hence, the above CSS markup will work.
> 
> Ely.
> 
> 
> 
> -Original Message-
> From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
> Behalf Of Dave
> Sent: Thursday, May 19, 2005 2:17 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Default Chart Colors
> Importance: High
> 
> How do I change the default colors used by Flex for multiple 
charts? 
> As charts are added, the Legend and the Chart itself follow a 
pattern 
> of predetermined colors.
> 
> Where is that defined? I need to change site wide.
> 
> 
> Thanks much,
> 
> -Dave
> 
> 
> 
> 
>  
> Yahoo! Groups Links




 
Yahoo! Groups Links



 




 
Yahoo! Groups Links

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

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

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




RE: [flexcoders] Default Chart Colors

2005-05-20 Thread Ely Greenfield


> By extrapolation, would PieSeries also accept an array of gradients
intead of an array of hex values? 

Yes. The fill property of most series, and the fills property of the
pieSeries, take Fill objects. Which means any of them can take solid fills,
solid fills with alpha, linear gradients, and radial gradients. The same is
true for the pointFill property of line series and area series, the fill
property of the charts (which specifies the background color), and the
various *fill properties of the GridLines class.

>And is there a way to represent this in css?  

Unfortunately, no, that's a limitation of CSS.  We're considering whether
and how to address this in the next release of flex, but for the meantime,
you can:

- specify the styles inline on the item in MXML
- set the values on the CSSStyleDeclaration for PieSeries at initialization
through actionscript
- write a subclass of PieSeries that sets its fill style in its constructor,
and use that instead
- write a custom MXML component that allows you to specify CSS data using 
MXML.

Let me explain that last one a bit.  A while back I wrote up a little
actionscript class that allowed me to specify CSS properties using MXML.
I've included it at the bottom of this email, for your enjoyment and/or use.
But a small caveat -- when you specify styles via CSS, the compiler is able
to optimize assigning the styles a little bit better than this class can. So
using this class might have an effect on your startup time.  You'll have to
try it out yourself, and decided if the benefits outweigh the cost.


> Also would it be possible to alter the styleName property of a
PieSeries at runtime?


Yes, absolutely. PieChart.series[0].styleName = "...";

In my earlier response, I fibbed a little bit.  I said that the chart object
assigns the styleName of each series on the fly. In truth, it's not actually
assigning the styleName -- it's really assigning a different internal
property of the series, that inserts style properties into the style chain
at a slightly lower priority than the styleName property does. What does
this mean? Well, if you assign the styleName property, you'll override any
style properties you want to override, without accidentally blowing away the
ones you want to keep the same.


Ely.
-
style/Selector.as:

import mx.util.*;
import mx.core.*;
import mx.styles.*;


/*
Here's an example of how you might use this class in an MXML file:










labelFont
bold
24

*/

dynamic class style.Selector implements MXMLObject 
{

public var name:String;

public function initialized(document : Object, id : String) : Void
{
var selectorName = name;

if(selectorName.indexOf(".") == 0)
selectorName = selectorName.substr(1);

var selector:CSSStyleDeclaration =
StyleManager.styles[selectorName];
if(selector == null)
 selector = StyleManager.styles[selectorName] = new
CSSStyleDeclaration();

for(var aProp in this) {
if(aProp == "name")
continue;
selector.setStyle(removeDashes(aProp),this[aProp]);
}

}
public function removeDashes(oldName:String):String
{
var name:String = oldName;
var idx:Number = name.indexOf("-");
while(idx != -1) {
name = name.substr(0,idx) +
name.substr(idx+1,1).toUpperCase() + name.substr(idx+2);
idx = name.indexOf("-");
}
return name;
}   
}


 
Yahoo! Groups Links

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

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

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




RE: [flexcoders] Is there an easy way to do this

2005-05-20 Thread Tracy Spratt










Here is an example app:

Tracy

 



   

    initialize="sortSetDP()">

  





  

 

   
Shopper1

    5

 

 

   
Shopper2

    7

 

 

   
Shopper3

    0

 

 

   
Shopper4

    4

 

 

   
Shopper5

    1

 

 

   
Shopper6

    0

 

 

   
Shopper7

    0

 

 

   
Shopper8

    0

 

  

 

    

    

    

    

    

    

    

    

    

        

    

    

    

    

    

   

 









From:
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED]
Sent: Wednesday, May 18, 2005 9:29
PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Is there
an easy way to do this



 



I tried what you said and what I thought was the Array.sort
command but I can not get it to work. What I am trying to do in a nutshell is
sort the array by showing the top three numbers in order on either a button or
a label next to there respective Shoppers. I looked online for info on the
Array.sort() function but I could not see a good example of it in use?






http://www.macromedia.com/2003/mxml">

  
   Shopper1
   5
  
  
   Shopper2
   7
  

   Shopper3
   0
  

   Shopper4
   4
  
  
   Shopper5
   1
  

   Shopper6
   0
  





 






   Shopper7
   0
  

   Shopper8
   0
  





 






 
 
  
 
 
 
  
 





 






  








 


















 











 










 










Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ 
To unsubscribe from this group, send an email to:[EMAIL PROTECTED] 
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.












Re: [flexcoders] Re: Flex on the Web

2005-05-20 Thread JesterXL
One I'm working on, yes.  The public will never see it.

Incidentally, 90% of my Flash RIA work has been the same way in the past.

Can I do both for internet websites?  Sure, it's just my current clients 
have specific needs for intranet deployed applications.

- Original Message - 
From: "Michel Jansen" <[EMAIL PROTECTED]>
To: 
Sent: Friday, May 20, 2005 3:30 AM
Subject: Re: [flexcoders] Re: Flex on the Web


Steven Webster wrote:

> >
> > Also, last I saw posted to this group, there were only about
> > 200 licenses sold to date.
> >
>
> I can pretty much certainly state that there have been a *great*
> deal more than 200 licenses sold to date, perhaps 200 customers
> was cited, but a single customer might purchase anywhere from
> 10s or 100s of licenses in many instances.  And I've only got
> visibility of a small proportion of the Flex business that is
> being done...

If this is true... Where are all the applications? Is Flex only used for
Intranet purposes??

Michel



Yahoo! Groups Links







 
Yahoo! Groups Links

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

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

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




RE: [flexcoders] Re: Flex as a Windows Service?

2005-05-20 Thread Peter Watson










The version of JRun included in the Flex
integrated install option does not provide this functionality.

It is for development only and as such has
been stripped down to the bare essentials.

The console provides easy access to server
output without having to look through logs while debugging issues, etc.

 

If you really need to run JRun as a
service then I suggest you download/install the trial version and deploy your
flex applications there.  You’ll notice that the full version
recommends running server instances as services for production and in the
console for development.  But of course everyone has there own preferences….

http://www.macromedia.com/cfusion/tdrc/index.cfm?product=jrun

 

 

Also, please put in a feature request if
you feel option should be available.

http://www.macromedia.com/support/email/wishform/

 

regards,

peter

 









From:
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Jeff Beeman
Sent: Friday, May 20, 2005 12:25
PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Re: Flex
as a Windows Service?



 

Unfortunately, searching for "Windows service" only brings up
this
thread in the archives and searching for
"service" brings up somewhere
around a trillion threads regarding web
services... can you point us in
the right direction of the discussion?  I'm
also interested in this
topic.


/**
* Jeff Beeman
**/
-Original Message-
From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On
Behalf Of Rich Butler
Sent: Friday, May 20, 2005 5:17 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Flex as a Windows
Service?

Not to worry, will search the archives, thanks.

*goes and sits in the naughty corner*

And thanks Sjors, will try that program :-)

Cheers,
Rich

--- In flexcoders@yahoogroups.com, Abdul Qabiz <[EMAIL PROTECTED]> wrote:
> Hi Rich,
> 
> Never mind :)
> 
> Please search archives before posting. This
has been discussed several
> times...
> 
> 
> -abdul
> 
> -Original Message-
> From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED]
On
> Behalf Of Richard Butler
> Sent: Friday, May 20, 2005 4:28 PM
> To: [flexcoders]
> Subject: [flexcoders] Flex as a Windows
Service?
> 
> Hi all,
> 
> This may be a dumb question, so forgive me,
but is it possible to run
> Flex as a Windows Service? The DOS window
thing seems a nasty way of
> running it, or maybe that's just us...
> 
> Cheers,
> Rich
> 
> 
>
--
> 
> Richard Butler.
> Monochrome.
> Upper Floor 164a Portsmouth Road Cobham
Surrey KT11 1HS.
> 
> Free: 08000 199 742
> Tel: +44 (0) 1932 862 874 
> Fax: +44 (0) 1932 866 065 
> 
> www.monochrome.co.uk
> 
> 
> 
>  
> Yahoo! Groups Links





Yahoo! Groups Links




















Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ 
To unsubscribe from this group, send an email to:[EMAIL PROTECTED] 
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.












Re: [flexcoders] Scale the size of a whole application

2005-05-20 Thread JesterXL





There is an issue with certain stage scaling and 
Stage.onResize; eventually, it'll get off kilter.  That's why you can 
ensure it works fine by setting to noScale, and then letting Flash scale it via 
drawing.
 
If your dealing with zooming, and scaling... it's a 
dangerous mix to depend on, hence Flex taking the path it did.  You should 
at least hide the context menu if you can.
 
http://www.peterjoel.com/blog/index.php?archive=2003_02_01_archive.xml#88361428
 
- Original Message - 
From: Sreejith Unnikrishnan 

To: flexcoders@yahoogroups.com 
Sent: Friday, May 20, 2005 1:58 AM
Subject: Re: [flexcoders] Scale the size of a whole 
application
Jexter,I did play around 
with that for a while ... could not make sense of what was happening ... 
especially the zoom scale ...Code below for u to try out!"http://www.macromedia.com/2003/mxml" 
width="100%" 
height="100%">    
            
                
                
RegardsSreeJesterXL 
wrote: 

  
  

  ...this sounds like turning stage scaling 
  on.  For a test, try this in your main app:
   
  Stage.scaleMode = "showAll".
   
  I believe Flex has it set to "noScale", and thus 
  uses the Flex containers to draw the change in size rather than have the SWF 
  scale.  Try that, see if it works for you.
   
  - 
  Original Message - 
  From: 
  Matthew Shirey 
  
  To: flexcoders@yahoogroups.com 
  Sent: Friday, May 20, 2005 1:20 AM
  Subject: Re: [flexcoders] Scale the size of a whole 
  application
  Actually, I am working down a path that uses a canvas and 
  dynamically adjusts the ScaleX and ScaleY properties based on the size of the 
  application in the browser using the applications onResize event.  So 
  far, the effect is exactly what I'm looking for.  Even the fonts are 
  getting scaled correctly.  It works okay with non-embeded fonts but I've 
  found it works perfectly with embeded fonts.  My only concern now is how 
  well it will perform once the UI gets a bit more complicated.If anyone 
  else is interested, I can post my solution once I get it a little more 
  perfected.M.
  On 5/19/05, Sreejith 
  Unnikrishnan <[EMAIL PROTECTED]> 
  wrote: 
  One interesting adventure you can embark on is to 
put the whole application in a mx:Canvas and use mx:Zoom to scale it based 
on the resolution. I have never tried this before, so can't tell. I have 
doubts about the font-size etc :-)Sree
Matthew Shirey wrote: 
I was afraid I hadn't explained the problem 
  right...Setting to those just takes up the space, it doesn't 
  actually scale the content larger.  It resizes the layout managers 
  larger which results in a lot of unused white space for my 
  application.  I need the contents to scale so if you make the window 
  twice as large, then all of the contents are twice as big.  Bigger 
  fonts, bigger everything.  I'm not sure how I can clarify this any 
  further... :(-- Matthew
  On 5/19/05, JesterXL <[EMAIL PROTECTED] > wrote: 
  
Make the width and height of your 
application tag 100%...?  That's what I do to get full screen 
real-estate usage.  Decreasing margins on things helps a lot 
too.

 
- 
Original Message - 
From: 
Matthew Shirey 
To: flexcoders@yahoogroups.com 
Sent: Thursday, May 19, 2005 6:31 PM
Subject: [flexcoders] Scale the size of a whole 
application
This may sound like a odd request, but is there a way to 
scale the size of a whole application so that all of the contents get 
larger?  The functionality that I desire is similar to what happens 
to a Flash movie when you make its size bigger.  I'd like to design 
an application at a fixed resolution like 800x600.  If the user 
then makes the web browser bigger, I'd like the contents to scale up in 
size.  Right now, with the layout managers I basically just end up 
with more space.  A lot of it is wasted empty space.  I have a 
specific user that is mildly vision impaired.  He makes everything 
on his screen gigantic.  His monitor is a nice 21" flat panel at 
1600x1200 resolution.  I'd like him to be able to maximize the 
application to 1600x1200 there by making everything in the application 
which is designed at 800x600 scale up to that size.Anyone have 
any suggestions?  I was a little long winded there, but I hope I've 
accurately described my problem and the type of solution I'm looking 
for.  Any other suggestions on how I can deal with visibility 
impaired users would also be helpful.  Thank you!-- 
Matthew

Yahoo! Groups Links

  To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/  
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]   
  Your us

RE: [flexcoders] Re: Flex as a Windows Service?

2005-05-20 Thread Jeff Beeman
Unfortunately, searching for "Windows service" only brings up this
thread in the archives and searching for "service" brings up somewhere
around a trillion threads regarding web services... can you point us in
the right direction of the discussion?  I'm also interested in this
topic.


/**
* Jeff Beeman
**/
-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Rich Butler
Sent: Friday, May 20, 2005 5:17 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Flex as a Windows Service?

Not to worry, will search the archives, thanks.

*goes and sits in the naughty corner*

And thanks Sjors, will try that program :-)

Cheers,
Rich

--- In flexcoders@yahoogroups.com, Abdul Qabiz <[EMAIL PROTECTED]> wrote:
> Hi Rich,
> 
> Never mind :)
> 
> Please search archives before posting. This has been discussed several
> times...
> 
> 
> -abdul
> 
> -Original Message-
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
On
> Behalf Of Richard Butler
> Sent: Friday, May 20, 2005 4:28 PM
> To: [flexcoders]
> Subject: [flexcoders] Flex as a Windows Service?
> 
> Hi all,
> 
> This may be a dumb question, so forgive me, but is it possible to run
> Flex as a Windows Service? The DOS window thing seems a nasty way of
> running it, or maybe that's just us...
> 
> Cheers,
> Rich
> 
> 
> --
> 
> Richard Butler.
> Monochrome.
> Upper Floor 164a Portsmouth Road Cobham Surrey KT11 1HS.
> 
> Free: 08000 199 742
> Tel: +44 (0) 1932 862 874 
> Fax: +44 (0) 1932 866 065 
> 
> www.monochrome.co.uk
> 
> 
> 
>  
> Yahoo! Groups Links




 
Yahoo! Groups Links



 






 
Yahoo! Groups Links

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

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

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




[flexcoders] Flex Phone Study

2005-05-20 Thread Usability Admin
Title: Flex Phone Study







Hello, 


Macromedia Usability is conducting 30-minute telephone interviews with web developers next week to learn more about their experience with Flex and related technologies. Interested? We know your time is valuable, so to thank you for your participation, we will give you a $40 Amazon gift certificate or your choice of the following Macromedia software: Captivate, Contribute, Dreamweaver, Flash, Fireworks, or Freehand.

If you would like to be considered for this study, please fill out the questionnaire below and send it to [EMAIL PROTECTED] with subject line Flex Phone Study. If you don't hear back from us, this means that the openings for this particular usability study have been filled. We will keep your information on file, with your permission, for future studies.    

Please type in between the brackets to indicate your choices.


Thanks again.



    1.  What is your level of experience with Macromedia Flex?  Please type an "X" between the brackets to indicate the best choice.

    [] I haven't used Flex
    [] I've played with Flex, but haven't done any serious work
    [] I've walked through the Flex examples and experimented with the components 
    [] I've built a prototype or simple application using Flex
    [] I've partially built a complex application using Flex
    [] I've built one or more complex applications using Flex


    2.  Approximately what percentage of your time developing web applications do you spending developing using the following technologies?  Please enter a percentage for each technology you use.

    [] ASP
    [] ASP.NET
    [] ColdFusion
    [] DHTML/Ajax
    [] Flash
    [] Flex
    [] Java
    [] JSP
    [] Lazslo
    [] PHP
    [] Visual Basic
    [] Other __


    3.  How important are the following attributes to the web applications you build?  


    Please enter a number between 1 and 3 for each attribute, where 1 means not important, 2 means somewhat important, and 3 means very important.

    [] Animated transitions
    [] Other animation
    [] Complex visual display of data
    [] Custom look and feel
    [] Dashboard or portal functionality
    [] Real time data display
    [] Rich forms
    [] Single screen interface (i.e., no page refreshes)


    ---


    Schedule:


    Please mark the times you will be available; marking more times will increase your chances of being selected.


    All times are Pacific Standard Time.


    Wed, May 25th


    [] 9:00 am
    [] 10:00 am
    [] 11:00 am
    [] 2:00 pm
    [] 3:00 pm
    [] 4:00 pm


    Thu, May 26th


    [] 9:00 am
    [] 11:00 am
    [] 1:00 pm
    [] 2:00 pm
    [] 3:00 pm
    [] 4:00 pm


    Fri, May 27th


    [] 9:00 am
    [] 10:00 am
    [] 11:00 am
    [] 2:00 pm
    [] 3:00 pm
    [] 4:00 pm





    Please fill out your contact information below (all required):
    Name:
    Work Email:
    Work Phone:
    Company:
    Job Title:





Usability Team
Macromedia | 601 Townsend Street | San Francisco CA 94103 











Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ 
To unsubscribe from this group, send an email to:[EMAIL PROTECTED] 
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.










[flexcoders] resetting an object to a default color

2005-05-20 Thread nostra72



I know you can change the color with the setStyle method what I want to know is how do you revert it back to its default color whenever I try to change it all I get is either a black button or some other color?







Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ 
To unsubscribe from this group, send an email to:[EMAIL PROTECTED] 
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.










[flexcoders] Re: how can i stop my date-time timezone data from b eing adjusted

2005-05-20 Thread bhaq1972
Thanks Manish. I tried out your suggestion but i would still prefer to 
change the dataProvider value  to be the same as the value in the 
database, rather than just effect the rendering.

thanks
bod





--- In flexcoders@yahoogroups.com, Manish Jethani 
<[EMAIL PROTECTED]> wrote:
> On 5/20/05, bhaq1972 <[EMAIL PROTECTED]> wrote:
> 
> >Do you have any recommendation how i would
> > apply this code before binding to a datagrid. My result handlers
> > after an async call usually look like this
> > 
> > function resultHandler(result){
> >   datagrid1.dataProvider = result;
> > }
> 
> Use a DataGridColumn, set a labelFunction on it, and format the data
> in the labelFunction.




 
Yahoo! Groups Links

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

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

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




[flexcoders] Re: Bug? image (html) in textarea

2005-05-20 Thread rockmoyosa
--- In flexcoders@yahoogroups.com, Manish Jethani
<[EMAIL PROTECTED]> wrote:
> On 5/20/05, rockmoyosa <[EMAIL PROTECTED]> wrote:
> 
> > It's really simple I place a textarea in mxml. And in AS i'm setting a
> >  tag in the textarea. After that i'm resizing to a smaller height
> > now the image is still visible. But should not be, you should scroll
> > to have to see it.
> 
> Try setting a mask on the TextArea object.  See UIObject.setMask()

How? beneath textarea there is an form. It appears on resize. So how
do i use setMask




 
Yahoo! Groups Links

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

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

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




Re: [flexcoders] Re: Flex on the Web

2005-05-20 Thread Jonathan Bezuidenhout
I can attest to this.

Our app has been developent for well over a year, and in production
for about 10 months, yet no-one on the outisde has ever seen it. 
Large companies have all kinds of business/competitive reasons for
releasing (or not as in our case) stuff to the outside world.

Also I can tell you that in our case, a typical (short) release cycle
lasts about 3 months, at least two of which is spent testing and about
3 weeks for development.  We connect to so many complex back-end
systems that testing is very difficult.  We have had about 4 releases
with Flex.

I think at any time we probably have 4 different environments with
stuff on the go at different stages and versions with development,
testing, staging, production.  Everything is spread out over several
different geographical regions.  Load balancers, hardware encryption
and tunneling, clusters for all of those.  So obviously we have more
than one Flex license ;)

Freqequent changes in requirements is where Flex really shines.  We
can make major changes on the Flex side in hours/days, whereas the
guys doing back-end systems often take days/weeks to do the equivalent
thing or whatever is needed to keep up with us.

Oops - I think I am beginning to sound like a salesman, but I thought
I would give a little view into my world.

Jonathan

On 5/20/05, David Mendels <[EMAIL PROTECTED]> wrote:

>  But many more are longer term projects.  I am aware of many
>  Flex customers with development teams that have a 6-18 month development
>  and testing cycle for large and complex applications. 



 
Yahoo! Groups Links

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

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

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




[flexcoders] Re: Default Chart Colors

2005-05-20 Thread Dave
Thanks for the info. What about LineCharts?

Thanks again,

-Dave

--- In flexcoders@yahoogroups.com, Ely Greenfield <[EMAIL PROTECTED]> 
wrote:
> 
> 
> 
> Hi Dave.  The answer is a teeny bit complex.
> 
> Each Series (except the pieSeries) has a style property 
called 'fill' that
> it pulls its fill from.  So what you're wondering is: how do I 
specify the
> fill style for each series that appears in my chart?
> 
> Each chart type, when it displays its series, assigns a CSS style 
selector
> to each series. In order to guarantee that each series gets a 
different
> fill, it assigns a different selector to each series, by index. 
> 
> The names of the selectors the chart assigns are, in turn, 
specified in a
> style property of the chart, called chartSeriesStyles.
> 
> So if you want to specify the fills to be used by ColumnCharts, 
you could do
> it like this:
> 
> 
> 
>   .customColumnSeries1 {
>   fill: #FF;
>   }
>   .customColumnSeries2 {
>   fill: #00FF00;
>   }
>   .customColumnSeries3 {
>   fill: #FF;
>   }
> 
>   ColumnChart { 
>   chartSeriesStyles: customColumnSeries1, 
customColumnSeries2,
> customColumnSeries3;
>   }
> 
> 
> PieCharts work a little differently. Since each pie series needs 
more that
> one fill (one for each wedge), the pieSeries draw its fills from a 
property
> called fills. You can specify this in CSS as well:
> 
> 
> 
> PieSeries {
>   Fills: #Ff, #00FF00, #FF;
> }
> 
> 
> Now there's a little bit of handwaving going on here.  The reason 
is, the
> fill properties of the charts aren't really rgb hex values, they 
are fill
> objects. We made them fill objects so that you could fill a chart 
with other
> fill types -- gradients, etc.  
> 
> However, CSS doesn't support a syntax for specifying an object.  
Which means
> there's really no way to specify a Fill object -- SolidColor,
> LinearGradient, etc. -- in CSS.  If you want to specify a complex 
fill type,
> you need to either do it on a per-component basis, or set the 
style through
> actionscript.
> 
> But, since there _is_ a way to specify simple color values in CSS, 
and
> that's what most designers typically want to do, we provided a 
shortcut.
> When the charts render themselves, if they find a simple RGB value 
in their
> fill or fills properties, they'll convert them to a SolidColor on 
the fly.
> Hence, the above CSS markup will work.
> 
> Ely.
> 
> 
> 
> -Original Message-
> From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
> Behalf Of Dave
> Sent: Thursday, May 19, 2005 2:17 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Default Chart Colors
> Importance: High
> 
> How do I change the default colors used by Flex for multiple 
charts? 
> As charts are added, the Legend and the Chart itself follow a 
pattern 
> of predetermined colors.
> 
> Where is that defined? I need to change site wide.
> 
> 
> Thanks much,
> 
> -Dave
> 
> 
> 
> 
>  
> Yahoo! Groups Links




 
Yahoo! Groups Links

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

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

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




Re: [flexcoders] Re: Bug? image (html) in textarea

2005-05-20 Thread Manish Jethani
On 5/20/05, rockmoyosa <[EMAIL PROTECTED]> wrote:

> It's really simple I place a textarea in mxml. And in AS i'm setting a
>  tag in the textarea. After that i'm resizing to a smaller height
> now the image is still visible. But should not be, you should scroll
> to have to see it.

Try setting a mask on the TextArea object.  See UIObject.setMask()


 
Yahoo! Groups Links

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

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

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




RE: [flexcoders] Default Chart Colors

2005-05-20 Thread Battershall, Jeff
Ely,

By extrapolation, would PieSeries also accept an array of gradients
intead of an array of hex values? And is there a way to represent this
in css?  Also would it be possible to alter the styleName property of a
PieSeries at runtime?

Jeff

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Ely Greenfield
Sent: Thursday, May 19, 2005 6:30 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Default Chart Colors





Hi Dave.  The answer is a teeny bit complex.

Each Series (except the pieSeries) has a style property called 'fill'
that it pulls its fill from.  So what you're wondering is: how do I
specify the fill style for each series that appears in my chart?

Each chart type, when it displays its series, assigns a CSS style
selector to each series. In order to guarantee that each series gets a
different fill, it assigns a different selector to each series, by
index. 

The names of the selectors the chart assigns are, in turn, specified in
a style property of the chart, called chartSeriesStyles.

So if you want to specify the fills to be used by ColumnCharts, you
could do it like this:



.customColumnSeries1 {
fill: #FF;
}
.customColumnSeries2 {
fill: #00FF00;
}
.customColumnSeries3 {
fill: #FF;
}

ColumnChart { 
chartSeriesStyles: customColumnSeries1,
customColumnSeries2, customColumnSeries3;
}


PieCharts work a little differently. Since each pie series needs more
that one fill (one for each wedge), the pieSeries draw its fills from a
property called fills. You can specify this in CSS as well:



PieSeries {
Fills: #Ff, #00FF00, #FF;
}


Now there's a little bit of handwaving going on here.  The reason is,
the fill properties of the charts aren't really rgb hex values, they are
fill objects. We made them fill objects so that you could fill a chart
with other fill types -- gradients, etc.  

However, CSS doesn't support a syntax for specifying an object.  Which
means there's really no way to specify a Fill object -- SolidColor,
LinearGradient, etc. -- in CSS.  If you want to specify a complex fill
type, you need to either do it on a per-component basis, or set the
style through actionscript.

But, since there _is_ a way to specify simple color values in CSS, and
that's what most designers typically want to do, we provided a shortcut.
When the charts render themselves, if they find a simple RGB value in
their fill or fills properties, they'll convert them to a SolidColor on
the fly. Hence, the above CSS markup will work.

Ely.



-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Dave
Sent: Thursday, May 19, 2005 2:17 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Default Chart Colors
Importance: High

How do I change the default colors used by Flex for multiple charts? 
As charts are added, the Legend and the Chart itself follow a pattern 
of predetermined colors.

Where is that defined? I need to change site wide.


Thanks much,

-Dave




 
Yahoo! Groups Links



 




 
Yahoo! Groups Links



 





 
Yahoo! Groups Links

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

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

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




Re: [flexcoders] creating row in datagrid at runtime

2005-05-20 Thread Manish Jethani
On 5/19/05, shettyaditsathish <[EMAIL PROTECTED]> wrote:
> i need to create a row in an existing datagrid on an event and show the
> the 1st column of the newly created row in editable mode.


http://www.macromedia.com/2003/mxml";
  xmlns="*">
  
function enterNewRow():Void
{
  grid.addItem();
  focusNewRow();
  doLater(this, "focusNewRow");
}
function focusNewRow():Void
{
  grid.setFocus();
  grid.focusedCell = {columnIndex: 0, itemIndex:
grid.dataProvider.length-1};
}
  
  

  


  

  
  


Note:

 1.  grid.addItem() will add a blank row
 2.  call focusNewRow() in the next frame using doLater()


 
Yahoo! Groups Links

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

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

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




[flexcoders] Re: Bug? image (html) in textarea

2005-05-20 Thread rockmoyosa
--- In flexcoders@yahoogroups.com, Abdul Qabiz <[EMAIL PROTECTED]> wrote:
> Hi,
> 
> Can you please post the sample code? It would save sometime and I can
> quickly look into it.
> 
> -abdul 
> 
> -Original Message-
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of rockmoyosa
> Sent: Friday, May 20, 2005 4:32 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Re: Bug? image (html) in textarea
> 
> --- In flexcoders@yahoogroups.com, "rockmoyosa" <[EMAIL PROTECTED]> wrote:
> > I'm using An image tag in a textarea. an horizontal line, because 
> > is not supported. When I resize the textarea to a smaller height, The
> > images are still visible below my textarea and if i'm scrolling u see
> > the images also scrolling. It hust like text area is still the same
> > size for images but not the text. 
> > 
> > I'm thinking it's a bug. Does anybody got a solution for this problem.
> 
> Anybody?
> 
> 
> 
> 
> 
>  
> Yahoo! Groups Links
It's really simple I place a textarea in mxml. And in AS i'm setting a
 tag in the textarea. After that i'm resizing to a smaller height
now the image is still visible. But should not be, you should scroll
to have to see it.




 
Yahoo! Groups Links

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

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

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




Re: [flexcoders] Help with node indentation after drag/drop

2005-05-20 Thread Manish Jethani
On 5/20/05, Rick Schmitty <[EMAIL PROTECTED]> wrote:
>  Hi all, was wondering if there is some kind of function to 'correct' (?)
> the indentation after doing a drag/drop with a tree

Can you post some code with instructions?


 
Yahoo! Groups Links

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

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

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




[flexcoders] Compiling a set of classes

2005-05-20 Thread Erik Westra
We are planning a large application. This application uses a framework
we developed. Different developers will be creating components wich will
function only within this framework. In order to let developers work on
their own module while not bothering others in their testing. We want to
be able to load different libraries at runtime.

The ways to do this are allrdy completed.

The problem here is how to compile an as file like this:

class commonDialogs
{
public function commonDialogs()
{
fly.TAP.commonDialogs.Alert;
fly.TAP.commonDialogs.Login;
fly.TAP.commonDialogs.Waiting;
fly.TAP.commonDialogs.Preloader;
fly.TAP.commonDialogs.Prompt;
};
};

fly.TAP.commonDialogs.Login for example extends LoginVisual, wich is an
mxml file laying out the visual parts of this window extending
titlewindow.

I want to compile these classes into a swf. However I don't want to
include the basic flex classes (think of UIObject, TitleWindow,
Container, etc.). Does any1 know a way of compiling classes while
defining wich classes to leave out?


I hope my problem is clear, if not, just say so :)

Greetz Erik


 
Yahoo! Groups Links

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

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

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




Re: [flexcoders] MXML Schema

2005-05-20 Thread Manish Jethani
On 5/19/05, Reto M. Kiefer <[EMAIL PROTECTED]> wrote:

> Macromedia ships a file called mxml.xsd with Flex.
[...]

> But some featrues are missing, so I have a hunch that the Scheme is not
> complete.
[...]

I think you're right.  See Roger's email on this:
http://www.mail-archive.com/flexcoders@yahoogroups.com/msg01744.html


 
Yahoo! Groups Links

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

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

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




Re: [flexcoders] Scale the size of a whole application

2005-05-20 Thread Manish Jethani
On 5/20/05, Matthew Shirey <[EMAIL PROTECTED]> wrote:
>  This may sound like a odd request, but is there a way to scale the size of
> a whole application so that all of the contents get larger?

Setting the scaleMode (?) property on the SWF may be the best option,
but here's another technique to do it if you want to experiment:


http://www.macromedia.com/2003/mxml";
  xmlns="*" width="100%" height="100%" resize="sizeChanged = true">
  
private var sizeChanged:Boolean = true;
public function layoutChildren():Void
{
  super.layoutChildren();

  if (sizeChanged)
  {
var vm:Object = getViewMetricsAndMargins();
var w:Number = layoutWidth - vm.left - vm.right;
var h:Number = layoutHeight - vm.top - vm.bottom;

mainBox.scaleX = w / mainBox.layoutWidth * 100;
mainBox.scaleY = h / mainBox.layoutHeight * 100;

sizeChanged = false;
  }
}
  
  

  
  


  


Note:

 1.  put your whole app into a Box and call it mainBox
 2.  in layoutChildren() you set the scaleX and scaleY properties of
the application
 3.  update the sizeChanged flag in the resize event handler


 
Yahoo! Groups Links

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

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

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




RE: [flexcoders] mxmlc and JVM

2005-05-20 Thread Erik Westra
Thnx, just what I needed :) 

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Manish Jethani
Sent: vrijdag 20 mei 2005 14:19
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] mxmlc and JVM

On 5/20/05, Erik Westra <[EMAIL PROTECTED]> wrote:
> When I run mxmlc it sais: Error: could not find a JVM.

I think you need to set the java.home in your
$FLEX_INSTALL/bin/jvm.config file.




 
Yahoo! Groups Links

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

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

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




Re: [flexcoders] Re: how can i stop my date-time timezone data from b eing adjusted

2005-05-20 Thread Manish Jethani
On 5/20/05, bhaq1972 <[EMAIL PROTECTED]> wrote:

>Do you have any recommendation how i would
> apply this code before binding to a datagrid. My result handlers
> after an async call usually look like this
> 
> function resultHandler(result){
>   datagrid1.dataProvider = result;
> }

Use a DataGridColumn, set a labelFunction on it, and format the data
in the labelFunction.


 
Yahoo! Groups Links

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

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

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




Re: [flexcoders] mxmlc and JVM

2005-05-20 Thread Manish Jethani
On 5/20/05, Erik Westra <[EMAIL PROTECTED]> wrote:
> When I run mxmlc it sais: Error: could not find a JVM.

I think you need to set the java.home in your $FLEX_INSTALL/bin/jvm.config file.


 
Yahoo! Groups Links

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

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

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




RE: [flexcoders] Re: Flex on the Web

2005-05-20 Thread David Mendels
Hi,

It is worth noting as well just the simple fact of timing.  

There were 300+ Flex customers in the past year.  You can safely assume
that involved a ramp of over the course of the year so many of those are
in the latter part of the year.  It takes time to build an application.
Some folks are doing small projects and delivering Flex apps in 2-6
months.  But many more are longer term projects.  I am aware of many
Flex customers with development teams that have a 6-18 month development
and testing cycle for large and complex applications.  In the Flash MX
2004 authoring world that would be rare---most projects are boutique
projects with small teams and short cycles, but in the enterprise
application world that is quite normal.

Regards,
David 

> -Original Message-
> From: flexcoders@yahoogroups.com 
> [mailto:[EMAIL PROTECTED] On Behalf Of Abdul Qabiz
> Sent: Friday, May 20, 2005 3:38 AM
> To: flexcoders@yahoogroups.com
> Subject: RE: [flexcoders] Re: Flex on the Web
> 
> Hi,
> 
> IMHO,
> 
> No, Flex is not only used for intranets but also for internet 
> apps. But these applications are either private or not 
> publicly available. It is like any other large applications, 
> where you need an access to see those apps.
> 
> Not every company advertises about their applications...
> 
> I feel, Flex is for applications not for web pages or 
> websites. But as already been mentioned in this thread, you 
> can still see some public flex apps. I hope, you would see more.
> 
> 
> -abdul
> 
> 
> -Original Message-
> From: flexcoders@yahoogroups.com 
> [mailto:[EMAIL PROTECTED] On Behalf Of Michel Jansen
> Sent: Friday, May 20, 2005 1:00 PM
> To: flexcoders@yahoogroups.com
> Subject: Re: [flexcoders] Re: Flex on the Web
> 
> Steven Webster wrote:
> 
> > >
> > > Also, last I saw posted to this group, there were only about 200 
> > > licenses sold to date.
> > >
> >
> > I can pretty much certainly state that there have been a 
> *great* deal 
> > more than 200 licenses sold to date, perhaps 200 customers 
> was cited, 
> > but a single customer might purchase anywhere from 10s or 100s of 
> > licenses in many instances.  And I've only got visibility 
> of a small 
> > proportion of the Flex business that is being done...
> 
> If this is true... Where are all the applications? Is Flex 
> only used for Intranet purposes??
> 
> Michel
> 
> 
>  
> Yahoo! Groups Links
> 
> 
> 
>  
> 
> 
> 
> 
>  
> Yahoo! Groups Links
> 
> 
> 
>  
> 
> 
> 


 
Yahoo! Groups Links

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

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

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




[flexcoders] Re: Flex as a Windows Service?

2005-05-20 Thread Rich Butler
Not to worry, will search the archives, thanks.

*goes and sits in the naughty corner*

And thanks Sjors, will try that program :-)

Cheers,
Rich

--- In flexcoders@yahoogroups.com, Abdul Qabiz <[EMAIL PROTECTED]> wrote:
> Hi Rich,
> 
> Never mind :)
> 
> Please search archives before posting. This has been discussed several
> times...
> 
> 
> -abdul
> 
> -Original Message-
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of Richard Butler
> Sent: Friday, May 20, 2005 4:28 PM
> To: [flexcoders]
> Subject: [flexcoders] Flex as a Windows Service?
> 
> Hi all,
> 
> This may be a dumb question, so forgive me, but is it possible to run
> Flex as a Windows Service? The DOS window thing seems a nasty way of
> running it, or maybe that's just us...
> 
> Cheers,
> Rich
> 
> 
> --
> 
> Richard Butler.
> Monochrome.
> Upper Floor 164a Portsmouth Road Cobham Surrey KT11 1HS.
> 
> Free: 08000 199 742
> Tel: +44 (0) 1932 862 874 
> Fax: +44 (0) 1932 866 065 
> 
> www.monochrome.co.uk
> 
> 
> 
>  
> Yahoo! Groups Links




 
Yahoo! Groups Links

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

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

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




[flexcoders] mxmlc and JVM

2005-05-20 Thread Erik Westra
When I run mxmlc it sais: Error: could not find a JVM.


How can I solve this? 



 
Yahoo! Groups Links

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

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

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




RE: [flexcoders] Flex as a Windows Service?

2005-05-20 Thread Abdul Qabiz
Hi Rich,

Never mind :)

Please search archives before posting. This has been discussed several
times...


-abdul

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Richard Butler
Sent: Friday, May 20, 2005 4:28 PM
To: [flexcoders]
Subject: [flexcoders] Flex as a Windows Service?

Hi all,

This may be a dumb question, so forgive me, but is it possible to run
Flex as a Windows Service? The DOS window thing seems a nasty way of
running it, or maybe that's just us...

Cheers,
Rich


--

Richard Butler.
Monochrome.
Upper Floor 164a Portsmouth Road Cobham Surrey KT11 1HS.

Free: 08000 199 742
Tel: +44 (0) 1932 862 874 
Fax: +44 (0) 1932 866 065 

www.monochrome.co.uk



 
Yahoo! Groups Links



 




 
Yahoo! Groups Links

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

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

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




RE: [flexcoders] Re: Bug? image (html) in textarea

2005-05-20 Thread Abdul Qabiz
Hi,

Can you please post the sample code? It would save sometime and I can
quickly look into it.

-abdul 

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of rockmoyosa
Sent: Friday, May 20, 2005 4:32 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Bug? image (html) in textarea

--- In flexcoders@yahoogroups.com, "rockmoyosa" <[EMAIL PROTECTED]> wrote:
> I'm using An image tag in a textarea. an horizontal line, because 
> is not supported. When I resize the textarea to a smaller height, The
> images are still visible below my textarea and if i'm scrolling u see
> the images also scrolling. It hust like text area is still the same
> size for images but not the text. 
> 
> I'm thinking it's a bug. Does anybody got a solution for this problem.

Anybody?





 
Yahoo! Groups Links



 




 
Yahoo! Groups Links

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

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

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




Re: [flexcoders] Re: Flex as a Windows Service?

2005-05-20 Thread Sjors Pals
There is a small tool called firedeamon which makes it possible to run 
all programs as a service, i use it self to run some gameservers as 
service and it works very well.

Greets,

Sjors

Rich Butler wrote:

> We're running the standalone Flex install which has its own jrun4
> install...
>
> Rich
>
> --- In flexcoders@yahoogroups.com, "Carson Hager"
> <[EMAIL PROTECTED]> wrote:
> > Flex itself isn't a server.  It's just a j2ee web application. 
> You're
> > likely running tomcat. If so, you can definitely configure tomcat
> to run
> > as a service.
> > 
> > 
> > Carson
> >
> > 
> >
> > Carson Hager
> > Cynergy Systems, Inc.
> > http://www.cynergysystems.com  
> >
> > Email:  [EMAIL PROTECTED]
> > Office:  866-CYNERGY ext. 89
> > Mobile: 1.703.489.6466
> >
> >
> > 
> >
> >   _ 
> >
> > From: flexcoders@yahoogroups.com
> [mailto:[EMAIL PROTECTED] On
> > Behalf Of Richard Butler
> > Sent: Friday, May 20, 2005 11:58 AM
> > To: [flexcoders]
> > Subject: [flexcoders] Flex as a Windows Service?
> >
> >
> > Hi all,
> >
> > This may be a dumb question, so forgive me, but is it possible to
> run
> > Flex as a Windows Service? The DOS window thing seems a nasty way
> of
> > running it, or maybe that's just us...
> >
> > Cheers,
> > Rich
> >
> >
> > --
> >
> > Richard Butler.
> > Monochrome.
> > Upper Floor 164a Portsmouth Road Cobham Surrey KT11 1HS.
> >
> > Free: 08000 199 742
> > Tel: +44 (0) 1932 862 874
> > Fax: +44 (0) 1932 866 065
> >
> > www.monochrome.co.uk
> >
> >
> >
> >   _ 
> >
> > Yahoo! Groups Links
> >
> >
> > *  To visit your group on the web, go to:
> >   http://groups.yahoo.com/group/flexcoders/
> >
> > *  To unsubscribe from this group, send an email to:
> >   [EMAIL PROTECTED]
> >  subject=Unsubscribe>
> >
> > *  Your use of Yahoo! Groups is subject to the Yahoo! Terms of
> > Service  .
>
>
>
> 
> *Yahoo! Groups Links*
>
> * To visit your group on the web, go to:
>   http://groups.yahoo.com/group/flexcoders/
>
> * To unsubscribe from this group, send an email to:
>   [EMAIL PROTECTED]
>   
>
> * Your use of Yahoo! Groups is subject to the Yahoo! Terms of
>   Service .
>
>



 
Yahoo! Groups Links

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

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

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




[flexcoders] Re: Flex as a Windows Service?

2005-05-20 Thread Rich Butler
We're running the standalone Flex install which has its own jrun4 
install...

Rich

--- In flexcoders@yahoogroups.com, "Carson Hager" 
<[EMAIL PROTECTED]> wrote:
> Flex itself isn't a server.  It's just a j2ee web application.  
You're
> likely running tomcat. If so, you can definitely configure tomcat 
to run
> as a service.
>  
>  
> Carson
> 
>  
> 
> Carson Hager 
> Cynergy Systems, Inc. 
> http://www.cynergysystems.com   
> 
> Email:  [EMAIL PROTECTED] 
> Office:  866-CYNERGY ext. 89 
> Mobile: 1.703.489.6466 
> 
> 
>  
> 
>   _  
> 
> From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
> Behalf Of Richard Butler
> Sent: Friday, May 20, 2005 11:58 AM
> To: [flexcoders]
> Subject: [flexcoders] Flex as a Windows Service?
> 
> 
> Hi all,
> 
> This may be a dumb question, so forgive me, but is it possible to 
run
> Flex as a Windows Service? The DOS window thing seems a nasty way 
of
> running it, or maybe that's just us...
> 
> Cheers,
> Rich
> 
> 
> --
> 
> Richard Butler.
> Monochrome.
> Upper Floor 164a Portsmouth Road Cobham Surrey KT11 1HS.
> 
> Free: 08000 199 742
> Tel: +44 (0) 1932 862 874 
> Fax: +44 (0) 1932 866 065 
> 
> www.monochrome.co.uk
> 
> 
> 
>   _  
> 
> Yahoo! Groups Links
> 
> 
> * To visit your group on the web, go to:
>   http://groups.yahoo.com/group/flexcoders/
> 
> * To unsubscribe from this group, send an email to:
>   [EMAIL PROTECTED]
>  
> 
> * Your use of Yahoo! Groups is subject to the Yahoo! Terms of
> Service  .




 
Yahoo! Groups Links

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

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

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




RE: [flexcoders] Flex as a Windows Service?

2005-05-20 Thread Allen Manning





Hello Richard,
 
We use JRUN as our J2EE Server and we startup and run Flex 
via the JMC or as a Windows service.  To add a server as a windows service 
in JRUN we use the jrunsvc tool.
 
From the JRUN Live docs (http://livedocs.macromedia.com/jrun/4/JRun_SDK_Guide/apis4.htm):
 
Using the jrunsvc tool 
Use the jrunsvc tool to execute command on a 
JRun server that is a Windows service. With this tool, you can install, remove, 
start, and stop the JRun server's Windows service. 
To install a JRun server as a Windows service, 
use the following syntax from the jrun_root/bin directory: 
%> jrunsvc -install jrun_server [service_name [service_display_name [service_description]]]

To remove, start or stop a JRun server that is 
currently a Windows service, use the following syntax from the jrun_root/bin 
directory: 
%> jrunsvc -[remove|start|stop service_name]

 
Hope this helps,
Allen

  
  

  


   

  Allen 
Manning, Technical Director 

  Prismix 
Ltd t: +44 (0)870 749 1100 f: +44 
(0)870 749 1200 w: www.prismix.com 

 
 
 
 
 
 
 
 


From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On Behalf Of Richard 
ButlerSent: 20 May 2005 12:01To: 
[flexcoders]Subject: [flexcoders] Flex as a Windows 
Service?
Hi all,This may be a dumb question, so forgive me, but is 
it possible to runFlex as a Windows Service? The DOS window thing seems a 
nasty way ofrunning it, or maybe that's just 
us...Cheers,Rich--Richard 
Butler.Monochrome.Upper Floor 164a Portsmouth Road Cobham Surrey KT11 
1HS.Free: 08000 199 742Tel: +44 (0) 1932 862 874 Fax: +44 (0) 
1932 866 065 www.monochrome.co.uk







Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ 
To unsubscribe from this group, send an email to:[EMAIL PROTECTED] 
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.










RE: [flexcoders] Flex as a Windows Service?

2005-05-20 Thread Carson Hager





Flex itself isn't a server.  It's just a j2ee web 
application.  You're likely running tomcat. If so, you can definitely 
configure tomcat to run as a service.
 
 
Carson
 
Carson Hager Cynergy Systems, Inc. http://www.cynergysystems.com 

Email:  
[EMAIL PROTECTED] Office:  866-CYNERGY ext. 89 Mobile: 1.703.489.6466 
 


From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On Behalf Of Richard 
ButlerSent: Friday, May 20, 2005 11:58 AMTo: 
[flexcoders]Subject: [flexcoders] Flex as a Windows 
Service?
Hi all,This may be a dumb question, so forgive me, but is 
it possible to runFlex as a Windows Service? The DOS window thing seems a 
nasty way ofrunning it, or maybe that's just 
us...Cheers,Rich--Richard 
Butler.Monochrome.Upper Floor 164a Portsmouth Road Cobham Surrey KT11 
1HS.Free: 08000 199 742Tel: +44 (0) 1932 862 874 Fax: +44 (0) 
1932 866 065 www.monochrome.co.uk







Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ 
To unsubscribe from this group, send an email to:[EMAIL PROTECTED] 
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.










[flexcoders] Re: Bug? image (html) in textarea

2005-05-20 Thread rockmoyosa
--- In flexcoders@yahoogroups.com, "rockmoyosa" <[EMAIL PROTECTED]> wrote:
> I'm using An image tag in a textarea. an horizontal line, because 
> is not supported. When I resize the textarea to a smaller height, The
> images are still visible below my textarea and if i'm scrolling u see
> the images also scrolling. It hust like text area is still the same
> size for images but not the text. 
> 
> I'm thinking it's a bug. Does anybody got a solution for this problem.

Anybody?





 
Yahoo! Groups Links

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

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

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




[flexcoders] Flex as a Windows Service?

2005-05-20 Thread Richard Butler
Hi all,

This may be a dumb question, so forgive me, but is it possible to run
Flex as a Windows Service? The DOS window thing seems a nasty way of
running it, or maybe that's just us...

Cheers,
Rich


--

Richard Butler.
Monochrome.
Upper Floor 164a Portsmouth Road Cobham Surrey KT11 1HS.

Free: 08000 199 742
Tel: +44 (0) 1932 862 874 
Fax: +44 (0) 1932 866 065 

www.monochrome.co.uk



 
Yahoo! Groups Links

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

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

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




Re: [flexcoders] Flex on the Web

2005-05-20 Thread Rich Tretola
http://www.everythingflex.com/blog/1/2005/05/SherminWilliams.cfm

Rich

On 5/19/05, Michel Jansen <[EMAIL PROTECTED]> wrote:
> LS,
> 
> I am looking for Flex application on the Web. Can anynone send me some
> URL's where i can find them? It looks like most of the RIA's in
> production on the Web are build with Flash, BackBase and/or Laszlo.
> 
> Please enlighten me...
> 
> Michel
> 
> 
> 
> Yahoo! Groups Links
> 
> 
> 
> 
> 
> 
>


 
Yahoo! Groups Links

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

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

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




[flexcoders] Warning :Changes to unknown property, [Property], will not be detected.

2005-05-20 Thread joao_m_fernandes

Hi there,

I have an object declared on the top of my application and I have some
bindings to it. What happens is when a bindind is defined to a 2 level
child I get warnings but with a refresh It loads perfectly.

Even if in production it won't happen, for debugging in FB it's
impossible to go further. Is there a way do avoid this?

it's this simple:

var obj:Object;








 
Yahoo! Groups Links

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

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

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




RE: [flexcoders] HTML form replacement

2005-05-20 Thread Abdul Qabiz
Hi,

If you really want to launch different browser and send data to it...

Then you can use LoadVars also...


function submitLoging():Void
{

   var form_lv = new LoadVars();
   form_lv.username = "";
   form_lv.password = "";
   form_lv.send("theURL","_self","POST");
} 



Hope that helps!

-abdul

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of pixelcowboys
Sent: Friday, May 20, 2005 2:39 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] HTML form replacement

This is probably a basic question for most of you, but I'll ask
anyway. What is the best method for simply replacing an existing HTML login
form with a 
Flex one? 

I'm currently trying getURL on the submit action (but with no luck):

function submitLogin():Void { 
   var username:String = "";
   var password:String = "";
   getURL("theURL","_self","POST"); 
}

The text input ID's are "username" and "password". Any help/tips
appreciated. Thanks!




 
Yahoo! Groups Links



 




 
Yahoo! Groups Links

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

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

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




RE: [flexcoders] Alberto Albericio Salvador ... here's your answer

2005-05-20 Thread Steven Webster
Alberto,

> So I basically need a step-by-step tutorial on how to code a 
> simple flex application using primalscript (or any other 
> environment) and Cairngorm. 

"Writing a simple flex application with Primalscript and Cairngorm"
isn't a whitepaper we've got planned for in the near future I'm
afraid ... I'd hope that a combination of the book that we've put
out, the installation guide for Cairngorm, the Release notes for
Cairngorm, and all the AS2Doc (you've found the AS2Doc, right ?)
for the framework, will give enough material for you to try and
get started.

Seriously ... we've done an *awful* lot of the legwork, but really
the only way you're going to understand this is to get elbow 
deep in the code and learn to understand it ... the lesson is
in the getting things working for yourself at that stage.

We do have another whitepaper that is being written at present,
that will explain how to setup both Flexbuilder and Eclipse 
with Cairngorm, to start a project with Cairngorm from scratch.

However, it may be weeks, it may be months before that
whitepaper is available ... I'm not willing to commit at this
stage, as we've already devoted a significant amount of time
to pulling together what you see in the 0.99 release.

> After this, I think I will be able to understand the 
> cairngorm store application flow.

Cairngorm is built upon well-documented design patterns, of
which there is a LOT of material in the public domain, including
the free chapter download at http://flexbook.iterationtwo.com/

There are Breeze presentations that I've posted in the last
few days that further explain the movitations and implemenations
of the design patterns, and there's the AS2Doc that ships with
Cairngorm itself.

Starting sometime next week, Alex Uhlmann and myself will
start to slowly blog on Cairngorm Store and it's implementation,
but this material will be serialised over time.

I think everything is there that you need to pick up the 
pieces and start to learn this for yourself.

If you have any specific questions, please don't hesitate to
ask.

Best wishes,

Steven

--
Steven Webster
Technical Director
iteration::two
 
This e-mail and any associated attachments transmitted with it may contain
confidential information and must not be copied, or disclosed, or used by
anyone other than the intended recipient(s). If you are not the intended
recipient(s) please destroy this e-mail, and any copies of it, immediately.
 
Please also note that while software systems have been used to try to ensure
that this e-mail has been swept for viruses, iteration::two do not accept
responsibility for any damage or loss caused in respect of any viruses
transmitted by the e-mail. Please ensure your own checks are carried out
before any attachments are opened.



 
Yahoo! Groups Links

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

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

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




[flexcoders] Re: how can i stop my date-time timezone data from b eing adjusted

2005-05-20 Thread bhaq1972
Thanks once again Matt. always a helping hand. Your code worked. It 
adjusted the date value. Do you have any recommendation how i would 
apply this code before binding to a datagrid. My result handlers 
after an async call usually look like this

function resultHandler(result){
  datagrid1.dataProvider = result;
}

i suppose i'd have to do a 'for' loop around the resultset, adjust 
the value and then bind.
any other ideas

regards
bod



--- In flexcoders@yahoogroups.com, Matt Chotin <[EMAIL PROTECTED]> wrote:
> You may need to create a new Date that eliminates the timezone 
aspect.
> 
>  
> 
> var minsOff = oldDate.getTimezoneOffset();
> 
> var noTimezoneDate = new Date(oldDate.getTime();
> 
> noTimezoneDate.setMinutes(oldDate.getMinutes() + minsOff);
> 
>  
> 
> I haven't tried this but see if you can run with it.
> 
>  
> 
> Matt
> 
>  
> 
>  
> 
>   _  
> 
> From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
> Behalf Of bhaq1972
> Sent: Thursday, May 19, 2005 5:06 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] how can i stop my date-time timezone data 
from being
> adjusted
> 
>  
> 
> Is there a quick way to stop flash player from manipulating my 
date-
> time data before its rendered.
> 
> In my oracle db i have a column of data held as a date eg. '18-04-
05 
> 15:40' but when i render this data in a datagrid/list etc, it 
shows up 
> as '18-04-05 16:40'. 
> 
> I want this date time to be treated as data. 
> 
> TIA
> 
> BTW when i take off the timezone adjustement setting on my pc, the 
> data is rendered correctly.
> 
> 
> 
> 
> 
>   _  
> 
> Yahoo! Groups Links
> 
> * To visit your group on the web, go to:
> http://groups.yahoo.com/group/flexcoders/
>  
>   
> * To unsubscribe from this group, send an email to:
> [EMAIL PROTECTED]
>  
>   
> * Your use of Yahoo! Groups is subject to the Yahoo!
>   Terms of Service.




 
Yahoo! Groups Links

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

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

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




[flexcoders] Steven Webster, I need help with Cairgorm

2005-05-20 Thread Alberto Albericio Salvador
Hi again Steven,

After reading some more about frameworks and related stuff after my last 
post on "What Cairngorm is?", I want to start developing using 
Cairngorm. I've been reading about synergyflex, which seems to be 
something similar to Cairngorm, but I get the feeling you are more about 
to help me starting with all this :)

So I basically need a step-by-step tutorial on how to code a simple flex 
application using primalscript (or any other environment) and Cairngorm. 
After this, I think I will be able to understand the cairngorm store 
application flow.

Thanks in advance

-- 
Alberto Albericio Salvador
Aura S.A. Seguros
Departamento Informática



 
Yahoo! Groups Links

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

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

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




R: [flexcoders] Re: Cairngorm 0.99

2005-05-20 Thread Paolo Bernardinin











Thanks Steven for
clarifyng the reason for the new controller sintax, for what concern migrating
from 0.95 to 0.99 it wasn’t to hard just had to rename the pasckage name
for the swc to org.nevis.cairngorm
, than I had to change
the property ‘name’ in ‘id’ and remove ‘view = {this}’
 in the viewHelpers files, and the application worked as before.

 









Da: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] Per conto di Steven Webster
Inviato: giovedì 19 maggio
2005 23.33
A: flexcoders@yahoogroups.com
Oggetto: RE: [flexcoders] Re:
Cairngorm 0.99



 

Hi Dave,

 




 I ran into the same errors as reuben and Sean
 above with the exact same errors. 
 I have never heard of ANT until today. I'm a
 client-side developer. Just like Berardini. Server configuration is
 foreign to me. Lead my people to the Red Sea of Server Configuration. Help
 us cross. I think most AS 2.0/OOP developers understand and love working
 within the framework, but have a hard time getting over the hurdle of
 setting up the server and server files.
 A clean install from the bare-bones
 helped.   






So first of all, I think it's great that
"client-side developers" are so willing to get the Cairngorm samples





up and running; and I do think that you're
going to get a rapid climb up the ramp by getting this sample





running and understanding how it
all works on both sides of the wire.





 





However, our remit in producing the
"Cairngorm Store" was not to provide a tutorial
in Flex/J2EE application





development, but to provide those
Flex/J2EE developers who are trying to understand how Cairngorm





fits in with what they do, a more
comprehensive sample application than the simple Login example we





provided with 0.95.  We wanted to
ship an app that incorporated a Flex presentation-tier built using





Cairngorm, that invokes a Java business
tier with a database back-end.  The Java and database backend





are in no-way intended to be best-practice
code (so don't go trying to build production Flex shops 





using that code !) but our assumption is
that J2EE folks are going to understand where to go from





this sample.





 





Don't get me wrong; we'll help you guys
all we can to get this application running, and we do intend





blogging a bit more of a
"getting started", but if a hurdle exists in configuring a J2EE
application





server, installing a database for
Java to call, working with Flex server configuration, etc, then the 





remit of Cairngorm Store isn't to make
that easier for you ... there's plenty of better resources out 





there.  Fundamental assumption for
Cairngorm, is that a developer is comortable developing and





configuring Flex applications on a
Flex/J2EE server.





 





Please take this in the spirit it's
intended  our aim with Cairngorm is to provide the framework and





the examples that merit leveraging the
framework; the base assumption is that you are developing





all tiers of an n-tier application, that
you're comfortable developing apps of the complexity that really





start to merit a microarchitecture like
Cairngorm.





 





The great thing about open-source
frameworks like this though, is community participation ... so if





I hear you correctly that there's a need
for a "Installing the Cairngorm Store for Client-Side





Developers" whitepaper, then I'd be
delighted for you to volunteer to write it :-) 






 I agree with hecubus that the release notes
 should state that .99 isn't compatible with .95. We're probably 5 projects
 into Cairngorm .95, and I think we had anticipated a seamless upgrade.
  






I'm not quite sure what you mean by incompatibility; the
only change we're asking you to make -





and we thought long and hard about this
one - is renaming the com.iterationtwo.cairngorm





packages to org.nevis.cairngorm. 
That's something that is a global search and replace





operation on your source code, and is the
*only* thing you have to do to migrate from





0.95 to 0.99





 





If you then drop the org.nevis.cairngorm.*
packages in the same place you had 





com.iterationtwo.cairngorm.* then you
should be back where you started.





 





If, however, you want to benefit by using
cairngorm.swc (so you can keep the Cairngorm





source out of your project source) then
you're going to have to do a little extra work -





adding the manifest entry to
flex-config.xml.  That's all ... nothing more.





 





However, in terms of compatibility;
there's nothing that we've changed in the API that





will break anything you're doing currently
... that was a huge motivation for the





decisions we made in 0.99, NOT to break
existing functionality.





 





If you find a 0.95 app isn't
working with 0.99, please let us know how  if it's





merely that you have some updating of
config files because you want to use





the manifest, and y

RE: [flexcoders] Re: Flex on the Web

2005-05-20 Thread Abdul Qabiz
Hi,

IMHO,

No, Flex is not only used for intranets but also for internet apps. But
these applications are either private or not publicly available. It is like
any other large applications, where you need an access to see those apps.

Not every company advertises about their applications...

I feel, Flex is for applications not for web pages or websites. But as
already been mentioned in this thread, you can still see some public flex
apps. I hope, you would see more.


-abdul


-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Michel Jansen
Sent: Friday, May 20, 2005 1:00 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Re: Flex on the Web

Steven Webster wrote:

> >
> > Also, last I saw posted to this group, there were only about
> > 200 licenses sold to date.
> >
>
> I can pretty much certainly state that there have been a *great*
> deal more than 200 licenses sold to date, perhaps 200 customers
> was cited, but a single customer might purchase anywhere from
> 10s or 100s of licenses in many instances.  And I've only got
> visibility of a small proportion of the Flex business that is
> being done...

If this is true... Where are all the applications? Is Flex only used for 
Intranet purposes??

Michel


 
Yahoo! Groups Links



 




 
Yahoo! Groups Links

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

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

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




Re: [flexcoders] Re: Flex on the Web

2005-05-20 Thread Michel Jansen
Steven Webster wrote:

> >
> > Also, last I saw posted to this group, there were only about
> > 200 licenses sold to date.
> >
>
> I can pretty much certainly state that there have been a *great*
> deal more than 200 licenses sold to date, perhaps 200 customers
> was cited, but a single customer might purchase anywhere from
> 10s or 100s of licenses in many instances.  And I've only got
> visibility of a small proportion of the Flex business that is
> being done...

If this is true... Where are all the applications? Is Flex only used for 
Intranet purposes??

Michel


 
Yahoo! Groups Links

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

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

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




RE: [flexcoders] Re: Flex on the Web

2005-05-20 Thread Steven Webster
> 
> Also, last I saw posted to this group, there were only about 
> 200 licenses sold to date.
>

I can pretty much certainly state that there have been a *great*
deal more than 200 licenses sold to date, perhaps 200 customers
was cited, but a single customer might purchase anywhere from
10s or 100s of licenses in many instances.  And I've only got 
visibility of a small proportion of the Flex business that is
being done...

I know folks get upset at the cost of a single license, but 
there are typical customers out there that gain business value
from these order of magnitude greater license deals.

99.89% of statistics can be manipulated any way you want to.

Best,

Steven

--
Steven Webster
Technical Director
iteration::two
 
This e-mail and any associated attachments transmitted with it may contain
confidential information and must not be copied, or disclosed, or used by
anyone other than the intended recipient(s). If you are not the intended
recipient(s) please destroy this e-mail, and any copies of it, immediately.
 
Please also note that while software systems have been used to try to ensure
that this e-mail has been swept for viruses, iteration::two do not accept
responsibility for any damage or loss caused in respect of any viruses
transmitted by the e-mail. Please ensure your own checks are carried out
before any attachments are opened.



 
Yahoo! Groups Links

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

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

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




Re: [flexcoders] Scale the size of a whole application

2005-05-20 Thread Jordan Snyder
why not just point him to the SWF file directly...that makes things
happen the way you want.


OTHERWISE:
It's in the export settings and the Stage objectcheck it out.



On 5/19/05, Matthew Shirey <[EMAIL PROTECTED]> wrote:
> I was afraid I hadn't explained the problem right...
> 
> Setting to those just takes up the space, it doesn't actually scale the
> content larger.  It resizes the layout managers larger which results in a
> lot of unused white space for my application.  I need the contents to scale
> so if you make the window twice as large, then all of the contents are twice
> as big.  Bigger fonts, bigger everything.  I'm not sure how I can clarify
> this any further... :(
> 
> -- Matthew
> 
> 
> On 5/19/05, JesterXL <[EMAIL PROTECTED]> wrote:
> > 
> > Make the width and height of your application tag 100%...?  That's what I
> do to get full screen real-estate usage.  Decreasing margins on things helps
> a lot too.
> > 
> >  
> > - Original Message - 
> > From: Matthew Shirey 
> > To: flexcoders@yahoogroups.com 
> > Sent: Thursday, May 19, 2005 6:31 PM
> > Subject: [flexcoders] Scale the size of a whole application
> > 
> > This may sound like a odd request, but is there a way to scale the size of
> a whole application so that all of the contents get larger?  The
> functionality that I desire is similar to what happens to a Flash movie when
> you make its size bigger.  I'd like to design an application at a fixed
> resolution like 800x600.  If the user then makes the web browser bigger, I'd
> like the contents to scale up in size.  Right now, with the layout managers
> I basically just end up with more space.  A lot of it is wasted empty space.
>  I have a specific user that is mildly vision impaired.  He makes everything
> on his screen gigantic.  His monitor is a nice 21" flat panel at 1600x1200
> resolution.  I'd like him to be able to maximize the application to
> 1600x1200 there by making everything in the application which is designed at
> 800x600 scale up to that size.
> > 
> > Anyone have any suggestions?  I was a little long winded there, but I hope
> I've accurately described my problem and the type of solution I'm looking
> for.  Any other suggestions on how I can deal with visibility impaired users
> would also be helpful.  Thank you!
> > 
> > -- Matthew
> > 
> > 
> Yahoo! Groups Links
> > 
> > 
> > To visit your group on the web, go to:
> > http://groups.yahoo.com/group/flexcoders/
> >   
> > To unsubscribe from this group, send an email to:
> > [EMAIL PROTECTED] 
> >   
> > Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. 
> 
> 
> 
> Yahoo! Groups Links
> 
> To visit your group on the web, go to:
> http://groups.yahoo.com/group/flexcoders/
>   
> To unsubscribe from this group, send an email to:
> [EMAIL PROTECTED]
>   
> Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. 


-- 
Jordan Snyder
Applications Developer
ImageAction, USA
http://www.imageaction.com


 
Yahoo! Groups Links

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

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

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




RE: [flexcoders] Fully qualified URL

2005-05-20 Thread Jeroen De Vos





Perfect.
Just what I needed.
 
Thanks!


Van: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] Namens Matt 
ChotinVerzonden: vrijdag 20 mei 2005 6:21Aan: 
flexcoders@yahoogroups.comOnderwerp: RE: [flexcoders] Fully qualified 
URL


Generally you specify a 
full URL as the rootURL (perhaps the path to your SWF which is 
Application.application._url).  Say for example http://www.somewhere.com/dir/file.swf.
The urls would be 
computed as follows:
 
sub/bar.swf : http://www.somewhere.com/dir/sub/bar.swf
/sub/bar.swf: http://www.somewhere.com/sub/bar.swf
http://elsewhere.com/bar.swf: http://elsewhere.com/bar.swf
 
Make 
sense?
 
Matt
 




From: 
flexcoders@yahoogroups.com 
[mailto:flexcoders@yahoogroups.com] On Behalf Of Jeroen De VosSent: Thursday, May 19, 2005 4:22 
AMTo: flexcoders@yahoogroups.comSubject: RE: [flexcoders] Fully qualified 
URL
 
Allen,
 
Yes, I read the doc, 
but what does it do? How does it work?
 
Jeroen.
 



Van: 
flexcoders@yahoogroups.com 
[mailto:flexcoders@yahoogroups.com] Namens Allen ManningVerzonden: donderdag 19 mei 2005 
13:22Aan: flexcoders@yahoogroups.comOnderwerp: RE: [flexcoders] Fully qualified 
URL
Joren,
 
According to the MXML 
API docs:

getFullURLstatic  
getFullURL( rootURL: String, url: String) :  
String 

 

' Converts a 
potentially relative URL to a full qualified URL. If the URL is not relative, it 
is just returned as is. If the URL starts with a slash, the host and port from 
the root URL are prepended. Otherwise, the host, port, and path are prepended. 
' 

 
HTH,
Allen

  
  

  
  


  
 

  
Allen 
Manning, 
Technical Director 

  
Prismix 
Ltd t: +44 
(0)870 749 1100 f: +44 
(0)870 749 1200 w: www.prismix.com 

  

 

 

 

 

 

 

 



From: 
flexcoders@yahoogroups.com 
[mailto:flexcoders@yahoogroups.com] On Behalf Of Jeroen De VosSent: 19 May 2005 12:14To: flexcoders@yahoogroups.comSubject: RE: [flexcoders] Fully qualified 
URL
Hi,
 
And what 
does mx.utils.URLUtil.getFullURL() do then?
 
Jeroen.
 



Van: 
flexcoders@yahoogroups.com 
[mailto:flexcoders@yahoogroups.com] Namens Allen ManningVerzonden: donderdag 19 mei 2005 
12:56Aan: flexcoders@yahoogroups.comOnderwerp: RE: [flexcoders] Fully qualified 
URL
Jeff,
 
Thanks.
 
http://www.macromedia.com/2003/mxml">    
    


 
    
    
    
http://{getPageDomain()}/"/>    
    

Allen

  
  

  
  


  
 

  
Allen 
Manning, 
Technical Director 

  
Prismix 
Ltd t: +44 
(0)870 749 1100 f: +44 
(0)870 749 1200 w: www.prismix.com 

  
 
 
 
 
 
 
 
 



From: 
flexcoders@yahoogroups.com 
[mailto:flexcoders@yahoogroups.com] On Behalf Of Jeff TapperSent: 19 May 2005 11:52To: flexcoders@yahoogroups.comSubject: RE: [flexcoders] Fully qualified 
URL
Ugggh.  _root -- bad.in the example below, since its running in the core 
application tag, you can just 
remove the word _root entirely, and it will still work,  or, as 
Abdul suggested, 
mx.core.Application.application._url will work from any 
place in the 
app.At 06:43 AM 
5/19/2005, you wrote:>Hello 
Jeroen,>>Below is 
an example of one way of doing it.>>>http://www.macromedia.com/2003/mxml">> > 
>> 
> 
> 
http://{getPageDomain()}/"/>>> 
>>>HTH,>Allen>>Allen 
Manning, Technical Director>Prismix Ltd t: +44 (0)870 749 1100 f: +44 (0)870 749 1200 
w: www.prismix.com>From: 
flexcoders@yahoogroups.com 
[mailto:flexcoders@yahoogroups.com] On 
>Behalf Of Jeroen De 
Vos>Sent: 19 May 2005 
11:28>To: flexcoders@yahoogroups.com>Subject: [flexcoders] Fully qualified 
URL>>Hi all,>>In 
ActionScript I need to read the fully qualified URL to the application 
>(http://x/x/…).>How can I get this URL?>>Jeroen.>>>>Jeroen 
De Vos>Gemeentelijk Havenbedrijf 
Antwerpen>C/ICT - 
AMARIS>>>Deze 
e-mail en alle gekoppelde bestanden zijn officiele documenten van het 
>Gemeentelijk Havenbedrijf 
Antwerpen en kunnen vertrouwelijke of >persoonlijke informatie bevatten. Gelieve de afzender 
onmiddellijk via >e-mail of 
telefonisch te verwittigen als u deze e-mail per vergissing 
>heeft ontvangen en verwijder 
vervolgens de e-mail zonder deze te lezen, te >reproduceren, te verspreiden of te ontsluiten naar 
derden. Het >Gemeentelijk 
Havenbedrijf Antwerpen is op geen enkele manier >verantwoordelijk voor fouten of onnauwkeurigheden in de 
inhoud van deze >e-mail. Het 
Gemeentelijk Havenbedrijf Antwerpen kan niet aansprakelijk 
>gesteld worden voor directe of 
indirecte schade, verlies of ongemak >veroorzaakt als gevolg van een onnauwkeurigheid of fout 
in deze e-mail.>>English 
Translation: This