[flexcoders] URGENT: drag and drop problem!

2005-03-25 Thread Alessio Prosperi





I still haven't found a solution to the problem 
described below.

Could you please help me and send me some 
suggestion?

Thanks 
Alessio




- Original Message - 
From: Alessio Prosperi 

To: flexcoders@yahoogroups.com 
Sent: Thursday, March 24, 2005 10:25 AM
Subject: [flexcoders] drag and drop problem!

Hi to everyone,
Ideveloped a e-commerce solution based on 
drag'n'drop. I split the main application in small sub-applications so I can 
load every section only if it's necessary.

I load every section in a Loader object inside a 
Panel (as in Flex samples - drag'n'drop). 

I have a component (in the loaded application) that 
starts the drag operation.

The problem is: the drag doesn't start when Flex 
fires mouseDown event (I have a component inside the application loaded 
inthe Loader). Whyshould I change the mouseDown eventin 
mouseMove event (otherwise the drag doesn't start)?


example:

main.mxml

?xml version="1.0" 
encoding="utf-8"?mx:Application xmlns:mx="http://www.macromedia.com/2003/mxml"mx:Panel 
title="Start drag from here" width="200" 
height="200"mx:Loader contentPath="drag.mxml.swf" 
scaleContent="false" width="100%" height="100%" //mx:Panel 
mx:Panel title="Drop here" width="200" 
height="200"/mx:Panel/mx:Application



drag.mxml

?xml version="1.0" 
encoding="utf-8"?mx:Application xmlns:mx="http://www.macromedia.com/2003/mxml"mx:Script![CDATA[ 
function beginDrag() 
{ var ds = 
new 
mx.core.DragSource(); 
ds.addData({name: "test"}, 
"product"); 
mx.managers.DragManager.doDrag(this, ds, drag, {mxml: 
true}); 
}]]/mx:Scriptmx:Image 
source="@Embed('images/ups.jpg')" scaleContent="false" mouseDown="beginDrag()" 
/ /mx:Application



If I run drag.mxml the drag starts correctly. If I 
run main.mxml the drag doesn't start: I must use mouseMove instead of mouseDown 
event. Is this a Flex bug?
However, even using mouseMove event, the dragged 
object doesn't exit from the Panel. How can I resolve this situation?
If I run the Flex exampleof drag and drop, the 
object can move outsideits application limits only if the scrollbars are 
missing. Don't you find it strange? Anyway I don't have scrollbars so this is 
not my problem I only liked to tell you.
I need help as soon as possible!

Alessio Prosperi[EMAIL PROTECTED]Adacto - 
anima digitale
--
Adacto s.r.l.Via Chiarugi 158 
50053 EmpoliVia Meda 45 20141 MilanoTelefono 0571-530234 Fax 0571-534294 
Internet: www.adacto.itE-mail: [EMAIL PROTECTED]







Yahoo! Groups Sponsor


  ADVERTISEMENT 












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] Image caching

2005-03-25 Thread pioplacz


Have a question i made a movie library based on the exampel flex 
store... and i have aroun 150 images loading everytime i want to 
found a movie... is it possible to make the images stor in cache to 
make a faster browsing. it loads fast cause it's local but i can 
only feat aroun 20 images in a box and have to scroll to see the 
rest and the it have to loads images... and there a no images in 
about 2 seconds. that's why i want to make them cache is it possible?





 
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] Image caching

2005-03-25 Thread Erik Westra

Well, my guess is that this has nothing to do with cache, but the fact
that the flex components delete and create the movieclips again and then
load the image. If it is cached or not, it takes some time before the
image can appear. I don't know exactly how these components are
constructed or if there are settings for this 'paging' feature...

Greetz Erik 

-Original Message-
From: pioplacz [mailto:[EMAIL PROTECTED] 
Sent: vrijdag 25 maart 2005 11:55
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Image caching



Have a question i made a movie library based on the exampel flex
store... and i have aroun 150 images loading everytime i want to found a
movie... is it possible to make the images stor in cache to make a
faster browsing. it loads fast cause it's local but i can only feat
aroun 20 images in a box and have to scroll to see the rest and the it
have to loads images... and there a no images in about 2 seconds. that's
why i want to make them cache is it possible?




 
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] Silly question

2005-03-25 Thread Robert Stuttaford

Probably not specifically Flex related.

Can I do what the following is accomplishing, using Actionscript 2, with out
statically mapping it out?

switch ( className ) {
// base
case ClassA:
return new ClassA();
break;
case ClassB:
return new ClassB();
break;
}

I'd love to be able to

var x = new [ className ]();

But obviously the compiler doesn't like that. 

I'm looking to have classes instantiated based on nodenames from XML, but
without the convertor actually having any knowledge of what classes need to
be instantiated.

Any ideas? :)

Robert



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

2005-03-25 Thread
Title: 





I heard bad news 
today.
Macromedia willchange 
Flex 1.5 price $12,000(2cpu) to $20,000(1cpu).
This price will be started 
atapril 1, 2005.
Isittrue?

yang lim.









Yahoo! Groups Sponsor


  ADVERTISEMENT 












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

2005-03-25 Thread Robert Stuttaford
Title: 










Could you provide a link to the press
release? J











From: ??
[mailto:[EMAIL PROTECTED] 
Sent: 25 March 2005 01:54 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Flex 1.5
price







I
heard bad news today.





Macromedia
willchange Flex 1.5 price $12,000(2cpu) to $20,000(1cpu).





This
price will be started atapril 1, 2005.





Isittrue?











yang
lim.




























Yahoo! Groups Sponsor


  ADVERTISEMENT 












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

2005-03-25 Thread Scott Barnes

shhh.. its not suppoed to be widely known as yet ;)

it could be an april fool mind you ;)


On Fri, 25 Mar 2005 14:01:00 +0200, Robert Stuttaford
[EMAIL PROTECTED] wrote:
  
  
 
 Could you provide a link to the press release? J 
 
   
  
  
  
 
 From: ?? [mailto:[EMAIL PROTECTED] 
  Sent: 25 March 2005 01:54 PM
  To: flexcoders@yahoogroups.com
  Subject: [flexcoders] Flex 1.5 price 
  
 
   
  
 
 I heard bad news today. 
  
 
 Macromedia will change Flex 1.5 price $12,000(2cpu) to $20,000(1cpu). 
  
 
 This price will be started at april 1, 2005.  
  
 
  Is it true?  
  
 
   
  
 
 yang lim. 
  
 
   
  
 
   
 
 
  
  
  
  Yahoo! Groups Sponsor 
  
  ADVERTISEMENT
  
  
  
  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. 


-- 
Regards,
Scott Barnes
http://www.mossyblog.com
http://www.flexcoder.com (Coming Soon)


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

2005-03-25 Thread Robert Stuttaford
Title: 










Ohh lord its that time again 



I started freelancing on April 1 2004  my
boss thought I was trying to pull his leg!



I guess that means its champagne time for
me soon  











From: ??
[mailto:[EMAIL PROTECTED] 
Sent: 25 March 2005 01:54 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Flex 1.5
price







I
heard bad news today.





Macromedia
willchange Flex 1.5 price $12,000(2cpu) to $20,000(1cpu).





This
price will be started atapril 1, 2005.





Isittrue?











yang
lim.




























Yahoo! Groups Sponsor


  ADVERTISEMENT 












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] Silly question

2005-03-25 Thread Darron J. Schall

Robert Stuttaford wrote:

var x = new [ className ]();

But obviously the compiler doesn't like that. 
  


Classes are stored in the _global scope of the movie, so you can do that 
by using this code:

var x = new _global[ className ]();

... where className is the fully-qualified name (i.e. com.whatever.ClassA).

-d



 
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 1.5 price in euro

2005-03-25 Thread Duccio Del Ministro

Hi all,
i have another question: why flex pricing starts at
$12,000 USD and in euro 14,400 (18,671.84 US Dollar
taken from
http://www.macromedia.com/software/flex/buy/) 
Regards
Duccio Del Ministro
 



___ 
Nuovo Yahoo! Messenger: E' molto più divertente: Audibles, Avatar, Webcam, 
Giochi, Rubrica… Scaricalo ora! 
http://it.messenger.yahoo.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] Silly question

2005-03-25 Thread Erik Westra

This subject has been discussed many times (either here or on
FlashCoders).

The main problem lies in the fact that the class must be compiled into
the swf. There are several ways to do this. One is to have a swf for
each class with only one line of code on the root, to make sure the
class is compiled:

myPackage.myClass;

Then u can load the swf into your main movie and have the class
instantiated.

Another option is to have a list with possible classes in a class file:

class Components
{
public function Components()
{
myPackage.MyClass;
myPackage.MyOtherClass;
};
};


To call the class dynamicly u can use code like this:

function getInstance(class_str:String):Object
{

var classRef:Object = _global;
var classPath_array:Array = class_str.split(.);

for (var i = 0; i  classPath_array.length; i++)
{
classRef = classRef[classPath_array];
};

return new classRef();
};

var instance = getInstance(myPackage.MyClass);


Greetz Erik



-Original Message-
From: Robert Stuttaford [mailto:[EMAIL PROTECTED] 
Sent: vrijdag 25 maart 2005 12:53
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Silly question


Probably not specifically Flex related.

Can I do what the following is accomplishing, using Actionscript 2, with
out statically mapping it out?

switch ( className ) {
// base
case ClassA:
return new ClassA();
break;
case ClassB:
return new ClassB();
break;
}

I'd love to be able to

var x = new [ className ]();

But obviously the compiler doesn't like that. 

I'm looking to have classes instantiated based on nodenames from XML,
but without the convertor actually having any knowledge of what classes
need to be instantiated.

Any ideas? :)

Robert



 
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] Silly question

2005-03-25 Thread Robert Stuttaford

Thanks!

This is actually for a Flash project.. using multiple swfs, and trying to
share strongly typed VO's among them RSL-style.. saw it becoming complex
quickly, so decided against strict typing of value objects.

BTW, are there any concrete multiple-swf RSL examples out there? Currently
I'm writing intrinsics for each class that gets used in any other swf, and
it seems like I might be going the long way around.

Any one been down this shaky road before?

Robert

-Original Message-
From: Erik Westra [mailto:[EMAIL PROTECTED] 
Sent: 25 March 2005 02:46 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Silly question


This subject has been discussed many times (either here or on
FlashCoders).

The main problem lies in the fact that the class must be compiled into
the swf. There are several ways to do this. One is to have a swf for
each class with only one line of code on the root, to make sure the
class is compiled:

myPackage.myClass;

Then u can load the swf into your main movie and have the class
instantiated.

Another option is to have a list with possible classes in a class file:

class Components
{
public function Components()
{
myPackage.MyClass;
myPackage.MyOtherClass;
};
};


To call the class dynamicly u can use code like this:

function getInstance(class_str:String):Object
{

var classRef:Object = _global;
var classPath_array:Array = class_str.split(.);

for (var i = 0; i  classPath_array.length; i++)
{
classRef = classRef[classPath_array];
};

return new classRef();
};

var instance = getInstance(myPackage.MyClass);


Greetz Erik



-Original Message-
From: Robert Stuttaford [mailto:[EMAIL PROTECTED] 
Sent: vrijdag 25 maart 2005 12:53
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Silly question


Probably not specifically Flex related.

Can I do what the following is accomplishing, using Actionscript 2, with
out statically mapping it out?

switch ( className ) {
// base
case ClassA:
return new ClassA();
break;
case ClassB:
return new ClassB();
break;
}

I'd love to be able to

var x = new [ className ]();

But obviously the compiler doesn't like that. 

I'm looking to have classes instantiated based on nodenames from XML,
but without the convertor actually having any knowledge of what classes
need to be instantiated.

Any ideas? :)

Robert



 
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] Members' email addresses in the archives

2005-03-25 Thread Scott Barnes

aye, its time to adopt a gmail account for mailing-lists ...

I've got 50 invites for any who are in need of a throw-away-email
address / account.

GMAIL has pretty darn good anti-spam catchments.


On Fri, 25 Mar 2005 01:27:16 +0530, Manish Jethani
[EMAIL PROTECTED] wrote:
 
 It was brought to my notice today that the archives at
 mail-archive.com expose the email addresses of the members, and that
 this might be a privacy concern for some members.  Those members
 concerned about this issue should read on.  The rest can safely ignore
 this message and move on to more interesting things in life (like
 writing Flex apps).
 
 First off, the public archives at groups.yahoo.com _also_ expose the
 email addresses of the members.  How else do you think did I manage to
 download the archives with all the right email addresses in them?
 
 Second, list members should be aware that this is a public mailing
 list and your email address can be retrieved by third parties one way
 or the other -- either by crawling the archives on the web, or by
 simply subscribing to the list and starting to receive email (much
 easier).
 
 Third -- the 90's are over!
 
 Thank you.
 
 Manish
 
 
 Yahoo! Groups Links
 
 
 
 
 


-- 
Regards,
Scott Barnes
http://www.mossyblog.com
http://www.flexcoder.com (Coming Soon)


 
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] Silly question

2005-03-25 Thread Darron J. Schall

Robert Stuttaford wrote:

BTW, are there any concrete multiple-swf RSL examples out there? Currently
I'm writing intrinsics for each class that gets used in any other swf, and
it seems like I might be going the long way around.

  

Instead of using intrinsics for each class, make use of the _exclude.xml 
file.  For modular applications, this will allow you to prevent 
duplicate classes from being loaded without having to worry about 
creating a million intrinsics and trying to maintain them.  The 
_exclude.xml file is placed next to the .fla file and just lists classes 
to not include in the final .swf.

http://livedocs.macromedia.com/flash/mx2004/main_7_2/wwhelp/wwhimpl/common/html/wwhelp.htm?context=Flash_MX_2004file=1081.html#wp287271

-d




 
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] image scroll

2005-03-25 Thread Doodi, Hari - BLS CTR
Hi Manish,
Thanks for considering my question. Yes, I am zooming image using
scaleX and scaleY and also I did check my mxml file and parent is not big
enough to hold the zoomed Image. I am attaching my file for your reference.
I would like to have scroll bars(both) only for the zoomed image not for
entire window. Thanks in advance.



Thanks!
Hari

-Original Message-
From: Manish Jethani [mailto:[EMAIL PROTECTED] 
Sent: Thursday, March 24, 2005 5:10 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] image scroll


On Thu, 24 Mar 2005 16:16:18 -0500, Doodi, Hari - BLS CTR
[EMAIL PROTECTED] wrote:

 I think it is stupid question but I could not figure it out. I
have
 an image in a Loader and I am not getting vertical as well as horizontal
 scroll bars when I zoom in the image. How to get scroll bars (both) on an
 image when user zoom it?  I even tried with canvas but no help. Please
help
 me.

How are you zooming it -- using scaleX anx scaleY?  If the image fits
within its parent container (after zooming), you won't get scrollbars.

