[flexcoders] Re: Using modules and remote objects

2010-09-07 Thread valdhor
I do this all the time. My main application is a shell that loads in the app's 
layout and loads the menu's based on a users access level. This app then loads 
whatever module the user is interested in. Each module has all of its 
functionality encapsulated including its required remoting. This is all using 
Flex 3.x (Whatever the latest version is) as I don't have time to port it to 4 
yet.

Can you post some code? Flex as well as server would be good. PHP would be even 
better.

--- In flexcoders@yahoogroups.com, "ZIONIST"  wrote:
>
> Hi guys i have some issues concerning modules and remote objects. i have an 
> application that is split into modules and in each i use remote objects to 
> display data from the database. the problem is there is no data being 
> displayed and when i try to use the same code in a single app without using 
> modules, the data is displayed. could someone please help me out here. i 
> really need to use modules because it helps reduce the size of my app.
>




[flexcoders] Re: Which URL to use for amfEndpoint in LCCS Project?

2010-09-07 Thread valdhor
>From the description on the web site you don't change that at all. It should 
>point to Adobe's Livecycle collaboration Services site 
>(http://www.adobe.com/ap/products/livecycle/collaborationservice/) which is an 
>Adobe hosted service. You would have to sign up for a free trial to test it 
>(http://www.adobe.com/go/lccs_trial).

--- In flexcoders@yahoogroups.com, "bashababob"  wrote:
>
> I'm new to AIR development.  I'm trying to get this sample app running in 
> Flash Builder:
> 
> http://coenraets.org/blog/2010/08/multi-user-video-tic-tac-toe-for-and roid/  
> http://coenraets.org/tictactoe/tictactoe.fxp
> 
>  
> 
> But I can't figure out what URL to put in as the amfEndpoint in the 
> app-config.xml file that sets the remoteObject.endpoint to get it to work.  
> Do I have to be running ColdFusion server locally or something?
> 
>  
> 
> It would be awesome if that's a quick simple answer someone can give me.  I'm 
> sure it's something silly.  Thanks for your help and patience!
>




[flexcoders] Re: flashBuilder.ini

2010-09-07 Thread valdhor
First off, are you running 32 bit or 64 bit Java? Not to mention Eclipse (Flash 
Builder). NB: Flash Builder is built on Eclipse. It looks like it is 32 bit 
(win32 mentioned in plugins line). This will give a maximum heap size of 2GB 
which you would not be able to set it to as there would not be any memory left 
to work with. Also, a DLL may have loaded into the memory area that the JVM 
wants to use for heap (The JVM needs a contiguous block of memory). Java is 
intelligent enough to give an error if you set initial(Xms) or maximum(Xmx) 
heap size too high.

Some posts that might help you understand these settings...

http://www.eclipsezone.com/eclipse/forums/t104307.html
http://wiki.eclipse.org/Eclipse.ini
http://javahowto.blogspot.com/2006/06/6-common-errors-in-setting-java-heap.html

--- In flexcoders@yahoogroups.com, Mike Slinn  wrote:
>
>   The source code in my message did not look the same in the daily 
> digest as it did online.  I will try posting once again; the biggest 
> memory allocation that I can currently specify in FlashBuilder.ini file is:
> 
> -nl
> en_US
> -startup
> plugins/org.eclipse.equinox.launcher_1.0.201.R35x_v20090715.jar
> --launcher.library
> plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.0.200.v20090519
> -vmargs
> -Xms800m
> -Xmx800m
> -XX:MaxPermSize=384m
> -XX:PermSize=128m
> -Djava.net.preferIPv4Stack=true
> 
> Also, I have seen a report that running Eclipse from a JDK gives more 
> memory control than from a JRE.  That did not make sense to me, but I 
> tried it anyway, by changing the shortcut properties to:
> "E:\Program Files\Adobe\Adobe Flash Builder 4\FlashBuilder.exe" -vm 
> "E:\Program Files\Java\jdk1.6.0_20\bin"
> vs.
> "E:\Program Files\Adobe\Adobe Flash Builder 4\FlashBuilder.exe" -vm 
> "E:\Program Files\Java\jdk1.6.0_20\jre\bin"
> 
> I did not find any difference.
> 
> Mike
>




[flexcoders] Re: how do you guys read flexcoders

2010-09-07 Thread valdhor
I use the Yahoo groups page to read and reply. I use the Nabble Flexcoders page 
to search for posts (http://_.15888.www.nabble.com/Re-f16212.html - not that 
it's working at the moment ;-).

The emailed messages are collected and archived with my mail reader application.

--- In flexcoders@yahoogroups.com, "ew6014"  wrote:
>
> hi guys..
> 
> now that searchcoders dashboard has not been working for sometimes, on a show 
> of hands, how are you guys reading flexcoders mailing list?
> 
> just using rss ??
>




[flexcoders] Re: File Upload with php on Mac

2010-09-07 Thread valdhor
Does file uploading work from an HTML page? Get this working before involving 
AS3.

--- In flexcoders@yahoogroups.com, "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] Re: dynamic data load problem with OLAPDatagrid

2010-09-07 Thread valdhor
Binding problem?

--- In flexcoders@yahoogroups.com, Tejas Patel  wrote:
>
> Single OLAPDatagrid component is not used for dynamic arraycollection data.
> 
> Initially data displayed perfectly and also itemClicked event working 
> perfectly.
> But after data changed dynamically and fetch from DB, data is not displayed 
> perfectly and also itemClicked event not working properly.
> 
> any idea OR guess?
>




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

2010-09-07 Thread Bill Brutzman
My rule of thumb is that if there is data. like a database. then yes. Flex
is the way to go.

 

--Bill

 

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of enridp
Sent: Monday, September 06, 2010 2:15 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] I don't know if I need Flex (please help me to decide)

 

  

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.





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

2010-09-07 Thread Mike
I did something like this for EBay.  I defined a hierarchy of Equation classes, 
including linear, nth order polynomials, power law.  The base Equation class 
provided common functionality such as data initialization and solving for the 
unknown gien a variable.  Applications could then be written that called the 
library function in real time, so a mouse could be tracked while live X and Y 
intercepts were displayed, etc.  Sorry I can't offer the source code.  
Hopefully this gives you an idea of how you might proceed.

Mike



[flexcoders] Re: Using modules and remote objects

2010-09-07 Thread Mike
I recently did something like this for Cisco.  They needed a way for a 
sub-Application to invoke a method in another sub-Application, which might not 
be loaded.  The solution was to derive the sub-Applications from a common base 
class and use the main Application as a broker.  The broker listened to 
function invocation request events.  Results of the method calls were made 
available by a custom event that was dispatched by the called method upon 
completion.

Here is a clue to how to implement this type of mechanism: the SWFLoader that 
loads a sub-Application has a property called content, which is actually the 
sub-Application's FlexGlobals.topLevelApplication once the sub-Application 
loads.

Confused? I created a UML sequence diagram, a static object model diagram and a 
text narrative to document how the mechanism worked.  Anyone else attempting 
something similar is well advised to do the same.

Mike



[flexcoders] Re: flashBuilder.ini

2010-09-07 Thread Mike
I am using a 32 bit JDK because as you have guessed FB is not 64 bit capable at 
this time.

BTW, I have discovered that command line vmargs do not override settings 
specified in the ini file, contrary to the docs.  In other words, given the ini 
file I posted earlier, the following does not affect Xmx:

"E:\Program Files\Adobe\Adobe Flash Builder 4\FlashBuilder.exe" -vm "E:\Program 
Files\Java\jdk1.6.0_20\bin" -Xmx1500m

It would be more helpful to post complete and working ini files that provide 
>800M of heap.  "In theory there is no difference between theory and practice. 
In practice there is." -- Attributed to Jan L. A. van de Snepscheut, Yogi Berra 
and Albert Einstein.


> > FlashBuilder.ini file is:
> > 
> > -nl
> > en_US
> > -startup
> > plugins/org.eclipse.equinox.launcher_1.0.201.R35x_v20090715.jar
> > --launcher.library
> > plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.0.200.v20090519
> > -vmargs
> > -Xms800m
> > -Xmx800m
> > -XX:MaxPermSize=384m
> > -XX:PermSize=128m
> > -Djava.net.preferIPv4Stack=true
> > 

Mike



[flexcoders] Re: flashBuilder.ini

2010-09-07 Thread valdhor


--- In flexcoders@yahoogroups.com, "Mike"  wrote:
>
> I am using a 32 bit JDK because as you have guessed FB is not 64 bit capable 
> at this time.

QED You have only 2GB of usable memory.

> It would be more helpful to post complete and working ini files that provide 
> >800M of heap.

One person's ini file that works is probably not going to work on your system. 
It's all dependent on the DLL's that are loaded and where they position 
themselves in memory (They generally have a preferred location). In your case 
you have a loaded DLL (or more) that is/are loaded in memory somewhere inside 
the 2GB that is available. The JVM has determined that there is a contiguous 
800MB of memory and limits you to that.

Someone could post an ini file that works for him/her but they would have 
different DLL's loaded so that ini file will not work for you.

You can either try to unload the various DLL's you have or find some way to 
move their preferred memory location.



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

2010-09-07 Thread enridp
Yes, there's a lot of data.
But I was thinking in AMFPHP for that.
I think the alternatives are:
1) Adapting the Flex code that I need to a pure AS3 project (I'm not sure if 
this is possible in all the casses)
2) Using RSL's

