Re: [flexcoders] Re: Using modules and remote objects

2010-09-06 Thread Alex Harui
It depends.  Folks who have a large application crunching a single source of 
data are more likely to put the data classes in the main app and just use the 
modules to late-load UI and business logic.

Folks building portals probably should require 10.1 and use Marshall Plan 
configurations.

It is technically possible to put the data classes in a  “never-unload” module 
and load it into the main-app and load the UI and business logic in a separate 
module that will unload.


On 9/6/10 12:28 AM, "ZIONIST"  wrote:






so hw do i solve the problem while still using modules?






--
Alex Harui
Flex SDK Team
Adobe System, Inc.
http://blogs.adobe.com/aharui


[flexcoders] Re: Question about using [RemoteClass(alias="...")]

2010-09-06 Thread John Mesheimer
Forgive me, I be a dingbat...

By setting the "[RemoteClass(alias="...")]" line, the thing I got back from
the server was not an ArrayCollection of generic Objects, but of strongly
typed Review (AS) objects, which didn't need any casting.

All solved now. Nothing to see here...


On Mon, Sep 6, 2010 at 1:52 PM, John Mesheimer wrote:

> I have an ActionScript class that creates a custom Review object, like so:
>
> / Review.as
> / Taken from one of Adobe's online samples
> package samples.restaurant
> {
> import mx.formatters.DateFormatter;
>
> // [RemoteClass(alias="samples.restaurant.Review")]
> [Bindable]
> public class Review
> {
> public function Review(source:Object=null)
> {
> // some date formatting stuff happens here
> }
>
> public var restaurantId:int;
> public var restaurantName:String;
> public var restaurant:Object;
> public var reviewDate:Date;
> public var reviewer:String;
> public var rating:Number;
> public var title:String;
> public var reviewText:String;
> public var email:String;
>
> }
>
> }
>
> This class lets me take an ArrayCollection of generic Objects from the
> server, loop through it with something like "new Review(source[i])" and get
> a bunch of Review objects in an ArrayCollection. Works perfectly.
>
> I also need to be able to write a Review object (a Java object) to the
> server, so I add "[RemoteClass(alias="samples.restaurant.Review")]" above
> the ActionScript class declaration. This way I can declare a "public var
> review:Review", call an "addReview(review)" on my RemoteObject service, and
> my server receives a Review Java object. This works perfectly too.
>
> The problem is that once I add this "[RemoteClass(alias="...")]" line,
> doing "new Review(source[i])" no longer works as expected. Given the same
> ArrayCollection of generic Objects as before, "new Review(source[i])" will
> still create a Review object, but now all its properties are null.
>
> If I comment out the "[RemoteClass(alias="...")]" line I can properly cast
> generic objects to Review objects again (but then I am no longer able to
> send a Review Java object to the server).
>
> Is this the way it's supposed to work? (I hope I've stated my problem
> clearly.) How can I accomplish both tasks using a single Review.as class?
>
> Thanks for any help, folks.
>
> John
>
> PS. I am using the Flex 3.5 SDK.
>


[flexcoders] Line Chart, I have a X value, how can I find the Y value?

2010-09-06 Thread napearson99
I have a line chart with time on the bottom and a linear axis for Y.

I have the user click on the graph and I get my X value, but I have to 
calculate the Y value since the user might click anywhere on the Y axis.

Any ideas how I could do this?

Thanks!

-Nate



Re: [flexcoders] I don't know if I need Flex (please help me to decide)

2010-09-06 Thread claudiu ursica
You know that RemoteObject is built on top of NetConnection. What you 
ultimately 
do is make remote procedure calls. You don't need flex but then you need to do 
the work yourself. Serialization and de-serialization on the server side. On 
the 
other hand flex is open source so If you don't need something visual you just 
take the source code from flex compile it with your flash app and you should be 
good to go. I deed that with the base 64 encoder/decoders and except for a 
resource manager reference which I did not need after all it was ok. Depending 
on your needs you can take that source code and play with it.

HTH in some way,
C


hink could be a lot some "problems":
1) the first download will be very slow
2) if my RSL is not cached for any reason then nobody will be visiting the site 
again
3) what happens if I need to protect some project? I've read an article about 
Nitro-LM with RSL's (I don't know if it's the best option, for the moment I 
have 
never protected any code...), but if our RSL is encrypted, will be cached then?
4) I don't know, is there any other problem with RSL's? what do you think?

I was reading about using Flex without the Flex Framework, and I like that 
idea, 
but what happens if I need a component? just one? I need to include again 
+200KB 
of code?

I was thinking in working purely in AS3 and reusing some classes from Flex 
without embedding all the framework (my first goal is to make a really light 
version).
I want to use Flex because there are some classes and components that I don't 
have in Flash, and I need them, like RemoteObject.