Manish


 
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/
 


viewImage.mxml
Description: Binary data


Re: [flexcoders] Flex 1.5 price in euro

2005-03-25 Thread Dave Carabetta

On Fri, 25 Mar 2005 13:44:26 +0100 (CET), Duccio Del Ministro
[EMAIL PROTECTED] wrote:
 
 Hi all,
 i have another question: why flex pricing starts at
 $12,000 USD and in euro 14,400 (18,671.84 US Dollar
 taken from
 http://www.macromedia.com/software/flex/buy/)

VAT?

Regards,
Dave.


 
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: Calling Java Servlet

2005-03-25 Thread Harris Reynolds

The fact that RemoteObject uses a servlet is an
implementation detail.  You can see that it is by
looking at the [FLEX_APP]/WEB-INF/web.xml file in your
Flex application.  It is the servlet named
AMFGatewayServlet.

With regard to your problem, depending on how your
code is factored, you may be able to use RemoteObject
out of the box.   Typically you would surface a remote
object that provided a service In your case you
could create a Java object called JavaBeanService (or
whatever) and expose a method on it that returned all
your java beans.  

The point here is that you don't need to muck around
with HTTP level stuff as is the case with your
servlet.  Flex handles that using Flash remoting.

good luck,

~harris


--- Libby [EMAIL PROTECTED] wrote:

 
 Well, my custom servlet already exists. I have read
 all I can find on
 RemoteObject and have not discovered any mention of
 servlet, either
 mine or flex's. Could you tell me exactly where you
 are looking to get
 your info?
 Thanks,
 Libby
 
 --- In flexcoders@yahoogroups.com, Harris Reynolds
 [EMAIL PROTECTED]
 wrote:
  Libby,
  
  It is definitely possible to invoke a servlet from
  Flex b/c I have done it successfully.  If you
 invoke a
  custom servlet though, the burden is on you to
 return
  data in a format that Flex can understand.
  
  I guess I am wondering why you want to invoke a
 custom
  servlet;  it seems like you should be invoking the
  remoting gateway servlet that ships with Flex and
  automatically handles data (un)marshalling of java
  objects for you.  See the RemoteObject component
 for
  more information.
  
  good luck,
  
  ~harris
  
  
  --- Libby [EMAIL PROTECTED] wrote:
   
   No, I'm returning an array of javabeans. At this
   point I am wondering
   if it is even possible to call a servlet from
 Flex
   since they don't
   have an example of doing it. I have successfully
   invoked some other
   java objects, but not servlets so far.
   
   --- In flexcoders@yahoogroups.com, Harris
 Reynolds
   [EMAIL PROTECTED]
   wrote:
Libby,

If you are returning a chunck of XML one
 simple
   option
is to call your servlet using the HTTPService
 Flex
control.  Using this approach you can attach
 the
result to a data provide and Flex will wire it
 all
   up
for you.  An example of this can be found here
   [1]. 
It uses a JSP page instead of a servlet, but
 the
concept is the same.

Hope this helps,

~harris

[1]
   
  
 

http://flexapps.macromedia.com/flex15/explorer/explorer.mxml
  (See Dynamic Data Services - HTTP Service)


--- Libby [EMAIL PROTECTED] wrote:
 
 Hello,
 I am evaluating Flex. We have flash Remoting
   calling
 some servlets
 running on Websphere 5.1, and for my eval I
 am
 trying to build a
 similiar interface to them. So far I cannot
 find
   an
 example of how to
 do this (call a servlet with arguments) so I
 was
 hoping someone here
 could show me a tiny example, or offer
   corrections
 to my code?
 
 Using flash, we call a controller servlet
 using
   one
 or more arguments.
 ItemDefServlet(getAllRecords); -- like
 this
   in
 Flash
 
 In Flex, this is what I have:
 mx:RemoteObject type=servlet
 source=maintenance.ItemDefServlet
 protocol=http
 id=remoteobject1/mx:RemoteObject
 
 
 mx:DataGrid id=ItemDef_grd

  
 dataProvider={remoteobject2.getMessage.result}
 .
 .
 /mx:DataGrid
   mx:ControlBar
 mx:Button label=Get All
 click=remoteobject1.send() /
   /mx:ControlBar
 thanks,
 Libby
 
 
 
 



__ 
Do you Yahoo!? 
Yahoo! Small Business - Try our new resources
   site!
http://smallbusiness.yahoo.com/resources/
   
   
   
   
  
  
  
  __ 
  Do you Yahoo!? 
  Yahoo! Small Business - Try our new resources
 site!
  http://smallbusiness.yahoo.com/resources/
 
 
 
 




__ 
Do you Yahoo!? 
Yahoo! Small Business - Try our new resources site!
http://smallbusiness.yahoo.com/resources/ 


 
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 1.5 price in euro

2005-03-25 Thread Valy Sivec



I think that VAT has nothing to do with the tag price For each country the VAT is different and will add to the tag price... Maybe for non-US markets the costs to sell/support this product is a little bit higher andit's reflected in the final price
Dave Carabetta [EMAIL PROTECTED] wrote:
On Fri, 25 Mar 2005 13:44:26 +0100 (CET), Duccio Del Ministro[EMAIL PROTECTED] wrote:  Hi all, i have another question: why flex pricing starts at $12,000 USD and in euro 14,400 (18,671.84 US Dollar taken from http://www.macromedia.com/software/flex/buy/)VAT?Regards,Dave.__Do You Yahoo!?Tired of spam?  Yahoo! Mail has the best spam protection around http://mail.yahoo.com 







Yahoo! Groups Sponsor


  ADVERTISEMENT 












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 1.5 price in euro

2005-03-25 Thread Duccio Del Ministro

Maybe you don't know that $ 12,000 today are about
9,264.97 euro. That mean about 55% increase. I am sure
there is a reason, maybe the costs for the support... 
Regards
Duccio

--- Valy Sivec [EMAIL PROTECTED] wrote:
 I think that VAT has nothing to do with the tag
 price For each country the VAT is different and
 will add to the tag price... Maybe  for non-US
 markets the costs to sell/support this product is a
 little bit higher and it's reflected in the final
 price
 
 Dave Carabetta [EMAIL PROTECTED] wrote:
 On Fri, 25 Mar 2005 13:44:26 +0100 (CET), Duccio Del
 Ministro
 [EMAIL PROTECTED] wrote:
  
  Hi all,
  i have another question: why flex pricing starts
 at
  $12,000 USD and in euro 14,400 (18,671.84 US
 Dollar
  taken from
  http://www.macromedia.com/software/flex/buy/)
 
 VAT?
 
 Regards,
 Dave.
 
 Yahoo! Groups SponsorADVERTISEMENT
 
 
 -
 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. 
 
 
 __
 Do You Yahoo!?
 Tired of spam?  Yahoo! Mail has the best spam
 protection around 
 http://mail.yahoo.com 



___ 
Nuovo Yahoo! Messenger: E' molto più divertente: Audibles, Avatar, Webcam, 
Giochi, Rubrica… Scaricalo ora! 
http://it.messenger.yahoo.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] Custom security for RemoteObjects

2005-03-25 Thread Lin Lin

Hi,
For working with Tomcat, please follow the steps in readme.txt under
Your_flex_install\resources\security\TomcatLogin .
For setting tomcat-users.xml, you need to follow the Tomcat doc.

You can also see other samples under resources\security.

-lin

-Original Message-
From: Laurent Cornelis [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 23, 2005 7:29 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Custom security for RemoteObjects


Hi,

What are you using to protect your services ?

I want that the first time a user access one of the service 
(RemoteObjects in my case), he will be redirected to a custom login 
form. This form will send authentication data to a class that will 
validate these informations against our database.

I don't know how to do that :

- Basic authentication cannot be used because of the custom form and the

custom authenticator
- Custom authentication can maybe be used. As I understand, for the 
custom form this is OK, but the authenticator validate against the 
server authentication mechanism (e.g. the tomcat-users.xml for Tomcat) 
and not my database. I saw some things about LoginCommand java interface

but it is not clear.
- Use a totaly custom authentication mechanism with a server generated 
token returned to the client on login. After that, for each call the 
client send the token and the server revalidate it.

Have someone already implemented something similar ?


 
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: Calling Java Servlet

2005-03-25 Thread Cathy Murphy

Libby -

I think this is possible but haven't tried it myself.
Here's some information which should set you down the right path.  Good
luck!

I've seen examples for the Flex 1.0 session servlet [Replaced in Flex
1.5 with new session access but not relevant to this discussion.]

http://www.macromedia.com/devnet/flex/articles/flex_portals/flex_portals
_whitepaper.pdf
'Accessing the portlet session' - Again, you would be accessing your
servlet instead of the 'session' servlet.

http://www.macromedia.com/cfusion/knowledgebase/index.cfm?id=97b1769b
Troubleshooting for the session servlet which would be relevant in your
case as well.

mx:RemoteObject source=servlet id=remoteobject1 protocol=http/
// cmurphy - the source should always be servlet

mx:Button label=Get All
click=remoteobject1.yourServletName('yourServletArg1',
'yourServletArg2') /

Instead of specifying the class name of you're servlet directly, map
yourServletName to the class name of the servlet in web.xml.

- Cathy

 http://flexapps.macromedia.com/flex15/explorer/explorer.mxml


 --- Libby [EMAIL PROTECTED] wrote:
  
  Hello,
  I am evaluating Flex. We have flash Remoting
calling
  some servlets
  running on Websphere 5.1, and for my eval I
  am
  trying to build a
  similiar interface to them. So far I cannot
  find
an
  example of how to
  do this (call a servlet with arguments) so I
  was
  hoping someone here
  could show me a tiny example, or offer
corrections
  to my code?
  
  Using flash, we call a controller servlet
  using
one
  or more arguments.
  ItemDefServlet(getAllRecords); -- like
  this
in
  Flash
  
  In Flex, this is what I have:
  mx:RemoteObject type=servlet
  source=maintenance.ItemDefServlet
  protocol=http
  id=remoteobject1/mx:RemoteObject
  
  
  mx:DataGrid id=ItemDef_grd
 
   
  dataProvider={remoteobject2.getMessage.result}
  .
  .
  /mx:DataGrid
mx:ControlBar
mx:Button label=Get All
  click=remoteobject1.send() /
  /mx:ControlBar
  thanks,
  Libby
  
  
  
  
 
 
   
 __ 
 Do you Yahoo!? 
 Yahoo! Small Business - Try our new resources
site!
 http://smallbusiness.yahoo.com/resources/




   
   
 
   __ 
   Do you Yahoo!? 
   Yahoo! Small Business - Try our new resources
  site!
   http://smallbusiness.yahoo.com/resources/
  
  
  
  
 
 
 
   
 __ 
 Do you Yahoo!? 
 Yahoo! Small Business - Try our new resources site!
 http://smallbusiness.yahoo.com/resources/ 
 
 
  
 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: Calling Java Servlet

2005-03-25 Thread Peter Farland

Hi Libby,

You can invoke a servlet, but it's really a deprecated method of
contacting the server from Flash Remoting. It's not a preferred method
as the 
servicename.functioname() invocation isn't as straight forward as a
plain old java object classname.methodname() idea.

For a servlet invocation, the service name is the context root of the
web application that holds your servlet. The function name is the
servlet name (as your servlet is contacted via a
ServletContext.getNamedDispatcher(...)). Parameters are send in a
FLASH.PARAMS request attribute so that you can get access to them in
your servlet. The result from your servlet can be set as the
FLASH.RESULT request attribute.

The main reason why people used servlets in Flash Remoting MX was to get
access to the HttpServletRequest (and hence the session), and
HttpServletResponse. You can do this in Flex 1.5 from your plain old
java objects by calling the static accessors to some thread local
variables on the Gateway class:


flashgateway.Gateway

public static HttpServletRequest getHttpRequest()
public static HttpServletResponse getHttpResponse()
public static ServletConfig getServletConfig()

 
Rgds,
   Pete


 
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] Image caching

2005-03-25 Thread Joe Berkovitz

I would also like to see some response from MM on this subject (I have 
asked support, but no response yet).

Basically, it would be really helpful to understand how to minimize 
overhead for repeatedly loading a movieclip from an external URL, 
because even if the URL's response bytes are cached by the browser, 
there's still some significant time that it takes to load the clips.

MovieClip.duplicateMovieClip() is not of help in this regard, as others 
have noted in various Flash-based forums.  My current default guess is 
that we're stuck with the overhead of loadMovie(), unless one uses 
embedding.


Erik Westra wrote:
 Well, my guess is that this has nothing to do with cache, but the fact
 that the flex components delete and create the movieclips again and then
 load the image. If it is cached or not, it takes some time before the
 image can appear. I don't know exactly how these components are
 constructed or if there are settings for this 'paging' feature...
 
 Greetz Erik 
 
 -Original Message-
 From: pioplacz [mailto:[EMAIL PROTECTED] 
 Sent: vrijdag 25 maart 2005 11:55
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Image caching
 
 
 
 Have a question i made a movie library based on the exampel flex
 store... and i have aroun 150 images loading everytime i want to found a
 movie... is it possible to make the images stor in cache to make a
 faster browsing. it loads fast cause it's local but i can only feat
 aroun 20 images in a box and have to scroll to see the rest and the it
 have to loads images... and there a no images in about 2 seconds. that's
 why i want to make them cache is it possible?
 
 
 
 
  
 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] Flex 1.5 price

2005-03-25 Thread Matthew Shirey

Our shop cannot hardly pull the current price... If it goes up I don't
know what it will mean for us, but I doubt its good.  We're in love
with flex, but we may have to give it up if they raise the price on it
like that.

-- Matthew


On Fri, 25 Mar 2005 14:25:38 +0200, Robert Stuttaford
[EMAIL PROTECTED] wrote:
  
  
 
 Ohh lord it's that time again 
 
   
 
 I started freelancing on April 1 2004  my boss thought I was trying to pull
 his leg! 
 
   
 
 I guess that means it's champagne time for me soon  
 
   
  
  
  
 
 From: ?? [mailto:[EMAIL PROTECTED] 
  Sent: 25 March 2005 01:54 PM
  To: flexcoders@yahoogroups.com
  Subject: [flexcoders] Flex 1.5 price 
 
   
  
 
 
 I heard bad news today. 
  
  
 
 Macromedia will change Flex 1.5 price $12,000(2cpu) to $20,000(1cpu). 
  
 
 This price will be started at april 1, 2005.  
  
 
  Is it true?  
  
 
   
  
 
 yang lim. 
  
 
   
  
 
   
 
 
  
  
  
  Yahoo! Groups Sponsor 
  
  ADVERTISEMENT
  
  
  
  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] TextInput and cellEditor questions

2005-03-25 Thread viraf_bankwalla


Hi,

I noticed that if I right click on a TextInput field the context 
menu displays Cut, Copy, Paste, Delete and Select All.  How can I 
add an item to this menu?  

In a DataGrid, when one selects the cell, one is able to edit it.  
It appears that a TextInput is being displayed.  I would like the 
TextInput to have the new menu items, and invoke a dialog when 
selected.  How would I go about it.  I believe that it is the 
cellEditor that I need to override.

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] Flex 1.5 price

2005-03-25 Thread Dennis Jackson
Sounds like laszlo time :)
-Original Message-
From: Matthew Shirey [EMAIL PROTECTED]
Date: Fri, 25 Mar 2005 08:32:45 
To:flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Flex 1.5 price