Because I can't start my project with 200Kb, the size is a really big problem.
Can you (or someone) help me with some of the 2 options?
I have not experience in it, so I can't think in possible problems with those 
solutions (Flex->AS3 and RSL's), can you see the problems?


--- In flexcoders@yahoogroups.com, "Bill Brutzman"  wrote:
>
> My rule of thumb is that if there is data. like a database. then yes. Flex
> is the way to go.
> 
>  
> 
> --Bill
> 



[flexcoders] Flex Developers in Houston

2010-09-07 Thread Prakash M
Hi Guys,

Is there any one in Houston, TX working on Flex. If so please reply me.

Thanks,
Prakash.




[flexcoders] Re: ItemDoubleClick ListEvent not fired even with doubleClickEnabled = true

2010-09-07 Thread carnau...@ymail.com
Hello,

Does anyone know any work-arround for this  "ItemDoubleClick not
fired..."  issue ?

I've noticed a similar post, for the same issue, here :
http://raghuonflex.wordpress.com/2007/08/10/assigning-different-behavior\
s-on-click-doubleclick/#comment-5350

Any help on this item being very appreciated,

With thanks,

Regards.


--- In flexcoders@yahoogroups.com, "carnau...@..." 
wrote:
>
> Hello,
>
> I'm facing an issue with the "itemDoubleClick" event that is "most of
the time..." not fired/received through my WindowedApplication.
>
> Please fing here-after my MXML code together with my AS listener :
within the "ListPressed" constructor, the "doubleClickEnabled" property
is set to TRUE !  I also tried the same by setting "doubleClickEnabled"
within the MXML below with no success : doubleClickEnabled="true".
>
> Did anyone already met this Problem ?
> Is there maybe a Workarroud that we can apply ?
>
> With Thanks,
>
> Regards.
>
>
>
> // My List DOUBLE CLICL Listener
> private function handleDoubleClickZoneC(event:ListEvent):void
> {
> // THIS TRACE IS DUMPED ONLY SOMETIMES (~ once over 5...10 times)
> trace("ViewManager/handleDoubleClickZoneC()");
> }
>
>
> // My MXML AIR application
>
> 
> http://www.adobe.com/2006/mxml";
>  xmlns:component="component.*"
>  horizontalScrollPolicy="off" verticalScrollPolicy="off"
>  showGripper="false" showStatusBar="false" showTitleBar="true"
>  width="346" height="170" explicitHeight="170" headerHeight="16"
borderThickness="2"
>  layout="absolute" creationComplete="init()">
>
> x="0" y="130" width="342" height="10"
>   select="handleLeftButtonPressed()"
>   change="handleClickZoneC(event)"
>   itemDoubleClick="handleDoubleClickZoneC(event)"
>   dataProvider="{callModel.provider}">
>   
>
> 
>  
>   styleName="itemContact"
>text="{data.fullName}"/>
>   styleName="itemLabel"
>text="{data.day}"/>
>   
>  
>  
>   source="{data.type}"/>
>   text="{data.number}"/>
>   text="{data.duration}"/>
>  
> 
>
>   
>  
>
> ...
> ...
>



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

2010-09-07 Thread enridp
Yes, that helps a lot.
I was searching and I found this:
http://www.logicalchaostheory.com/2008/02/10/remoteobject-for-flash-cs3/
I have not tested it yet, so I don't know if it has problems.
But what happens with applications like WebOrb? do you think faking the 
RemoteObject class will work?
Also, "Serialization and de-serialization on the server side", is solved by 
WebOrb, I think that's won't be my problem (or yes? :S)

I'm trying to download the open source of Flex, and I found this:
http://opensource.adobe.com/wiki/display/flexsdk/Download+Flex+4
http://opensource.adobe.com/wiki/display/flexsdk/Downloads

I think I need the "Open Source Flex SDK", but what is inside "Adobe Add-ons 
for Open Source Flex SDK"? 


--- In flexcoders@yahoogroups.com, claudiu ursica  wrote:
>
> 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



[flexcoders] Flex Developers in Houston

2010-09-07 Thread Brendan Meutzner
Why?  Can you give a bit more info on what you're looking for?


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

2010-09-07 Thread claudiu ursica
AMFPHP works with flash also. You need to update the data yourself within 
controls since no bindings are available, but it will be working. 

C



From: enridp 
To: flexcoders@yahoogroups.com
Sent: Tue, September 7, 2010 5:09:34 PM
Subject: [flexcoders] Re: I don't know if I need Flex (please help me to decide)

   
Yes, there's a lot of data.
But I was thinking in AMFPHP for that.
I think the alternatives are:
1) Adapting the Flex code that I need to a pure AS3 project (I'm not sure if 
this is possible in all the casses)
2) Using RSL's