So, I need some of the Flex Classes but I need a very light SWF.
Is possible to achieve that with Flex?

Thanks!
Enrique.


 


  

[flexcoders] Question about using [RemoteClass(alias="...")]

2010-09-06 Thread John Mesheimer
I have an ActionScript class that creates a custom Review object, like so:

/ Review.as
/ Taken from one of Adobe's online samples
package samples.restaurant
{
import mx.formatters.DateFormatter;

// [RemoteClass(alias="samples.restaurant.Review")]
[Bindable]
public class Review
{
public function Review(source:Object=null)
{
// some date formatting stuff happens here
}

public var restaurantId:int;
public var restaurantName:String;
public var restaurant:Object;
public var reviewDate:Date;
public var reviewer:String;
public var rating:Number;
public var title:String;
public var reviewText:String;
public var email:String;

}

}

This class lets me take an ArrayCollection of generic Objects from the
server, loop through it with something like "new Review(source[i])" and get
a bunch of Review objects in an ArrayCollection. Works perfectly.

I also need to be able to write a Review object (a Java object) to the
server, so I add "[RemoteClass(alias="samples.restaurant.Review")]" above
the ActionScript class declaration. This way I can declare a "public var
review:Review", call an "addReview(review)" on my RemoteObject service, and
my server receives a Review Java object. This works perfectly too.

The problem is that once I add this "[RemoteClass(alias="...")]" line, doing
"new Review(source[i])" no longer works as expected. Given the same
ArrayCollection of generic Objects as before, "new Review(source[i])" will
still create a Review object, but now all its properties are null.

If I comment out the "[RemoteClass(alias="...")]" line I can properly cast
generic objects to Review objects again (but then I am no longer able to
send a Review Java object to the server).

Is this the way it's supposed to work? (I hope I've stated my problem
clearly.) How can I accomplish both tasks using a single Review.as class?

Thanks for any help, folks.

John

PS. I am using the Flex 3.5 SDK.


[flexcoders] I don't know if I need Flex (please help me to decide)

2010-09-06 Thread enridp
Hi! I will try to explain my situation:
I'm a Flash developer (not a good one, just one more...), I know AS3, OOP, I 
can read MXML and I've read a lot about Flex in the last days, although I have 
never used it.
And there's a reason for that, the SWF size, I'm from Argentina, and here 
internet is really slow in many places (mine is 128kbps for example, so to load 
a SWF of just 150KB I need to wait approx. 10 seconds)

I was reading about RSL's to solve that, and it looks good, but I think could 
be a lot some "problems":
1) the first download will be very slow
2) if my RSL is not cached for any reason then nobody will be visiting the site 
again
3) what happens if I need to protect some project? I've read an article about 
Nitro-LM with RSL's (I don't know if it's the best option, for the moment I 
have never protected any code...), but if our RSL is encrypted, will be cached 
then?
4) I don't know, is there any other problem with RSL's? what do you think?

I was reading about using Flex without the Flex Framework, and I like that 
idea, but what happens if I need a component? just one? I need to include again 
+200KB of code?

I was thinking in working purely in AS3 and reusing some classes from Flex 
without embedding all the framework (my first goal is to make a really light 
version).
I want to use Flex because there are some classes and components that I don't 
have in Flash, and I need them, like RemoteObject.

So, I need some of the Flex Classes but I need a very light SWF.
Is possible to achieve that with Flex?

Thanks!
Enrique.



RE: [flexcoders] "Find in Files" in Flash Builder 4

2010-09-06 Thread Pearl Fernandes
Use the shortcut key Ctrl+Shift+F. It opens the Find in Files dialog.

 



From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of markflex2007
Sent: Monday, September 06, 2010 10:09 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] "Find in Files" in Flash Builder 4

 

  

Hi

I use Flex Builder 3 before . I can search string cross my files by
using 

Find in Files (under Edit menu),but I can not do this with FB4.

Please help me how to search my files by a string.

Thanks

Mark




__
 DISCLAIMER: This electronic message and any attachments to this electronic
 message is intended for the exclusive use of the addressee(s) named herein
 and may contain legally privileged and confidential information. It is the 
 property of Celstream Technologies Pvt Limited. If you are not the intended
 recipient, you are hereby strictly notified not to copy, forward, distribute
 or use this message or any attachments thereto. If you have received this
 message in error, please delete it and all copies thereof, from your system
 and notify the sender at Celstream Technologies or 
 administra...@celstream.com immediately.
__


Re: [flexcoders] "Find in Files" in Flash Builder 4

2010-09-06 Thread chenrijano
Mungkin ditelp aja yul, emailnya bounce
NOT®