Our shop cannot hardly pull the current price... If it goes up I don't
know what it will mean for us, but I doubt its good.  We're in love
with flex, but we may have to give it up if they raise the price on it
like that.

-- Matthew


On Fri, 25 Mar 2005 14:25:38 +0200, Robert Stuttaford
[EMAIL PROTECTED] wrote:
  
  
 
 Ohh lord it's that time again 
 
   
 
 I started freelancing on April 1 2004  my boss thought I was trying to pull
 his leg! 
 
   
 
 I guess that means it's champagne time for me soon  
 
   
  

  
 
 From: ?? [mailto:[EMAIL PROTECTED] 
  Sent: 25 March 2005 01:54 PM
  To: flexcoders@yahoogroups.com
  Subject: [flexcoders] Flex 1.5 price 
 
   
  
 
 
 I heard bad news today. 
  
  
 
 Macromedia will change Flex 1.5 price $12,000(2cpu) to $20,000(1cpu). 
  
 
 This price will be started at april 1, 2005.  
  
 
  Is it true?  
  
 
   
  
 
 yang lim. 
  
 
   
  
 
   
 
 
  
  
  
  Yahoo! Groups Sponsor 
  
  ADVERTISEMENT
  
  

  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



 




Sent via BlackBerry - a service from ATT Wireless.


 
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] Silly question

2005-03-25 Thread Gordon Smith

import mx.utils.ClassUtil;
var x = new ClassUtil.findClass(className);

- Gordon

-Original Message-
From: Robert Stuttaford [mailto:[EMAIL PROTECTED] 
Sent: Friday, March 25, 2005 3:53 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Silly question



Probably not specifically Flex related.

Can I do what the following is accomplishing, using Actionscript 2, with out
statically mapping it out?

switch ( className ) {
// base
case ClassA:
return new ClassA();
break;
case ClassB:
return new ClassB();
break;
}

I'd love to be able to

var x = new [ className ]();

But obviously the compiler doesn't like that. 

I'm looking to have classes instantiated based on nodenames from XML, but
without the convertor actually having any knowledge of what classes need to
be instantiated.

Any ideas? :)

Robert



 
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] Flex 1.5 price

2005-03-25 Thread Duccio

I totally agree.
Regards
Duccio
- Original Message - 
From: Dennis Jackson [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Friday, March 25, 2005 5:36 PM
Subject: Re: [flexcoders] Flex 1.5 price


 Sounds like laszlo time :)
 -Original Message-
 From: Matthew Shirey [EMAIL PROTECTED]
 Date: Fri, 25 Mar 2005 08:32:45
 To:flexcoders@yahoogroups.com
 Subject: Re: [flexcoders] Flex 1.5 price


 Our shop cannot hardly pull the current price... If it goes up I don't
 know what it will mean for us, but I doubt its good.  We're in love
 with flex, but we may have to give it up if they raise the price on it
 like that.

 -- Matthew


 On Fri, 25 Mar 2005 14:25:38 +0200, Robert Stuttaford
 [EMAIL PROTECTED] wrote:



 Ohh lord it's that time again



 I started freelancing on April 1 2004  my boss thought I was trying to 
 pull
 his leg!



 I guess that means it's champagne time for me soon 






 From: ?? [mailto:[EMAIL PROTECTED]
  Sent: 25 March 2005 01:54 PM
  To: flexcoders@yahoogroups.com
  Subject: [flexcoders] Flex 1.5 price





 I heard bad news today.



 Macromedia will change Flex 1.5 price $12,000(2cpu) to $20,000(1cpu).


 This price will be started at april 1, 2005.


  Is it true?





 yang lim.











  Yahoo! Groups Sponsor

  ADVERTISEMENT



  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








 Sent via BlackBerry - a service from ATT Wireless.



 Yahoo! Groups Links










No virus found in this incoming message.
Checked by AVG Anti-Virus.
Version: 7.0.308 / Virus Database: 266.8.0 - Release Date: 21/03/2005



-- 
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.308 / Virus Database: 266.8.0 - Release Date: 21/03/2005




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

2005-03-25 Thread Dennis Jackson
Our macromedia account rep indicated a price change on april 1, and that it 
would be an increase.

I think he thought that would help close the sale this month. But I think it 
may have the opposite effect. We are taking a long hard look at laszlo right 
now.

-Original Message-
From: Kristopher Schultz [EMAIL PROTECTED]
Date: Fri, 25 Mar 2005 12:06:39 
To:flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Flex 1.5 price

Come on, Yang Lim. You can't just post a message like that and not tell us the 
source of the information. That's how rumors proliferate! If there isn't 
official mention of it on Macromedia's site then I wouldn't be too quick to 
assume that it is true. 
 
Kris 
 
-- 
 
Kristopher Schultz 
Developer 
 
Resource Interactive 
p: 614.410.2123 
www.resource.com 
 
   
 From:  [mailto:[EMAIL PROTECTED]   
Sent: Friday, March 25, 2005 6:54 AM
To:   flexcoders@yahoogroups.com
Subject: [flexcoders] Flex 1.5   price

   
   
I heard bad news   today.   
Macromedia will change   Flex 1.5 price $12,000(2cpu) to $20,000(1cpu).   
This price will be started   at april 1, 2005.   
 Is it true?   
   
yang lim.   
 
 Yahoo! Groups Sponsor   ADVERTISEMENT
 
 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. 
Sent via BlackBerry - a service from ATT Wireless.


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

2005-03-25 Thread Thijs Triemstra | Collab

Laszlo it is. I expected that the price of Flex would drop, and 
certainly not double, this is crazy!!!


Thijs


Op 25-mrt-05 om 17:36 heeft Dennis Jackson het volgende geschreven:

 Sounds like laszlo time :)
 -Original Message-
 From: Matthew Shirey [EMAIL PROTECTED]
 Date: Fri, 25 Mar 2005 08:32:45
 To:flexcoders@yahoogroups.com
 Subject: Re: [flexcoders] Flex 1.5 price


 Our shop cannot hardly pull the current price... If it goes up I don't
 know what it will mean for us, but I doubt its good.  We're in love
 with flex, but we may have to give it up if they raise the price on it
 like that.

 -- Matthew


 On Fri, 25 Mar 2005 14:25:38 +0200, Robert Stuttaford
 [EMAIL PROTECTED] wrote:



 Ohh lord it's that time again



 I started freelancing on April 1 2004  my boss thought I was trying 
 to pull
 his leg!



 I guess that means it's champagne time for me soon 



 


 From: ?? [mailto:[EMAIL PROTECTED]
  Sent: 25 March 2005 01:54 PM
  To: flexcoders@yahoogroups.com
  Subject: [flexcoders] Flex 1.5 price





 I heard bad news today.



 Macromedia will change Flex 1.5 price $12,000(2cpu) to $20,000(1cpu).


 This price will be started at april 1, 2005.


  Is it true?





 yang lim.











  Yahoo! Groups Sponsor

  ADVERTISEMENT


 
  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








 Sent via BlackBerry - a service from ATT Wireless.



 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] Flex 1.5 price

2005-03-25 Thread Shahnavaz Alware

With Lazlo around price for Flex should go down or MM looses the ground to
OpenSource.

-Original Message-
From: Thijs Triemstra | Collab [mailto:[EMAIL PROTECTED] 
Sent: Friday, March 25, 2005 9:39 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Flex 1.5 price


Laszlo it is. I expected that the price of Flex would drop, and 
certainly not double, this is crazy!!!


Thijs


Op 25-mrt-05 om 17:36 heeft Dennis Jackson het volgende geschreven:

 Sounds like laszlo time :)
 -Original Message-
 From: Matthew Shirey [EMAIL PROTECTED]
 Date: Fri, 25 Mar 2005 08:32:45
 To:flexcoders@yahoogroups.com
 Subject: Re: [flexcoders] Flex 1.5 price


 Our shop cannot hardly pull the current price... If it goes up I don't
 know what it will mean for us, but I doubt its good.  We're in love
 with flex, but we may have to give it up if they raise the price on it
 like that.

 -- Matthew


 On Fri, 25 Mar 2005 14:25:38 +0200, Robert Stuttaford
 [EMAIL PROTECTED] wrote:



 Ohh lord it's that time again.



 I started freelancing on April 1 2004 . my boss thought I was trying 
 to pull
 his leg!



 I guess that means it's champagne time for me soon .



 


 From: ?? [mailto:[EMAIL PROTECTED]
  Sent: 25 March 2005 01:54 PM
  To: flexcoders@yahoogroups.com
  Subject: [flexcoders] Flex 1.5 price





 I heard bad news today.



 Macromedia will change Flex 1.5 price $12,000(2cpu) to $20,000(1cpu).


 This price will be started at april 1, 2005.


  Is it true?





 yang lim.











  Yahoo! Groups Sponsor

  ADVERTISEMENT


 
  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








 Sent via BlackBerry - a service from ATT Wireless.



 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] Flex 1.5 price

2005-03-25 Thread jeff tapper

Can I recommend everyone waits for an official word from MM before jumping 
to conclusions.  This is still just unconfirmed rumors...

At 12:39 PM 3/25/2005, you wrote:

Laszlo it is. I expected that the price of Flex would drop, and
certainly not double, this is crazy!!!


Thijs


Op 25-mrt-05 om 17:36 heeft Dennis Jackson het volgende geschreven:

  Sounds like laszlo time :)
  -Original Message-
  From: Matthew Shirey [EMAIL PROTECTED]
  Date: Fri, 25 Mar 2005 08:32:45
  To:flexcoders@yahoogroups.com
  Subject: Re: [flexcoders] Flex 1.5 price
 
 
  Our shop cannot hardly pull the current price... If it goes up I don't
  know what it will mean for us, but I doubt its good.  We're in love
  with flex, but we may have to give it up if they raise the price on it
  like that.
 
  -- Matthew
 
 
  On Fri, 25 Mar 2005 14:25:38 +0200, Robert Stuttaford
  [EMAIL PROTECTED] wrote:
 
 
 
  Ohh lord it's that time again…
 
 
 
  I started freelancing on April 1 2004 … my boss thought I was trying
  to pull
  his leg!
 
 
 
  I guess that means it's champagne time for me soon …
 
 
 
  
 
 
  From: ?? [mailto:[EMAIL PROTECTED]
   Sent: 25 March 2005 01:54 PM
   To: flexcoders@yahoogroups.com
   Subject: [flexcoders] Flex 1.5 price
 
 
 
 
 
  I heard bad news today.
 
 
 
  Macromedia will change Flex 1.5 price $12,000(2cpu) to $20,000(1cpu).
 
 
  This price will be started at april 1, 2005.
 
 
   Is it true?
 
 
 
 
 
  yang lim.
 
 
 
 
 
 
 
 
 
 
 
   Yahoo! Groups Sponsor
 
   ADVERTISEMENT
 
 
  
   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
 
 
 
 
 
 
 
 
  Sent via BlackBerry - a service from ATT Wireless.
 
 
 
  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] Flex 1.5 price

2005-03-25 Thread Simon Fifield

I heard that Macromedia decided that they wee going to move Flex over to
Apache to be released as an Open Source Project.

;-)

-Original Message-
From: Jeff Steiner [mailto:[EMAIL PROTECTED]
Sent: 25 March 2005 17:21
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Flex 1.5 price



I heard months ago that the price was going to change on April 1st.  I still
don't know if it will go up or down - as I have heard both from different
sources.

I would also guess that if the price goes up that sometime soon MM will
introduce a scaled down version of Flex server to serve companies that do
not have the money to spend on Flex Server now.

Just my .02

Jeff
http://www.flexauthority.com

- Original Message -
From: Dennis Jackson [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Friday, March 25, 2005 8:36 AM
Subject: Re: [flexcoders] Flex 1.5 price


 Sounds like laszlo time :)
 -Original Message-
 From: Matthew Shirey [EMAIL PROTECTED]
 Date: Fri, 25 Mar 2005 08:32:45
 To:flexcoders@yahoogroups.com
 Subject: Re: [flexcoders] Flex 1.5 price


 Our shop cannot hardly pull the current price... If it goes up I don't
 know what it will mean for us, but I doubt its good.  We're in love
 with flex, but we may have to give it up if they raise the price on it
 like that.

 -- Matthew


 On Fri, 25 Mar 2005 14:25:38 +0200, Robert Stuttaford
 [EMAIL PROTECTED] wrote:
 
 
 
  Ohh lord it's that time again
 
 
 
  I started freelancing on April 1 2004  my boss thought I was trying to
pull
  his leg!
 
 
 
  I guess that means it's champagne time for me soon 
 
 
 
 
 
 
  From: ?? [mailto:[EMAIL PROTECTED]
   Sent: 25 March 2005 01:54 PM
   To: flexcoders@yahoogroups.com
   Subject: [flexcoders] Flex 1.5 price
 
 
 
 
 
  I heard bad news today.
 
 
 
  Macromedia will change Flex 1.5 price $12,000(2cpu) to $20,000(1cpu).
 
 
  This price will be started at april 1, 2005.
 
 
   Is it true?
 
 
 
 
 
  yang lim.
 
 
 
 
 
 
 
 
 
 
 
   Yahoo! Groups Sponsor
 
   ADVERTISEMENT
 
 
 
   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








 Sent via BlackBerry - a service from ATT Wireless.



 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] Flex 1.5 price

2005-03-25 Thread Matthew Shirey

Thanks for the information on Laszlo.  It doesn't look as robust as
Flex, but if they do raise the price , I doub't we'll have much choice
but to switch.  All we can do now is hope that its just a rumor.  If
not, hello Laszlo.

-- Matthew


On Fri, 25 Mar 2005 12:43:18 -0500, jeff tapper [EMAIL PROTECTED] wrote:
 
 Can I recommend everyone waits for an official word from MM before jumping
 to conclusions.  This is still just unconfirmed rumors...
 
 At 12:39 PM 3/25/2005, you wrote:
 
 Laszlo it is. I expected that the price of Flex would drop, and
 certainly not double, this is crazy!!!
 
 
 Thijs
 
 
 Op 25-mrt-05 om 17:36 heeft Dennis Jackson het volgende geschreven:
 
   Sounds like laszlo time :)
   -Original Message-
   From: Matthew Shirey [EMAIL PROTECTED]
   Date: Fri, 25 Mar 2005 08:32:45
   To:flexcoders@yahoogroups.com
   Subject: Re: [flexcoders] Flex 1.5 price
  
  
   Our shop cannot hardly pull the current price... If it goes up I don't
   know what it will mean for us, but I doubt its good.  We're in love
   with flex, but we may have to give it up if they raise the price on it
   like that.
  
   -- Matthew
  
  
   On Fri, 25 Mar 2005 14:25:38 +0200, Robert Stuttaford
   [EMAIL PROTECTED] wrote:
  
  
  
   Ohh lord it's that time again
  
  
  
   I started freelancing on April 1 2004  my boss thought I was trying
   to pull
   his leg!
  
  
  
   I guess that means it's champagne time for me soon 
  
  
  
   
  
  
   From: ?? [mailto:[EMAIL PROTECTED]
Sent: 25 March 2005 01:54 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Flex 1.5 price
  
  
  
  
  
   I heard bad news today.
  
  
  
   Macromedia will change Flex 1.5 price $12,000(2cpu) to $20,000(1cpu).
  
  
   This price will be started at april 1, 2005.
  
  
Is it true?
  
  
  
  
  
   yang lim.
  
  
  
  
  
  
  
  
  
  
  
Yahoo! Groups Sponsor
  
ADVERTISEMENT
  
  
   
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
  
  
  
  
  
  
  
  
   Sent via BlackBerry - a service from ATT Wireless.
  
  
  
   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] Flex 1.5 price