Because I can't start my project with 200Kb, the size is a really big problem.
Can you (or someone) help me with some of the 2 options?
I have not experience in it, so I can't think in possible problems with those 
solutions (Flex->AS3 and RSL's), can you see the problems?

--- In flexcoders@yahoogroups.com, "Bill Brutzman"  wrote:
>
> My rule of thumb is that if there is data. like a database. then yes. Flex
> is the way to go.
> 
> 
> 
> --Bill
> 


 


  

[flexcoders] Module-friendly modals

2010-09-07 Thread Richard Rodseth
Someone on the Mate forums advocated a way to treat a modal popup as a
state of a view, where the presentation model has a "modalShown"
property, and the view observes it using bindSetter.

This has the nice effect of avoiding the need to pass in
Application.application to createPopUp, but it's obviously quite a bit
more work to create the bubbling events and injections. And in the end
you typically want to center the popup over the whole application,
rather than some intermediate container.

So I find myself wondering if there is a cleaner way than
Application.application to refer to the root context. Follow the
DisplayObject.parent chain until it's null?


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

2010-09-07 Thread Bill Brutzman
Consider also Adobe's ColdFusion.  I have found ColdFusion to be easier to
use and more robust than PHP.

 

--Bill

 

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of enridp
Sent: Tuesday, September 07, 2010 11:10 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: I don't know if I need Flex (please help me to
decide)

 

  