-Original Message-
From: "markflex2007" 
Sender: flexcoders@yahoogroups.com
Date: Mon, 06 Sep 2010 04:39:20 
To: 
Reply-To: flexcoders@yahoogroups.com
Subject: [flexcoders] "Find in Files" in Flash Builder 4

Hi

I use Flex Builder 3 before . I can search string cross my files by using 

Find in Files (under Edit menu),but I can not do this with FB4.

Please help me how to search my files by a string.

Thanks

Mark




Re: [flexcoders] Setting a custom Air app version/ release number

2010-09-06 Thread Nick Middleweek
ah nice one Rob, thank you.




On 6 September 2010 14:09, Rob Parkhill  wrote:

>
>
> There is a version number section in the XML for the application. Same
> place where you can enter app name and such.
>
> Rob
>
> --
> *From:* Nick Middleweek 
> *To:* flexcoders@yahoogroups.com
> *Sent:* Mon, September 6, 2010 5:22:17 AM
> *Subject:* [flexcoders] Setting a custom Air app version/ release number
>
>
>
> Hi,
>
> When I install the Air app that I've just created using Export Release
> Build I can see a version number in the installation window but it's always
> set to the same value... How can I change this? Are there any rules or
> gotchas around it as well? Other Air apps I've installed have custom version
> numbers and this would be handy for releases...
>
>
> Thanks,
> Nick
>
>
>  
>



-- 
Sent by Nick Middleweek ( { email: n...@middleweek.co.uk, mobile: +44(0)774
035 5424, blog: http://blog.middleweek.co.uk } );


Re: [flexcoders] Setting a custom Air app version/ release number

2010-09-06 Thread Rob Parkhill
There is a version number section in the XML for the application. Same place 
where you can enter app name and such.

Rob




From: Nick Middleweek 
To: flexcoders@yahoogroups.com
Sent: Mon, September 6, 2010 5:22:17 AM
Subject: [flexcoders] Setting a custom Air app version/ release number

  
Hi,

When I install the Air app that I've just created using Export Release Build I 
can see a version number in the installation window but it's always set to the 
same value... How can I change this? Are there any rules or gotchas around it 
as 
well? Other Air apps I've installed have custom version numbers and this would 
be handy for releases...


Thanks,
Nick


 



Re: [flexcoders] File Upload with php on Mac

2010-09-06 Thread meaglith
FileType?

---
Blog: http://douhua.im
Twitter: http://twitter.com/genedna
Website: http://douhua.im
---


On Sun, Sep 5, 2010 at 9:09 PM, Christophe wrote:

> Hello,
>
> What is the specificity of the Mac plateform, because my upload function
> with AS3 and Php is working on Pc but not on Mac.
>
> Thank you,
> Christophe,
>
>
>
>
> 
>
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Alternative FAQ location:
> https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
> Search Archives:
> http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups
> Links
>
>
>
>


[flexcoders] Setting a custom Air app version/ release number

2010-09-06 Thread Nick Middleweek
Hi,

When I install the Air app that I've just created using Export Release Build
I can see a version number in the installation window but it's always set to
the same value... How can I change this? Are there any rules or gotchas
around it as well? Other Air apps I've installed have custom version numbers
and this would be handy for releases...


Thanks,
Nick


RE: [flexcoders] how do you guys read flexcoders

2010-09-06 Thread Gregor Kiddie
In Outlook using the conversation view.

 

Plus it means I've got lovely Flexcoders archives dating back to 2005 ;)



Re: [flexcoders] "Find in Files" in Flash Builder 4

2010-09-06 Thread Haykel BEN JEMIA
It's now under the 'Search' menu.

Le 2010 9 6 05:50, "markflex2007"  a écrit :
> Hi
>
> I use Flex Builder 3 before . I can search string cross my files by using
>
> Find in Files (under Edit menu),but I can not do this with FB4.
>
> Please help me how to search my files by a string.
>
> Thanks
>
> Mark
>


Re: [flexcoders] "Find in Files" in Flash Builder 4

2010-09-06 Thread claudiu ursica
ctrl + shift + f or under eclipse ctrl + h

C





From: markflex2007 
To: flexcoders@yahoogroups.com
Sent: Mon, September 6, 2010 6:39:20 AM
Subject: [flexcoders] "Find in Files" in Flash Builder 4

   
Hi

I use Flex Builder 3 before . I can search string cross my files by using 

Find in Files (under Edit menu),but I can not do this with FB4.

Please help me how to search my files by a string.

Thanks

Mark


 


  

[flexcoders] Re: Using modules and remote objects

2010-09-06 Thread ZIONIST
so hw do i solve the problem while still using modules?