2005-03-25 Thread Thijs Triemstra | Collab

Looks like Laszlo 3.0 (beta now) supports FlashPlayer 6: Flash Video 
and AMF, right :) Here's how to deploy it on JRun btw : 
http://www.openlaszlo.org/wiki/LaszloWithJrun I'm trying to do this on 
Mac OSX now..


Thijs


Op 25-mrt-05 om 19:10 heeft Matthew Shirey het volgende geschreven:


 Thanks for the information on Laszlo.  It doesn't look as robust as
 Flex, but if they do raise the price , I doub't we'll have much choice
 but to switch.  All we can do now is hope that its just a rumor.  If
 not, hello Laszlo.

 -- Matthew


 On Fri, 25 Mar 2005 12:43:18 -0500, jeff tapper [EMAIL PROTECTED] 
 wrote:

 Can I recommend everyone waits for an official word from MM before 
 jumping
 to conclusions.  This is still just unconfirmed rumors...

 At 12:39 PM 3/25/2005, you wrote:

 Laszlo it is. I expected that the price of Flex would drop, and
 certainly not double, this is crazy!!!


 Thijs


 Op 25-mrt-05 om 17:36 heeft Dennis Jackson het volgende geschreven:

 Sounds like laszlo time :)
 -Original Message-
 From: Matthew Shirey [EMAIL PROTECTED]
 Date: Fri, 25 Mar 2005 08:32:45
 To:flexcoders@yahoogroups.com
 Subject: Re: [flexcoders] Flex 1.5 price


 Our shop cannot hardly pull the current price... If it goes up I 
 don't
 know what it will mean for us, but I doubt its good.  We're in love
 with flex, but we may have to give it up if they raise the price on 
 it
 like that.

 -- Matthew


 On Fri, 25 Mar 2005 14:25:38 +0200, Robert Stuttaford
 [EMAIL PROTECTED] wrote:



 Ohh lord it's that time again



 I started freelancing on April 1 2004  my boss thought I was 
 trying
 to pull
 his leg!



 I guess that means it's champagne time for me soon 



 


 From: ?? [mailto:[EMAIL PROTECTED]
  Sent: 25 March 2005 01:54 PM
  To: flexcoders@yahoogroups.com
  Subject: [flexcoders] Flex 1.5 price





 I heard bad news today.



 Macromedia will change Flex 1.5 price $12,000(2cpu) to 
 $20,000(1cpu).


 This price will be started at april 1, 2005.


  Is it true?





 yang lim.











  Yahoo! Groups Sponsor

  ADVERTISEMENT


 
  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








 Sent via BlackBerry - a service from ATT Wireless.



 Yahoo! Groups Links








 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] Attaching Custom Component

2005-03-25 Thread Jack Waknitz

Here's my code that doesn't work.  


?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml;
initialize=appInit()

mx:Script
![CDATA[
function appInit()
{
createChild(CustomComponent, radiocomponent);
}
]]
/mx:Script

mx:Panel id=containter/mx:Panel

/mx:Application


 
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] Security Sandbox Violation when loading image

2005-03-25 Thread Kristopher Schultz





I'm trying to load 
some images from a different domain than the one my Flex app lives on. When I 
do, the debugger prints out a bunch of errors like this:

*** Security 
Sandbox Violation ***
SecurityDomain 
'http://myserver.com/index.mxml?debug=true' tried to access incompatible context 
'http://otherserver.com/someImage?wid=30'

(Note, the image 
is dynamically generated and the URL should not include 
".jpg")

Despite the 
errors, my images still seem to load in successfully, both through the Flex 
Builder IDE and when viewed directly in IE. Or so I thought.

The weird thing 
I've discovered is that if my image paths are brought into my Flex app via an 
XML file, then I do get the errors above, but the images do load successfully. 
However, if my image paths come in as a result of a remote object call, I get 
the same errors and my images DON'T load successfully. I've double checked the 
exact path's that are being used in both situations by tracing out the path 
immediately before it is used as the value for the "source" property of the 
mx:Image tag and it is EXACTLY the same in both 
cases.

So I have 
questions. First, why do I get those error messages? Secondly, if there really 
is a security sandbox violation, why do the images load successfully under the 
conditions I mentioned above? And finally, how do I prevent these violations 
from occurring in the first place?

Thanks for any 
insight you can provide.


Kris

-- 

Kristopher Schultz
Developer

Resource Interactive
p: 614.410.2123
www.resource.com








Yahoo! Groups Sponsor


  ADVERTISEMENT 












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] How to pass AS Objects to a CFC

2005-03-25 Thread Mohanraj Jayaraman

Thanks Paul. This seems to be a complex project and I
am having a hard time following it. I wish they had a
simple example. But I am still experimenting with
ValueObject.cfc and hope I can get this done pretty
soon.