Yes, there's a lot of data.
But I was thinking in AMFPHP for that.
I think the alternatives are:
1) Adapting the Flex code that I need to a pure AS3 project (I'm not sure if
this is possible in all the casses)
2) Using RSL's

Because I can't start my project with 200Kb, the size is a really big
problem.
Can you (or someone) help me with some of the 2 options?
I have not experience in it, so I can't think in possible problems with
those solutions (Flex->AS3 and RSL's), can you see the problems?

--- In flexcoders@yahoogroups.com  ,
"Bill Brutzman"  wrote:
>
> My rule of thumb is that if there is data. like a database. then yes. Flex
> is the way to go.
> 
> 
> 
> --Bill
> 





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

2010-09-07 Thread napearson99
I mean, you would think you could just give the line series the X value and it 
could tell you the current Y value.  Couldn't be that simple, right?

--- In flexcoders@yahoogroups.com, "Mike"  wrote:
>
> I did something like this for EBay.  I defined a hierarchy of Equation 
> classes, including linear, nth order polynomials, power law.  The base 
> Equation class provided common functionality such as data initialization and 
> solving for the unknown gien a variable.  Applications could then be written 
> that called the library function in real time, so a mouse could be tracked 
> while live X and Y intercepts were displayed, etc.  Sorry I can't offer the 
> source code.  Hopefully this gives you an idea of how you might proceed.
> 
> Mike
>




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

2010-09-07 Thread napearson99
*wshh*

That's the sound your post just made going by my noggin :).

I was hoping there was something built into flex for this.  Does anyone have a 
simple way of figuring this out?

Thanks for responding though mike, I appreciate even if I'm not smart enough to 
understand it :).