--- Paul Kenney [EMAIL PROTECTED] wrote:

 At work we figured out how to do this a little while
 back for the
 Tartan Framework (http://www.tartanframework.org).
 If you download the
 code, take a look at the file
 /tartan/vo/ValueObject.cfc, and in
 particular the getFlashRemotingData() and
 setFlashRemotingData()
 methods.
 
 
 
 
 
 
 On Thu, 24 Mar 2005 10:37:27 -0800 (PST), Mohanraj
 Jayaraman
 [EMAIL PROTECTED] wrote:
   Hi Dirk,
   
   Thanks for your suggestion. But my condition
 differs
   from your example.
   
   Lets assume I had an AS Class 'MyClass.as'
   I am trying to do something like this in my MXML
 var o:Object = new MyClass();
 I build an 'array of structures' in MyClass
 Object
   and I do pass the complex Object as input with
 another
   Object wrapper.
   
   Here's an example by Macromedia on how exchange
   complex data
   
  

http://www.macromedia.com/devnet/flex/articles/complex_data_03.html
   
   According to macromedia 
   When invoking methods remotely, you can pass
 objects
   back and forth (as the methods' input parameters
 and
   return value) between the client and the server.
   
   This example is explained with Java and I am
 trying to
   replicate the same with Coldfusion CFC's.
   
   Thanks,
   Mohanraj
   
   
   
   --- Dirk Eismann
 [EMAIL PROTECTED]
  
   wrote:
Hi Mohanraj,

CF needs named parameters when dealing with
 complex
types passed as CFC arguments. You have to wrap
 the
object you want to send to the CFC into another
wrapper object. Inside the wrapper you define
properties for every named argument. This
 should
work:

  // AS snippet

  // setup the object to be passed to the CFC
  var o:Object = new Object();
  o.name = Foo;
  o.date = new Date();
  o.otherData = [1,2,3,4,5];

  // create a wrapper for the object
  // input is the named argument of the CFC
  var request = new Object();
  request.input = o;

  // send it
  ro.sendComplexData(request);

The wrapper's input property is also used to
identify the argument inside the CFC:

  !--- CFC snippet ---
  cffunction name=sendComplexData
 access=remote
returntype=string
cfargument name=input type=struct
required=yes 
cfreturn obj.name
  /cffunction

Dirk.


 -Original Message-
 From: Mohanraj Jayaraman
[mailto:[EMAIL PROTECTED]
 Sent: Thursday, March 24, 2005 3:12 AM
 To: flexcoders@yahoogroups.com
 Subject: Re: [flexcoders] How to pass AS
 Objects
to a CFC
 
 
 
 Hi Clint,
 
 Thanks for your reply. I think i was not
 clear
ealrier
 on my problem. Here's a sample code I am
 dealing
with.
 
 Please note the property 'modarray' of the
 'pData'
 object. 
 
 'modarray' is populated with SelTP object _s
 whcih
is
 an Array of Structures. Here I polupate the
 _s
with
 selectedIndices of a data gris I am using.
 
 
 The required parameter 'MODARRAY' not passed
 to
the
 function! is the message I get following my
 RemoteObject call
 
 Any idea what I am missing here.
 

   
   
   
   __ 
   Do you Yahoo!? 
   Yahoo! Small Business - Try our new resources
 site!
   http://smallbusiness.yahoo.com/resources/ 
   
   
   Yahoo! Groups Sponsor 
   
   ADVERTISEMENT
   
   
   
   
   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. 
 
 
 -- 
 Paul Kenney
 [EMAIL PROTECTED]
 [EMAIL PROTECTED]
 http://www.pjk.us
 




__ 
Do you Yahoo!? 
Make Yahoo! your home page 
http://www.yahoo.com/r/hs


 
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] SWF Timeout

2005-03-25 Thread JesterXL





What the heck... ok, it said Trial Edition 
enabled. So, I went in license.properties again, and this time upped the 
case to FED vs. fed. I then rebooted, and tested; now it says 
non-commercial enabled.

...don't know if it was the reboot or the 
case.

:: checks SWFwith ASV ::

Ok, the check code is gone. I don't know if 
you all have anymore checks in there, but we'll see Sunday. Thanks a lot 
for your help!

- Original Message - 
From: Matt 
Chotin 
To: flexcoders@yahoogroups.com 
Sent: Thursday, March 24, 2005 11:57 PM
Subject: RE: [flexcoders] SWF Timeout


I don’t believe that’s 
how it works but I don’t know the details. How are you compiling, through 
the server or through mxmlc? When the server starts check the console 
window (or just check flex.log in web-inf/flex/logs) and see what prints out for 
the license info.

Matt





From: JesterXL 
[mailto:[EMAIL PROTECTED] Sent: Thursday, March 24, 2005 5:07 
AMTo: flexcoders@yahoogroups.comSubject: Re: [flexcoders] SWF 
Timeout


It is. I guess I can only get 
non-expiring SWF's with a true, full license 
then?



- Original Message - 


From: Matt 
Chotin 

To: flexcoders@yahoogroups.com 


Sent: Wednesday, 
March 23, 2005 11:06 PM

Subject: RE: 
[flexcoders] SWF Timeout


Make sure that 
license.properties is filled in in web-inf/flex for your flex server. You 
need your NCL serial number in there.

Matt





From: Abdul 
Qabiz [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 23, 2005 4:03 
PMTo: flexcoders@yahoogroups.comSubject: RE: [flexcoders] SWF 
Timeout

Hmm, with developer version, it's going to 
be there, it can not be removed.I presume you have Non-Commercial license version, I am 
sorry, I am not sureabout it. 
Someone with good understanding of Flex Licensing might 
explain...-abdul-Original Message-From: JesterXL [mailto:[EMAIL PROTECTED] 
Sent: Thursday, March 24, 2005 5:18 
AMTo: flexcoders@yahoogroups.comSubject: Re: [flexcoders] SWF 
TimeoutSWF expires after 2 
days thing.- Original 
Message - From: "Abdul Qabiz" 
[EMAIL PROTECTED]To: 
flexcoders@yahoogroups.comSent: Wednesday, March 23, 2005 6:38 
PMSubject: RE: [flexcoders] SWF 
TimeoutYou mean, "A 
script in this movie is causing"You can increase the limits in Application tag..Following 
shows default..mx:Application scriptRecursionLimit="1000" 
scriptTimeLimit="60" ... ../mx:ApplicationOr are you talking about SWF expires after two days 
thing?-abdul-Original Message-From: JesterXL [mailto:[EMAIL PROTECTED] 
Sent: Thursday, March 24, 2005 4:59 
AMTo: 
FlexcodersSubject: [flexcoders] SWF 
TimeoutHow do you turn this 
off?Yahoo! Groups 
LinksYahoo! Groups 
LinksYahoo! Groups 
Links









Yahoo! Groups Sponsor


  ADVERTISEMENT 












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] How to pass AS Objects to a CFC

2005-03-25 Thread Peter Farland

The history of this problem stems way back from Flash Remoting in
ColdFusion 6.0.

ActionScript 1.0 APIs for Flash Remoting introduced named arguments
for CF-based invocation. The syntax for passing named arguments was
usually listed like this in documentation:

myCFService.cfFunction({var1:foo,var2:bar});


Which was intended to match a CFC API:

cffunction name=cfFunction access=remote
cfargument name=var1
cfargument name=var2
/cffunction
 
The {} syntax, however, really just means an untyped Object, so this
invocation information is lost once it is serialized over AMF.

But AMF isn't the real issue - the Flash Remoting gateway can't adapt
accordinly as it can't get the necessary CFC API or argument type
information from the CFC function before invoking it (a limitation in
CF), so now it has a problem - how would it know that you're passing a
single struct or named arguments?

To disambiguate you use either of the two approaches that Mehdi
described.


-Original Message-
From: Mohanraj Jayaraman [mailto:[EMAIL PROTECTED] 
Sent: Friday, March 25, 2005 2:12 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] How to pass AS Objects to a CFC


WOW! It works Mehdi. As you pointed out the second
variable passed in the CFC function call did the
magic! If possible, an explanation on why it works
with the second variable will be more useful Mehdi. 

My guess is that one should have good knowledge of
Flash/ActionScript before venturing into doing any
complex stuff with FLEX. 

Thanks a lot sharing this.

Mohanraj





--- Mehdi, Agha [EMAIL PROTECTED] wrote:

 Mohanraj,
 
 I learned it the hard way. There are two ways to do
 it.
 
 1.
 Flex side:
 
 var toPass = new MyClass();
 
 toPass.var1 = value;
 toPass.var2 = value;
 
 remoteObject.cfFunction ( toPass );
 
 CF Side:
 
 cffunction name=cfFunction access=remote
   cfargument name=var1
   cfargument name=var2
 /cffunction
 
 I'm sure it's not acceptable.
 
 2.
 Flex Side:
 
 var toPass = new MyClass();
 
 toPass.var1 = value;
 toPass.var2 = value;
 
 remoteObject.cfFunction ( toPass, true );
 
 CF Side:
 
 cffunction name=cfFunction access=remote
   cfargument name=toPass
 /cffunction
 
 That works beautifully. The second arg from Flex
 doesn't have to be a
 boolean but it just easy to type.
 
 Please let me know if that works.
 
 -Original Message-
 From: Mohanraj Jayaraman
 [mailto:[EMAIL PROTECTED] 
 Sent: Thursday, March 24, 2005 10:37 AM
 To: flexcoders@yahoogroups.com
 Subject: RE: [flexcoders] How to pass AS Objects to
 a CFC
 
 
 Hi Dirk,
 
 Thanks for your suggestion. But my condition differs
 from your example.
 
 Lets assume I had an AS Class 'MyClass.as'
 I am trying to do something like this in my MXML
   var o:Object = new MyClass();
   I build an 'array of structures' in MyClass Object
 and I do pass the
 complex Object as input with another Object wrapper.
 
 Here's an example by Macromedia on how exchange
 complex data
 

http://www.macromedia.com/devnet/flex/articles/complex_data_03.html
 
 According to macromedia
 When invoking methods remotely, you can pass objects
 back and forth (as the
 methods' input parameters and return value) between
 the client and the
 server.
 
 This example is explained with Java and I am trying
 to replicate the same
 with Coldfusion CFC's.
 
 Thanks,
 Mohanraj
 
 
 
 --- Dirk Eismann [EMAIL PROTECTED]
 wrote:
  Hi Mohanraj,
  
  CF needs named parameters when dealing with
 complex types passed as 
  CFC arguments. You have to wrap the object you
 want to send to the CFC 
  into another wrapper object. Inside the wrapper
 you define properties 
  for every named argument. This should
  work:
  
// AS snippet
  
// setup the object to be passed to the CFC
var o:Object = new Object();
o.name = Foo;
o.date = new Date();
o.otherData = [1,2,3,4,5];
  
// create a wrapper for the object
// input is the named argument of the CFC
var request = new Object();
request.input = o;
  
// send it
ro.sendComplexData(request);
  
  The wrapper's input property is also used to
 identify the argument 
  inside the CFC:
  
!--- CFC snippet ---
cffunction name=sendComplexData
 access=remote
  returntype=string
  cfargument name=input type=struct
  required=yes 
  cfreturn obj.name
/cffunction
  
  Dirk.
  
  
   -Original Message-
   From: Mohanraj Jayaraman
  [mailto:[EMAIL PROTECTED]
   Sent: Thursday, March 24, 2005 3:12 AM
   To: flexcoders@yahoogroups.com
   Subject: Re: [flexcoders] How to pass AS Objects
  to a CFC
   
   
   
   Hi Clint,
   
   Thanks for your reply. I think i was not clear
  ealrier
   on my problem. Here's a sample code I am dealing
  with.
   
   Please note the property 'modarray' of the
 'pData'
   object. 
   
   'modarray' is populated with SelTP object _s
 whcih
  is
   an Array of Structures. Here I polupate the _s
  with
   selectedIndices of a data gris I am using.
   
   
   

[flexcoders] Cyclical References

2005-03-25 Thread Eric Raymond


Are there any tools or suggestions to diagnose the problem further
and/or resolve it?

Sometimes my flex application fails to compile with the following message:

03/25 09:22:50 ERROR flex.compiler.HtmlOutputHandler: Results of
compiling ... /App.mxml
5 Errors found.
Error .../UserDetailWindow.mxml:53
Cyclical reference to class Chat. Two MXML Files cannot reference each
other as child tags

I understand the notion of a cyclical reference, but do not see it in
this case.  UserDetailWindow refers to Chat, but there is no apparent
connection from Chat back to UserDetailWindow.

I am able to get the program to run perfectly by commenting out the
line with the Chat component and visit the app to cause it to compile.
 Then I uncomment the line and the program works as expected.  It
seems that Flex incrementally compiles only the files that have
changed and this somehow bypasses the problem.  This workaround is OK
for development, but not for production.  Still it is a bit scary.

Any ideas?






 
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] How to pass AS Objects to a CFC

2005-03-25 Thread Mehdi, Agha

Thanks Peter for the explanation. That explains it. I am glad it worked
Mohanraj.

There's one more way of doing it without having to specify the other
argument.

var  testObject = new Array(); // it has to be an array. It won't work if
you did new Object()

testObject[var1] = var1;
testObject[var2] = var2

remoteObject.cfFunction ( testObject );

cffunction name=cfFunction access=remote
cfargument name=testObject type=struct
/cffunction

It works in Flash. Haven't tried it on Flex but shouldn't have any problems.
It is simple if all you want to pass is an object with some properties
instead of sending over a class.


-Original Message-
From: Peter Farland [mailto:[EMAIL PROTECTED] 
Sent: Friday, March 25, 2005 11:25 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] How to pass AS Objects to a CFC


The history of this problem stems way back from Flash Remoting in ColdFusion
6.0.

ActionScript 1.0 APIs for Flash Remoting introduced named arguments
for CF-based invocation. The syntax for passing named arguments was usually
listed like this in documentation:

myCFService.cfFunction({var1:foo,var2:bar});


Which was intended to match a CFC API:

cffunction name=cfFunction access=remote
cfargument name=var1
cfargument name=var2
/cffunction
 
The {} syntax, however, really just means an untyped Object, so this
invocation information is lost once it is serialized over AMF.

But AMF isn't the real issue - the Flash Remoting gateway can't adapt
accordinly as it can't get the necessary CFC API or argument type
information from the CFC function before invoking it (a limitation in CF),
so now it has a problem - how would it know that you're passing a single
struct or named arguments?

To disambiguate you use either of the two approaches that Mehdi described.


-Original Message-
From: Mohanraj Jayaraman [mailto:[EMAIL PROTECTED]
Sent: Friday, March 25, 2005 2:12 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] How to pass AS Objects to a CFC


WOW! It works Mehdi. As you pointed out the second
variable passed in the CFC function call did the
magic! If possible, an explanation on why it works
with the second variable will be more useful Mehdi. 

My guess is that one should have good knowledge of
Flash/ActionScript before venturing into doing any
complex stuff with FLEX. 

Thanks a lot sharing this.

Mohanraj





--- Mehdi, Agha [EMAIL PROTECTED] wrote:

 Mohanraj,
 
 I learned it the hard way. There are two ways to do
 it.
 
 1.
 Flex side:
 
 var toPass = new MyClass();
 
 toPass.var1 = value;
 toPass.var2 = value;
 
 remoteObject.cfFunction ( toPass );
 
 CF Side:
 
 cffunction name=cfFunction access=remote
   cfargument name=var1
   cfargument name=var2
 /cffunction
 
 I'm sure it's not acceptable.
 
 2.
 Flex Side:
 
 var toPass = new MyClass();
 
 toPass.var1 = value;
 toPass.var2 = value;
 
 remoteObject.cfFunction ( toPass, true );
 
 CF Side:
 
 cffunction name=cfFunction access=remote
   cfargument name=toPass
 /cffunction
 
 That works beautifully. The second arg from Flex
 doesn't have to be a
 boolean but it just easy to type.
 
 Please let me know if that works.
 
 -Original Message-
 From: Mohanraj Jayaraman
 [mailto:[EMAIL PROTECTED] 
 Sent: Thursday, March 24, 2005 10:37 AM
 To: flexcoders@yahoogroups.com
 Subject: RE: [flexcoders] How to pass AS Objects to
 a CFC
 
 
 Hi Dirk,
 
 Thanks for your suggestion. But my condition differs
 from your example.
 
 Lets assume I had an AS Class 'MyClass.as'
 I am trying to do something like this in my MXML
   var o:Object = new MyClass();
   I build an 'array of structures' in MyClass Object
 and I do pass the
 complex Object as input with another Object wrapper.
 
 Here's an example by Macromedia on how exchange
 complex data
 

http://www.macromedia.com/devnet/flex/articles/complex_data_03.html
 
 According to macromedia
 When invoking methods remotely, you can pass objects
 back and forth (as the
 methods' input parameters and return value) between
 the client and the
 server.
 
 This example is explained with Java and I am trying
 to replicate the same
 with Coldfusion CFC's.
 
 Thanks,
 Mohanraj
 
 
 
 --- Dirk Eismann [EMAIL PROTECTED]
 wrote:
  Hi Mohanraj,
  
  CF needs named parameters when dealing with
 complex types passed as 
  CFC arguments. You have to wrap the object you
 want to send to the CFC 
  into another wrapper object. Inside the wrapper
 you define properties 
  for every named argument. This should
  work:
  
// AS snippet
  
// setup the object to be passed to the CFC
var o:Object = new Object();
o.name = Foo;
o.date = new Date();
o.otherData = [1,2,3,4,5];
  
// create a wrapper for the object
// input is the named argument of the CFC
var request = new Object();
request.input = o;
  
// send it
ro.sendComplexData(request);
  
  The wrapper's input property is also used to
 identify the argument 
  inside the CFC:
  
  

[flexcoders] Editable DataGrid

2005-03-25 Thread naidim8


Is there a way to make the DataGrid editable, so you can enter data
directly, like a spreadsheet?  Or embed textboxes within the cells so
you can type into them?





 
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] Editable DataGrid

2005-03-25 Thread Deepa Subramaniam

Set the editable property to true; by default it is false. 

-Original Message-
From: naidim8 [mailto:[EMAIL PROTECTED] 
Sent: Friday, March 25, 2005 12:04 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Editable DataGrid



Is there a way to make the DataGrid editable, so you can enter data
directly, like a spreadsheet?  Or embed textboxes within the cells so
you can type into them?





 
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] Cyclical References

2005-03-25 Thread Joe Berkovitz

Eric,

I recently ran into a compiler bug (confirmed as such by MM) that is 
very reminiscent of the problem you mention, in that the compiler breaks 
in a full compile, but works in an incremental compile.  (In my case, 
the breakage consisted of emitting faulty property-binding code, rather 
than failing with a compile error, so I think I had it worse than you in 
that it wasn't even obvious that the compiler was broken :).

Another similarity between your problem and mine is that my bug was 
triggered by a cyclic dependency of a kind, although in my case the 
cycle was between an AS and an MXML file, and the references were just 
mutual data type references, not component instances.  (And come to 
think of it, you don't actually have a cycle, as far as you can tell -- 
although have you looked in the generated AS to see if there is any 
back-reference of any kind?)

So, FWIW, I was able to work around the problem in a way which you may 
be able to adapt:  I discovered that the compiler behavior is a function 
of the static dependencies between various source files.  Adding or 
removing explicit references between classes/components can change the 
behavior, presumably by changing the compilation order and the internal 
context against which a source unit gets compiled.

A simple way to add an explicit compile-time dependency to a source file 
is to use the latter's class as a data type:

 var foo: ReferencedClass;

Hope this helps.  I'll send you the reproduction info for my bug if you 
want it.

.   ..  . ...j



 
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] URGENT: drag and drop problem!

2005-03-25 Thread Matt Chotin










Ive posted before that the
DragManager does not seem to do very well with loaded applications. You may
want to try to get the DragManager to start doing something (anything) from the
main application before attempting the drag and drop in the loaded one.



I dont know quite what youd
do, I havent played around with it.



Matt











From: Alessio Prosperi
[mailto:[EMAIL PROTECTED] 
Sent: Friday, March 25, 2005 12:21
AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] URGENT: drag
and drop problem!







I still haven't found a solution to the problem described
below.











Could you please help me and send me some suggestion?











Thanks 





Alessio





























- Original Message - 



From: Alessio Prosperi






To: flexcoders@yahoogroups.com






Sent: Thursday, March
24, 2005 10:25 AM





Subject: [flexcoders] drag
and drop problem!













Hi to everyone,





Ideveloped a e-commerce solution based on drag'n'drop.
I split the main application in small sub-applications so I can load every
section only if it's necessary.











I load every section in a Loader object inside a Panel (as
in Flex samples - drag'n'drop). 











I have a component (in the loaded application) that starts
the drag operation.











The problem is: the drag doesn't start when Flex fires
mouseDown event (I have a component inside the application loaded inthe
Loader). Whyshould I change the mouseDown eventin mouseMove event
(otherwise the drag doesn't start)?

















example:











main.mxml











?xml version=1.0
encoding=utf-8?
mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml
mx:Panel title=Start drag from here width=200
height=200
mx:Loader contentPath=drag.mxml.swf
scaleContent=false width=100% height=100%
/
/mx:Panel 
mx:Panel title=Drop here width=200
height=200
/mx:Panel
/mx:Application























drag.mxml











?xml version=1.0
encoding=utf-8?
mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml
mx:Script
![CDATA[
 function beginDrag() {
 var ds = new
mx.core.DragSource();

ds.addData({name: test}, product);

mx.managers.DragManager.doDrag(this, ds, drag, {mxml: true});
 }
]]
/mx:Script
mx:Image source=@Embed('images/ups.jpg')
scaleContent=false mouseDown=beginDrag() / 
/mx:Application









If
I run drag.mxml the drag starts correctly. If I run main.mxml the drag doesn't
start: I must use mouseMove instead of mouseDown event. Is this a Flex bug?

However,
even using mouseMove event, the dragged object doesn't exit from the Panel. How
can I resolve this situation?

If
I run the Flex exampleof drag and drop, the object can move
outsideits application limits only if the scrollbars are missing. Don't
you find it strange? Anyway I don't have scrollbars so this is not my problem I
only liked to tell you.

I
need help as soon as possible!



Alessio
Prosperi
[EMAIL PROTECTED]
Adacto
- anima digitale



--

Adacto s.r.l.
Via Chiarugi 158 50053 Empoli
Via Meda 45 20141 Milano
Telefono 0571-530234 Fax 0571-534294 
Internet: www.adacto.it
E-mail: [EMAIL PROTECTED]

















Yahoo! Groups Sponsor


  ADVERTISEMENT 












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: Image caching

2005-03-25 Thread pioplacz


Yes it sounds kind of that way.. i use repeater component do make it 
appear. find it way easier then writing code myself. but it fills 
kind of sad that nobody can really answear our questions. It would 
be really good if it just could cache all the images same way old 
HTML did. just store all the images in the temporary internet files 
folder, it really saves time :P 
--- In flexcoders@yahoogroups.com, Joe Berkovitz [EMAIL PROTECTED] wrote:
 I would also like to see some response from MM on this subject (I 
have 
 asked support, but no response yet).
 
 Basically, it would be really helpful to understand how to 
minimize 
 overhead for repeatedly loading a movieclip from an external URL, 
 because even if the URL's response bytes are cached by the 
browser, 
 there's still some significant time that it takes to load the 
clips.
 
 MovieClip.duplicateMovieClip() is not of help in this regard, as 
others 
 have noted in various Flash-based forums.  My current default 
guess is 
 that we're stuck with the overhead of loadMovie(), unless one uses 
 embedding.
 
 
 Erik Westra wrote:
  Well, my guess is that this has nothing to do with cache, but 
the fact
  that the flex components delete and create the movieclips again 
and then
  load the image. If it is cached or not, it takes some time 
before the
  image can appear. I don't know exactly how these components are
  constructed or if there are settings for this 'paging' feature...
  
  Greetz Erik 
  
  -Original Message-
  From: pioplacz [mailto:[EMAIL PROTECTED] 
  Sent: vrijdag 25 maart 2005 11:55
  To: flexcoders@yahoogroups.com
  Subject: [flexcoders] Image caching
  
  
  
  Have a question i made a movie library based on the exampel flex
  store... and i have aroun 150 images loading everytime i want to 
found a
  movie... is it possible to make the images stor in cache to make 
a
  faster browsing. it loads fast cause it's local but i can only 
feat
  aroun 20 images in a box and have to scroll to see the rest and 
the it
  have to loads images... and there a no images in about 2 
seconds. that's
  why i want to make them cache is it possible?
  
  
  
  
   
  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: Star System

2005-03-25 Thread pioplacz


Could you please send it again.. i deleted mail by misstake... :( 
--- In flexcoders@yahoogroups.com, Ketan Bengali [EMAIL PROTECTED] 
wrote:
 Sorry.. had all the display code in set.
 Shifted it to draw now.
 
 Now it should work.
 
 Attaching the updated file.
 
 P.S: The component checks if the number received as parameter is a 
whole 
 integer
 else rounds off. Example: if num is 3.49 and lesser rounds to 3 
else 
 rounds to 4.
 
 Regards,
 
 Ketan Bengali
 
 
 
 pioplacz wrote:
 
 have a problem i tryed making it work dynamic like this:
 
 CineRating id=stars rating={dataObject.rate}/
 
 the rate changes on every movie i click but nothing happens it 
keeps 
 the same value as the first one i clicked on. Is it possible to 
fix 
 it? 
 
 --- In flexcoders@yahoogroups.com, Ketan Bengali [EMAIL PROTECTED] 
 wrote:
   
 
 We have already have a star system which matches your 
 
 
 requirements .
   
 
 If you need it you can have that. Have attached it with current 
 
 
 mail.
   
 
 Copy the .swc file to default-war\WEB-INF\flex\user_classes
 For safer side restart your server.
 
 mxml code would be:
 CineRating id=yourid rating=3 /
 rating can be anything from 1 to 5.
 
 Regards,
 
 
 Sagar Kulkarni
 Dipti Mane
 Ketan Bengali
 
 
 
 
 pioplacz wrote:
 
 
 
 Hi! Was wondering if somebody have any idea if it's possible to 
   
 
 make 
   
 
 a star system like in iTunes? that u grade every song by giving 
   
 
 it 1-
   
 
 5 stars? How can i make something like this? 
 
 My second question? How is it possible to make a search funtion 
   
 
 in 
   
 
 Flex Store Demo Application last time i tryed it would really 
   
 
 work 
   
 
 it worked in the grid view. But when i clicked on the product 
no 
 information were showed in the details part... is it possible 
to 
   
 
 fix 
   
 
 it? 
 
 
 
 
 
 
 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] edit ContextMenu

2005-03-25 Thread viraf_bankwalla


When I right-click in a TextInput I get the edit menu.  How do I add 
items to this edit ContextMenu ?  I tried the following, however the 
compiler complains that there is no property with the name Menu.

class CellEditor extends mx.controls.TextInput
{
  var _cm = null;

  function CellEditor()
  {
_cm = new ContextMenu();
_cm.customItems.push(new ContextMenuItem(new ContextMenuItem
(Details, details)));
this.menu = _cm;
  }

  function details(item:mx.controls.TextInput, 
mi:ContextMenuItem) :Void
  {
trace(Selected  + mi.caption);
  }
}

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/
 





[flexcoders] Xamlon Flash Edition (was: Flex 1.5 price)

2005-03-25 Thread Kristopher Schultz

As quoted by Darron (third party quote):
 with something like this out on the market, buying Flex 
 or Lazslo would be such a lame decision.

What!? With what (very) few details are available about Xamlon, I could
maybe see it being a direct competitor to the traditional Flash IDE, but
a competitor to Flex/Lazlo!?

I suppose if your definition of Flex is a way to create SWF files
through programming then maybe a comparison can be made. But if that's
your narrow perception of Flex I think you're missing the point of Flex.

To me, the REAL purpose of Flex is to enable fast creation of robust,
usable Web applications. This is something that just could not be
accomplished efficiently before Flex. And from the details I've seen, it
doesn't appear that Xamlon will offer any accomodations in regard to Web
applications. In Xamlon, the programmer will still be responsible for
all that ugly low-level, tedious, error-prone work that was required
with Flash...managing loading/unloading/instantiation/destruction of
assets, managing positioning and sizing of GUI, designing event
frameworks, trying to support browser history nav, trying to support
accessibility, etc.

I'd be happy to be proven wrong, but let's just be careful not to crown
a successor to Flex prematurely. 

Kris
 
-- 
 
Kristopher Schultz
Developer
 
Resource Interactive
p: 614.410.2123
www.resource.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/
 





[flexcoders] Re: Cyclical References (and faulty binding code)

2005-03-25 Thread Eric Raymond


I have that problem as well but didn't want to mention it because it
was too hard to explain and I thought it might be a symptom of the
compiler error issue.  And I also have referneces between .as files
and .mxml files.

But this is very scary because at runtime you have binding not working
but otherwise the code runs ... which leads to weird downstream logic
errors .. but no flex errors.

Yes please send me the reproduction info.

Do you have any suggestions as to what to look for .. either in the
flex code or in the generated As code (which I've never looked at
before).  Anything that would help to isolate my problem and then
target a workaround would be helpful.

Thanks


--- In flexcoders@yahoogroups.com, Joe Berkovitz [EMAIL PROTECTED] wrote:
 Eric,
 
 I recently ran into a compiler bug (confirmed as such by MM) that is 
 very reminiscent of the problem you mention, in that the compiler
breaks 
 in a full compile, but works in an incremental compile.  (In my case, 
 the breakage consisted of emitting faulty property-binding code, rather 
 than failing with a compile error, so I think I had it worse than
you in 
 that it wasn't even obvious that the compiler was broken :).
 
 





 
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] edit ContextMenu

2005-03-25 Thread Abdul Qabiz

Hi,

Try this:


_ti.label.menu = cm;

Where _ti is instance of TextInput.


###Modified Code##

class CellEditor extends mx.controls.TextInput
{
  var _cm = null;

  function CellEditor()
  {
_cm = new ContextMenu();
_cm.customItems.push(new ContextMenuItem(new ContextMenuItem
(Details, details)));
this.label.menu = _cm;
  }

  function details(item:mx.controls.TextInput, 
mi:ContextMenuItem) :Void
  {
trace(Selected  + mi.caption);
  }
} 


-abdul



-Original Message-
From: viraf_bankwalla [mailto:[EMAIL PROTECTED] 
Sent: Saturday, March 26, 2005 2:26 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] edit ContextMenu



When I right-click in a TextInput I get the edit menu.  How do I add 
items to this edit ContextMenu ?  I tried the following, however the 
compiler complains that there is no property with the name Menu.

class CellEditor extends mx.controls.TextInput
{
  var _cm = null;

  function CellEditor()
  {
_cm = new ContextMenu();
_cm.customItems.push(new ContextMenuItem(new ContextMenuItem
(Details, details)));
this.menu = _cm;
  }

  function details(item:mx.controls.TextInput, 
mi:ContextMenuItem) :Void
  {
trace(Selected  + mi.caption);
  }
}

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/
 





[flexcoders] Re: edit ContextMenu

2005-03-25 Thread viraf_bankwalla


Thanks - I tried it but it does not seem to be working.
Any suggestions ?


--- application
?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml; 
xmlns=*
CellEditor text=Hello editable=true /
/mx:Application

- class
class CellEditor extends mx.controls.TextInput
{
function CellEditor()
{
var _cm = new ContextMenu();
_cm.customItems.push(new ContextMenuItem(new 
ContextMenuItem(Details, details)));
this.label.menu = _cm;
}

function details(item:mx.controls.TextInput, 
mi:ContextMenuItem) :Void
{
trace(Selected  + mi.caption);
}
}


--- In flexcoders@yahoogroups.com, Abdul Qabiz [EMAIL PROTECTED] wrote:
 Hi,
 
 Try this:
 
 
 _ti.label.menu = cm;
 
 Where _ti is instance of TextInput.
 
 
 ###Modified Code##
 
 class CellEditor extends mx.controls.TextInput
 {
   var _cm = null;
   
   function CellEditor()
   {
 _cm = new ContextMenu();
 _cm.customItems.push(new ContextMenuItem(new ContextMenuItem
 (Details, details)));
 this.label.menu = _cm;
   }
 
   function details(item:mx.controls.TextInput, 
 mi:ContextMenuItem) :Void
   {
 trace(Selected  + mi.caption);
   }
 } 
 
 
 -abdul
 
 
 
 -Original Message-
 From: viraf_bankwalla [mailto:[EMAIL PROTECTED] 
 Sent: Saturday, March 26, 2005 2:26 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] edit ContextMenu
 
 
 
 When I right-click in a TextInput I get the edit menu.  How do I 
add 
 items to this edit ContextMenu ?  I tried the following, however 
the 
 compiler complains that there is no property with the name Menu.
 
 class CellEditor extends mx.controls.TextInput
 {
   var _cm = null;
   
   function CellEditor()
   {
 _cm = new ContextMenu();
 _cm.customItems.push(new ContextMenuItem(new ContextMenuItem
 (Details, details)));
 this.menu = _cm;
   }
 
   function details(item:mx.controls.TextInput, 
 mi:ContextMenuItem) :Void
   {
 trace(Selected  + mi.caption);
   }
 }
 
 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] Re: edit ContextMenu

2005-03-25 Thread Abdul Qabiz

 
Hi,

Problem in your CellEditor.as code, 

_cm.customItems.push(new ContextMenuItem(new ContextMenuItem(Details,
details)))

*Nested ContextMenuItem(...)


##Corrected Code##

class CellEditor extends mx.controls.TextInput
{
function CellEditor()
{
var _cm = new ContextMenu();
_cm.customItems.push(new ContextMenuItem(Details,
details));
this.label.menu = _cm;
}

function details(item:mx.controls.TextInput, 
mi:ContextMenuItem) :Void
{
trace(Selected  + mi.caption);
}
}

-abdul

-Original Message-
From: viraf_bankwalla [mailto:[EMAIL PROTECTED] 
Sent: Saturday, March 26, 2005 4:12 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: edit ContextMenu



Thanks - I tried it but it does not seem to be working.
Any suggestions ?


--- application
?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml; 
xmlns=*
CellEditor text=Hello editable=true /
/mx:Application

- class
class CellEditor extends mx.controls.TextInput
{
function CellEditor()
{
var _cm = new ContextMenu();
_cm.customItems.push(new ContextMenuItem(new 
ContextMenuItem(Details, details)));
this.label.menu = _cm;
}

function details(item:mx.controls.TextInput, 
mi:ContextMenuItem) :Void
{
trace(Selected  + mi.caption);
}
}


--- In flexcoders@yahoogroups.com, Abdul Qabiz [EMAIL PROTECTED] wrote:
 Hi,
 
 Try this:
 
 
 _ti.label.menu = cm;
 
 Where _ti is instance of TextInput.
 
 
 ###Modified Code##
 
 class CellEditor extends mx.controls.TextInput
 {
   var _cm = null;
   
   function CellEditor()
   {
 _cm = new ContextMenu();
 _cm.customItems.push(new ContextMenuItem(new ContextMenuItem
 (Details, details)));
 this.label.menu = _cm;
   }
 
   function details(item:mx.controls.TextInput, 
 mi:ContextMenuItem) :Void
   {
 trace(Selected  + mi.caption);
   }
 } 
 
 
 -abdul
 
 
 
 -Original Message-
 From: viraf_bankwalla [mailto:[EMAIL PROTECTED] 
 Sent: Saturday, March 26, 2005 2:26 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] edit ContextMenu
 
 
 
 When I right-click in a TextInput I get the edit menu.  How do I 
add 
 items to this edit ContextMenu ?  I tried the following, however 
the 
 compiler complains that there is no property with the name Menu.
 
 class CellEditor extends mx.controls.TextInput
 {
   var _cm = null;
   
   function CellEditor()
   {
 _cm = new ContextMenu();
 _cm.customItems.push(new ContextMenuItem(new ContextMenuItem
 (Details, details)));
 this.menu = _cm;
   }
 
   function details(item:mx.controls.TextInput, 
 mi:ContextMenuItem) :Void
   {
 trace(Selected  + mi.caption);
   }
 }
 
 Thanks
 
 
 
 
 
  
 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: edit ContextMenu

2005-03-25 Thread viraf_bankwalla


Thanks - it works.

--- In flexcoders@yahoogroups.com, Abdul Qabiz [EMAIL PROTECTED] wrote:
  
 Hi,
 
 Problem in your CellEditor.as code, 
 
 _cm.customItems.push(new ContextMenuItem(new ContextMenuItem
(Details,
 details)))
 
 *Nested ContextMenuItem(...)
 
 
 ##Corrected Code##
 
 class CellEditor extends mx.controls.TextInput
 {
   function CellEditor()
   {
   var _cm = new ContextMenu();
   _cm.customItems.push(new ContextMenuItem(Details,
 details));
   this.label.menu = _cm;
   }
 
   function details(item:mx.controls.TextInput, 
 mi:ContextMenuItem) :Void
   {
   trace(Selected  + mi.caption);
   }
 }
 
 -abdul
 
 -Original Message-
 From: viraf_bankwalla [mailto:[EMAIL PROTECTED] 
 Sent: Saturday, March 26, 2005 4:12 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: edit ContextMenu
 
 
 
 Thanks - I tried it but it does not seem to be working.
 Any suggestions ?
 
 
 --- application
 ?xml version=1.0 encoding=utf-8?
 mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml; 
 xmlns=*
   CellEditor text=Hello editable=true /
 /mx:Application
 
 - class
 class CellEditor extends mx.controls.TextInput
 {
   function CellEditor()
   {
   var _cm = new ContextMenu();
   _cm.customItems.push(new ContextMenuItem(new 
 ContextMenuItem(Details, details)));
   this.label.menu = _cm;
   }
 
   function details(item:mx.controls.TextInput, 
 mi:ContextMenuItem) :Void
   {
   trace(Selected  + mi.caption);
   }
 }
 
 
 --- In flexcoders@yahoogroups.com, Abdul Qabiz [EMAIL PROTECTED] wrote:
  Hi,
  
  Try this:
  
  
  _ti.label.menu = cm;
  
  Where _ti is instance of TextInput.
  
  
  ###Modified Code##
  
  class CellEditor extends mx.controls.TextInput
  {
var _cm = null;
  
function CellEditor()
{
  _cm = new ContextMenu();
  _cm.customItems.push(new ContextMenuItem(new ContextMenuItem
  (Details, details)));
  this.label.menu = _cm;
}
  
function details(item:mx.controls.TextInput, 
  mi:ContextMenuItem) :Void
{
  trace(Selected  + mi.caption);
}
  } 
  
  
  -abdul
  
  
  
  -Original Message-
  From: viraf_bankwalla [mailto:[EMAIL PROTECTED] 
  Sent: Saturday, March 26, 2005 2:26 AM
  To: flexcoders@yahoogroups.com
  Subject: [flexcoders] edit ContextMenu
  
  
  
  When I right-click in a TextInput I get the edit menu.  How do I 
 add 
  items to this edit ContextMenu ?  I tried the following, however 
 the 
  compiler complains that there is no property with the name Menu.
  
  class CellEditor extends mx.controls.TextInput
  {
var _cm = null;
  
function CellEditor()
{
  _cm = new ContextMenu();
  _cm.customItems.push(new ContextMenuItem(new ContextMenuItem
  (Details, details)));
  this.menu = _cm;
}
  
function details(item:mx.controls.TextInput, 
  mi:ContextMenuItem) :Void
{
  trace(Selected  + mi.caption);
}
  }
  
  Thanks
  
  
  
  
  
   
  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: edit ContextMenu

2005-03-25 Thread viraf_bankwalla


Ok - now how do I use this as the CellEditor of a data grid?  

Thanks.

--- In flexcoders@yahoogroups.com, viraf_bankwalla 
[EMAIL PROTECTED] wrote:
 
 Thanks - it works.
 
 --- In flexcoders@yahoogroups.com, Abdul Qabiz [EMAIL PROTECTED] wrote:
   
  Hi,
  
  Problem in your CellEditor.as code, 
  
  _cm.customItems.push(new ContextMenuItem(new ContextMenuItem
 (Details,
  details)))
  
  *Nested ContextMenuItem(...)
  
  
  ##Corrected Code##
  
  class CellEditor extends mx.controls.TextInput
  {
  function CellEditor()
  {
  var _cm = new ContextMenu();
  _cm.customItems.push(new ContextMenuItem(Details,
  details));
  this.label.menu = _cm;
  }
  
  function details(item:mx.controls.TextInput, 
  mi:ContextMenuItem) :Void
  {
  trace(Selected  + mi.caption);
  }
  }
  
  -abdul
  
  -Original Message-
  From: viraf_bankwalla [mailto:[EMAIL PROTECTED] 
  Sent: Saturday, March 26, 2005 4:12 AM
  To: flexcoders@yahoogroups.com
  Subject: [flexcoders] Re: edit ContextMenu
  
  
  
  Thanks - I tried it but it does not seem to be working.
  Any suggestions ?
  
  
  --- application
  ?xml version=1.0 encoding=utf-8?
  mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml; 
  xmlns=*
  CellEditor text=Hello editable=true /
  /mx:Application
  
  - class
  class CellEditor extends mx.controls.TextInput
  {
  function CellEditor()
  {
  var _cm = new ContextMenu();
  _cm.customItems.push(new ContextMenuItem(new 
  ContextMenuItem(Details, details)));
  this.label.menu = _cm;
  }
  
  function details(item:mx.controls.TextInput, 
  mi:ContextMenuItem) :Void
  {
  trace(Selected  + mi.caption);
  }
  }
  
  
  --- In flexcoders@yahoogroups.com, Abdul Qabiz [EMAIL PROTECTED] 
wrote:
   Hi,
   
   Try this:
   
   
   _ti.label.menu = cm;
   
   Where _ti is instance of TextInput.
   
   
   ###Modified Code##
   
   class CellEditor extends mx.controls.TextInput
   {
 var _cm = null;
 
 function CellEditor()
 {
   _cm = new ContextMenu();
   _cm.customItems.push(new ContextMenuItem(new 
ContextMenuItem
   (Details, details)));
   this.label.menu = _cm;
 }
   
 function details(item:mx.controls.TextInput, 
   mi:ContextMenuItem) :Void
 {
   trace(Selected  + mi.caption);
 }
   } 
   
   
   -abdul
   
   
   
   -Original Message-
   From: viraf_bankwalla [mailto:[EMAIL PROTECTED] 
   Sent: Saturday, March 26, 2005 2:26 AM
   To: flexcoders@yahoogroups.com
   Subject: [flexcoders] edit ContextMenu
   
   
   
   When I right-click in a TextInput I get the edit menu.  How do 
I 
  add 
   items to this edit ContextMenu ?  I tried the following, 
however 
  the 
   compiler complains that there is no property with the name 
Menu.
   
   class CellEditor extends mx.controls.TextInput
   {
 var _cm = null;
 
 function CellEditor()
 {
   _cm = new ContextMenu();
   _cm.customItems.push(new ContextMenuItem(new 
ContextMenuItem
   (Details, details)));
   this.menu = _cm;
 }
   
 function details(item:mx.controls.TextInput, 
   mi:ContextMenuItem) :Void
 {
   trace(Selected  + mi.caption);
 }
   }
   
   Thanks
   
   
   
   
   

   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] Cyclical References

2005-03-25 Thread Matt Chotin










If you do have binding this can sometimes
come up. The way to eliminate it for sure (I think) would be to eliminate
any bindings in the components that claim there are cycles and just use event
handlers to do your variable assignments.



Unfortunately there isnt a good way
to debug whats going on, I spent a lot of time trying during 1.0 and 1.5
development. It may be that you have UserDetailWindow which refers to
chat which has a binding to something else which has a reference to something
else which has a binding to UserDetailWindow, etc. 



Thanks to Joe for posting his workaround.
As he says, this is supposed to be a rare case which is why we did not re-write
the compiler (which was the only feasible solution after we eliminated the issues
for most cases) to address the problem. Many developer-hours were spent
getting it down to the rare case J The reason why binding tends to be the cause is because of
how we generate code after the parse phase, and then re-analyze the
results. For some reason on the second pass the compiler occasionally fails
to re-asses the dependency order and therefore screws things up (I think).
The bug is actually higher up in the compiler, it just gets exposed by using
binding. I wish I could explain it better, probably if I could we would have
solved it J



Matt











From: Eric Raymond
[mailto:[EMAIL PROTECTED] 
Sent: Friday, March 25, 2005 11:41
AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Cyclical
References






Are there any tools or suggestions to diagnose the
problem further
and/or resolve it?

Sometimes my flex application fails to compile
with the following message:

03/25 09:22:50 ERROR
flex.compiler.HtmlOutputHandler: Results of
compiling ... /App.mxml
5 Errors found.
Error .../UserDetailWindow.mxml:53
Cyclical reference to class Chat. Two MXML Files
cannot reference each
other as child tags

I understand the notion of a cyclical reference,
but do not see it in
this case. UserDetailWindow refers to Chat,
but there is no apparent
connection from Chat back to UserDetailWindow.

I am able to get the program to run perfectly by
commenting out the
line with the Chat component and visit the app to
cause it to compile.
Then I uncomment the line and the program works as
expected. It
seems that Flex incrementally compiles only the
files that have
changed and this somehow bypasses the problem.
This workaround is OK
for development, but not for production.
Still it is a bit scary.

Any ideas?

















Yahoo! Groups Sponsor


  ADVERTISEMENT 












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] How to pass AS Objects to a CFC

2005-03-25 Thread Mohanraj Jayaraman

Thanks for the explantion Peter. That really helps.
Mehdi thanks for yet another Tip.
It works in FLEX.

Mohanraj


--- Mehdi, Agha [EMAIL PROTECTED] wrote:

 Thanks Peter for the explanation. That explains it.
 I am glad it worked
 Mohanraj.
 
 There's one more way of doing it without having to
 specify the other
 argument.
 
 var  testObject = new Array(); // it has to be an
 array. It won't work if
 you did new Object()
 
 testObject[var1] = var1;
 testObject[var2] = var2
 
 remoteObject.cfFunction ( testObject );
 
 cffunction name=cfFunction access=remote
 cfargument name=testObject type=struct
 /cffunction
 
 It works in Flash. Haven't tried it on Flex but
 shouldn't have any problems.
 It is simple if all you want to pass is an object
 with some properties
 instead of sending over a class.
 
 
 -Original Message-
 From: Peter Farland [mailto:[EMAIL PROTECTED]
 
 Sent: Friday, March 25, 2005 11:25 AM
 To: flexcoders@yahoogroups.com
 Subject: RE: [flexcoders] How to pass AS Objects to
 a CFC
 
 
 The history of this problem stems way back from
 Flash Remoting in ColdFusion
 6.0.
 
 ActionScript 1.0 APIs for Flash Remoting introduced
 named arguments
 for CF-based invocation. The syntax for passing
 named arguments was usually
 listed like this in documentation:
 
 myCFService.cfFunction({var1:foo,var2:bar});
 
 
 Which was intended to match a CFC API:
 
 cffunction name=cfFunction access=remote
 cfargument name=var1
 cfargument name=var2
 /cffunction
  
 The {} syntax, however, really just means an untyped
 Object, so this
 invocation information is lost once it is serialized
 over AMF.
 
 But AMF isn't the real issue - the Flash Remoting
 gateway can't adapt
 accordinly as it can't get the necessary CFC API or
 argument type
 information from the CFC function before invoking it
 (a limitation in CF),
 so now it has a problem - how would it know that
 you're passing a single
 struct or named arguments?
 
 To disambiguate you use either of the two approaches
 that Mehdi described.
 
 
 -Original Message-
 From: Mohanraj Jayaraman
 [mailto:[EMAIL PROTECTED]
 Sent: Friday, March 25, 2005 2:12 PM
 To: flexcoders@yahoogroups.com
 Subject: RE: [flexcoders] How to pass AS Objects to
 a CFC
 
 
 WOW! It works Mehdi. As you pointed out the second
 variable passed in the CFC function call did the
 magic! If possible, an explanation on why it works
 with the second variable will be more useful Mehdi. 
 
 My guess is that one should have good knowledge of
 Flash/ActionScript before venturing into doing any
 complex stuff with FLEX. 
 
 Thanks a lot sharing this.
 
 Mohanraj
 
 
 
 
 
 --- Mehdi, Agha [EMAIL PROTECTED] wrote:
 
  Mohanraj,
  
  I learned it the hard way. There are two ways to
 do
  it.
  
  1.
  Flex side:
  
  var toPass = new MyClass();
  
  toPass.var1 = value;
  toPass.var2 = value;
  
  remoteObject.cfFunction ( toPass );
  
  CF Side:
  
  cffunction name=cfFunction access=remote
  cfargument name=var1
  cfargument name=var2
  /cffunction
  
  I'm sure it's not acceptable.
  
  2.
  Flex Side:
  
  var toPass = new MyClass();
  
  toPass.var1 = value;
  toPass.var2 = value;
  
  remoteObject.cfFunction ( toPass, true );
  
  CF Side:
  
  cffunction name=cfFunction access=remote
  cfargument name=toPass
  /cffunction
  
  That works beautifully. The second arg from Flex
  doesn't have to be a
  boolean but it just easy to type.
  
  Please let me know if that works.
  
  -Original Message-
  From: Mohanraj Jayaraman
  [mailto:[EMAIL PROTECTED] 
  Sent: Thursday, March 24, 2005 10:37 AM
  To: flexcoders@yahoogroups.com
  Subject: RE: [flexcoders] How to pass AS Objects
 to
  a CFC
  
  
  Hi Dirk,
  
  Thanks for your suggestion. But my condition
 differs
  from your example.
  
  Lets assume I had an AS Class 'MyClass.as'
  I am trying to do something like this in my MXML
var o:Object = new MyClass();
I build an 'array of structures' in MyClass
 Object
  and I do pass the
  complex Object as input with another Object
 wrapper.
  
  Here's an example by Macromedia on how exchange
  complex data
  
 

http://www.macromedia.com/devnet/flex/articles/complex_data_03.html
  
  According to macromedia
  When invoking methods remotely, you can pass
 objects
  back and forth (as the
  methods' input parameters and return value)
 between
  the client and the
  server.
  
  This example is explained with Java and I am
 trying
  to replicate the same
  with Coldfusion CFC's.
  
  Thanks,
  Mohanraj
  
  
  
 
=== message truncated ===




__ 
Do you Yahoo!? 
Yahoo! Small Business - Try our new resources site!
http://smallbusiness.yahoo.com/resources/ 


 
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:

Re: [flexcoders] Flex 1.5 price

2005-03-25 Thread Scott Barnes

hehhehe funny, how we all suddnely commence a mass exodus.

I won't comment on the price whether its rumour or not, but what I
will comment is why I think either way it won't make that much of a
difference (well its totally not my own opinion)

At present in my company FLEX price tag was never a contention it was
more about how will i get it into the business with minimal
fuss/training required.

If we were to pay $15k per CPU, then so be it. Most software we
purchase thats tailored to an enterprise level is more then that -
infact the intranet software we bought was higher in price and oh my,
is it useless.

The major selling point for us was how much $ would it take for
someone to create what FLEX has on offer via DHTML or other
technology - too much.

FLEX is also a hard sell inside businesses. I know here in Australia
the local Sales guys really have to put in the hard yards to get the
sale made, and the end sale wasn't really worth the time and money
invested (flights back and forth etc).

I know, why not sell it much cheaper then? well again it would still
require the same amount of sale - hand holding - to get over the line
and at a lower price - furthermore it would have a larger takeup,
which means sales folks will tied up with a lot of tyre kickers
instead of real potential meaty customers. On top of this, if it was
sold at $5k per CPU or something like that, there would be a lot of
support required which in turn eats into profit margins for the
product - recoup investments already outlayed. So in reality for a
company thats publically listed and has a bunch of folk who demand
profit margins, kinda damned if you do, damned if you don't.

I am thankful that I have a company who is loaded with $$ so i can
play with FLEX, but the future of FLEX is going to ramp up radically
and so i can see pass the price tag and consider it a wise investment.




-- 
Regards,
Scott Barnes
http://www.mossyblog.com
http://www.flexcoder.com (Coming Soon)


 
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] Xamlon Flash Edition (was: Flex 1.5 price)

2005-03-25 Thread Scott Barnes

Ontop of all that, FLEX and FLASH Player future changes/requests will
dictate each others end release? where is other products will always
be feeding off the scraps provided (ie what they get is it, thanks for
coming).

It would be a different story if Flash Player took on features
requested by 3rd party SWF editors etc.


On Fri, 25 Mar 2005 16:29:31 -0500, Kristopher Schultz
[EMAIL PROTECTED] wrote:
 
 As quoted by Darron (third party quote):
  with something like this out on the market, buying Flex
  or Lazslo would be such a lame decision.
 
 What!? With what (very) few details are available about Xamlon, I could
 maybe see it being a direct competitor to the traditional Flash IDE, but
 a competitor to Flex/Lazlo!?
 
 I suppose if your definition of Flex is a way to create SWF files
 through programming then maybe a comparison can be made. But if that's
 your narrow perception of Flex I think you're missing the point of Flex.
 
 To me, the REAL purpose of Flex is to enable fast creation of robust,
 usable Web applications. This is something that just could not be
 accomplished efficiently before Flex. And from the details I've seen, it
 doesn't appear that Xamlon will offer any accomodations in regard to Web
 applications. In Xamlon, the programmer will still be responsible for
 all that ugly low-level, tedious, error-prone work that was required
 with Flash...managing loading/unloading/instantiation/destruction of
 assets, managing positioning and sizing of GUI, designing event
 frameworks, trying to support browser history nav, trying to support
 accessibility, etc.
 
 I'd be happy to be proven wrong, but let's just be careful not to crown
 a successor to Flex prematurely.
 
 Kris
 
 --
 
 Kristopher Schultz
 Developer
 
 Resource Interactive
 p: 614.410.2123
 www.resource.com
 
 
 Yahoo! Groups Links
 
 
 
 
 


-- 
Regards,
Scott Barnes
http://www.mossyblog.com
http://www.flexcoder.com (Coming Soon)


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

2005-03-25 Thread Dennis Jackson

We have a similar situation in that we have plenty of cash for investment, 
certainly more than some of the companies I have worked with in the past. The 
license is a small cost compared to the labor that goes into the projects. We 
also need to factor intraining and support and the like. I think the biggest 
gain with flex is the ability to have a very maliable interface that is 
designed to work over a service oriented architecture. 

However, I have a learning curve regardless of the platform I choose. I have 
comparable labor if I use comparable approaches architecture wise.

If I use quad processor boxes (I do), and if I have at least 3 zones per 
production site (I do, dev stg and production) plus local developer installs 
then I am looking at with current list prices, at least 4 licenses totalling 
48,000 per production stream.
That doesn't include a 12-30k list range for the CFMX licenses we are using for 
the middle tier cfc layer.

So I am left with the question, do I get an additional 48k of value going with 
Flex on top of my webservice architecture, versus the open source lazslo. And 
additionally do I get an additional 78k of value from flex of cfmx over using 
laszlo on bluedragon (with flashORB)?

Then the longer term question is, given the dearth of junior and mid level CF 
talent do I embark on a migration to J2EE or .NET? Where will the talent levels 
for Flex and Laszlo be in 2 or 3 years?

It is a tough question, but I can tell you this asp.net is free and pre 
installed, and I know it was hard to say let's spend more money to buy 
something that does the same function. And that was below the 10k local sign 
off limit. Above 10k all purchases need business cases ROI and have to be 
signed off at a MUCH higher level ( our NY divisional HQ)

An increase from 12 to 20 would make those decisions easier in a lot of ways.

-Original Message-
From: Scott Barnes [EMAIL PROTECTED]
Date: Sat, 26 Mar 2005 10:47:32 
To:flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Flex 1.5 price

hehhehe funny, how we all suddnely commence a mass exodus.
 
 I won't comment on the price whether its rumour or not, but what I
 will comment is why I think either way it won't make that much of a
 difference (well its totally not my own opinion)
 
 At present in my company FLEX price tag was never a contention it was
 more about how will i get it into the business with minimal
 fuss/training required.
 
 If we were to pay $15k per CPU, then so be it. Most software we
 purchase thats tailored to an enterprise level is more then that -
 infact the intranet software we bought was higher in price and oh my,
 is it useless.
 
 The major selling point for us was how much $ would it take for
 someone to create what FLEX has on offer via DHTML or other
 technology - too much.
 
 FLEX is also a hard sell inside businesses. I know here in Australia
 the local Sales guys really have to put in the hard yards to get the
 sale made, and the end sale wasn't really worth the time and money
 invested (flights back and forth etc).
 
 I know, why not sell it much cheaper then? well again it would still
 require the same amount of sale - hand holding - to get over the line
 and at a lower price - furthermore it would have a larger takeup,
 which means sales folks will tied up with a lot of tyre kickers
 instead of real potential meaty customers. On top of this, if it was
 sold at $5k per CPU or something like that, there would be a lot of
 support required which in turn eats into profit margins for the
 product - recoup investments already outlayed. So in reality for a
 company thats publically listed and has a bunch of folk who demand
 profit margins, kinda damned if you do, damned if you don't.
 
 I am thankful that I have a company who is loaded with $$ so i can
 play with FLEX, but the future of FLEX is going to ramp up radically
 and so i can see pass the price tag and consider it a wise investment.
 
 
 
 
 -- 
 Regards,
 Scott Barnes
 http://www.mossyblog.com
 http://www.flexcoder.com (Coming Soon)
 
 Yahoo! Groups Sponsor   ADVERTISEMENT
 
 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. 
Sent via BlackBerry - a service from ATT Wireless.


 
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: Cyclical References

2005-03-25 Thread Eric Raymond


Apparently it's not so rare...!

If you can't fix the problwm, perhaps there's a tool which will make
it easier to detect and/or track down these issues?

Silently doing the wrong thing in some cases is not a great position
statement for a tools vendor. Of course I would care less about this
if the bug wasn't biting me now, but 

--- In flexcoders@yahoogroups.com, Matt Chotin [EMAIL PROTECTED] wrote:
 
 Thanks to Joe for posting his workaround.  As he says, this is
supposed to
 be a rare case which is why we did not re-write the compiler 





 
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] Any Idea about Cairngorm 1.0?

2005-03-25 Thread Shahnavaz Alware










Hi Steven,



I have seen that there is a reference of PDF file along with
Cairngorm 0.9, but unable to find it L . This
architecture is awesome, I read the book and was able to get the application up
and running.



Thanks,



Shahn











Yahoo! Groups Sponsor


  ADVERTISEMENT 












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] Image caching

2005-03-25 Thread Manish Jethani

On Fri, 25 Mar 2005 11:20:28 -0500, Joe Berkovitz [EMAIL PROTECTED] wrote:

 Basically, it would be really helpful to understand how to minimize
 overhead for repeatedly loading a movieclip from an external URL,
 because even if the URL's response bytes are cached by the browser,
 there's still some significant time that it takes to load the clips.

Have you seen the Google Maps demo?

http://www.flexauthority.com/Samples/gmap/gmap.mxml
http://manish.revise.org/archives/2005/02/12/no-more-xml-from-google-maps/

I'm reusing the same Image objects to display new portions of the map.
 It's still slow the first time an image is downloaded, but after that
it's fast.  I simply set the 'source' property of the Image object to
the new value.  See the code.

http://manish.revise.org/flash/flex/gmap.zip

_Reuse_, not duplicate, is the key.

Manish


 
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] Attaching Custom Component

2005-03-25 Thread Manish Jethani

On Fri, 25 Mar 2005 08:43:58 -0800, Jack Waknitz [EMAIL PROTECTED] wrote:

 I can't get my custom component to show.  Do I need to import it first
 somehow like you would do with a normal component?  It says There is
 no property with the name 'customcomponent'.  Any ideas?

CustomComponent.mxml should be in the same directory as the main app. 
If it isn't, you need to refer to it using its fully-qualified package
path (or just import it).

And CustomComponent.mxml should have both the C's in capital.  Windows
doesn't care about case, but Flex does, so make sure your file is
named correctly.

Manish


 
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] image scroll

2005-03-25 Thread Manish Jethani

On Fri, 25 Mar 2005 08:58:12 -0500, Doodi, Hari - BLS CTR
[EMAIL PROTECTED] wrote:

 Yes, I am zooming image using
 scaleX and scaleY and also I did check my mxml file and parent is not big
 enough to hold the zoomed Image.

A couple of things:

 1.  Use scaleX and scaleY instead of _xscale and _yscale.  The former
will ensure the Loader object resizes and the parent knows about it.
 2.  Why have you set hScrollPolicy and vScrollPolicy to off?  Remove
that and it should work.

Manish


 
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] Security Sandbox Violation when loading image

2005-03-25 Thread Matt Chotin










Im not an expert at this by any
stretch. The security sandbox violation when dealing with images/movies
generally occurs because the SWF that did the loading (myserver.com/index.mxml)
tries to access properties of the loaded movie (otherserver.com/someImage, and
yes I realize it may not be a SWF). Im not sure why properties youd
be trying to access though, maybe depth swapping or something? Maybe the Flex
app does it on its own. I wonder if Manish ran into this with the map example J



As for it working with XML and not with
RemoteObject, that does strike me as strange. The only thing I can think of would
be that somehow establishing a connection to your source server prevents the
SWF from thinking that it should be allowed to contact the other server. Do you
own the other server? Any chance you could try putting a crossdomain.xml file
on there (see technotes for info on crossdomain).



Sorry, not very useful I know,



Matt











From: Kristopher
Schultz [mailto:[EMAIL PROTECTED] 
Sent: Friday, March 25, 2005 10:42
AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Security
Sandbox Violation when loading image







I'm trying to load some images from a different domain
than the one my Flex app lives on. When I do, the debugger prints out a bunch
of errors like this:











*** Security Sandbox Violation ***





SecurityDomain 'http://myserver.com/index.mxml?debug=true'
tried to access incompatible context 'http://otherserver.com/someImage?wid=30'











(Note, the image is dynamically generated and the URL
should not include .jpg)











Despite the errors, my images still seem to load in
successfully, both through the Flex Builder IDE and when viewed directly in IE.
Or so I thought.











The weird thing I've discovered is that if my image paths
are brought into my Flex app via an XML file, then I do get the errors above,
but the images do load successfully. However, if my image paths come in as a
result of a remote object call, I get the same errors and my images DON'T load
successfully. I've double checked the exact path's that are being used in both
situations by tracing out the path immediately before it is used as the value
for the source property of the mx:Image tag and it is
EXACTLY the same in both cases.











So I have questions. First, why do I get those error
messages? Secondly, if there really is a security sandbox violation, why do the
images load successfully under the conditions I mentioned above? And finally,
how do I prevent these violations from occurring in the first place?











Thanks for any insight you can provide.











Kris











-- 











Kristopher Schultz





Developer











Resource Interactive





p: 614.410.2123





www.resource.com






















Yahoo! Groups Sponsor


  ADVERTISEMENT 












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: Cyclical References

2005-03-25 Thread Matt Chotin










I wish I could offer more, obviously its
a bug wed rather not have. If we had a tool that showed the circularity
wed probably also have the fix for it J As for doing the wrong
thing silently, we did not ship the product knowing that this case could
happen. We thought the rare case was the compiler telling you there was a
circularity at all, not binding failing to generate some of its code.



Im hoping that a lot of the work were
doing on the next version will address these kinds of issues.



Matt











From: Eric Raymond
[mailto:[EMAIL PROTECTED] 
Sent: Friday, March 25, 2005 6:14
PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Cyclical
References






Apparently it's not so rare...!

If you can't fix the problwm, perhaps there's a
tool which will make
it easier to detect and/or track down these
issues?

Silently doing the wrong thing in some cases is
not a great position
statement for a tools vendor. Of course I would
care less about this
if the bug wasn't biting me now, but 

--- In flexcoders@yahoogroups.com,
Matt Chotin [EMAIL PROTECTED] wrote:
 
 Thanks to Joe for posting his
workaround. As he says, this is
supposed to
 be a rare case which is why we did not
re-write the compiler 
















Yahoo! Groups Sponsor


  ADVERTISEMENT 












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] Security Sandbox Violation when loading image

2005-03-25 Thread Manish Jethani

On Fri, 25 Mar 2005 20:32:14 -0800, Matt Chotin [EMAIL PROTECTED] wrote:

 wonder if Manish ran into this with the map example J 

The map sample loads images from the same host, but the
flickr/delicious sample loads them directly from flickr.com.
http://www.flexauthority.com/Samples/delicious/WhatsCooking.mxml

I tried running fdb with this, and yes it does show that error message
for every image it loads.

[trace] *** Security Sandbox Violation ***
[trace] SecurityDomain
'http://localhost:8100/test/delicious/WhatsCooking.mxml?re
compile=truedebug=true' tried to access incompatible context 'http://photos3.fl
ickr.com/6430573_f536dcde22_m.jpg'

Then I found this: http://www.visible-form.com/blog/85.html

I tried doing allowDomain() in my app's initialize handler, but it
doesn't seem to help.  I don't know much about this whole
security/sandbox thing, but maybe some on the list who knows can
suggest something based on what I found out so far.

Manish


 
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: Star System]

2005-03-25 Thread Ketan Bengali
here it is..


Sorry.. had all the display code in set.
Shifted it to draw now.

Now it should work.

Attaching the updated file.

P.S: The component checks if the number received as parameter is a whole 
integer else rounds off. Example: if num is 3.49 and lesser rounds to 3 else 
rounds to 4.

Regards,

Ketan Bengali



pioplacz wrote:

have a problem i tryed making it work dynamic like this:

CineRating id=stars rating={dataObject.rate}/

the rate changes on every movie i click but nothing happens it keeps 
the same value as the first one i clicked on. Is it possible to fix 
it? 

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

We have already have a star system which matches your 


requirements .
  

If you need it you can have that. Have attached it with current 


mail.
  

Copy the .swc file to default-war\WEB-INF\flex\user_classes
For safer side restart your server.

mxml code would be:
CineRating id=yourid rating=3 /
rating can be anything from 1 to 5.

Regards,


Sagar Kulkarni
Dipti Mane
Ketan Bengali




pioplacz wrote:



Hi! Was wondering if somebody have any idea if it's possible to 
  

make 
  

a star system like in iTunes? that u grade every song by giving 
  

it 1-
  

5 stars? How can i make something like this? 

My second question? How is it possible to make a search funtion 
  

in 
  

Flex Store Demo Application last time i tryed it would really 
  

work 
  

it worked in the grid view. But when i clicked on the product no 
information were showed in the details part... is it possible to 
  

fix 
  

it? 






Yahoo! Groups Links








 

  






 
Yahoo! Groups Links



 




  



-- 
Regards,

Ketan Bengali
Multimedia Programmer,
Silver Communication Pvt. Ltd.,
Pune.



 
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/
 


CineRating.swc
Description: Binary data