--- In flexcoders@yahoogroups.com, "Mike"  wrote:
>
> I did something like this for EBay.  I defined a hierarchy of Equation 
> classes, including linear, nth order polynomials, power law.  The base 
> Equation class provided common functionality such as data initialization and 
> solving for the unknown gien a variable.  Applications could then be written 
> that called the library function in real time, so a mouse could be tracked 
> while live X and Y intercepts were displayed, etc.  Sorry I can't offer the 
> source code.  Hopefully this gives you an idea of how you might proceed.
> 
> Mike
>




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

2010-09-07 Thread Brendan Meutzner
Lol... yeah there's an easier way ;-)

It's been a long time, so I can't explain fully off the top of my head, but
check out the dataTransform object and specifically invertTransform(x,y)
which takes screen coordinates and returns the axis values at that point.
 You can look into a blog post I did many years ago which will contain all
the wisdom you need (I hope), although it's fairly involved and may have a
lot you're not interested in.

Here's the post, and source link.  Specifically check out
com.cnet.annotation.view.AnnotationDrawLayer
for the getChartCoordinates() method.  Additionally, Ely Greenfield created
a solution for easy charting translations... don't remember the name of the
package, but check out his blog (www.quietlyscheming.com).


http://www.visualconcepts.ca/clients/cnet/ChartAnnotation.html

http://www.visualconcepts.ca/clients/cnet/srcview/index.html


Hope this helps... without the whooshing sound :-)




On Tue, Sep 7, 2010 at 6:54 PM, napearson99  wrote:

>
>
> I mean, you would think you could just give the line series the X value and
> it could tell you the current Y value. Couldn't be that simple, right?
>
>
> --- In flexcoders@yahoogroups.com , "Mike"
>  wrote:
> >
> > I did something like this for EBay. I defined a hierarchy of Equation
> classes, including linear, nth order polynomials, power law. The base
> Equation class provided common functionality such as data initialization and
> solving for the unknown gien a variable. Applications could then be written
> that called the library function in real time, so a mouse could be tracked
> while live X and Y intercepts were displayed, etc. Sorry I can't offer the
> source code. Hopefully this gives you an idea of how you might proceed.
> >
> > Mike
> >
>
>  
>