Re: [flexcoders] Which AIR SDK to use with Flex?

2014-10-25 Thread Mark Jonkman mark.jonk...@comcast.net [flexcoders]
If you can also add the command line option -useLegacyAOT yes to make sure. The 
issues with new compiler 'fast compiler' seem to be with overridden methods not 
having same number of parameters and using swcs compiled with older versions of 
the compiler. So your mileage may vary from mine or others depending on your 
project.

My project is huge so it would take hours to unwind issues caused by the fast 
compiler. Though my iOS builds which average 30min went down to 15 min with new 
compiler.

Mark

> On Oct 25, 2014, at 10:23 AM, "Dave Glasser dglas...@pobox.com [flexcoders]" 
>  wrote:
> 
> 
> 
> Mark, thanks for the reply. 
> 
> I don't use Flex builder, just Apache ant and the Flex and AIR SDKs. I was 
> able to build the Flex/iOS app with both versions of the 15.0.0.302 SDK in 
> their default configurations, so I guess the one with the new compiler uses 
> the old one by default. (At least from the command line.)  I'm going to stick 
> with the SDK without the new compiler though, just to be on the safe side.
> 
> 
> On Saturday, October 25, 2014 9:39 AM, "'Mark R. Jonkman' 
> mark.jonk...@comcast.net [flexcoders]"  wrote:
> 
> 
> 
> 
> I’m guessing it mostly has to do with mxml compiling. The old compiler would 
> have to handle both types of input – ActionScript and MXML and generate 
> ActionScript code based on the MXML and then generate the final product. If 
> your Adobe and you no longer support MXML yourself then there is no reason to 
> keep it around in future generations of the compiler – especially where speed 
> becomes an issue.
>  
> I hit a lot of problems this week with the new fast compiler. AIR SDK 15 
> switched from using the legacy compiler to the new fast compiler as its 
> default compiler. My project uses just a small portion of the FLEX framework 
> – just enough stuff to connect with the backend server running BlazeDS and 
> sending stuff over AMF. As a matter of fact we actually put the classes we 
> used into our own project and as far as we knew, no longer linked against any 
> of the Flex framework SWCs. However after the switch to the new AIR SDK 15 
> the project started blowing chunks. It would not find about 8 interfaces and 
> classes from the Flex framework.  Eventually I traced it down to possible 
> being the swc cache that Flash Builder stores in the workspace .metadata 
> folder (I think). I deleted all the files in the swc  cache and the errors 
> finally went away. It took hours to track that down. Then I finally got the 
> project compile into an iOS IPA file and installed it on my iPad – crash 
> after a few seconds of running. AIR simulator no problem, iOS Simulator no 
> problem. But a debug or release runtime and crash.. Then I realized that they 
> had changed the default compiler to the fast, switched back to the legacy AOT 
> compiler and everything worked perfectly.
>  
> Unfortunately if iOS is your target you have almost no choice but to upgrade 
> to AIR SDK 15. Apple changed the requirements for uploading and all the old 
> SDKs will not produce an IPA that will be accepted (unless you experiment 
> with changing the linker and that sounded more like Voodoo then a long term 
> solution). And the AIR SDK must be the one from at least Oct 14, 2014.
>  
> If you did not already know – The AIR SDK is located in two places one is the 
> Flash Builder 4.7/eclipse/plugin folder (Used by ActionScript projects) and 
> the other is in the Flash Builder 4.7/sdks folder. The plugin folder is for 
> ActionScript only projects and the other in the sdk folder is for Flex 
> projects. At least as near as I can determine.
>  
> I would download the default AIR SDK to use with any ActionScript projects – 
> it’s the SDK that gets put into the eclipse/plugin/actionscript compiler…. 
> Location.
>  
> For Flex projects, download the alternative and drop it into the sdks/4.6.0 
> folder in Flash Builder.
>  
> This way you have both compilers setup and useable based on the type of 
> project your working on.
>  
> If you hit the same situation I did with iOS output, then on the project 
> settings, iOS settings – click customize launch button, click add parameter, 
> enter –useLegacyAOT for name and for value enter yes. Then click the before.. 
> radio button and choose –provisioning_profile (or something like that). I 
> don’t have my work computer open so I might be off on a couple of name of the 
> before radio button and the entery in the drop down list – but it’s the only 
> entry with provision profile or similar in the name.
>  
> Sincerely
> Mark R. Jonkman
>  
> From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] 
> Sent: Thursday, October 23, 2014 12

RE: [flexcoders] Which AIR SDK to use with Flex?

2014-10-25 Thread 'Mark R. Jonkman' mark.jonk...@comcast.net [flexcoders]
I’m guessing it mostly has to do with mxml compiling. The old compiler would 
have to handle both types of input – ActionScript and MXML and generate 
ActionScript code based on the MXML and then generate the final product. If 
your Adobe and you no longer support MXML yourself then there is no reason to 
keep it around in future generations of the compiler – especially where speed 
becomes an issue. 

 

I hit a lot of problems this week with the new fast compiler. AIR SDK 15 
switched from using the legacy compiler to the new fast compiler as its default 
compiler. My project uses just a small portion of the FLEX framework – just 
enough stuff to connect with the backend server running BlazeDS and sending 
stuff over AMF. As a matter of fact we actually put the classes we used into 
our own project and as far as we knew, no longer linked against any of the Flex 
framework SWCs. However after the switch to the new AIR SDK 15 the project 
started blowing chunks. It would not find about 8 interfaces and classes from 
the Flex framework.  Eventually I traced it down to possible being the swc 
cache that Flash Builder stores in the workspace .metadata folder (I think). I 
deleted all the files in the swc  cache and the errors finally went away. It 
took hours to track that down. Then I finally got the project compile into an 
iOS IPA file and installed it on my iPad – crash after a few seconds of 
running. AIR simulator no problem, iOS Simulator no problem. But a debug or 
release runtime and crash.. Then I realized that they had changed the default 
compiler to the fast, switched back to the legacy AOT compiler and everything 
worked perfectly. 

 

Unfortunately if iOS is your target you have almost no choice but to upgrade to 
AIR SDK 15. Apple changed the requirements for uploading and all the old SDKs 
will not produce an IPA that will be accepted (unless you experiment with 
changing the linker and that sounded more like Voodoo then a long term 
solution). And the AIR SDK must be the one from at least Oct 14, 2014. 

 

If you did not already know – The AIR SDK is located in two places one is the 
Flash Builder 4.7/eclipse/plugin folder (Used by ActionScript projects) and the 
other is in the Flash Builder 4.7/sdks folder. The plugin folder is for 
ActionScript only projects and the other in the sdk folder is for Flex 
projects. At least as near as I can determine.

 

I would download the default AIR SDK to use with any ActionScript projects – 
it’s the SDK that gets put into the eclipse/plugin/actionscript compiler…. 
Location.

 

For Flex projects, download the alternative and drop it into the sdks/4.6.0 
folder in Flash Builder. 

 

This way you have both compilers setup and useable based on the type of project 
your working on.

 

If you hit the same situation I did with iOS output, then on the project 
settings, iOS settings – click customize launch button, click add parameter, 
enter –useLegacyAOT for name and for value enter yes. Then click the before.. 
radio button and choose –provisioning_profile (or something like that). I don’t 
have my work computer open so I might be off on a couple of name of the before 
radio button and the entery in the drop down list – but it’s the only entry 
with provision profile or similar in the name.

 

Sincerely
Mark R. Jonkman

 

From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] 
Sent: Thursday, October 23, 2014 12:40 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Which AIR SDK to use with Flex? [1 Attachment]

 

[Attachment(s) from Dave Glasser included below] 




 

>From the PDF I gather that you can't build Flex apps with the AIR SDK, which 
>makes sense. But the notice on the page suggests that you should not package 
>Flex Apps as AIR apps using the full AIR SDK, but rather the stripped down AIR 
>SDK. I tried using the ADT from the full AIR SDK to package my Flex app for 
>iOS and it works. So I'm wondering why Adobe has a separate AIR SDK for Flex 
>apps. I wouldn't think the minor difference in download file sizes would be 
>the sole reason.

 

On Thursday, October 23, 2014 12:20 PM, "John McCormack j...@easypeasy.co.uk 
[flexcoders]"  wrote:

 

[ <https://us-mg6.mail.yahoo.com/neo/launch?.rand=4d328m9fkp613#TopText> 
Attachment(s) from John McCormack included below] 

The link "Read the ActionScript Compiler 2.0 (PDF, 20Kb) 
<http://wwwimages.adobe.com/content/dam/Adobe/en/devnet/flashplayer/pdfs/adobe-actionscript-compiler-20-release-notes.pdf>
 file"
explains that "... it does not support 

mxmlc

compc

compiling Flex applications"

Maybe its because some of Flex code is now run by Apache Foundation.

John

On 23/10/2014 16:26, Dave Glasser dglas...@pobox.com [flexcoders] wrote:

On the download page for the AIR SDK:

 

http://www.adobe.com/devnet/air/air-sdk-download.html

 

 

It says:

 

Note: Flex users will need to down

[flexcoders] Mark Shen

2013-02-26 Thread Mark Shen
   
http://www.multimaticagalega.com/hm/q6wn.1pbu9s?ol0ndfm4p6bz0p4ocfn3afg09mdzcp;
   Mark Shen2/26/2013 6:35:09 PM

RE: [flexcoders] Re: From DataGrid to Clipboard and Excel

2013-01-19 Thread Mark Fuqua
Very sweet.I don't have a particular use for this right now.but I'll sure be
looking for one!

 

From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On
Behalf Of Tony Obermeit
Sent: Saturday, January 19, 2013 12:59 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: From DataGrid to Clipboard and Excel

 

  

This isn't exactly what you asked about but it's close.

I use the method below to copy selected rows to clipboard.  In this use I
have a tab character to separate the columns, elsewhere I provide the user
the choice between tab and comma with a separate dialog.

private function syncCopyToClipboard():void 
{
// Separator used between Strings sent to clipboard
// to separate selected cells.
var separator:String = "\t";
if (syncComma.selected) separator = ",";

// The String sent to the clipboard
System.setClipboard(" ");
var dataString:String = "";
var n:int = dgSyncGroupMembers.selectedCells.length;
if (n == 0)
{
Alert.show("You have not selected any rows, to select
all rows: click on the first row, scroll to the bottom and shift click on
the last row. Otherwise, select specific rows before you press the copy to
clipboard button.");
}
for (var i:int = 0; i < n; i++)
{
var cell:Object = dgSyncGroupMembers.selectedCells[i];
var data:Object =
dgSyncGroupMembers.dataProvider[cell.rowIndex];
var nameField:String =
dgSyncGroupMembers.columns[0].dataField;
var valuField:String =
dgSyncGroupMembers.columns[1].dataField;  
dataString = data[nameField] + separator +
data[valuField] + "\n" + dataString;
}

// Write dataString to the clipboard.
System.setClipboard(dataString);
}





RE: [flexcoders] Compiling and debugging against a remote Coldfusion server

2013-01-07 Thread Mark Fuqua
Thanks for the reply Brendan.  However, I think I did a bad job communicating 
what I was looking for.  I can set up the environment locally, but the guy I 
hired has never used coldfusion or remote objects.  I hired him to help with an 
existing Flex application I did myself (very green).  It is running locally, on 
my dev machine and remotely on two different websites (slightly different 
code…logos/images/colors etc.). 

 

I wanted some help doing some stuff with filtering and sorting 
listCollectionViews and ArrayCollections…he has never worked with Coldfusion 
before and setting up Coldfusion is pretty easy, but he has a mac, which I know 
nothing about…the database is MS ACCESS (I know…) and  I was just hoping to 
avoid getting him to do that and get all the Coldfusion code over to him and 
get the database working….

 

Is it possible to just set up the compiler/debugger in Flex builder to use the 
remote Coldfusion setup I have already?  It would seem like that would be a 
better alternative, especially with more than one person…always compiling and 
debugging against the same cfc’s and data.

 

I have no real basis for this thought, however, having said that, it would seem 
I should be able to set this all up for my remote server… do the ColdFusion 
root (which is the same as my local set up) and WebRoot (which is the same as 
my local set up) and just somehow change the rootUrl to point to my remote 
server…and maybe also have to put a cross domain file (can’t remember the right 
name) on my remote server. 

 

However, it seems whatever combination I try, fails…

 

This might not be possible…but it seems it should be.

 

Thanks for your time,

 

Mark

 

From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf 
Of Brendan Meutzner
Sent: Monday, January 07, 2013 4:04 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Compiling and debugging against a remote Coldfusion 
server

 

  

- ColdFusion root would be the base installation folder for ColdFusion 
(Windows: C:\Coldfusion9 Mac: /Applications/Coldfusion9)

 

- Web Root will be the wwwroot directory within the Coldfusion folder

 

- Root URL is http://localhost:8500

 

 

I would seriously question the decision of the individual you hired for Flex if 
they are unable to get this setup... sorry... i know that sounds very arrogant 
but I wouldn't want you throwing money away on this...

 

The thing to remember with ColdFusion is that when defining channels and 
destinations within the various xxx-config.xml files is that they refer to the 
ColdFusion installation location for web roots, etc... not the IIS locations 
even if you're serving the web content from your inetpub directory.

 

To get the CF debugging setup, you need to define a server instance inside 
ColdFusion builder and then define your CF project to use that server... you 
then "Run" your CF project in Debug mode to kick off the debugging breakpoints 
you put into the CF code will get caught as the CF content is called and run 
from your Flex app.

 

 

Brendan

 

 

 

On Mon, Jan 7, 2013 at 10:43 AM, jmfamp  wrote:

  

I have hired someone to work on a Flex application. It uses remoteObject to 
connect to ColdFusion. The gentleman I hired does not know how to set up a 
local environment and it seems it ought to be easy to set up the remote server 
to work.

I've tried everything I can think of (granted it is a short list). Can anyone 
help me figure out what to put in the following fields:

ColdFusion root folder:

Web root:

Root URL:

Some background information on remote server: It is a vps running ColdFusion 9. 
The server is located in the default location. When I compile my app locally 
and ftp it to the server, it works without change. However, when the person I 
hired goes to set up the project, it says the folder does not exist (which is 
doesn't...as Flex is looking locally).

I would like to be able to set it up so he can compile and debug against the 
remote application. Any help would be greatly appreciated.

Mark

 





Re: [flexcoders] Debug Woes - Redux

2012-03-28 Thread mark . jonkman
Not sure if this is already covered, but you could set your web server to 
include no cache headers so all your files are automatically reloaded every 
time. This prevents the issue of getting an old file. Tomcat might be a bit 
difficult to add the headers as it only has rudimentary page serving 
capabilities as it is meant to be run behind either a standard Apache webserver 
or other webserver such as IIS that is serving up actual static pages/elements. 
I tend to use IE as my debug environment for the simple purpose that it 
launches a new window each time and when you terminate debugging it 
automatically closes that window. No effort to close window manually (unless 
you want to set location and size of window - IE remembers last position and 
size when launching). I use firefox for my general browser. Besides the active 
X version of the debug player tends to be much easier to work with then the 
plugin version which has a tendency to crash on occassion resulting in force 
closing. 


Sincerely 
Mark R. Jonkman 

http://bitsbytesandsawdust.blogspot.com 

- Original Message -
From: "Jerry Davidson"  
To: flexcoders@yahoogroups.com 
Sent: Wednesday, March 28, 2012 8:59:36 AM 
Subject: RE: [flexcoders] Debug Woes - Redux 






So I only have to close the browser every time I make a change and want to test 
it? That would be better than shutting down the IDE and the server (Tomcat6). 
Normally I work in FF (11), but I do have IE (8) and can use that for this kind 
of testing. 



It was so weird to see it step past code without landing on it or even worse, 
landing on it and ignoring it. I’ll try shutting down the browser in todays 
(hopefully the last day of) testing. 







From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf 
Of Alex Harui 
Sent: Tuesday, March 27, 2012 5:53 PM 
To: flexcoders@yahoogroups.com 
Subject: Re: [flexcoders] Debug Woes - Redux 








I’ve had this kind of problem when the browser tries to cache an old SWF. I 
have to clear the cache and restart the browser. I sometimes make an edit to 
the main screen each time I make some other edit so I can immediately see if 
I’ve got an old SWF in the debugger. 




_,_._,___ 




[flexcoders] Re: Flex alternatives

2012-01-13 Thread Mark
I work on a very large flex application that runs within a web page.  Most of 
the functionality is built within the flex application, but it does  
communicate to the server to get data and post results.

I'm in the process of moving all this to a combination of restful web services 
written in C# and Javascript on the client.  For the client my plan is to use 
Dojo.  Moving a lot of code to javascript scares me since it's not as 
structured as actionscript or other compiled languages, but I really see no 
other choice.

The main point I want to make is that I love Flex.  I love how you can write an 
application to embed in a web page, then take that same code, put an air 
wrapper around it and have it run on mulitple OSes as a stand alone application 
with very little work, and believe it or not, it actually works everywhere.

The unfortunate thing is that for web based applications, if you want to 
support the IPAD, and your application needs to be embeded in a webpage, you're 
screwed.  I work for a major publisher that supplies colleges and high schools 
web based course management systems and we are getting a lot of pressure to 
have our stuff work on IPADs.

For this reason alone, we need to convert to HTML5 and javascript.  The main 
reason I'm not considering the ZKoss is that my group is a windows group.  We 
have windows servers and are heavily invested in .Net.  I admit the ZKoss stuff 
looks nice, but for us, it's really not an option.

IMO, the bottom line is that the IPAD is killing Flex, and unless you're just 
writing stand alone applications, you should stop using Flex.  It's a shame 
it's come to this though.

--- In flexcoders@yahoogroups.com, "Ron G"  wrote:
>
> 
> I have used Flex since 2006, and I have used ZKoss within the last year. I 
> can tell you that the learning curve of ZKoss is much lower than Flex, and 
> the development cycle is even faster. In your spare time, if you're curious 
> like me and like to check out different technologies, give it a whirl, just 
> so you'll have a good comparison. I think you'll be impressed - even if you 
> don't ever use it for a project. I think you'll agree that HTML/CSS/JS is not 
> a faster development environment, regardless of IDE. 
> 
> Would truly love to hear your assessment of it at some point. 
> 
> Don't get me wrong. I was always a big fan of Flex and touted its virtues 
> whenever I could over the past several years. So, I have nothing against it. 
> I'll be using it for years as I maintain existing projects written in Flex. 
> But, with respect, I think you do a disservice to continue  to tell 
> developers to use Flex. You are only telling them to build a backlog of 
> projects that will have to be converted  one day. But, I understand you work 
> for Adobe and can't very well say exactly what you think developers should 
> do. 
> 
> Ron
> 
> --- In flexcoders@yahoogroups.com, Alex Harui  wrote:
> >
> > Flex and FlashBuilder are not part of Adobe's HTML strategy per-se.  
> > FlashBuilder is being directed towards Gaming in Flash, Flex is being 
> > donated to the community.  It is the community that has lots of investment 
> > in the Flex/AS/FP stack that are looking reworking the Flex paradigm to 
> > output to the HTML/CSS/JS stack.
> > 
> > Meanwhile Adobe is not only updating Dreamweaver (see the PhoneGap features 
> > added in 5.5) but also looking at new tools for new development 
> > methodologies.  While classic Java has been around for a while, and 
> > HTML/CSS/JS will likely meet your 15 year requirement, the question remains 
> > whether you will be willing to use more efficient and powerful development 
> > frameworks and methodologies over those years.  If you don't, you might 
> > lose competitive advantage as your competition gets their products finished 
> > better or faster, but if you do, you run the risk of choosing a new set of 
> > tools that turns out not to have lasting power.  Tough call, no right 
> > answer, the choice is yours.
> > 
> > It looks like the Apache Flex folks are going to try to provide one of 
> > those new sets of tools by making it possible to use the Flex paradigm for 
> > the HTML stack.
>




Re: [flexcoders] AIR Application with multiple views

2011-12-20 Thread mark . jonkman
I would look into using two modules loaded into the base application. Base 
application contains a login screen and based on results of login either load 
heavy weight module or load light weight module. 


Sincerely 
Mark R. Jonkman 

http://bitsbytesandsawdust.blogspot.com 

- Original Message -
From: "osmanullah"  
To: flexcoders@yahoogroups.com 
Sent: Tuesday, December 20, 2011 10:41:46 AM 
Subject: [flexcoders] AIR Application with multiple views 

We have a pretty heavyweight AIR application. Now we are expanding our product 
and I need to deliver a lightweight version of our application depending on 
which user logs in. So depending on the user's permissions they could get the 
heavyweight application (current application) or a lightweight application (new 
application). The new lightweight application doesn't have any UI in common 
with the heavyweight one. It can use the same data model but the view is 
totally different. One is a fullscreen application and the other is going to be 
a small widget. 

I'm contemplating the best way to handle this. Currently my main application 
MXML file is hosting the entire application. I am thinking about refactoring 
this so the primary MXML file is just a splash screen and login screen, and the 
actual "meat" of the application is moved to a separate window. That way I can 
open the appropriate window once I get the user's credentials. This will take 
some refactoring (for example, I can not longer rely on Application.application 
to get the root window, I will have to add some basic window management) but I 
think it's doable. 

I just wanted to get some other opinions from people who have have had 
experience with something like this, to see if there is a better way to do it. 

So, is there a better way to do it? :) 

Thanks 



 

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





Re: [flexcoders] Animating an arrow into a target

2011-09-08 Thread Mark Embrey
check out
http://flex4fun.com/2010/11/30/flex4-navigation-menu-using-state-and-timerfor
an idea
On Sep 7, 2011 4:21 PM, "valdhor"  wrote:
> I have a project where I need to show the progress of a, well, project.
The project has seven specific stages that it must pass through.
>
> What I would like to do is have an animated arrow move from left to right
across the screen until it hits a target on the right side. At any time a
user can navigate to the page to see what stage the project is up to. I'd
like the user to see the arrow move to that point and stop.
>
> Unfortunately I am not a designer nor animator. I have looked at tweening
but that just seems to be able to move an object (like the arrow) from one
place to another but I would like the arrow to elongate as it moves (ie. The
head and tail stays the same but the shaft elongates).
>
> I have PNG images of the arrow and target and can break the arrow into a
head, a tail and a 1-pixel wide shaft.
>
> If anyone has any ideas on how to accomplish it, examples/tutorials or
sites I can visit I would be most appreciative. (I have been googling all
day but can't find anything useful)
>
>


Re: [flexcoders] Re: Speeding project compilation

2010-08-24 Thread mark . jonkman
Why not create a simple ANT build script that simply copies your XML files into 
the appropriate directory for you. Then uncheck the copy non-embedded files 
checkbox. Then execute that script when you need to (assuming your XML doesn't 
change every time) or add the script as another builder on the project. 

Sincerely 
Mark R. Jonkman 

http://bitsbytesandsawdust.blogspot.com 

- Original Message - 
From: "Amy"  
To: flexcoders@yahoogroups.com 
Sent: Tuesday, August 24, 2010 9:12:27 AM 
Subject: [flexcoders] Re: Speeding project compilation 



--- In flexcoders@yahoogroups.com, dorkie dork from dorktown 
 wrote: 
> 
> There's an option in Project > Properties > Flex Compiler called "Copy 
> non-embedded files to the output folder". 

Unfortunately, we can't uncheck this, or our XML files don't get copied. You 
would think it would not copy the _embedded_ files, but it does. 

> Also, you can embed your assets via your stylesheet by selecting your css 
> file in package explorer and selecting, "Compile CSS to SWF" from the 
> context menu. This will wrap up all your embedded assets into a compiled 
> binary so the compiler won't have embed your assets each time you compile 
> your project. 

That's not really an option for our project. Besides, I doubt it will stop the 
files that get compiled into the swf from also being copied to the debug 
folder. 

I'm really just looking for a way to get it to stop the delete embedded 
files/copy embedded files cycle every time it compiles. This would save a HUGE 
amount of time. 

Thanks! 

Amy 



 

-- 
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] Re: Flex Affecting Web Server Memory?

2010-07-16 Thread Mark
What I would suggest is opening the process viewer and seeing what process 
allocates the memory. WebORB for .NET memory footprint is 15MB. However, if the 
code you host in there allocates a byte array for 5.6GB, that could explain the 
problem..

Mark

--- In flexcoders@yahoogroups.com, "valdhor"  wrote:
>
> I do not believe the Flex SWF's are taking up the memory (There is no way for 
> them to do so).
> 
> It is more likely the language you are using with Flash remoting and WebORB. 
> Is it Java? I can see an improperly written Java class reserving large 
> amounts of mamory. What is the JVM settings?
> 
> --- In flexcoders@yahoogroups.com, "kevin_ketterer"  wrote:
> >
> > Sorry, the Flash SWF did NOT reserve any memory... so only the two Flex 
> > SWFs did.
> > 
> > --- In flexcoders@yahoogroups.com, "kevin_ketterer"  wrote:
> > >
> > > We have a Flex-based shopping cart applicatiion, using Cairngorm, WebORB, 
> > > and ASP.NET. It's running on IIS 7/Windows 2008 server. The release 
> > > version of the SWF is about 1.4MB in size. This is the only application 
> > > hosted on this server.
> > > 
> > > Our server team tells us that when a client launches the application, it 
> > > reserves about 5.6GB of virtual memory, including 3GB of RAM. It only 
> > > used the memory it neede, however. Since this is a new installation for 
> > > the server team, we ran some comparison tests to see what "normal" is. 
> > > Each of the following apps were put in their own application pool:
> > > 
> > > * An application with a plain ASP.NET (HTML) page did not reserve the 
> > > memory.
> > > 
> > > * A small (~150k) Flex SWF in an HTML page reserved 5.6GB, but again used 
> > > much less.
> > > 
> > > * A 4k Flash SWF in an HTML page reserved 3GB.
> > > 
> > > Although this behavior is not causing an immediate problem, we are 
> > > concerned that this could become a bigger issue down the road. We would 
> > > also like to understand how a SWF that runs on the client might affect 
> > > server virtual memory.
> > > 
> > > I'll appreciate any thoughts you might have on this issue.
> > > 
> > > Thank you,
> > > Kevin
> > >
> >
>




Re: [flexcoders] Flex Training

2010-06-01 Thread Mark Lapasa
Why not just google Flex 4 in a Week? It's like free-ninety-nine. I believe
that covers a good breathe of the concepts out there. I don't think there is
much value learning from advanced Flex 3 tactics (with the exception of
those mx components that haven't made it's way into spark).

On Mon, May 31, 2010 at 12:40 PM, aasifqau  wrote:

>
>
> I am looking for flex training institute in USA that can offer us a
> advanced course for 2 to 3 weeks long duration for a group of 5 persons. If
> any one interested please contact...
>
>  
>


[flexcoders] looping ArrayCollection

2010-05-27 Thread Mark
I must be having some crazy brain cramp right now, I'm having a devil of a time 
with getting a loop to work properly.  I have an ArrayCollection that I need to 
get to data a level or two down (root>item>associated>fKey).  When I loop thru 
it it's fine unless there's only one item in there.. then I get an error.  My 
brain is fried.. can anyone tell me what the heck I'm doing here?

Thanks

Original XML:

  
1
23
2



Loop:
for (var i:int = 0; i < stories.length; i++) {
for (var j:int = 0; j < stories[i].associated.fKey.length; j++) 
{
trace(i + "  " + stories[i].associated.fKey[j]);
}
}



[flexcoders] Re: draw an arc

2010-05-27 Thread Mark
Thank you guys for the quick responses and great examples.  I was thinking I 
wouldn't get something like this in a Flex app.  I'll be working on this over 
the weekend.

-M



[flexcoders] draw an arc

2010-05-26 Thread Mark
I need to draw an animated arc in Flex.  So I have 2 points and the arc needs 
to draw over a period of about 1.5 seconds or so.  I can't even find a good 
demo for Flash, let alone Flex.  Does anyone know how to go about doing this?

Thanks,
Mark



Re: [flexcoders] flash 4 and flex 3

2010-05-19 Thread Mark Lapasa
You are wasting your time with Flash 4

Flash 5 > Flash 4

Flash 5 FTW!


On Wed, May 19, 2010 at 10:39 AM, Kerry Thompson wrote:

>
>
> cholid_ridwan wrote:
>
>   What advantages of flash 4 compare with flex 4?
>>
>
> Lots of advantages.
>
> - You can do timeline animations
> - Components are lighter
> - You can get by with less advanced AS3 knowledge than in Flex
> - You can do things from scratch, like Flex's data grid, and bill your
> clients more
> - For a substantial code-heavy project, you can bill more hours
> - You can get to meet more clients as your other clients hire Flex
> developers
> - You don't have to deal with the far superior debugger in Flex 4 (or, more
> accurately, FlashBuilder 4)
> - You don't have to deal with FlashBuilder's superior dev environment
>
> Cordially,
>
> Kerry Thompson
>  
>


Re: [flexcoders] reference to Data Provider throws error

2010-05-16 Thread Mark Lapasa
you have variable declared, but when the list instance tries to access the
value at myDP, it doesn't exist.

try assigning a default value


[Bindable]
public var myDP:ArrayCollection = new ArrayCollection()

On Fri, May 14, 2010 at 1:37 PM, tex_learning_flex <
tex.learning.f...@gmail.com> wrote:

>
>
> I have in my base mxml file:
>
> [Bindable]
> public var myDP:ArrayCollection;
>
> which is a DataProvider
>
> elsewhere I have an mxml component file with a Spark List. I the list I
> have specified:
>
>  id="list"
> dataProvider="{myDP}"
> itemRenderer="assets.Renderer"
> >
>
> this file is throwing the following error:
>
> 1120: Access of undefined property myDP.
>
> any idea what might be wrong?
>
>  
>


[flexcoders] Re: Thoughts on Flash by Steve Jobs

2010-05-03 Thread Mark A. DeMichele
Everybody is talking about "learning"  another language.  That's the
easy part.  It's porting an entire application that has several 100,000
lines of code.  That's that hard part.  Someone mentioned losing flash
support on all Macs.  Is that true?  I hope not.  I have over a million
users using my flash app and about 25% of them have macs.  That would be
bad.



Re: [flexcoders] RobotLegs Framework

2010-04-30 Thread Mark Lapasa
I can testify, robotlegs is pretty good coming from 2yrs+ of doing
Cairngorm. A lot less boiler plate code that's for sure. Dependency
Injection for mock objects makes it great for the devs on my team to develop
views when the service layer is not quite ready yet. Give the best practices
a good read through and it should be a happy experience.

On Thu, Apr 29, 2010 at 6:12 PM, Patricia Han  wrote:

>
>
> Thanks a lot, John!
> Currently we're using Cairngorm, but we are thinking to move to Robotlegs
> in the next product. My concern on the Robotlegs is that not many people are
> using the new framework. So there won't be too many examples, talks,
> workarounds, etc.
>
> Thanks again.
>
> Pat.
>
> --
> *From:* John McCormack 
> *To:* flexcoders@yahoogroups.com
> *Sent:* Thu, April 29, 2010 1:37:37 AM
> *Subject:* Re: [flexcoders] RobotLegs Framework
>
>
>
> Have a look at John Lindquist's video - 3rd one down:
> http://pv3d. org/ 
> John
>
> Patricia Han wrote:
> >
> >
> > Hi Everyone,
> >
> > Have you used Robotlegs framework? Please share your experience with
> > me. (compare with Cairngorm or PureMVC)
> > Thanks,
> >
> > Pat
> >
> >
> >
> >
>
>
>  
>


RE: [flexcoders] Transfer development from PC to Mac??

2010-04-25 Thread Mark R. Jonkman
If you haven’t found an easy way to transfer yet, you could try a slightly more 
complex route. If you have access to an SVN repository, just check in the 
project from the PC (share project) and checkout on the Mac -> Import -> 
Project from SVN -> …… Or vice versa.

 

We co-develop on mac and pc and use SVN as our repository and we share projects 
with no issues (ok. Once in a while we hit a small issue if we include any hard 
paths).

 

Even if you don’t normally use SVN its not normally that difficult to setup a 
temporary repository on one of the computers provided they are networked..

 

Sincerely
Mark R. Jonkman

 

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of Dan Pride
Sent: Sunday, April 25, 2010 4:24 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Transfer development from PC to Mac??

 







So you are saying that I should manually compress both the folder in documents 
and the debug folder in Sites and then move them over to the PC and it will all 
work???
Dan

--- On Sun, 4/25/10, Oleg Sivokon  wrote:


From: Oleg Sivokon 
Subject: Re: [flexcoders] Transfer development from PC to Mac??
To: flexcoders@yahoogroups.com
Date: Sunday, April 25, 2010, 3:59 PM

  

If stuffit doesn't work, you can try RAR, it's not entirely a freeware, but you 
can run the evaluation version for as long as you want.

 

Also, I think that 

 

unzip file.zip -d ~/another/folder

 

(You run this in terminal - the CMD in PC terms)

 

will work just fine on any mac OS you may have...

 

Best.

 

Oleg









<>

Re: [flexcoders] Simple Sound Player

2010-04-22 Thread Mark Lapasa
You could write a very rudimentary app using the flash.media.Sound to load
and play the file and flash.media.SoundChannel to stop and pause the file.

On Mon, Apr 19, 2010 at 2:51 PM, simcola  wrote:

>
>
> Hi
>
> I have several podcasts in wma (I could change to mp3 if needed) and I need
> a simple player that will list all the podcasts and then have a play, pause,
> fwd, rwnd, stop and download button. Does anyone know of anything like this
> that I can use in flex..
>
> thanks
>
>  
>


Re: [flexcoders] Loading FXG files at runtime

2010-04-19 Thread Mark Lapasa
This is an interesting question. I would like to know the answer too.


On Thu, Apr 15, 2010 at 4:53 AM, Pradeek  wrote:

>
>
> Hi is it possible to load FXG files at runtime and render them? Thanks.
>
>  
>


[flexcoders] Re: open source server side push

2010-04-05 Thread Mark
Yes, WebORB definitely supports data push. We have support for RTMP, short and 
long polling. A licensed version of WebORB does not have any limitations for 
the number of concurrent users. Your limits will arrive from the hardware 
configuration of the architecture of your application.

Also, I'd like to correct the following, as it is incorrect:

>>>>
"I noticed right off the bat that the weborb java version is limited to 5 ip
addresses (unless, of course, you pay). "
<<<<

The 5 IP limitation is only in the "Development mode" of WebORB. That is the 
mode when you do not need any license keys and can use all the features of the 
product for the development purposes. If you need a license, you can get a 
completely free one for the Community Edition, or buy one for the Enterprise 
Edition.

This is where you can apply for a free license for the Community Edition:
http://www.themidnightcoders.com/communityeditionapplication.html

To see a comparison between Community and Enterprise editions, visit this page:
http://www.themidnightcoders.com/products/weborb-for-java/product-editions.html

Cheers,
Mark

--- In flexcoders@yahoogroups.com, "hgnowhg"  wrote:
>
> I noticed right off the bat that the weborb java version is limited to 5 ip 
> addresses (unless, of course, you pay). The php version doesn't support 
> datapush...at least, I can't find it in their examples.
> 
> It amazes me that no one on this board knows the answers to some of the most 
> basic data questions I and others have asked. 
> 
> --- In flexcoders@yahoogroups.com, "Jeffry Houser"  wrote:
> >
> > I dunno; follow the links and see if you can figure it out.  
> > 
> > I'm not sure why they would impose limits; unless there was a technical 
> > reason, such as server stability.  I would assume that Adobe enacts limits 
> > in Blaze an attempt to get you to upgrade to LiveCycle.  
> > 
> >  WebORB, from The Midnight Coders, may be another solution to consider. 
> > 
> > --- In flexcoders@yahoogroups.com, "hgnowhg"  wrote:
> > >
> > > thanks. does granite limit the number of concurrent users?
> > > 
> > > --- In flexcoders@yahoogroups.com, "Jeffry Houser"  wrote:
> > > >
> > > > If BlazeDS won't do it; try GraniteDS.  
> > > > 
> > > > http://www.graniteds.org/confluence/pages/viewpage.action?pageId=229378
> > > > 
> > > > 
> > > > 
> > > > --- In flexcoders@yahoogroups.com, "hgnowhg"  wrote:
> > > > >
> > > > > Are there any open source (i.e. FREE!) server side push services that 
> > > > > do NOT limit the number of concurrent users? i.e. Blaze is open 
> > > > > source but limits the number of subscribers. LCDS would be perfect 
> > > > > but is expensive. All I need is a datagrid that will update w/ new 
> > > > > data as data gets added to my MySQL server.
> > > > >
> > > >
> > >
> >
>




Re: [flexcoders] Compare two datagrids

2010-03-31 Thread Mark Lapasa
Don't compare two datagrids.
Compare two datasets.

If you need thew view to display what's in common, then you can create your
own Filter function and apply it to the underlying data sets.

Any changes made to the data will be reflected in the view.

On Wed, Mar 31, 2010 at 4:51 PM, cvsikh  wrote:

>
>
> Hi,
>
> I am looking for a solution to compare data in two datagrids. The date
> fields are exactly the same. Any help on this will be greatly appreciated.
> If somehow, we can color code repeated data, that will be ideal.
>
>  
>


Re: [flexcoders] Flex 4 Release - Anyone else having issues?

2010-03-23 Thread mark . jonkman
Unfortunately no. My only thought had been that namespace change which has 
caught me a few times on older projects made in beta 1 that I've opened 
recently. 

I'm assuming you've cleaned all the projects. I tend to do more AS projects 
versus Flex MXML stuff so I'm not much of a help on that. sorry. 

Sincerely 
Mark R. Jonkman 

http://bitsbytesandsawdust.blogspot.com/ 



- Original Message - 
From: "Deane Venske"  
To: flexcoders@yahoogroups.com 
Sent: Tuesday, March 23, 2010 10:54:21 AM GMT -05:00 US/Canada Eastern 
Subject: Re: [flexcoders] Flex 4 Release - Anyone else having issues? 



Hi Mark, 

I caught that one (it made 100% sense to me that change) my issue is that 
baseColor seems to not be a valid attribute on UI components that have always 
had that. 
Any ideas on that? 

Thanks, 
Deane 

On 3/23/2010 8:36 AM, mark.jonk...@comcast.net wrote: 



Hi Deane 

do a quick search across all your mxml files and in the namespace declarations, 
replace any that look like this: 

xmlns:mx="library://ns.adobe.com/flex/halo" 

with 

xmlns:mx="library://ns.adobe.com/flex/mx" 

The /halo got replaced with /mx sometime around beta 2. 

Sincerely 
Mark R. Jonkman 

- Original Message - 
From: "Deane Venske"  
To: flexcoders@yahoogroups.com 
Sent: Tuesday, March 23, 2010 10:31:16 AM GMT -05:00 US/Canada Eastern 
Subject: [flexcoders] Flex 4 Release - Anyone else having issues? 




Hi guys, 

Not sure if anyone else is getting similar issues to me. I installed the 
release version of the trial (after stupidly removing the beta) and I am 
finding unending issues. Things like "baseColor" not being able to be resolved 
or 'backgroundAlpha' is only supported by type X with the thems(s) 'halo'. 

What is driving me insane is I refactored this app last week to start from 
scratch in flash builder 4, so that I could get rid of a lot of my spaghetti 
code. 

I just can't understand how you go from B2 to release and change this much... 

Thanks, 
Deane 





 

Re: [flexcoders] Flex 4 Release - Anyone else having issues?

2010-03-23 Thread mark . jonkman
Hi Deane 

do a quick search across all your mxml files and in the namespace declarations, 
replace any that look like this: 

xmlns:mx="library://ns.adobe.com/flex/halo" 

with 

xmlns:mx="library://ns.adobe.com/flex/mx" 

The /halo got replaced with /mx sometime around beta 2. 

Sincerely 
Mark R. Jonkman 

- Original Message - 
From: "Deane Venske"  
To: flexcoders@yahoogroups.com 
Sent: Tuesday, March 23, 2010 10:31:16 AM GMT -05:00 US/Canada Eastern 
Subject: [flexcoders] Flex 4 Release - Anyone else having issues? 




Hi guys, 

Not sure if anyone else is getting similar issues to me. I installed the 
release version of the trial (after stupidly removing the beta) and I am 
finding unending issues. Things like "baseColor" not being able to be resolved 
or 'backgroundAlpha' is only supported by type X with the thems(s) 'halo'. 

What is driving me insane is I refactored this app last week to start from 
scratch in flash builder 4, so that I could get rid of a lot of my spaghetti 
code. 

I just can't understand how you go from B2 to release and change this much... 

Thanks, 
Deane 



 

[flexcoders] I need some basic ActionScript help that I'm stumped on

2010-03-15 Thread Mark
I'm having an issue with finding the length of the number of children items in 
my ArrayCollection.  A small part of the xml that is being pulled in is below.  
You'll see that I have a node  with a child or children node .  If 
I have 2 or more  nodes then the length comes back with the proper 
number, but if I only have 1 it comes back as undefined.  Here's my basic 
function that I'm putting together now…

private function dgChanged(evt:Event):void {
if (myADG.selectedItem.links != null) {
trace(myADG.selectedItem.links.link.length);
} else {
trace ("NULL" );
}




4

1/2/2010
2/18/2010
12:00:00 PM
3:00:00 PM

AIT
Learning
UK






Any ideas as to why I'm getting "undefined"?

Thanks,
Mark



[flexcoders] Re: What's up Adobe?

2010-02-03 Thread Mark A. DeMichele
I think the new name makes perfect sense.  The current FlexBuilder
doesn't only "build" "flex".  It builds "flash" as well.  When you think
of it, it is truly a "Flash" "Builder".  In fact, before they decided to
change them name, I wondered why they were associating the name with
"Flex" in the first place.  When I started, it was not obvious I could
use it to build a simple flash animations without the flex framework,
which I actually needed to do for a few projects.  I think of it as a
"programmers" tool for making flash "apps" as opposed to an artist's
tool for making pretty animations.



[flexcoders] Flex Developer Available For Hire

2010-02-01 Thread Mark Lapasa
Hello everyone,

(I just read the FAQ for the usergroup and it wasn't really clear whether or 
not I am allowed to do this... If I am not, please accept my apologies)

I am a senior level Flex/ActionScript developer looking to take on new and 
interesting projects. Please review my LinkedIn profile to learn more about my 
work with Salesforce.com CRM and Online Gaming industries.

http://www.linkedin.com/in/marklapasa

Whether
you are hiring or not, please do not hesitate to add me on LinkedIn. I
would be more than happy to refer you to a candidate or discuss an
opportunity down the road.

Cheers,

Mark Lapasa
Experienced Flash and Force.com Platform Developer



  __
The new Internet Explorer® 8 - Faster, safer, easier.  Optimized for Yahoo!  
Get it Now for Free! at http://downloads.yahoo.com/ca/internetexplorer/

[flexcoders] Re: Adobe pulls Single CPU and 100-user licenses

2010-01-24 Thread Mark
Jeff,

Back in the days (about 2 years ago) we (Midnight Coders) approached Adobe with 
an idea to create a data management implementation similar to the one in LCDS 
in our .NET product. What we heard back was a big storm of very loud NO-NOs - 
"you guys cannot do that, it will be against our license agreement. There's NO 
way your customers can use fds.swc in conjuction with WebORB for .NET". We had 
no choice but to create an alternative Data Management implementation and in 
result fragment the market. 

I do not think it it just Adobe's lawyers, this goes all the way to the product 
management team and there's very good reason (from their perspective) why that 
licensing term is there

Really wishing Adobe would be more open minded..

Cheers,
Mark

--- In flexcoders@yahoogroups.com, Jeffrey Vroom  wrote:
>
> Ugh, actually that sounds to me like their lawyers just mailed in the
> effort.  I'm no lawyer but I would not accept that license agreement as it
> is one of the most anti-competitive things I've seen in a while.  It
> essentially means you cannot use the fds.swc to build an "a.b" relationship
> in your code - even if you do the id to value mapping yourself.  Similarly,
> if you want to use fds.swc along with sql-lite you are not legally allowed
> to do that either.  If you display "disconnected" button and link against
> fds.swc that could be construed as "offline capability".   Do they define
> this "modeling plug-in" in some way to differentiate the tools you pay for
> in FB4 from the LCDS tools?  Both seem to be data modelling plugins to me.
>  Does a Php server compete against BlazeDS?
> 
> Knowing the folks at Adobe, I believe they would use restraint and only
> enforce those provisions if you're actually using the association feature of
> fds.swc, the offline feature of fds.swc, and the modelling plugins in LCDS
> or if you really do compete with either of those two products.  But if
> you're looking at Adobe as a provider for developer tools of any kind, this
> is a pretty seriously anti-competitive clause right there.   If you sell any
> server products, you might want to stay away from the new FB data centric
> tools altogether.
> 
> As it is, I'm not sure how any of the things I suggested in the last couple
> of emails would not be considered as "competing with LCDS"... darn it Adobe,
> you've cornered me again :(
> 
> Jeff
> 
> On Sat, Jan 23, 2010 at 12:07 AM, busitech wrote:
> 
> >
> >
> > I took a look at the FB4 Beta 2 License Agreement, and here's what I found:
> >
> > 2.4.7 Flash (R) Builder(R) with LiveCycle(R) Data Services(LCDS) Data
> > Management Library. Your rights to this Software are limited. In order to
> > (a) utilize the file called "fds.swc" (the "LCDS Library") to develop
> > associations , (b) utilize the LCDS Library to develop offline capability,
> > (c) use the application modeling plug-in, or (d) utilize the LCDS Library to
> > develop a product that competes with LiveCycle Data Services or BlazeDS, you
> > must obtain additional licensing rights from Adobe.
> >
> > So, the lawyers have been working overtime... This weekend I'm going to
> > spend some time with each of the available components, to see how complete
> > the package can becomes after adding up the sum of the parts...
> >
> > Matthew
> >
> >  
> >
>




[flexcoders] Loading videos/sound in Flex (web) out of a ByteArray

2010-01-23 Thread Mark
Hello, 

I am working on a flex project for my job, and we have seem to of hit a road 
block.

we have two parts to our project, one part which is written in AIR that is used 
to create case files, which is really just a zip with a XML file and 'assets', 
as in pictures, text, audio, video, hyperlinks, and whatever else we may want 
to use in the future

The way the zip library we are using works is that we get the individual file 
information out of the zip  by calling a function which returns a ByteArray 
representation of the data

However, our problem is using the limitations of the Flash/Flex Web-browser 
plugin (not air) which does not have any of the file functions, so we cannot 
save the files we extract from the zip to the hard drive, (which we do with the 
AIR portion of the project),  we are forced to keep them as ByteArrays. 

But, we are having problems with a part of our program which previews these 
assets, namely Audio and Video files in the browser, it appears that the 
VideoDisplay and Sound classes do not accept ByteArrays, but only streams or a 
URLbut we cannot give it a URL because we just don't have one, the files 
are in memory as a ByteArray object.

Is there any cool way to convert a ByteArray into a Sound /VideoDisplay that 
anyone knows of? If not, we are going to have to resort to using an external 
php script to do the work of unzipping files on the server, which defeats the 
purpose of having it all in one file anyway. 

~Mark



Re: [flexcoders] Ctrl + eh?

2009-10-23 Thread Mark Lapasa
Just to add more context, I know children of ListBase don't support 
Ctrl+A so I added my own keydown listener for Ctrl + A in a datagrid so 
each index in the dataprovider would be in the .selectedIndicies. 
However it never gets fired. -mL

Mark Lapasa wrote:
>  
>
> In IE, why does Ctrl + A in a TextInput work but Ctrl + A in a datagrid
> doesn't? What is this funny business? Thx, -mL
>
> Notice of confidentiality:
> The information contained in this e-mail is intended only for the use 
> of the individual or entity named above and may be confidential. 
> Should the reader of this message not be the intended recipient, you 
> are hereby notified that any unauthorized dissemination, distribution 
> or reproduction of this message is strictly prohibited. If you have 
> received this message in error, please advise the sender immediately 
> and destroy the e-mail.
>
> 



Notice of confidentiality:
The information contained in this e-mail is intended only for the use of the 
individual or entity named above and may be confidential. Should the reader of 
this message not be the intended recipient, you are hereby notified that any 
unauthorized dissemination, distribution or reproduction of this message is 
strictly prohibited. If you have received this message in error, please advise 
the sender immediately and destroy the e-mail.



[flexcoders] Ctrl + eh?

2009-10-22 Thread Mark Lapasa
In IE, why does Ctrl + A in a TextInput work but Ctrl + A in a datagrid 
doesn't? What is this funny business? Thx, -mL


Notice of confidentiality:
The information contained in this e-mail is intended only for the use of the 
individual or entity named above and may be confidential. Should the reader of 
this message not be the intended recipient, you are hereby notified that any 
unauthorized dissemination, distribution or reproduction of this message is 
strictly prohibited. If you have received this message in error, please advise 
the sender immediately and destroy the e-mail.



Re: [flexcoders] How to hide loading of an images in flex

2009-10-08 Thread Mark Lapasa
For you svgViewer, have it set to visible = false at the beginning. When 
the svgViewer has finished 100% of what it's doing, have a listener 
already defined waiting for this event. When it fires off, the handler 
will turn visible = true. -mL


Adarsh Agrawal wrote:
 




Hello,
Can any help me regarding the subject line?
 
i've to load an image in svgViewer..and i am getting glitches while 
loading the image..so can any one help me regarding how to hide 
loading of image in svgviewer and afterloading make it visible
 
regards,

adarsh



Add whatever you love to the Yahoo! India homepage. Try now! 







Notice of confidentiality:
The information contained in this e-mail is intended only for the use of the 
individual or entity named above and may be confidential. Should the reader of 
this message not be the intended recipient, you are hereby notified that any 
unauthorized dissemination, distribution or reproduction of this message is 
strictly prohibited. If you have received this message in error, please advise 
the sender immediately and destroy the e-mail.



Re: [flexcoders] Re: Trying to convince people to develop with Flex

2009-09-29 Thread Mark Lapasa
Wow, that's a great case study / story about Flex.

valdhor wrote:
>  
>
> Perhaps you could do it in your own time?
>
> When I first started my job here (A large Multi-National) I was tasked 
> with creating a front end UI to replace an unwieldy PHP/Perl system. 
> They wanted it redone with JavaScript/AJAX. I had completed the first 
> part of this in six months but there were multiple different code 
> bases (For multiple browsers) and the code to do it would kill IE6 
> (The enterprise standard).
>
> I decided I would develop the same UI in Flex at home and give myself 
> a chance to learn on a real project. I completed the project in less 
> than two months. Once I showed my boss what could be done in less time 
> and with a single code base for all browsers, we scrapped the original 
> idea and moved forward with the full migration into Flex.
>
> If you can't/won't take this route, maybe the Adobe Dashboard 
> Application can show a small sampling of what can be done with Flex 
> (http://examples.adobe.com/flex3/devnet/dashboard/main.html 
> )
>
> HTH
>
> Steve
>
> --- In flexcoders@yahoogroups.com 
> , Steven loe  
> wrote:
> >
> > While I agree that building out something would be great. That's
> > probably not possible right now. I think they don't have enough
> > awareness of Flex to know what it could do for them. I think if they
> > could see a couple of slick data viz apps, they'd suddenly "get it". I
> > was hoping that a few flexcoders might have data viz apps they'd like
> > to show off.
> >
> > Thanks very much.
> >
> > On Sep 19, 2009, at 10:32 AM, Angelo Anolin 
> > wrote:
> >
> > > I believe the best way to do this is to port (convert) one of your
> > > slow, dull and hard to maintain application and show how the same
> > > could be done in Flex, albeit much better.
> > >
> > > Manager would only see the value of a development platform if they
> > > know that their business bottom line is improved, which is in this
> > > case a better application that they utilize.
> > >
> > > Angelo
> > >
> > > From: Schnurgle Schnurgle 
> > > To: flexcoders@yahoogroups.com 
> > > Sent: Saturday, 19 September, 2009 12:39:56
> > > Subject: [flexcoders] Trying to convince people to develop with Flex
> > >
> > >
> > > I'd like to get some people that I work with excited about
> > > developing RIAs with Flex. We currently do data visualization with
> > > fusion charts. I'd like to show folks here Flex apps that go beyond
> > > what fusion charts can do. I've googled a bunch but I've not found
> > > much. Also, any links to flex business apps that would help make the
> > > case that we could be offering amazing user experiences if we were
> > > to build with Flex would be great ammo.
> > >
> > > Thank you very much for any help with this.
> > > sh
> > >
> > >
> > >
> > >
> >
>
> 



Notice of confidentiality:
The information contained in this e-mail is intended only for the use of the 
individual or entity named above and may be confidential. Should the reader of 
this message not be the intended recipient, you are hereby notified that any 
unauthorized dissemination, distribution or reproduction of this message is 
strictly prohibited. If you have received this message in error, please advise 
the sender immediately and destroy the e-mail.



Re: [flexcoders] cleanup on exit

2009-09-28 Thread Mark Lapasa
You can try

flash.events.Event.DEACTIVATE

which comes out of Application

a new problem arises if the user really shut down the flash player or 
just alt-tabbing

[p e r c e p t i c o n] wrote:
>  
>
> Hi all,
>
>
> Is there any way to do some cleanup just before an app exits?  for 
> example i've persisted some data to the DB and since the user hasn't 
> completed all the steps, i want to roll back that commit..is there an 
> event i can write a handler for?
>
> thanks 
>
> and 
>
> cheers
>
> -- 
> [ p e r c e p t i c o n ]
> 



Notice of confidentiality:
The information contained in this e-mail is intended only for the use of the 
individual or entity named above and may be confidential. Should the reader of 
this message not be the intended recipient, you are hereby notified that any 
unauthorized dissemination, distribution or reproduction of this message is 
strictly prohibited. If you have received this message in error, please advise 
the sender immediately and destroy the e-mail.



Re: [flexcoders] Beginner Questions

2009-09-25 Thread Mark Lapasa
Most would use ActionScript 3. The Flex Framework add a lot of overhead 
to a highly animated game. The controls weren't made for that type of 
genre of application.

You could use OS Flex but Flex Builder's built-in's will save you clicks 
in the long run and you just get things done out faster, which means 
gratification faster.

It all depends on the type of game you are developing whether vector or 
bitmap. Vectors can give you an advantage in portable file size and 
smooth scaling. Bitmaps can give you control as a static canvas but you 
pay the price in large file sizes. Code-wise, your graphics is wrapped 
by a container, you move the container. Code doesn't really care so much 
what's in the container.

You should also consider the growing libraries out there for 
actionscript like Papervision 3d and AS3 Data Structures For Game 
Developers.

You could also recycle your C/C++ expertise via Alchemy

http://labs.adobe.com/technologies/alchemy/

Alchemy In Action -> http://www.newgrounds.com/portal/view/470460


Thx,

-mL

mugathur wrote:
>  
>
> Hello. I am very new to both Flash and Flex. I've been programming 
> video games in C/C++ for a while now and thought I'd try something 
> faster to develop. So, I have a few questions, specifically geared 
> towards games development.
>
> Do games developers usually use Flex or just raw Flash?
>
> Is just using the Flex open source compiler viable or is purchasing 
> the Flex Builder pretty instrumental to effective use of the language?
>
> Is there a heavy preference between vector art or bitmap art in flash 
> development? Is the code significantly different between the two?
>
> I'm sure I'll have more questions, but I'll kick it off with these. 
> Thanks in advance.
>
> -moo
>
> 



Notice of confidentiality:
The information contained in this e-mail is intended only for the use of the 
individual or entity named above and may be confidential. Should the reader of 
this message not be the intended recipient, you are hereby notified that any 
unauthorized dissemination, distribution or reproduction of this message is 
strictly prohibited. If you have received this message in error, please advise 
the sender immediately and destroy the e-mail.



Re: [flexcoders] Re: Java/Flex questions answered by James Ward

2009-09-17 Thread Mark Lapasa
Uggh no wonderthey deleted my question altogether!

James Ward wrote:
>
> Yeah. Turns out that the folks at Stack Overflow didn’t like the idea 
> of the “riacowboy” tag. So you can still ask the question with 
> sensible tags and then post a comment on my “Ask the RIA Cowboy” blog 
> so that I know where to find it.
>
> Thanks.
>
> -James
>
> *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] 
> *On Behalf Of *ilikeflex
> *Sent:* Monday, September 14, 2009 10:29 AM
> *To:* flexcoders@yahoogroups.com
> *Subject:* [flexcoders] Re: Java/Flex questions answered by James Ward
>
> Could not find the tag 'raiCowboy'
>
> http://meta.stackoverflow.com/questions/17314/search-for-a-tag-returns-no-results/17327
>  
> 
>
> It says tag 'raiCowboy' has been deleted.
>
> --- In flexcoders@yahoogroups.com 
> , James Ward  wrote:
> >
> > This would be a great question to ask on StackOverflow.com :)
> >
> > -James
> >
> >
> > From: flexcoders@yahoogroups.com 
>  
> [mailto:flexcoders@yahoogroups.com 
> ] On Behalf Of ilikeflex
> > Sent: Friday, September 11, 2009 11:03 AM
> > To: flexcoders@yahoogroups.com 
> > Subject: [flexcoders] Re: Java/Flex questions answered by James Ward
> >
> >
> >
> > what i am expecting that as soon as i run my flex application i should
> > see
> >
> > System.out.println("getIndexList Executing");
> > System.out.println("getIndexProfileList Executing");
> > System.out.println("getIndexTradingDatesList Executing");
> > System.out.println("getIndexValues Executing");
> >
> > but i see
> >
> > System.out.println("getIndexList Executing");
> > System.out.println("getIndexList End Executing");
> >
> > System.out.println("getIndexProfileList Executing");
> > System.out.println("getIndexProfileList End Executing");
> >
> > System.out.println("getIndexTradingDatesList Executing");
> > System.out.println("getIndexTradingDatesList End Executing");
> >
> > System.out.println("getIndexValues Executing");
> > System.out.println("getIndexValues End Executing");
> >
> > I should see all the method executing simultaneously.
> >
> > Any help...
> >
> > --- In flexcoders@yahoogroups.com 
> , 
> "ilikeflex"  wrote:
> > >
> > >
> > > I am doing something like this:
> > >
> > > if( indexListRemoteObject == null)
> > > {
> > > indexListRemoteObject = new RemoteObject("indexMasterDAO");
> > > indexListRemoteObject.addEventListener( ResultEvent.RESULT,
> > > indexListHandler );
> > > indexListRemoteObject.addEventListener( FaultEvent.FAULT, faultHandler
> > > );
> > > indexListRemoteObject.getIndexList();
> > > }
> > >
> > > if( indexProfileListRemoteObject == null )
> > > {
> > > indexProfileListRemoteObject = new RemoteObject("indexMasterDAO");
> > > indexProfileListRemoteObject.addEventListener( ResultEvent.RESULT,
> > > indexProfileListHandler );
> > > indexProfileListRemoteObject.addEventListener( FaultEvent.FAULT,
> > > faultHandler );
> > > indexProfileListRemoteObject.getIndexProfileList();
> > > }
> > >
> > >
> > > if( indexTradingDatesListRemoteObject == null )
> > > {
> > > indexTradingDatesListRemoteObject = new
> > RemoteObject("indexMasterDAO");
> > > indexTradingDatesListRemoteObject.addEventListener(
> > ResultEvent.RESULT,
> > > indexTradingDatesListHandler );
> > > indexTradingDatesListRemoteObject.addEventListener( FaultEvent.FAULT,
> > > faultHandler );
> > > indexTradingDatesListRemoteObject.getIndexTradingDatesList();
> > > }
> > >
> > > if( indexValuesListRemoteObject == null )
> > > {
> > > indexValuesListRemoteObject = new RemoteObject("indexMasterDAO");
> > > indexValuesListRemoteObject.addEventListener( ResultEvent.RESULT,
> > > indexValuesListHandler );
> > > indexValuesListRemoteObject.addEventListener( FaultEvent.FAULT,
> > > faultHandler );
> > > indexValuesListRemoteObject.getIndexValues();
> > > }
> > >
> > > but if i put the System.out.println in different Java Methods.. i see
> > > the same sequence of order in which they are called. I am 100% sure
> > that
> > > my first method(getIndexList) takes lot of time. So while getIndexList
> > > is executing then i should also see that atleast one of the other
> > > methods are being executed simulataneously. But this is not happening
> > as
> > > expected. None of the other methods is able to recieve the request
> > while
> > > getIndexList is processing.
> > >
> > > All my java methods are static. I don't think this should cause any
> > > issue.
> > >
> > > thanks
> > > ilikeflex
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > > --- In flexcoders@yahoogroups.com 
> , 
> "fotis

Re: [flexcoders] Re: How do I get on adobe feeds? I'm having problems...

2009-09-04 Thread Mark Lapasa
Hello all,

Does anyone know who is admin for the feeds on MXNA/feeds.adobe.com?

I would like to have my feed URL updated. It's been about 2 days since I 
sent the request.

I would like to know if they've received my request.

knowledge.lapasa.net
Old - http://knowledge.lapasa.net/wp-atom.php
New - http://knowledge.lapasa.net/?feed=rss2

Thx,

-mL

Amy wrote:
>
> --- In flexcoders@yahoogroups.com 
> , "Nate Pearson" 
> wrote:
> >
> > I'm trying to get my blog on adobe feeds.
> >
> > I've submitted my blog to the feed (19nates.com) and received an e-
> mail from adobe that
> > says "Your site has been added to Adobe Feeds:
> http://feeds.adobe.com ".
> >
> > I click on my ping link and I get "flerror 0 message Thanks for
> pinging MXNA!".
> >
> > When I try to ping my link over at adobe feeds it says my blog
> hasn't been added.
> >
> > I've e-mailed the help link twice but haven't got a response in
> about 2 weeks.
> >
> > HELP! :) Any ideas? Any adobe people here that can help me out?
> I just want to share my
> > flexness with the world.
>
> Look around on the Flex Documentation Team site to see if there's
> anything they're saying that you want to link to. If they start
> seeing traffic coming from your links, they are likely to add you.
>
> HTH;
>
> Amy
>
>  



Notice of confidentiality:
The information contained in this e-mail is intended only for the use of the 
individual or entity named above and may be confidential. Should the reader of 
this message not be the intended recipient, you are hereby notified that any 
unauthorized dissemination, distribution or reproduction of this message is 
strictly prohibited. If you have received this message in error, please advise 
the sender immediately and destroy the e-mail.



Re: [flexcoders] alt+f4 Short cut key

2009-08-13 Thread Mark Lapasa
The day Flash Player provides alt-f4 support is the day when World of 
Warcraft provides it too

http://forums.worldofwarcraft.com/thread.html?topicId=12454665647

jitendra jain wrote:
>  
>
> Hi friends,
>
>   I want to implement alt+f4 key functionality in my swf application. 
> How can I override the browser keys? Any help will be appreciated
>
> Thanks,
>
> with Regards,
> Jitendra Jain
> Software Engineer
> 91-9979960798
>
>
> Send free SMS to your Friends on Mobile from your Yahoo! Messenger. 
> Download Now! http://messenger.yahoo.com/download.php
>
> 



Notice of confidentiality:
The information contained in this e-mail is intended only for the use of the 
individual or entity named above and may be confidential. Should the reader of 
this message not be the intended recipient, you are hereby notified that any 
unauthorized dissemination, distribution or reproduction of this message is 
strictly prohibited. If you have received this message in error, please advise 
the sender immediately and destroy the e-mail.



Re: [flexcoders] Re: Need help Combobox label property

2009-07-29 Thread Mark Lapasa
You got a questionable data model if the country names are not bundled 
with the same SOAP msg that has your country codes.

1) Is your Flex binary supposed to have hardcoded all the country names?
2) What happens if you have the server-side return you a country code 
that the client does not expect?

It seems to me that it is half dynamic.

Wouldn't your life be easier if the java WS just told you both the combo 
box label and the underlying country code, instead of just the country code?


Anyways, if you can't do anything about it and you have to work with 
what you got, another approach (in line with Tracy's idea) is to have a 
Dictionary whose keys are your country code and values are country 
names. The next fancy step would be the cache the dictionary into a 
SharedObject so that the next time the user uses the combo box control, 
previously known country code and country name pairs will be available 
to the user. Just some thoughts



gan_sun2006 wrote:
>  
>
> Thanks to everyone for suggestions.
>
> I am having a combo in which the values are dynamically coming from DB 
> thru java WS. The case is, when i select a country for instance say 
> "India", the code for the corresponding selection "IN" is saved to the 
> DB thru java WS during SAVE action. When i retrieve the value in 
> future, I am given only the countrycode "IN". Using this code, I have 
> to show the countryname on label property of my combo. I am currently 
> looping thru the arraycol(dataprovider) for checking the code for "IN" 
> and setting the arraycol index to combo.selectedIndex. I cannot use 
> switch() here as the values are dynamic from DB.
>
> Is there any other better way of doing this...?
>
> Thanks in advance!!!
>
> Regards,
> Ganesh Sundar R.
>
> --- In flexcoders@yahoogroups.com 
> <mailto:flexcoders%40yahoogroups.com>, Jeffry Houser  wrote:
> >
> >
> > I started to give him a similar answer, but then realized he may be
> > talking about setting the selectedItem on the ComboBox. He mentioned he
> > already had a labelField which seems to be exactly what he needs for
> > display purposes without a complicated switch statement.
> >
> > Ganesh, if neither answer helps you, could you elaborate on the problem?
> >
> > Mark Lapasa wrote:
> > >
> > >
> > > look at combo boxes labelfunction
> > > the function will then inspect the countrycode and you'll have a nasty
> > > switch statement that will output the correct country name
> > >
> > > -mL
> > >
> > > gan_sun2006 wrote:
> > > >
> > > >
> > > > Hi,
> > > >
> > > > I am using combobox for which the bound data is coming from an
> > > > arraycollection. My arraycollection has two properties called
> > > > countryname(labelField) and countrycode. When i submit my page, the
> > > > countrycode from my combo is saved to the DB. During retrieval I am
> > > > given only countrycode and not countryname.
> > > >
> > > > How can I show the equivalent countryname as selectedItem in my
> > > > combobox? Presently I am looping through the arraycollection and
> > > > showing the equivalent countyname. Is there any other way to do it?
> > > >
> > > > Any help is highly appreciated...
> > > >
> > > > Regards,
> > > > Ganesh Sundar R.
> > > >
> > > >
> > >
> > > Notice of confidentiality:
> > > The information contained in this e-mail is intended only for the use
> > > of the individual or entity named above and may be confidential.
> > > Should the reader of this message not be the intended recipient, you
> > > are hereby notified that any unauthorized dissemination, distribution
> > > or reproduction of this message is strictly prohibited. If you have
> > > received this message in error, please advise the sender immediately
> > > and destroy the e-mail.
> > >
> > >
> >
> > --
> > Jeffry Houser, Technical Entrepreneur
> > Adobe Community Expert: http://tinyurl.com/684b5h 
> <http://tinyurl.com/684b5h>
> > http://www.twitter.com/reboog711 <http://www.twitter.com/reboog711> 
> | Phone: 203-379-0773
> > --
> > Easy to use Interface Components for Flex Developers
> > http://www.flextras.com?c=104 <http://www.flextras.com?c=104>
> > --
> > http://www.theflexshow.com <http://www.theflexshow.com>
> > http://www.jeffryhouser.com <http://www.jeffryhouser.com>
> > --
> > Part of the DotComIt Brain Trust
> >
>
> 



Notice of confidentiality:
The information contained in this e-mail is intended only for the use of the 
individual or entity named above and may be confidential. Should the reader of 
this message not be the intended recipient, you are hereby notified that any 
unauthorized dissemination, distribution or reproduction of this message is 
strictly prohibited. If you have received this message in error, please advise 
the sender immediately and destroy the e-mail.



Re: [flexcoders] Need help Combobox label property

2009-07-28 Thread Mark Lapasa
look at combo boxes labelfunction
the function will then inspect the countrycode and you'll have a nasty 
switch statement that will output the correct country name

-mL

gan_sun2006 wrote:
>  
>
> Hi,
>
> I am using combobox for which the bound data is coming from an 
> arraycollection. My arraycollection has two properties called 
> countryname(labelField) and countrycode. When i submit my page, the 
> countrycode from my combo is saved to the DB. During retrieval I am 
> given only countrycode and not countryname.
>
> How can I show the equivalent countryname as selectedItem in my 
> combobox? Presently I am looping through the arraycollection and 
> showing the equivalent countyname. Is there any other way to do it?
>
> Any help is highly appreciated...
>
> Regards,
> Ganesh Sundar R.
>
> 



Notice of confidentiality:
The information contained in this e-mail is intended only for the use of the 
individual or entity named above and may be confidential. Should the reader of 
this message not be the intended recipient, you are hereby notified that any 
unauthorized dissemination, distribution or reproduction of this message is 
strictly prohibited. If you have received this message in error, please advise 
the sender immediately and destroy the e-mail.



Re: [flexcoders] Re: create class on the fly

2009-07-14 Thread mark . jonkman
Hi 

Somewhere you will need to write an .as file and compile it into a swf in order 
to use it at runtime. Flash can't compile an .as file or a string at runtime. 

You can however, compile any number of .as files into a Flex Library project, 
load that library at runtime then using getDefinitionByName retrieve the class 
reference then instantiate it. 

One way I do this in a semi automated way is as follows: 

Create a series of Flex Library projects in Flex Builder or Flash Builder. 
Create the appropriate classes in each of the library projects. 
Create one Flex project and name it something like Library_Builder. 
Link all the Flex Library projects against it as RSLs 
Set each RSL to auto-extract and give it a directory and filename to 
autoextract into. 
Then I compile that one project to recompile all my libraries and when I need 
the runtime (vs. debug versions) I just do a release build. 

I never post the Library_Builder project to my site, it has no code in it, it 
simply serves to build the debug and release versions of my libraries en-masse 
without having to do a lot of jumping through hoops. I actually configure the 
Library_Builder to build itself into the debug folder of my real project and 
the release into the release folder of my real project. I just skip posting it 
and even if it gets posted by accident, its totally useless. One could link a 
folder in Flex Builder from one project to another, but I like to check my 
folders into SVN and it gets checked out to the server so its easier to do it 
into my main project. 

You can have as many library projects as you want to break things into 
"modular" libraries to load on demand at runtime into your main project. To 
have a lot of one class library projects would be rather a nightmare to deal 
with, but grouping classes that are used together into the same library project 
is often wiser and less prone to dependency errors. Dependeny errors result if 
your library project needs access to classes in another library and that 
library is linked to as an external library during compile. Then you need to 
make sure the dependencies are resolved by having all necesary libraries 
loaded. I tend to use only a handful of very distinct libraries like this where 
all the dependencies are pretty much resolved internally or can be resolved by 
loading a single common library upfront first. 

I don't have access to the full thread right now so I'm not sure exactly what 
you are doing. But in order to access a class you need a compiled version of 
the class - aka in a swf somewhere. And you need to know the name of the class 
(fully qualified). You need to load the swf at runtime then access the class. 

Sincerely 
Mark R. Jonkman 




- Original Message - 
From: "postwick"  
To: flexcoders@yahoogroups.com 
Sent: Tuesday, July 14, 2009 9:32:02 AM GMT -05:00 US/Canada Eastern 
Subject: [flexcoders] Re: create class on the fly 

>From your blog post... 

var myClass:Class = getDefinitionByName("com.myDomain.myPackage.SomeClass"); 


Does this mean I don't have to create the class as a .as file and compile it 
into the SWF, I can just reference it this way? Then I could add a new class to 
myPackage and tell my app (via db, XML, etc) that there is a new class there to 
load? 

The point to all of this is a dynamic application where an end user can add 
their own tables, and I need classes for those objects so that I can pass them 
back and forth with data messaging. 


--- In flexcoders@yahoogroups.com, Alan Shaw  wrote: 
> 
> There are a number of important techniques for manipulating classes (as 
> detailed 
> in my post http://nodename.com/blog/2008/06/15/upon-reflection/ ), but 
> unfortunately 
> creating a class at runtime is not possible in AS3. 
> 
> On Mon, Jul 13, 2009 at 8:23 PM, postwick wrote: 
> > 
> > 
> > I want to store descriptions of classes in an external file (such as XML) 
> > or 
> > database, and use them in my Flex application such that I can add, remove, 
> > or change the classes in the external file with recompling the Flex 
> > application. 
> > 
> > Is there any way to do this? In a nutshell, is there a way to create a 
> > class 
> > through an Actionscript function, with a for loop where the information 
> > that 
> > is looped over contains the definitions of the classes loaded from an 
> > external source? 
> > 
> > 
> 




 

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





Re: [flexcoders] Re: create class on the fly

2009-07-14 Thread mark . jonkman
Hi 

If you load a module that has a pile of classes in it, you can instantiate them 
without having a static reference in your original code. However, you do need 
to be a bit cautious. 

By default, modules load into a child of Application.currentDomain and thus 
aren't as "accessible" as classes loaded directly into 
ApplicationDomain.currentDomain. 

If you want to create a module or code library that you can load and have 
complete access to at runtime as if it's classes were a part of your project 
then you need to create a new LoaderContext using 
ApplicationDomain.currentDomain and use that LoaderContext to load your module. 

Once loaded, you can use a variety of methods to get at the classes. When I do 
this I often have the class names as strings in an XML file that I load so I 
don't need to do any guessing. I simply look up the class name in the xml, then 
use getDefinitionByName(className) as Class and then if that returns a Class I 
simply instantiate that class. But then again I'm loading the library into 
Application.currentDomain because I intend to use it throughout the project and 
have no need to child domain the stuff. 

If you put things into an XML file try to avoid a few things like naming a node 
or attribute "class", I normally use the attribute "class" but as a consequence 
I need to access the attribute using myNode.attribute("class") vs. 
myno...@class since @class will fail because "class" is a reserved word and 
Flex no like that. I'm stuborn and I like to call things what they are, but as 
a consequence I hit the occassional compile error for my stubborness. 

Not sure if that helps you at all. 

Sincerely 
Mark R. Jonkman 

- Original Message - 
From: "postwick"  
To: flexcoders@yahoogroups.com 
Sent: Tuesday, July 14, 2009 9:26:38 AM GMT -05:00 US/Canada Eastern 
Subject: [flexcoders] Re: create class on the fly 

If I compile the class as a module, can I then load it in without having to 
statically reference it in my compiled code? I can predict the package name 
based on data from my database ie com.something.somethingelse etc. Then I could 
compile new classes as needed and load them. 

--- In flexcoders@yahoogroups.com, Alan Shaw  wrote: 
> 
> There are a number of important techniques for manipulating classes (as 
> detailed 
> in my post http://nodename.com/blog/2008/06/15/upon-reflection/ ), but 
> unfortunately 
> creating a class at runtime is not possible in AS3. 
> 
> On Mon, Jul 13, 2009 at 8:23 PM, postwick wrote: 
> > 
> > 
> > I want to store descriptions of classes in an external file (such as XML) 
> > or 
> > database, and use them in my Flex application such that I can add, remove, 
> > or change the classes in the external file with recompling the Flex 
> > application. 
> > 
> > Is there any way to do this? In a nutshell, is there a way to create a 
> > class 
> > through an Actionscript function, with a for loop where the information 
> > that 
> > is looped over contains the definitions of the classes loaded from an 
> > external source? 
> > 
> > 
> 




 

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





Re: [flexcoders] Flex 4 Profiling Question - GC Root?

2009-06-12 Thread Mark Lapasa
I getcha, thx Alex -mL

Alex Harui wrote:
>
>
> The mark and sweep starts from several places (ApplicationDomain, 
> Stage, a few internal places in the Player, stack). Those are 
> currently called GCRoots, although I’d push for changing it if we 
> could come up with a better name.
>
> Often when you looked at an object in the Flex 3 profiler it had many 
> backreferences, most of which were circular, and others that were long 
> chains through many different objects and still were circular, or 
> didn’t matter because the real problem was that some other object 
> along that chain was the culprit.
>
> The Flex 4 profiler removes all circular references and then will 
> filter out chains that have long paths back to the root as those are 
> less likely to be the source of a problem.
>
> Alex Harui
>
> Flex SDK Developer
>
> Adobe Systems Inc. <http://www.adobe.com/>
>
> Blog: http://blogs.adobe.com/aharui <http://blogs.adobe.com/aharui>
>
> *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] 
> *On Behalf Of *Mark Lapasa
> *Sent:* Thursday, June 11, 2009 7:39 AM
> *To:* Flexcoders
> *Subject:* [flexcoders] Flex 4 Profiling Question - GC Root?
>
>
>
>
> I was going over the Adobe Flex 4 Feature and Migration PDF which is
> pretty good synopsis so far of what's new in Flex 4. Under the Profiling
> Enhancements section, it says "you can now view all the shortest paths
> from the object to the garbage collector root (GC root)"
>
> I understand as much as the mark & sweep but what does the above exactly
> mean?
>
> Thx,
>
> -mL
>
> Notice of confidentiality:
> The information contained in this e-mail is intended only for the use 
> of the individual or entity named above and may be confidential. 
> Should the reader of this message not be the intended recipient, you 
> are hereby notified that any unauthorized dissemination, distribution 
> or reproduction of this message is strictly prohibited. If you have 
> received this message in error, please advise the sender immediately 
> and destroy the e-mail.
>
> 



Notice of confidentiality:
The information contained in this e-mail is intended only for the use of the 
individual or entity named above and may be confidential. Should the reader of 
this message not be the intended recipient, you are hereby notified that any 
unauthorized dissemination, distribution or reproduction of this message is 
strictly prohibited. If you have received this message in error, please advise 
the sender immediately and destroy the e-mail.



[flexcoders] Flex 4 Profiling Question - GC Root?

2009-06-11 Thread Mark Lapasa
I was going over the Adobe Flex 4 Feature and Migration PDF which is 
pretty good synopsis so far of what's new in Flex 4. Under the Profiling 
Enhancements section, it says "you can now view all the shortest paths 
from the object to the garbage collector root (GC root)"

I understand as much as the mark & sweep but what does the above exactly 
mean?

Thx,

-mL


Notice of confidentiality:
The information contained in this e-mail is intended only for the use of the 
individual or entity named above and may be confidential. Should the reader of 
this message not be the intended recipient, you are hereby notified that any 
unauthorized dissemination, distribution or reproduction of this message is 
strictly prohibited. If you have received this message in error, please advise 
the sender immediately and destroy the e-mail.



[flexcoders] Re: How do I Change Event on a CheckBox

2009-06-09 Thread Mark
Beautiful!  That did it, thanks much.

-M


--- In flexcoders@yahoogroups.com, "Tim Hoff"  wrote:
>
> 
> Hi Mark,
> 
> import mx.events.FlexEvent;
> 
> calendarCheckbox.addEventListener(FlexEvent.VALUE_COMMIT, changeCBF);
> 
> Notice that this is a FlexEvent; rather than a regular Event.  So:
> 
> private function changeCBF( event:FlexEvent ):void
> 
> -TH
> 
> --- In flexcoders@yahoogroups.com, "Mark"  wrote:
> >
> > I'd like to run a function whenever a checkbox has changed regardless
> if the user selects/deselects it or if it changes from a different user
> action (such as resetting filters by clicking a button). I tried using
> calendarCheckbox.addEventListener(Event.CHANGE, changeCBF); but this
> only works from a user interacting with that checkbox. How can I do
> this?
> >
> > Thanks,
> > Mark
> >
>




[flexcoders] How do I Change Event on a CheckBox

2009-06-09 Thread Mark
I'd like to run a function whenever a checkbox has changed regardless if the 
user selects/deselects it or if it changes from a different user action (such 
as resetting filters by clicking a button).  I tried using 
calendarCheckbox.addEventListener(Event.CHANGE, changeCBF); but this only works 
from a user interacting with that checkbox.  How can I do this?

Thanks,
Mark



[flexcoders] Re: Flex and .NET

2009-06-08 Thread Mark Piller
"with large datasets, we see a lag in the transport time over our web service.  
For example, we have a data set that returns 5000 rows of 125 columns of 
data...our T-SQL stored proc generates the data set in 6 seconds or less but 
then it still takes anywhere from 45s to 1.5m to transport that dataset to the 
client side...and that's over a fast connection..."

This is exactly one of the reasons to use AMF on the wire. Serialization of 
5000 records with WebORB would take only a sub-second of time.

Mark



--- In flexcoders@yahoogroups.com, Adrian Williams  wrote:
>
> Hi there...
> 
> We have a rather large RIA using C#.Net as the backend...and we have 
> a large number of arrayCollections and dataGrids/advancedDataGrids
> 
> We don't massage any of the data that we are passing with our web 
> services...we literally pass as as it's created...i.e. as an Array or as 
> a Object...
> 
> For example, we may have an AdvancedDataGridthat is asking for data 
> from our web service...in our .net code we'd simply have something like:
> 
> public List BuildTheArray(string Group, string Admin)
> {
>   List configs = new List();
> 
>   SqlParameters[] sqlParams = new SqlParameters[2];
> 
>   sqlParams[0] = new SqlParameter("@Group", Group);
>   sqlParams[1] = new SqlParameter("@Admin", Admin);
> 
>   try
>   {
> using (SqlDataReader dr = 
> (SqlDataReader)DB.Instance().ExecuteReader("main_stored_procedure", 
> sqlParams))
> {
> while (dr != null && dr.Read())
> {
> configs.Add(new MainClass(
> Convert.ToString(dr["Name"]),
> Convert.ToString(dr["Email"]),
> etc...
> }
> }
>   }
>   return configs;
> }
> 
> Then in our Flex webservice def, we are defining the result as 
> "Object" (which I've seen a number of folks sugges E4X, but I've not 
> delved into the pros/cons of this). 
> 
>  result="getConfigsResult(event)" />
> 
> Now, since it's an object, in our web service result handler, you 
> can cast it a number of ways, but for the list as created above on the 
> .net side and since we are putting this data in an AdvancedDataGrid, we 
> simply say:
>
> private function getConfigsResult(event:ResultEvent):void
> {
> configs = event.result as ArrayCollection;
> ourDataGrid.dataProvider = configs;
> }
>
> Generally speaking, out of the 100+ web service calls we have, any 
> that return any kind of dataset we cast directly as an Array, 
> ArrayCollection or Object. 
> 
> Now that said, we have seen something that is aggravating...with 
> large datasets, we see a lag in the transport time over our web 
> service.  For example, we have a data set that returns 5000 rows of 125 
> columns of data...our T-SQL stored proc generates the data set in 6 
> seconds or less but then it still takes anywhere from 45s to 1.5m to 
> transport that dataset to the client side...and that's over a fast 
> connection...then, once it's in the client side, depending on how much 
> custom rendering we are doing, it takes up to 10-15 sec's to render the 
> data.  So we have a bottleneck in our web service that causes a lengthy 
> delay on large data setswe are still researching on why this is 
> happening and the fix but just wanted to let you know as a heads up.
> 
> -HTH
> -adrian
>   
>  
> 
> Sam Lai wrote:
> >
> >
> > Considering the time required for serialization/deserialization, using
> > something like webORB would improve parsing time, as it uses a binary
> > format which can be parsed more easily than a text format. But unless
> > you're using large datasets/doing lots of web service calls, the
> > advantages are probably negligible.
> >
> > Are you transmitting everything in the array collection back to the
> > web service, or just the IDs of the selected rows? Transferring
> > everything including the row data would remove the need for another
> > database hit, but for large datasets, that could be quite a bit of
> > traffic. I'd say it would be better just to transmit the IDs back to
> > the webservice, and let the webservice hit the database for the row
> > data (some caching on the server-side would help too).
> >
> > 200

Re: [flexcoders] Flex Builder, Flash Builder, Flash and Catalyst

2009-06-03 Thread mark . jonkman
Hi Bruce 

Flash Builder 4 replaces the product formerly known as Flex Builder. 
Flex know refers solely to the Flex SDK. 

No idea what so ever as to what they are planning on charging. 

Sincerely 
Mark R. Jonkman 

- Original Message - 
From: "brucewhealton"  
To: flexcoders@yahoogroups.com 
Sent: Wednesday, June 3, 2009 4:36:19 PM GMT -05:00 US/Canada Eastern 
Subject: [flexcoders] Flex Builder, Flash Builder, Flash and Catalyst 

Hello all, 
I was wondering about a couple things. Is Adobe going to make two separate 
products, Flash Builder 4 (aka Flex Builder) and Flex Builder 4? Maybe I read 
something wrong. Perhaps, Flex 4 is the new SDK and Flash Builder 4 will 
replace Flex 3, so there wouldn't be a Flex Builder 4. 
Then there is Catalyst. Any idea what that will cost when it comes out in it's 
final version? I guess that's a long time away. Anything else that Adobe is 
doing in the area of RIAs? 
Bruce 



 

-- 
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] Re: childrenField in AdvancedDataGrid

2009-06-02 Thread Mark
I'm still in need for some help on this if anyone knows how I can do it.

Also - I cleaned up the XML from the first post.

Thanks


--- In flexcoders@yahoogroups.com, "Mark"  wrote:
>
> Hi my XML has been set up pretty basic but it does have a few levels.  This 
> is shortend, but it basically looks like this:

  



  


  


  
  


  

  
  


  


  
  


  

  

  

> 
> Is there a way to get the advancedDataGrid to display the competencies as 
> well as the deliverables in a tree structure?  The childrenField only accpets 
> one.  How can this be done?  Or do I need to rename some of my XML nodes?
> 
> Thank,
> Mark
>




[flexcoders] childrenField in AdvancedDataGrid

2009-06-01 Thread Mark
Hi my XML has been set up pretty basic but it does have a few levels.  This is 
shortend, but it basically looks like this:







































Is there a way to get the advancedDataGrid to display the competencies as well 
as the deliverables in a tree structure?  The childrenField only accpets one.  
How can this be done?  Or do I need to rename some of my XML nodes?

Thank,
Mark



Re: [flexcoders] Re: Need Alternative for enterFrame event (Causing Memory leak )

2009-05-29 Thread mark . jonkman
Hi Dharmendra 

While you don't have access to JavaScript, would the old school methods still 
work such as setting a Flash variable on the active x control. Back in older 
versions of Flash the only way to communicate between the browser and the 
ActiveX was to use things like setVariable then inside Flash you would have a 
watch expression that watched for changes to that variable, and reacted. The 
variable value could only be a string (I think). Back then we would change the 
value of the variable from outside, have Flash react to the change, reset the 
value of the variable to its "non-set" state. Assuming this would still work, 
when the .NET application regained focus you would tell the ActiveX instance to 
setVariable("focusReceived", "true"); and in Flash it would see that, reset the 
listeners. One word of warning, if your resetting your listeners constantly, 
are you doing anything to remove the old listeners first - if not that may well 
be the source of your memory leak. I used the setVariable method in VB with the 
old Flash active x controls a number of years ago and it worked flawlessly, you 
just have to set it up right to begin with and it was obviously "messier" then 
the ExternalInterface method. 

Sincerely 
Mark R. Jonkman 

- Original Message - 
From: "Dharmendra Chauhan"  
To: flexcoders@yahoogroups.com 
Sent: Friday, May 29, 2009 3:00:46 PM GMT -05:00 US/Canada Eastern 
Subject: [flexcoders] Re: Need Alternative for enterFrame event (Causing Memory 
leak ) 

Hi Manish, 

Thanks for the suggestion. 

I wish , I could use java script to set the Focus but I do not have luxury of 
Java Script as My application is running as ActiveX control inside dot net 
based application. 

Once the callback broken , communication from Ashokwave lib to swf is not 
possible. 

This is really a serious issue, I need some work around to fix it as I could 
not wait till the adobe fix it. 

Regards, 
Dharmendra 




--- In flexcoders@yahoogroups.com, Manish Jethani  wrote: 
> 
> On Fri, May 29, 2009 at 12:40 AM, Dharmendra Chauhan 
>  wrote: 
> 
> > The issue is with callBack ,what is happening is as soon you hide Flex 
> > application by opening another application(any app) and then again you 
> > come back to your flex app , call back does not work , they are broken.I 
> > found following related jira for this. 
> > 
> > http://bugs.adobe.com/jira/browse/FP-143 
> > 
> > To solve this issue , I am re-registering all callBacks on ENTER_FRAME 
> > event and issue appears to be solved but this is leading to memory leak. 
> > 
> > Neither Activate nor FocusEvent.FOCUS_IN does serve my purpose , both 
> > required a mouse Clk before they dispached. 
> 
> I thought you'd get 'activate' when the player got focus. You could 
> try setting the focus back to Flash through JavaScript (I don't 
> remember how to do this now). You should be getting a focus event on 
> the HTML/JS side at least. 
> 
> Manish 
> 




 

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





Re: [flexcoders] Re: Successive Videos Display

2009-05-28 Thread mark . jonkman
Flash may be single threaded in terms of ActionScript code execution, but when 
you call something to load, Flash doesn't stay locked down on the load, it 
continues to give a slice of its processing to multiple operations, one at a 
time, stepping through a list of active processes. It even "idles" for a few 
milliseconds and then begins the entire process over again, executing code in 
each movieclip, main timeline, load processes, drawing the screen, breathe and 
repeat (not necessarily in that order). All net operations are handled 
asynchronously, you start it and either check back later if its done or listen 
for an event. So in theory if you had multiple NetStream instances, you could 
begin loading a video in each one, then attach the stream to the Video instance 
when you want to actually view it. I wouldn't necessarily attempt to do to many 
simultaneously, but if you are doing progressive flv you could monitor when the 
first one has finished loading (not playing) and begin loading the next video 
assuming you can anticipate the play order. I haven't done this myself, but in 
theory its plausible and perhaps the only way to do what you want to do. 

Sincerely 
Mark R. Jonkman 


- Original Message - 
From: "bharat_1"  
To: flexcoders@yahoogroups.com 
Sent: Thursday, May 28, 2009 2:20:21 PM GMT -05:00 US/Canada Eastern 
Subject: [flexcoders] Re: Successive Videos Display 

Thanks for the suggestion. I have a bit of confusion. What do you mean by "load 
the next one when while one is playing". ActionScript isn't multiothreaded. How 
can it load the next and play the current at the same time. Or did I not follow 
whatyou said correctly? 


- In flexcoders@yahoogroups.com, Manish Jethani  wrote: 

On Wed, May 27, 2009 at 6:20 PM, bharat_1  wrote: 
> My app needs to play multiple videos in succession. Can anyone guide on a 
> good way to buffer the next video while current one is playing? 

Perhaps a good way to do this would be to create multiple VideoDisplay 
instances with the autoPlay property set to false. Then you call 
load() on the next one in the queue while the current one is playing. 
When the current one finishes, you swap the new one in place and call 
play() on it (and load the next one). 

Manish 





 

-- 
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] popup systemManager not working

2009-05-28 Thread Mark Hosny

Hey guys,

For some reason when I dispatch a custom event via the pop up, my  
main app isn't receiving the event.


In my main app I have a custom component called search, which  
contains a button to open up a pop window called new member. In my  
pop up I have this:



[Event(name="onSendNewMember",type="com.event.SendNewMember")]


private function submitForm():void
{
newmemberinfo = new NewMemberInfo();
newmemberinfo.HOHlastName = HOHlastName_txt.text;



dispatchEvent(new SendNewMember 
("onSendNewMember",newmemberinfo));

}

Then in my main app

application.systemManager.addEventListener 
("onSendNewMember",onSendNewMember);


private function onSendNewMember(event:SendNewMember):void
{
Alert.show('GOT IT');
}


thanks,

hoz




[flexcoders] Problems with FABridge - bridge is undefined

2009-05-21 Thread Mark Schiavone
I'm using FABridge for a charting application and am having some big
problems with it.  Many times, the chart will load, but cannot display data
that is being passed in via the bridge.  It seems that Flex can call
JavaScript functions, but JavaScript can't find the bridge in order to
communicate with Flex.I'm currently seeing the issue in FireFox 3 and
not in IE, but the problem is intermittent.  On one implementation of the
code, it will work, but on another, it will not.

My app is complex and requires custom bridge names so that if rendered
multiple times on the same page, they won't bump into each other.  Not sure
if this is causing the issue or not.  Has anyone experienced anything like
this?

Thanks in advance,
Mark


[flexcoders] Re: filter complex arrayCollection

2009-05-19 Thread Mark
Thanks, but I'm looking to filter within children, so I need to dig down deeper 
then the "root" level.  My understaning is the filterFunction will only filter 
on the top most level.

-M

--- In flexcoders@yahoogroups.com, "valdhor"  wrote:
>
> Mark
> 
> Check into the filterFunction property of the ArrayCollection class.
> 
> This is how I use it in one section of my code...
> 
> filterText = "text I want to filter on";
> detailsArrColl.filterFunction = processFilter;
> 
> public function processFilter(item:Object):Boolean
> {
>  if (item.name.toUpperCase().indexOf(filterText.toUpperCase()) >= 0)
>   {
>   return true;
>   }
>  return false;
> }
> 
> 
> HTH
> 
> 
> 
> Steve
> 
> 
> --- In flexcoders@yahoogroups.com, "Mark"  wrote:
> >
> > Thanks for the link Ivan...
> >
> > Although that's very cool stuff I don't believe that's what I'm
> looking for in this case.  I'm really just looking to filter an
> ArrayCollection that goes beyond one level.  I'm having a hard time with
> this so I'm even wondering if I can do it with an ArrayCollection or if
> I need to use something like XMLListCollection.
> >
> > Mark
> >
> >
> >
> > --- In flexcoders@yahoogroups.com, Ivan Perez manoperez@ wrote:
> > >
> > > have you ever seen OLAP Cube for flex 3?
> > >
> http://livedocs.adobe.com/flex/3/html/help.html?content=olapdatagrid_6.h\
> tml
> > >
> > > Maybe it works.
> > >
> > >
> > > On Mon, May 18, 2009 at 12:02 PM, Mark mark.pusateri@ wrote:
> > >
> > > >
> > > >
> > > > Is there a way to filter an ArrayCollection of hierarchical data? 
> So if I
> > > > have a structure as I layed out below where I have a number of
> projects in
> > > > my ArrayCollection, how can I filter on delCreationDate within
> > > > deliverables/deliverable (there could be multiple deliverables)? 
> I've
> > > > looked around and can't find much on this.  If I can't filter an
> > > > ArrayCollection in this way, is there another collection I can use
> that will
> > > > allow me to do this?   Thanks
> > > >
> > > > 
> > > > 
> > > > 120
> > > > Deployment/pilot
> > > > 07/01/2008
> > > > 
> > > > 
> > > > 1
> > > > 3/31/2009
> > > > contactEmail>
> > > > 
> > > > 
> > > > 
> > > > 
> > > > False
> > > > 14129911
> > > > ICL Comms Internal Comms
> > > > 
> > > > 1
> > > > 
> > > > Open
> > > > Active
> > > > Jay Lindell
> > > > Jay Lindell
> > > > 
> > > >
> > > >   AITIC: Communication
> > > >   1
> > > >   1.5
> > > >   03/30/2009
> > > >   04/02/2009
> > > >   04/02/2009
> > > >   4/3/2009
> > > >   Complete
> > > >   
> > > >   
> > > >   144
> > > >   03/30/2009
> > > >   04/02/2009
> > > >  
> 04/02/2009
> > > >   1
> > > >   1.5
> > > >   4/3/2009
> > > >   Mark Pusateri
> > > >   Writer
> > > >   Complete
> > > >  
> > > >   
> > > >   
> > > > 
> > > > 
> > > > 
> > > >
> > > >
> > > >
> > > >
> > >
> > >
> > >
> > > --
> > > Ivan Perez - Desenvolvimento Tecnológico
> > > TecSinapse - www.tecsinapse.com.br
> > > 11 9324-0097  /  19 8812-0809
> > >
> >
>




[flexcoders] Re: filter complex arrayCollection

2009-05-19 Thread Mark
Thanks for the link Ivan...

Although that's very cool stuff I don't believe that's what I'm looking for in 
this case.  I'm really just looking to filter an ArrayCollection that goes 
beyond one level.  I'm having a hard time with this so I'm even wondering if I 
can do it with an ArrayCollection or if I need to use something like 
XMLListCollection.

Mark



--- In flexcoders@yahoogroups.com, Ivan Perez  wrote:
>
> have you ever seen OLAP Cube for flex 3?
> http://livedocs.adobe.com/flex/3/html/help.html?content=olapdatagrid_6.html
> 
> Maybe it works.
> 
> 
> On Mon, May 18, 2009 at 12:02 PM, Mark  wrote:
> 
> >
> >
> > Is there a way to filter an ArrayCollection of hierarchical data?  So if I
> > have a structure as I layed out below where I have a number of projects in
> > my ArrayCollection, how can I filter on delCreationDate within
> > deliverables/deliverable (there could be multiple deliverables)?  I've
> > looked around and can't find much on this.  If I can't filter an
> > ArrayCollection in this way, is there another collection I can use that will
> > allow me to do this?   Thanks
> >
> > 
> > 
> > 120
> > Deployment/pilot
> > 07/01/2008
> > 
> > 
> > 1
> > 3/31/2009
> > contactEmail>
> > 
> > 
> > 
> > 
> > False
> > 14129911
> > ICL Comms Internal Comms
> > 
> > 1
> > 
> > Open
> > Active
> > Jay Lindell
> > Jay Lindell
> > 
> >
> >   AITIC: Communication
> >   1
> >   1.5
> >   03/30/2009
> >   04/02/2009
> >   04/02/2009
> >   4/3/2009
> >   Complete
> >   
> >   
> >   144
> >   03/30/2009
> >   04/02/2009
> >   04/02/2009
> >   1
> >   1.5
> >   4/3/2009
> >   Mark Pusateri
> >   Writer
> >   Complete
> >  
> >   
> >   
> > 
> > 
> > 
> >
> >
> >  
> >
> 
> 
> 
> -- 
> Ivan Perez - Desenvolvimento Tecnológico
> TecSinapse - www.tecsinapse.com.br
> 11 9324-0097  /  19 8812-0809
>




[flexcoders] filter complex arrayCollection

2009-05-18 Thread Mark

Is there a way to filter an ArrayCollection of hierarchical data?  So if
I have a structure as I layed out below where I have a number of
projects in my ArrayCollection, how can I filter on delCreationDate
within deliverables/deliverable (there could be multiple deliverables)? 
I've looked around and can't find much on this.  If I can't filter an
ArrayCollection in this way, is there another collection I can use that
will allow me to do this?   Thanks



120
Deployment/pilot
07/01/2008


1
3/31/2009
contactEmail>




False
14129911
ICL Comms Internal Comms

1

Open
Active
Jay Lindell
Jay Lindell


   AITIC: Communication
   1
   1.5
   03/30/2009
   04/02/2009
   04/02/2009
   4/3/2009
   Complete
   
   
   144
   03/30/2009
   04/02/2009
   04/02/2009
   1
   1.5
   4/3/2009
   Mark Pusateri
   Writer
   Complete
  
   
   









Re: [flexcoders] Application Idea

2009-05-13 Thread Mark Winterhalder
On Wed, May 13, 2009 at 1:00 PM, kanu kukreja  wrote:
> I'm looking for an idea, so that i can create a application on based
> on that idea in flash or flex.

I assume you want a real-world app to learn by, because it's easier to
learn if you have a proper goal. Right?

These days, Twitter apps are popular for that. It's not too difficult,
and no matter how many are out there, they're never /just/ the way
you'd like them to be, it seems. You could use AIR for that, to have a
proper standalone app that can live in your dock and notify you when
new messages arrive.

Twitter is just an example. It could be any web-based service you use
that has a public API. Or, write a bookmark manager (you can read
Firefox' bookmarks), or a time logger.


Re: [flexcoders] Profiler telling lies?

2009-05-05 Thread Mark Doberenz
Check your event listeners because if you're not using weak references  
then the garbage collector won't remove it. Disregard if you already  
knew that one :)


On May 5, 2009, at 7:58 AM, "Gregor Kiddie"   
wrote:





Hi all,



I’m trying to work out where a memory leak is occurring in our appli 
cation (putting me into Jeff’s hell from last week).


When profiling the app, it claims there is still a back reference to  
its parent on the display list (even though I remove it!) at  
[child0]. When I debug the application, the child is removed as I’d  
expected, and the children array is empty.


So which one is lying? The profiler when it tells me there is still  
a back reference to the parent as [child0] or the debugger when it  
tells me the child has been removed…




Gk.

Gregor Kiddie
Senior Developer
INPS

Tel:   01382 564343

Registered address: The Bread Factory, 1a Broughton Street, London  
SW8 3QJ


Registered Number: 1788577

Registered in the UK

Visit our Internet Web site at www.inps.co.uk

The information in this internet email is confidential and is  
intended solely for the addressee. Access, copying or re-use of  
information in it by anyone else is not authorised. Any views or  
opinions presented are solely those of the author and do not  
necessarily represent those of INPS or any of its affiliates. If you  
are not the intended recipient please contact is.helpd...@inps.co.uk





mlmsg #ygrp-msg p a span.yshortcuts { font-family: Verdana; font- 
size: 10px; font-weight: normal; } #ygrp-msg p a { font-family:  
Verdana; font-size: 10px; } #ygrp-mlmsg a { color: #1E66AE; }  
div.attach-table div div a { text-decoration: none; } div.attach- 
table { width: 400px; } -->


[flexcoders] Re: blazeds mapping issue with Set

2009-04-30 Thread Mark Piller
And another workaround is to use WebORB, which will handle it just fine out of 
the box.

Cheers,
Mark

--- In flexcoders@yahoogroups.com, Pedro Sena  wrote:
>
> Another workaround is use GraniteDS instead of BlazeDS.
> 
> :D
> 
> On Thu, Apr 30, 2009 at 11:45 AM, aglosband  wrote:
> 
> >
> >
> > Hi Max. There was another bug logged to add support for Java 5.0 syntax
> > (which I take to mean Generics) to RemoteObjects.
> >
> > https://bugs.adobe.com/jira/browse/BLZ-115
> >
> > That bug has unfortunately been deferred for the time being but I'd suggest
> > that you view the bug report and vote on it which will help the issue get
> > some visibility and hopefully get it fixed faster.
> >
> > There is a workaround for this issue which is outlined by wichan in this
> > bug report.
> >
> > https://bugs.adobe.com/jira/browse/BLZ-305
> >
> > The workaround is to write a wrapper class for Long which then using a
> > BeanProxy will get mapped back to java.lang.Long before the remoting service
> > is called.
> >
> > Using this approach you would send a MyLong type across the wire from your
> > Flex application to the server. The MyLong type would get deserialized to
> > the MyLong java class which would then get passed through the BeanProxy (in
> > the example in the bug it's called MyLongProxy) and come out the other end
> > as a Long. This would then get passed to the remoting service.
> >
> > If you are passing an array collection of MyLong objects this would get
> > turned into a Set of Long objects so your RemoteObject code would not have
> > to change.
> >
> > Hope that helps.
> >
> > -Alex
> >
> > --- In flexcoders@yahoogroups.com ,
> > "max.bruchmann"  wrote:
> > >
> > > Hi,
> > > I am having some problems with blazeds and how it maps a collection
> > contains long elements.
> > >
> > > Let's assume I have a class
> > >
> > > public class MyClass {
> > >
> > > ..
> > >
> > > private Set myLongs;
> > >
> > > public void setMyLongs(Set myLongs){
> > > this.myLongs = myLongs;
> > > }
> > > public Set getMyLongs(){
> > > return myLongs;
> > > }
> > > }
> > > and I have a mapped class in flex and a instance of this class containing
> > an arraycollection with for example [1, 4]
> > >
> > > Now I'm sending this instance to my remoteobject
> > >
> > > ..
> > > public void receiveStuff(MyClass m){
> > >
> > > 
> > > }
> > > The problem I'm having now, is that blazeds actually mapped the 1 and 4
> > not as a Long into myLongs but as a Integer.
> > > Sofar this is not a big issue, but I'm passing it forward to hibernate
> > and there it leads to some errors:
> > >
> > >
> > > org.hibernate.type.LongType - could not bind value ... to parameter: ...
> > > java.lang.Integer cannot be cast to java.lang.Long
> > >
> > > I found already some bug reports on that in
> > https://bugs.adobe.com/jira/browse/BLZ-79 but it's marked as resolve with
> > the solution "don't use java syntax 1.5" which is not very helpful. So if
> > someone has a solution/workarround/idea please let me know.
> > >
> > > Thanks in advance
> > > Max
> > >
> >
> >  
> >
> 
> 
> 
> -- 
> /**
> * Pedro Sena
> * Systems Architect
> * Sun Certified Java Programmer
> * Sun Certified Web Component Developer
> */
>




[flexcoders] cfc to VO pesky problem

2009-04-27 Thread Mark Hosny

Hey guys,

I understand how to convert an array from my cfc into an array  
collection, populate a datagrid, and cast a selected Item to a VO. My  
problem is if I'm returning just 1 DB record and want to convert to a  
VO, so I can bind to a form (in other words, skip the populating a  
datagrid with AC part), how do I do this?


I thought I could do something like this:

[Bindable] public var ministry:Ministry;

ministry = event.result as Ministry;

or

var minList:Array = event.result as Array;
ministryList = new ArrayCollection(minList);
ministry = new Ministry();
ministry = ministryList.getItemAt(0) as Ministry;

I'm sure it's something simple I'm missing. Below is my cfc

returntype="array">







SELECT
ministryID,
name,

leader

FROM connectionInfo
			WHERE departmentID = value="#ARGUMENTS.departmentID#">





stMin = structNew();
stMin["_type_"] = 
"backstage.connect.com.services.Ministry";
stMin["ministryID"] = qRead.ministryID;
stMin["name"] = qRead.name;
stMin["leader"] = qRead.leader;

ArrayAppend(ret, duplicate(stMin));






Thanks,

Hoz






Re: [flexcoders] Re: Flash player 10 Debug not recognized in FB3

2009-04-22 Thread mark . jonkman
Hi Jason 

Sorry I don't have access to the full thread at the moment so pardon me if most 
of my suggestions have already been tried or are irrelevant. 

You would need to run the adobe uninstaller for the Flash plugin and then run 
the appropriate installer for the debug player installer (not the web 
installer). Though I've been successful in running just the debug installer and 
having it overwrite previous installs but I like cleanliness of doing an 
uninstall first. 

For FB3 you also need to make sure that you have I believe FB 3.0.2 in order to 
use FP 10 Debug player properly. Less then that and I was getting a ton 
warnings about not having the debug player. I still occasionally getting FB 3 
reporting back that I don't have a debug player and then totally crashing the 
browser it launched - up to 2 or 3 times a day (Windows IE7, FP 10,0,22,87 
Debug player - FB 3.0.2). Not sure if it will update to 3.0.2 by using the Help 
-> Search for Flex Builder Updates which invokes the adobe updates system that 
updates all adobe software (which I find very annoying) or whether you have to 
download a separate updater from Adobe. 

Flash and I believe Flex Builder also include a folder that contains the both 
the debug and release players so that you have both binaries available. But I 
can't say that they aren't always in synch with the latest debug players that 
you can find on Adobe's site if you search for the latest debug players. 

Sincerely 
Mark R. Jonkman 

- Original Message - 
From: "Jason"  
To: flexcoders@yahoogroups.com 
Sent: Wednesday, April 22, 2009 9:26:53 AM GMT -05:00 US/Canada Eastern 
Subject: [flexcoders] Re: Flash player 10 Debug not recognized in FB3 

> Every version has both debugger and release binaries. Somehow the release 
> binaries are installed. 
> 
> Alex Harui 

OK, thanks, but not really sure what that means or what to do with that 
information. Do you mean I have both the "normal" Flash player 10 installed as 
well as the debugger version of Flash 10? I have run the adobe uninstaller and 
then re-installed with no luck. 

Jason 





 

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





RE: [flexcoders] stopping a sevice call mid request

2009-04-20 Thread Mark Easton
Probably best to code this functionality on server side in your own proxy
which will in turn make the call to the listing service. This "proxy" can
check for multiple calls and handle that anyway you wish.

  -Original Message-
  From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com]on
Behalf Of Tracy Spratt
  Sent: Tuesday, 21 April 2009 4:28 p.m.
  To: flexcoders@yahoogroups.com
  Subject: RE: [flexcoders] stopping a sevice call mid request






  I am not sure that you can.  After all, the call is asynchronous, you have
sent it off to some place for handling.  What would such a “stop” do?  Go
the server processing the request and tell it to stop?  I can imagine it
would be possible to code such a behavior into the server process, but the
long running server process would have to continually check for a stop
order.



  Why are you wanting this behavior?



  Tracy Spratt,

  Lariat Services, development services available



--

  From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of djepyon
  Sent: Tuesday, April 21, 2009 12:12 AM
  To: flexcoders@yahoogroups.com
  Subject: [flexcoders] stopping a sevice call mid request








  I've tried combinations of stop() and disconnect() on HTTPService and
nothing seems to do the trick. If a user a series of quick requests to a
listing service I want to stop those that aren't the most recent. How can
this be done?

  Thanks


  


Re: [flexcoders] AutoComplete with multiple items

2009-04-01 Thread Mark Carter

I too, would like this?

Does anyone know of such a component?
-- 
View this message in context: 
http://www.nabble.com/AutoComplete-with-multiple-items-tp16840144p22840425.html
Sent from the FlexCoders mailing list archive at Nabble.com.



Re: [flexcoders] RemoteObject in AS3 Project

2009-04-01 Thread mark . jonkman
Hi Nick 

The dependancies really get a bit convoluted due to the localization classes 
that are intertwined for error messages and the like. Literally almost drove me 
to drinking trying to get this stuff to stand by itself - even just the 
ArrayCollection class to stand by itself. 

At best I've ever been able to do is root off of SimpleApplication instead of 
Application. This automatically includes some of the classes that are needed. 
Note: SimpleApplication does not appear as an option in any dropdown list, but 
its there (hidden). In essence it creates a very light "bootstrapped" version 
of the application that doesn't require nor will it allow you to use, any of 
the Flex components if I remember right. However, it *will* allow you Remoting 
standalone. 

If memory serves me right, you have to still be a bit careful in how you 
approach things. In order to use Remoting I believe you will need to specify 
everything manually vs. relying on compile settings. I ran into a problem with 
Remoting not working right when having a complex startup structure, but I was 
relying more on compile settings for the endpoints. At the time that was enough 
to make me abandon things, however later when I got things working with 
Application using settings I loaded manually from an xml file I didn't get a 
chance to go back and test if it would have worked with SimpleApplication. By 
that time I had wasted several days of research and needed to get things 
happening. 

So if I were you and I was attempting to do things I'd start out by doing the 
following: 

a) Create a Flex Application based on Application and figure out and get 
RemoteObject working without using the configuration settings in the project - 
that is do not declare that you are using remoting or any server type. Use as 
few UI components as possible. 
- I don't like MXML very much so I let Flex create the project and its 
main.mxml. I then create my own ActionScript class that extends Application in 
my normal package hiearchy. I then import the package using xmlns into the 
main.mxml and change the class defininition from mx:Application to the new 
namespace:MyApplication. I then ignore the MXML from there on out. 

b) Once a) is working, change out Application with SimpleApplication (same 
package, so just add Simple to the import and extends. Replace any UI 
components with simple things like TextFields and the like. See if it will 
work. 

c) Once your comfortable with a) & b) then I would take the concept and see if 
I could get it to work with the ActionScript project. Or if your like me, I 
stay with the Flex App project as there are a couple of other minor benefits in 
terms of automation and the lack of need to sort out the rest of the references 
to the libraries. SimpleAppication does not base off of a Container like 
Application does. It does bring along some baggage but the baggage depends on 
the amount of the Flex framework you access. 

Not sure if this will help you, but it summarizes how I attempted to approach 
it. Like I said I made some mistakes, and then didn't have time to go back and 
retest so the above might get it to work, might not. But take baby steps in the 
transition from one to the other vs. attempting huge leaps and you might be 
rewarded. 

Also, if you are going ot manually configure things I think I wound up needing 
to use: 

mx.rpc.remoting.mxml.RemoteObject 

and not just RemoteObject. 

sample manual configuration from an XML file 

_remoteObject = new RemoteObject(); 
_remoteObject.source = _configda...@source; 
_remoteObject.destination = pconfigda...@destination; 
_remoteObject.endpoint = pconfigda...@endpoint; 


where the config xml node looks like this: 
(FlourineFX) 
http://{server.name}/Gateway.aspx"; source="Service.ServiceFacade" /> 
or 
(ColdFusion) 
http://{server.name}:{server.port}/flex2gateway/"; 
source="Service.ServiceFacade" /> 

Sincerely 
Mark R. Jonkman 
- Original Message - 
From: "Nick"  
To: flexcoders@yahoogroups.com 
Sent: Wednesday, April 1, 2009 1:45:10 PM GMT -05:00 US/Canada Eastern 
Subject: [flexcoders] RemoteObject in AS3 Project 

Hello all! 

I am trying to use the RemoteObject class along with ResultEvent etc in an AS3 
project in FB3. Ideally I would like to remote out using these objects and not 
have to load the entire Flex framework within an Application container. Is this 
possible? I have done some searching and my results suggests it is not BUT I 
could of sworn I have seen some people doing this a while back. Am I mistaken? 

I appreciate it!! 

Thanks. 

Nick 



 

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





Re: [flexcoders] Re: I want to use Flex Builder 3 to develop Flash Games

2009-03-30 Thread mark . jonkman
meline for, I 
create a symbol that would represent that timeline and use it instead. 

I hate debugging in Flash itself (the Flex debugger is 10xs better for whatever 
reason that is I don't know - just easier to use, and at least in CS3 didn't 
crash as much). I've been told that the Flash debugger was based on the Flex 
debugger but for whatever reason the Flash team missed the boat on something 
because they don't work the same. Plus you might gain the use of the Flex 
profiler. 

The above workflow works for me, if you use Master symbols to pull in all the 
assets then you have a cleaner way that doesn't require as much effort to 
maintain. You don't have to create swcs for individual assets, just in the 
publish settings check the box that says create swc (it goes by the name of the 
swf and into the same folder and name). Flash needs to see the real classes 
when associating them with Symbols in the library but only the actual symbol 
gets pulled in *if* you use the same src folder in Flex Builder. 

Just *DO NOT* refer to anything in the Flex framework - this is for Game/Flash 
AS only development, the rules change big time the second you want to use 
anything in the Flex framework. 

But there is absolutely no way to update a Flash swf with new code from within 
Flex. You get close using the above and tweaking a bit. 

Sincerely 
Mark R. Jonkman 


Re: [flexcoders] Re: How to restore the default work space in flex builder 3?

2009-03-26 Thread mark . jonkman
Do you mean like Windows -> Perspectives -> Reset Perspective?? 

That would reset the Flex Debug perspective or Flex Developer perspective back 
to the original adobe defaults. 

Sincerely 
Mark R. Jonkman 

- Original Message - 
From: "krshnaonweb"  
To: flexcoders@yahoogroups.com 
Sent: Thursday, March 26, 2009 10:59:51 AM GMT -05:00 US/Canada Eastern 
Subject: Re: [flexcoders] Re: How to restore the default work space in flex 
builder 3? 


Did try that 

By mistake, I did close all workspace windows 

I need to get default work space, just like when I open like in flash. 

Please help me out here. 

Thanks in advance. 

Kris 

On Thu, Mar 26, 2009 at 8:13 PM, valdhor < valdhorli...@embarqmail.com > wrote: 








Go to File->Switch Workspace->Other... and browse to a new directory. 

Why would you want to do this? 




--- In flexcoders@yahoogroups.com , krshnaonweb  wrote: 
> 
> HI!! 
> 
> I am new bie in flex here. 
> How to restore the default work space in flex builder 3, ? 
> 
> Thanks 
> .kr 
> 









-- 
Best, 
.Kr 



 

Re: [flexcoders] Can you get the class name of an object?

2009-03-25 Thread mark . jonkman
You can use 

var objectClassName:String = getQualifiedClassName(object); 

If you are using all Flex components, you can use the className property of the 
flex component which returns just the name like "Button". The other method 
above works for any object class. 

Sincerely 
Mark R. Jonkman 



- Original Message - 
From: "flexaustin"  
To: flexcoders@yahoogroups.com 
Sent: Wednesday, March 25, 2009 2:29:42 PM GMT -05:00 US/Canada Eastern 
Subject: [flexcoders] Can you get the class name of an object? 

I am using a framework that has a function that requires class name, see below 
(_ops.hasOwnProperty(name) ): 

The function expects an array of names (name of object types), such as Button 
or lineChart. 

Is there a way to get the class name? So if I am passed a Button object is 
there a way to get the object type as a string...so "Button". 


public function doUpdate(t:*=null, ...operators):Transitioner 
{ 
if (operators) { 
if (operators.length == 0) { 
operators = null; 
} else if (operators[0] is Array) { 
operators = operators[0].length > 0 ? operators[0] : null; 
} 
} 
var trans:Transitioner = Transitioner.instance(t); 
if (_axes != null) _axes.update(trans); 
if (operators) { 
for each (var name:String in operators) { 
if (_ops.hasOwnProperty(name)){ 
trace('ops[name] is ' + _ops[name] ); 
_ops[name].operate(trans); 
}else{ 
throw new Error("Unknown operator: " + name); 
} 
} 
} else { 



 

-- 
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] Re: Weborb

2009-03-24 Thread Mark Piller
Hi Scott,

Were you looking into WebORB for your Flex to CF connectivity?

Regards,
Mark

--- In flexcoders@yahoogroups.com, "Scott"  wrote:
>
> I briefly looked at Weborb last fall but decided against doing anything
> with it since it was fairly expensive.  I do remoteobject on a
> coldfusion backend.  With Flex builder I get some code generation if I
> so desire (and the code doesn't look too bad either) and I understand
> that is in Weborb as well.
> 
>  
> 
> The sales person I talked to didn't seem really that technical.  Can
> someone tell me the real benefits in using weborb if there are any?
> 
>  
> 
>  Thanks
> 
>Scott
>




RE: [flexcoders] How to disable a checkbox in a Datagrid Column

2009-02-10 Thread Mark Easton
You will need to code it as I have ... I could be wrong though.

  -Original Message-
  From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com]on
Behalf Of koti reddy
  Sent: Wednesday, 11 February 2009 12:42 p.m.
  To: flexcoders@yahoogroups.com
  Subject: Re: [flexcoders] How to disable a checkbox in a Datagrid Column



  I have implemented like below.The below lines of code is my one of the
column in datagrid.

  
  
  
  
  
  
  





--
  From: Mark Easton 
  To: flexcoders@yahoogroups.com
  Sent: Tuesday, February 10, 2009 4:37:06 PM
  Subject: RE: [flexcoders] How to disable a checkbox in a Datagrid Column



  Well your itemrender can be coded as so:

  
  http://www.adobe. com/2006/ mxml"
   paddingLeft= "10">

  
  
  


  and accessed in your datagrid column like so:


  

-Original Message-
From: flexcod...@yahoogro ups.com [mailto:flexcoders@ yahoogroups.
com]On Behalf Of b.kotireddy
Sent: Wednesday, 11 February 2009 12:31 p.m.
To: flexcod...@yahoogro ups.com
Subject: [flexcoders] How to disable a checkbox in a Datagrid Column


Hi guys,

I have a check box for each record in Datagrid Column. I used the
itemRenderer to create checkbox. I want to disable that column or
checkbox in that column when my user does not have permission to
uncheck or check that checkbox.

Please help me to do this.

Thanks in advance
koti






  


RE: [flexcoders] How to disable a checkbox in a Datagrid Column

2009-02-10 Thread Mark Easton
Well your itemrender can be coded as so:


http://www.adobe.com/2006/mxml";
 paddingLeft="10">






and accessed in your datagrid column like so:




  -Original Message-
  From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com]on
Behalf Of b.kotireddy
  Sent: Wednesday, 11 February 2009 12:31 p.m.
  To: flexcoders@yahoogroups.com
  Subject: [flexcoders] How to disable a checkbox in a Datagrid Column


  Hi guys,

  I have a check box for each record in Datagrid Column. I used the
  itemRenderer to create checkbox. I want to disable that column or
  checkbox in that column when my user does not have permission to
  uncheck or check that checkbox.

  Please help me to do this.

  Thanks in advance
  koti



  


RE: [flexcoders] Re: sms with flex and coldfusion

2009-02-04 Thread Mark Easton
Off topic a little, but 

One of the unique features that bulletinwireless has is "two-way" sms for
which they possess a long standing patent.

Essentially, through their associations with the telcos and gateway
providers, then can control part of the source msisdn and thus use that part
to thread messages. So when a reply comes back, you know which sms it is a
reply to.



  -Original Message-
  From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com]on
Behalf Of Gregor Kiddie
  Sent: Wednesday, 4 February 2009 10:22 p.m.
  To: flexcoders@yahoogroups.com
  Subject: RE: [flexcoders] Re: sms with flex and coldfusion



  You might want to take a look at Ribbit as well, they offer text messages.

  http://developer.ribbit.com/platform/features



  Gk.

  Gregor Kiddie
  Senior Developer
  INPS

  Tel:   01382 564343

  Registered address: The Bread Factory, 1a Broughton Street, London SW8 3QJ

  Registered Number: 1788577

  Registered in the UK

  Visit our Internet Web site at www.inps.co.uk

  The information in this internet email is confidential and is intended
solely for the addressee. Access, copying or re-use of information in it by
anyone else is not authorised. Any views or opinions presented are solely
those of the author and do not necessarily represent those of INPS or any of
its affiliates. If you are not the intended recipient please contact
is.helpd...@inps.co.uk



--




  


RE: [flexcoders] Re: sms with flex and coldfusion

2009-02-04 Thread Mark Easton
No there is nothing in Flex for sms. I cant say for Cold Fusion.

But, sending and receiving SMS is no big deal if you arre using Email2SMS or
some API.

The other way is to use your own modem and send SMS messages with that - but
you did not want to use a gateway.

I was actually the Development Manager at www.bulletinwireless.co.nz for a
few years, so I know a bit about it.


  -Original Message-
  From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com]on
Behalf Of stinasius
  Sent: Wednesday, 4 February 2009 9:07 p.m.
  To: flexcoders@yahoogroups.com
  Subject: [flexcoders] Re: sms with flex and coldfusion


  isn't there a custom component or can i just write my own code for it?
  thats what i meant



  


RE: [flexcoders] sms with flex and coldfusion

2009-02-04 Thread Mark Easton
Many ways. For example just use an Email2SMS product or a product with and
SMS API.

e.g. http://www.bulletinonline.net/bw/index.jsp



  -Original Message-
  From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com]on
Behalf Of stinasius
  Sent: Wednesday, 4 February 2009 8:54 p.m.
  To: flexcoders@yahoogroups.com
  Subject: [flexcoders] sms with flex and coldfusion


  how can i send an sms to a mobile phone without the need of a gateway
  through a flex form using a coldfusion backend?



  


Re: [flexcoders] using an event to trigger an action in a sibling component

2009-01-31 Thread Mark Doberenz
I tend to create a public method on my Login screen called reset() or
something like that.Then, I can easily call it to reset that form.

Mark

On Sat, Jan 31, 2009 at 8:58 PM, weezee49  wrote:

>   I have the following structure:
>
> Application
> |___ViewStack
> |SplashBox
> |VBox
> |___Accordion
> |Login
> |CreateAccount
> |MainBox
>
>
> In MainBox I dispatch a logoutEvent. Among other things as a result
> of this event, I want to clear the fields in the Login component. The
> only way I have been successful so far is to call an init() function
> from creationComplete in Login that looks like this:
>
> private function init():void{
> parent.parent.parent.parent.parent.addEventListener("logoutEvent",
> clearFields)
> }
>
> As I understand events, the logoutEvent in MainBox bubbles up to the
> ViewStack, and then to the Application. Is there a better way to
> force the event down to Login? Repeatedly using parent in this
> fashion seems so inelegant. And if I change my structure at all, I'll
> also have to remember to go into the code and change the number of
> parents in the init() function.
>
> TIA!
> LG
>
>  
>


[flexcoders] How can an SWF read its own metadata tags?

2009-01-31 Thread Mark Carter

How to read SWF metadata tags (like "title", "publisher" etc) at runtime from
within that SWF?

I use ANT to build the SWF. I manually define metadata like "project name"
etc in a build.properties file. I use these values in ANT to name the SWF
and installer etc and also I can use them to set the metadata tags of the
SWF I'm compiling to.

But when this SWF is running, how can that metadata be accessed?

Or is it better to embed the build.properties in the SWF?

I need this for an About dialog box.
-- 
View this message in context: 
http://www.nabble.com/How-can-an-SWF-read-its-own-metadata-tags--tp21760968p21760968.html
Sent from the FlexCoders mailing list archive at Nabble.com.



RE: [flexcoders] Charting 1 minute data over 1 year

2009-01-29 Thread Mark Easton
Greg, I really like that idea. Will factor it in to our design discussions
here.

Many thanks,
Mark


  -Original Message-
  From: Gregory Kelley [mailto:flexcod...@yahoogroups.com]on Behalf Of
Gregory Kelley
  Sent: Friday, 30 January 2009 5:47 p.m.
  To: flexcoders@yahoogroups.com
  Subject: RE: [flexcoders] Charting 1 minute data over 1 year


  Just a thought but if you are limited by pixels maybe you can make pixel
represent a subset of data. Then if you can use that subset to test for
outliers at certain deviations you color it differently then a red dot needs
further review yellow dots are not that bad and blue dots are
inconsequential. (hot - cold colors). Each dot would represent a plotable
set of data.

  Greg

  

  From: flexcoders@yahoogroups.com on behalf of Mark Easton
  Sent: Thu 1/29/2009 7:59 PM
  To: flexcoders@yahoogroups.com
  Subject: RE: [flexcoders] Charting 1 minute data over 1 year

  ? 
  Definitely will do Doug. Its going to test my flex skills, but I hope to
have done it by the end of next week. It is complicated in that we have a
dashboard that allows the users to see many graphs for all the different
sensors, contact inputs and actuators at the same time - and move them in to
display groups (each display group has its own tab). I am taking the
approach that these "display group" graphs will all be displayed for the
last 24 hours or the last hour (switchable by the user). Then if the user
wants to do further analysis he/she can select the graph to analyse it
further and we will do that in a full size window. That is where we will
apply what is discussed below.

  Graphing actuators and contact inputs is also interesting as they only
have three values - Nan, 0 and 1. I will used a stepped line for those, but
will still need to be massaging data depending on the sample size required
to fit the data into the available x-axis pixels. In this case the client
does not want the sampling to miss any state change activity. Obviously we
cant average the sample data, so for this I am thinking I will plot the
sample entry point and exit point. Then, in another series I will also plot
the number of state changes in the sample. Then the user can slice using the
slider to look at parts of the graph in more detail and thus be able to see
exactly what the activity was.

  Thanks!



  -Original Message-
  From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com]on
Behalf Of Doug McCune
  Sent: Friday, 30 January 2009 1:43 p.m.
  To: flexcoders@yahoogroups.com
  Subject: Re: [flexcoders] Charting 1 minute data over 1 year



  Hey Mark, 

  This might be out of the question due to client restrictions, but I'd be
very interested in seeing a screenshot of the solution you come up with
(even if you have to use some fake data to show us). It's an interesting
data visualization problem and I think it would benefit many people here (or
maybe just me) to see how you decided to solve it. So if after you figure
out a workable solution you can share what you did and how well it worked,
I'd be interested.

  Best of luck,
  Doug


  On Thu, Jan 29, 2009 at 4:12 PM, Mark Easton mailto:mar...@azurebell.co.nz> > wrote:


  ? 

  Thanks Doug,

  Yes I have been thinking (the last hour) of using such a representation or
alternatively of plotting a graph of floating columns, with each column
starting at min and ending at max, combined with a line graph in a different
colour showing the averages. BUT (and this is a big but) the client said he
was not interested in min and max, but rather exceptional values. Although I
have to take his requirements with a grain of salt sometimes it does pay to
listen to him - he is the client! :)

  The exceptions may be a single solitary value or a series of values. So,
if I were to grab the points that within each sample are 1 or 2 std
deviations outside the normal then I wont always have these points - so they
may just be the odd value. Hence using floating columns to display these
seems to make sense. 

  Mark



  -Original Message-
  From: flexcoders@yahoogroups.com <mailto:flexcoders@yahoogroups.com>
[mailto:flexcoders@yahoogroups.com <mailto:flexcoders@yahoogroups.com> ]On
Behalf Of Doug McCune
  Sent: Friday, 30 January 2009 12:34 p.m.
  To: flexcoders@yahoogroups.com <mailto:flexcoders@yahoogroups.com> 
  Subject: Re: [flexcoders] Charting 1 minute data over 1 year



  What if you aggregate your data by some amount (say the maximum resolution
you can display on the x-axis), and then for each data point you plot the
min, max, and average, kind of like the HLOCChart that's used to show stock
data. That would let you see the average trend as well as identify any peaks
or valleys that were out of the ordinary. So then the task involves being
able to efficiently take 500,000 points and turn it into 2,000 aggregated
points with min/max/avg.

  Or even

RE: [flexcoders] Charting 1 minute data over 1 year

2009-01-29 Thread Mark Easton
Definitely will do Doug. Its going to test my flex skills, but I hope to have 
done it by the end of next week. It is complicated in that we have a dashboard 
that allows the users to see many graphs for all the different sensors, contact 
inputs and actuators at the same time - and move them in to display groups 
(each display group has its own tab). I am taking the approach that these 
"display group" graphs will all be displayed for the last 24 hours or the last 
hour (switchable by the user). Then if the user wants to do further analysis 
he/she can select the graph to analyse it further and we will do that in a full 
size window. That is where we will apply what is discussed below.

Graphing actuators and contact inputs is also interesting as they only have 
three values - Nan, 0 and 1. I will used a stepped line for those, but will 
still need to be massaging data depending on the sample size required to fit 
the data into the available x-axis pixels. In this case the client does not 
want the sampling to miss any state change activity. Obviously we cant average 
the sample data, so for this I am thinking I will plot the sample entry point 
and exit point. Then, in another series I will also plot the number of state 
changes in the sample. Then the user can slice using the slider to look at 
parts of the graph in more detail and thus be able to see exactly what the 
activity was.

Thanks!


  -Original Message-
  From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com]on Behalf 
Of Doug McCune
  Sent: Friday, 30 January 2009 1:43 p.m.
  To: flexcoders@yahoogroups.com
  Subject: Re: [flexcoders] Charting 1 minute data over 1 year


  Hey Mark, 

  This might be out of the question due to client restrictions, but I'd be very 
interested in seeing a screenshot of the solution you come up with (even if you 
have to use some fake data to show us). It's an interesting data visualization 
problem and I think it would benefit many people here (or maybe just me) to see 
how you decided to solve it. So if after you figure out a workable solution you 
can share what you did and how well it worked, I'd be interested.

  Best of luck,
  Doug



  On Thu, Jan 29, 2009 at 4:12 PM, Mark Easton  wrote:

 

Thanks Doug,

Yes I have been thinking (the last hour) of using such a representation or 
alternatively of plotting a graph of floating columns, with each column 
starting at min and ending at max, combined with a line graph in a different 
colour showing the averages. BUT (and this is a big but) the client said he was 
not interested in min and max, but rather exceptional values. Although I have 
to take his requirements with a grain of salt sometimes it does pay to listen 
to him - he is the client! :)

The exceptions may be a single solitary value or a series of values. So, if 
I were to grab the points that within each sample are 1 or 2 std deviations 
outside the normal then I wont always have these points - so they may just be 
the odd value. Hence using floating columns to display these seems to make 
sense. 

Mark


  -Original Message-
  From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com]on 
Behalf Of Doug McCune
  Sent: Friday, 30 January 2009 12:34 p.m.
  To: flexcoders@yahoogroups.com
  Subject: Re: [flexcoders] Charting 1 minute data over 1 year


  What if you aggregate your data by some amount (say the maximum 
resolution you can display on the x-axis), and then for each data point you 
plot the min, max, and average, kind of like the HLOCChart that's used to show 
stock data. That would let you see the average trend as well as identify any 
peaks or valleys that were out of the ordinary. So then the task involves being 
able to efficiently take 500,000 points and turn it into 2,000 aggregated 
points with min/max/avg.

  Or even just do 3 completely separate line series for the min, max, and 
avg. There's only so much information you can show in a single horizontal 
pixel, so there's simply no way to show all the data. But showing min/max/avg 
might get you the info you need.

  Doug



  On Thu, Jan 29, 2009 at 3:27 PM, Maciek Sakrejda  
wrote:

How about, on the main graph, showing the raw data as limited by the
slider, but on the slider, show points that average over some period of
time, combined with a separate series for outlying points (those outside
1 or 2 standard deviations from the mean)?

This gives you an overview of the general trends, a quick indication of
outliers, and an ability to zoom in on any single section fairly easily.


-- 
Maciek Sakrejda
Truviso, Inc.
http://www.truviso.com

-Original Message-
From: Mark Easton 
Reply-To: flexcoders@yahoogroups.com

To: flexcoders@yahoogroups.com
Subject: RE: [flexco

RE: [flexcoders] Charting 1 minute data over 1 year

2009-01-29 Thread Mark Easton
Thanks Doug,

Yes I have been thinking (the last hour) of using such a representation or 
alternatively of plotting a graph of floating columns, with each column 
starting at min and ending at max, combined with a line graph in a different 
colour showing the averages. BUT (and this is a big but) the client said he was 
not interested in min and max, but rather exceptional values. Although I have 
to take his requirements with a grain of salt sometimes it does pay to listen 
to him - he is the client! :)

The exceptions may be a single solitary value or a series of values. So, if I 
were to grab the points that within each sample are 1 or 2 std deviations 
outside the normal then I wont always have these points - so they may just be 
the odd value. Hence using floating columns to display these seems to make 
sense. 

Mark


  -Original Message-
  From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com]on Behalf 
Of Doug McCune
  Sent: Friday, 30 January 2009 12:34 p.m.
  To: flexcoders@yahoogroups.com
  Subject: Re: [flexcoders] Charting 1 minute data over 1 year


  What if you aggregate your data by some amount (say the maximum resolution 
you can display on the x-axis), and then for each data point you plot the min, 
max, and average, kind of like the HLOCChart that's used to show stock data. 
That would let you see the average trend as well as identify any peaks or 
valleys that were out of the ordinary. So then the task involves being able to 
efficiently take 500,000 points and turn it into 2,000 aggregated points with 
min/max/avg.

  Or even just do 3 completely separate line series for the min, max, and avg. 
There's only so much information you can show in a single horizontal pixel, so 
there's simply no way to show all the data. But showing min/max/avg might get 
you the info you need.

  Doug



  On Thu, Jan 29, 2009 at 3:27 PM, Maciek Sakrejda  
wrote:

How about, on the main graph, showing the raw data as limited by the
slider, but on the slider, show points that average over some period of
time, combined with a separate series for outlying points (those outside
1 or 2 standard deviations from the mean)?

This gives you an overview of the general trends, a quick indication of
outliers, and an ability to zoom in on any single section fairly easily.


-- 
Maciek Sakrejda
Truviso, Inc.
http://www.truviso.com

-Original Message-
From: Mark Easton 
Reply-To: flexcoders@yahoogroups.com

To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Charting 1 minute data over 1 year
Date: Fri, 30 Jan 2009 12:16:16 +1300

 

Hi Maciek,

Thanks for your response. 

Yes I have seen that example and I liked it. We still need to contend,
though, with having 500,000 values to plot for the full graph. Using
standard graphing that takes for ever to plot - in fact I could not get
it to plot. 2000 values seems to the maximum number of points that can
be plotted, or to be exact the number of pixels available on x-axis. So
how can I take 500,000 points and :

1. Producre a graph that as closely as possible retains its shape?
2. Shows exceptional values

If I were to massage the 500,000 points by taking sample of 250 points
and averaging them, then I can miss important detail. I could use a
vertical column graph with floating columns, where I plotted the line
starting at min and ending at max for the plot point.

Furthermore as the user used the slider to look at a smaller portion of
the graph I would still want to plot at maximum pixel detail. That is if
the user uses the slider to look at 1 month then that would allow me to
plot points where each point was calculated from a smaller sample size.

Cheers
Mark

-Original Message-
From: flexcoders@yahoogroups.com
[mailto:flexcod...@yahoogroups.com]on Behalf Of Maciek Sakrejda
Sent: Friday, 30 January 2009 11:21 a.m.
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Charting 1 minute data over 1 year


Have you suggested a thumbnail slider solution à la Google
Finance (say,
like here:

http://www.meutzner.com/blog/index.cfm/2007/6/15/Google-Finance-with-Flex-from-Silvafug-last-night
 )? We've implemented something similar, and it works quite well. I can't share 
our implementation, but the example I linked has source.
-- 
Maciek Sakrejda
Truviso, Inc.
http://www.truviso.com

-Original Message-
From: Mark Easton 
Reply-To: flexcoders@yahoogroups.com
To: Flexcoders 
Subject: [flexcoders] Charting 1 minute data over 1 year
Date: Fri, 30 Jan 2009 11:04:42 +1300

Hi,

I am trying to work out how best to produce a chart which allows
a user
to
make sense of data logged every minute for up to 12 months (ie
524160
values). To complicate matters the

RE: [flexcoders] Charting 1 minute data over 1 year

2009-01-29 Thread Mark Easton
I like the idea of the separate series for the outlying points. 

With respect to the main graph showing raw data ...I am not sure that would be 
acceptable to the client. Depending on the range selected by the slider the 
main graph would still be limited by available x-axis pixels in terms of what 
it can display. At one extreme the user could user the slider to select the 
whole graph - that dataset is 500,000 points. We could limit the slider to the 
detail that can be displayed in the main graph. But that means that only a 
small slice can be viewed at any one time, and the added user problem of having 
to move two sliders to keep the slice small.

I think if we went this way then when the slider is resposition I would need to 
look at the data population size for that and base on available x-axis pixels 
produce a new dataset to display the top graph. But I believe this would make 
the slider, slow and difficult to use, unless I allowed the sliders to be 
positioned and then the user clicked some button to generate the new graph.


  -Original Message-
  From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com]on Behalf 
Of Maciek Sakrejda
  Sent: Friday, 30 January 2009 12:27 p.m.
  To: flexcoders@yahoogroups.com
  Subject: RE: [flexcoders] Charting 1 minute data over 1 year


  How about, on the main graph, showing the raw data as limited by the
  slider, but on the slider, show points that average over some period of
  time, combined with a separate series for outlying points (those outside
  1 or 2 standard deviations from the mean)?

  This gives you an overview of the general trends, a quick indication of
  outliers, and an ability to zoom in on any single section fairly easily.
  -- 
  Maciek Sakrejda
  Truviso, Inc.
  http://www.truviso.com

  -Original Message-
  From: Mark Easton 
  Reply-To: flexcoders@yahoogroups.com
  To: flexcoders@yahoogroups.com
  Subject: RE: [flexcoders] Charting 1 minute data over 1 year
  Date: Fri, 30 Jan 2009 12:16:16 +1300

   

  Hi Maciek,

  Thanks for your response. 

  Yes I have seen that example and I liked it. We still need to contend,
  though, with having 500,000 values to plot for the full graph. Using
  standard graphing that takes for ever to plot - in fact I could not get
  it to plot. 2000 values seems to the maximum number of points that can
  be plotted, or to be exact the number of pixels available on x-axis. So
  how can I take 500,000 points and :

  1. Producre a graph that as closely as possible retains its shape?
  2. Shows exceptional values

  If I were to massage the 500,000 points by taking sample of 250 points
  and averaging them, then I can miss important detail. I could use a
  vertical column graph with floating columns, where I plotted the line
  starting at min and ending at max for the plot point.

  Furthermore as the user used the slider to look at a smaller portion of
  the graph I would still want to plot at maximum pixel detail. That is if
  the user uses the slider to look at 1 month then that would allow me to
  plot points where each point was calculated from a smaller sample size.

  Cheers
  Mark

  -Original Message-
  From: flexcoders@yahoogroups.com
  [mailto:flexcod...@yahoogroups.com]on Behalf Of Maciek Sakrejda
  Sent: Friday, 30 January 2009 11:21 a.m.
  To: flexcoders@yahoogroups.com
  Subject: Re: [flexcoders] Charting 1 minute data over 1 year


  Have you suggested a thumbnail slider solution à la Google
  Finance (say,
  like here:
  
http://www.meutzner.com/blog/index.cfm/2007/6/15/Google-Finance-with-Flex-from-Silvafug-last-night
 )? We've implemented something similar, and it works quite well. I can't share 
our implementation, but the example I linked has source.
  -- 
  Maciek Sakrejda
  Truviso, Inc.
  http://www.truviso.com

  -Original Message-
  From: Mark Easton 
  Reply-To: flexcoders@yahoogroups.com
  To: Flexcoders 
  Subject: [flexcoders] Charting 1 minute data over 1 year
  Date: Fri, 30 Jan 2009 11:04:42 +1300

  Hi,

  I am trying to work out how best to produce a chart which allows
  a user
  to
  make sense of data logged every minute for up to 12 months (ie
  524160
  values). To complicate matters the graphs are are presented on a
  dashboard
  where the user can display many graphs at once - so we are not
  just
  displaying the one graph and the size of the graph will change
  depending
  on
  how many graphs are being displayed in the dashboard window.

  We are logging sensor data (temperature, current, vibration,
  humidity,
  wind
  speed etc). Client does not like a month, week, day, hour,
  minute drill
  down
  scenario - I tried that and it was rejected. He wants a line
  graph, but
  where we do have to average data would like to some idea of max
  and mins
  -
  maybe that can be done in point comment. Trouble is if we chart
  so many
  points then there are too many points for the mouse click to
  discern.

  Essen

RE: [flexcoders] Charting 1 minute data over 1 year

2009-01-29 Thread Mark Easton
Hi Maciek,

Thanks for your response. 

Yes I have seen that example and I liked it. We still need to contend, though, 
with having 500,000 values to plot for the full graph. Using standard graphing 
that takes for ever to plot - in fact I could not get it to plot. 2000 values 
seems to the maximum number of points that can be plotted, or to be exact the 
number of pixels available on x-axis. So how can I take 500,000 points and :

1. Producre a graph that as closely as possible retains its shape?
2. Shows exceptional values

If I were to massage the 500,000 points by taking sample of 250 points and 
averaging them, then I can miss important detail. I could use a vertical column 
graph with floating columns, where I plotted the line starting at min and 
ending at max for the plot point.

Furthermore as the user used the slider to look at a smaller portion of the 
graph I would still want to plot at maximum pixel detail. That is if the user 
uses the slider to look at 1 month then that would allow me to plot points 
where each point was calculated from a smaller sample size.

Cheers
Mark

  -Original Message-
  From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com]on Behalf 
Of Maciek Sakrejda
  Sent: Friday, 30 January 2009 11:21 a.m.
  To: flexcoders@yahoogroups.com
  Subject: Re: [flexcoders] Charting 1 minute data over 1 year


  Have you suggested a thumbnail slider solution à la Google Finance (say,
  like here:
  
http://www.meutzner.com/blog/index.cfm/2007/6/15/Google-Finance-with-Flex-from-Silvafug-last-night
 )? We've implemented something similar, and it works quite well. I can't share 
our implementation, but the example I linked has source.
  -- 
  Maciek Sakrejda
  Truviso, Inc.
  http://www.truviso.com

  -Original Message-
  From: Mark Easton 
  Reply-To: flexcoders@yahoogroups.com
  To: Flexcoders 
  Subject: [flexcoders] Charting 1 minute data over 1 year
  Date: Fri, 30 Jan 2009 11:04:42 +1300

  Hi,

  I am trying to work out how best to produce a chart which allows a user
  to
  make sense of data logged every minute for up to 12 months (ie 524160
  values). To complicate matters the graphs are are presented on a
  dashboard
  where the user can display many graphs at once - so we are not just
  displaying the one graph and the size of the graph will change depending
  on
  how many graphs are being displayed in the dashboard window.

  We are logging sensor data (temperature, current, vibration, humidity,
  wind
  speed etc). Client does not like a month, week, day, hour, minute drill
  down
  scenario - I tried that and it was rejected. He wants a line graph, but
  where we do have to average data would like to some idea of max and mins
  -
  maybe that can be done in point comment. Trouble is if we chart so many
  points then there are too many points for the mouse click to discern.

  Essentially the client would like to see the data always at maximum
  detail
  no matter what period is being looked at. I have read this
  http://www.cynergysystems.com/blogs/page/andrewtrice?entry=visualizing_large
  _data_sets, and am thinking that I will need to proceed in kind and to
  use
  an Image object and set BitmapData pixels directly - depending on how I
  decide to reimplement this thing. Of course I am limited by the number
  of
  pixels available along the x-axis for a given chart size.

  This is complicated as the client would like to zoom on the graph and
  also
  look at time slices. The client would also like to be able to see
  exceptions
  clearly on the graph - for example if there was a vibration spike. Also
  sometimes the sensor might not be operational so we need to see those
  breaks
  in the graph when no data was captured.

  All in all I am finding this a complicated requirement to unravel, as
  some
  of the requirements seem to be nonsensical - eg having a zoom - when the
  client always wants to see maximum detail???

  So, I need to work out a design for this which will best meet the
  clients
  requirement and which flex can handle.

  Any comments and ideas are appreciated. I am working on this presently,
  so
  as I come up with ideas on how to proceed I will post them here.

  Cheers
  Mark



   

[flexcoders] Charting 1 minute data over 1 year

2009-01-29 Thread Mark Easton
Hi,

I am trying to work out how best to produce a chart which allows a user to
make sense of data logged every minute for up to 12 months (ie 524160
values). To complicate matters the graphs are are presented on a dashboard
where the user can display many graphs at once - so we are not just
displaying the one graph and the size of the graph will change depending on
how many graphs are being displayed in the dashboard window.

We are logging sensor data (temperature, current, vibration, humidity, wind
speed etc). Client does not like a month, week, day, hour, minute drill down
scenario - I tried that and it was rejected. He wants a line graph, but
where we do have to average data would like to some idea of max and mins -
maybe that can be done in point comment. Trouble is if we chart so many
points then there are too many points for the mouse click to discern.

Essentially the client would like to see the data always at maximum detail
no matter what period is being looked at. I have read this
http://www.cynergysystems.com/blogs/page/andrewtrice?entry=visualizing_large
_data_sets, and am thinking that I will need to proceed in kind and to use
an Image object and set BitmapData pixels directly - depending on how I
decide to reimplement this thing. Of course I am limited by the number of
pixels available along the x-axis for a given chart size.

This is complicated as the client would like to zoom on the graph and also
look at time slices. The client would also like to be able to see exceptions
clearly on the graph - for example if there was a vibration spike. Also
sometimes the sensor might not be operational so we need to see those breaks
in the graph when no data was captured.

All in all I am finding this a complicated requirement to unravel, as some
of the requirements seem to be nonsensical - eg having a zoom - when the
client always wants to see maximum detail???

So, I need to work out a design for this which will best meet the clients
requirement and which flex can handle.

Any comments and ideas are appreciated. I am working on this presently, so
as I come up with ideas on how to proceed I will post them here.


Cheers
Mark










[flexcoders] Zend_amf and boolean values

2009-01-28 Thread Mark Hage
Hi,

I am trying to send a boolean from PHP to Flex.
In PHP I query a MySQL database which in a column returns a boolean.
In PHP I have class parameter where this boolean is saved.

I use Zend_AMF to communicate with my Flex app.

In Flex the PHP class is mapped to a AS class, which has the type Boolean
for this var.

Now all values are true, but not in my database.

How can this be? And how can I send the proper boolean variables?

Thanx,
Mark


Re: [flexcoders] Flex Builder debugger problems

2009-01-23 Thread Mark Carter

I also experience this though it only happens about 5% of the time for me.
I'm debugging my Flex app running in the standalone Flash Player 10.

* Usually, my flex app takes a couple of seconds to launch once the
workspace has finished building.

* About 20% of the time, the flash player window comes up and the app then
takes about 10 seconds to actually start.

* But about 5% of the time, the flash player window comes up and then the
app never actually starts (waiting at least a couple of minutes). If I then
disconnect the debugger, the app then immediately starts as normal.

Its like the debugger is blocking something.

So no need to quit Flex Builder. Just disconnect the debugger.

-- 
View this message in context: 
http://www.nabble.com/Flex-Builder-debugger-problems-tp21630232p21637075.html
Sent from the FlexCoders mailing list archive at Nabble.com.



[flexcoders] How to XMLListCollection a FileSystemTree dataProvider?

2009-01-21 Thread Mark Simon
Hi,
The Air FileSystemTree seems to take a XMLListCollection as a
dataProvider yet nowhere can I find a reference to the tag structure
of that XML.

All help appreciated,



[flexcoders] FlexSkinning problem

2009-01-13 Thread Mark Hage
Problems with skinning components for Flex 3 in Illustrator CS3

I have installed the FlexSkinning plugin for Illustrator CS3. When I
customize a Panel and import it into Flex as Skin Artwork, I have problems
when scaling the Flex application in the browser. When I scale my browser
window to a smaller  size (let's say 1024x768), the Panel disappears and it
is becoming a white background.

Can anybody help me with this problem?


[flexcoders] state change reload component

2009-01-07 Thread Mark Hage
Hi,

I use states to show a form. this form is in a component.
When I view the form and enter some data in a textinput, but the click
'cancel' the form is hidden.

The next time I show the form, the data I typed the previous time in the
form is still there.

Is there a way to 'reset' the component / state?

Thanx,
Mark


[flexcoders] Re:NaN in CSS

2009-01-05 Thread Mark A. DeMichele
I figured it out.  You can do 

 

width: ClassReference(null)



[flexcoders] How to Cairngorm an Air FileStream ?

2009-01-05 Thread Mark Simon
How can I extend Cairngorm to provide an Adobe Air File / FileStream
service to my app?

I have seen the HTTPService being used to read, for example, xml asset
files, but I'd like to be able to buffer and write data as well.

Thanks in advance, Mark Simon



[flexcoders] How to XMLListCollection a FileSystemTree dataProvider?

2009-01-05 Thread Mark Simon
The Air FileSystemTree dataProvider property, when supplied with an
XMLListCollection, throws a: 
can't convert  to File

Does anyone know what the XML should look like for FileSystemTree to
accept a XMLListCollection as a dataProvider ?

Obliged, Mark Simon



Re: [flexcoders] Stop the flicker between menu items

2008-12-17 Thread Mark Carter


danielrkrueger wrote:
> 
> When I place the mouse in just the right spot between 2 menu items I
> can get a flicker. Does anyone know how to stop this?
> 

I also experience this. But its not just between two menu items. It happens
whenever you hover the mouse over any part of the border of a menuitem.
-- 
View this message in context: 
http://www.nabble.com/Stop-the-flicker-between-menu-items-tp21058600p21066243.html
Sent from the FlexCoders mailing list archive at Nabble.com.



RE: [flexcoders] Best practice for calling asynchronous functions?

2008-12-12 Thread Mark Carter


Alex Harui wrote:
> 
> Can you repost your example?
> 

Its just the very few simple lines I posted a few posts ago in this topic.
Here is the link:

http://www.nabble.com/Re%3A-Best-practice-for-calling-asynchronous-functions--p20969533.html

Its not a full example, but it gives the idea...
-- 
View this message in context: 
http://www.nabble.com/Best-practice-for-calling-asynchronous-functions--tp20930596p20988099.html
Sent from the FlexCoders mailing list archive at Nabble.com.



RE: [flexcoders] Best practice for calling asynchronous functions?

2008-12-12 Thread Mark Carter

For me, the question is: If I use someObj in the same way as my example above
(i.e. assigning it to a local variable), when will someObj get garbage
collected?

Is it (potentially) when the result/fault event is dispatched or could it be
earlier?


Alex Harui wrote:
> 
> I think Amy's point is that, w/o a reference to the anonfun, you can't
> call removeEventListener on it.  If I do:
> 
> someObj.addEventListener("foo", function (e:Event) { ... } );
> 
> someObj will release the anonfun when it gets garbage collected.  However,
> until that time, all objects in the scope chain won't be collectable.  I
> don't know if that's the case in Java.
> 

-- 
View this message in context: 
http://www.nabble.com/Best-practice-for-calling-asynchronous-functions--tp20930596p20986882.html
Sent from the FlexCoders mailing list archive at Nabble.com.



Re: [flexcoders] Best practice for calling asynchronous functions?

2008-12-12 Thread Mark Carter

So are you saying that, in general, anonymous functions should not be used as
listeners?

If its anything like in Java, (once the calling method returned) the
anonymous function would only be referenced by the event dispatcher and so
(assuming weak references are not used) would only be garbage collected when
the event dispatcher is garbage collected. At least, that's how I understand
it.

I posted a question about this a few weeks ago, but didn't get a reply.


Amy-28 wrote:
> 
> My understanding is that anonymous functions _cannot_ get garbage 
> collected unless you use weak references when you add them.  Which 
> means there's a really good chance they'll get garbage collected 
> before they get called.
> 

-- 
View this message in context: 
http://www.nabble.com/Best-practice-for-calling-asynchronous-functions--tp20930596p20976648.html
Sent from the FlexCoders mailing list archive at Nabble.com.



Re: [flexcoders] Best practice for calling asynchronous functions?

2008-12-11 Thread Mark Carter


Josh McDonald-4 wrote:
> 
> The problem is that from the SDK's point of view, there is no request.
> There's no IMessage, there's nothing to wait on. However from the
> application's point of view, there is.
> 

I don't quite understand...

Wouldn't any problems before the async token is returned, be thrown as an
exception from the method returning the async token? Therefore the calling
code just needs to catch that exception and handle it.

The only problem with this would be if an event is generated after the async
token is returned and before the responder is added. This would only be an
issue in a multi-threaded environment.


-- 
View this message in context: 
http://www.nabble.com/Best-practice-for-calling-asynchronous-functions--tp20930596p20969714.html
Sent from the FlexCoders mailing list archive at Nabble.com.



Re: [flexcoders] Best practice for calling asynchronous functions?

2008-12-11 Thread Mark Carter


Amy-28 wrote:
> 
> Right.  The calling code doesn't need to do anything different.  The 
> change is inside your method.
> 
> Here's an example:
> 

Thanks for that - its roughly what I had in mind - but its good for me to
see an example.


Amy-28 wrote:
> 
>> In my opinion this is neater
>> than something like:
>> 
>> var asyncToken:ASyncToken = save(xml);
>> asyncToken.addResponder(...
> 
> Suit yourself.  You weren't satisfied with what you were using.  I 
> offered an alternative.
> 

Maybe I wasn't being clear. I just prefer to keep any ASyncToken code out of
the calling code. Having it inside the implementation is not a problem for
me (other than for the other problems with it discussed in this topic). So,
I don't see it as an alternative - its more of an implementation detail.


Amy-28 wrote:
> 
>> As you can imagine, it keeps the implementation
>> much simpler. No need for the ASyncToken. Just add new listeners 
> each time a
>> call is made. Everything is garbage collected. Oh, hang on, 
> what keeps a
>> reference to the HTTPService?
> 
> Good question.  What did you do with all the old eventListeners you 
> were complaining about in your original post?
> 

My current implementation has something like:

function save(xml:XML, successFunc:Function, failureFunc:Function):void {
var service:HTTPService = new HTTPService();
...
service.addEventListener(ResultEvent.RESULT,
function(evt:ResultEvent):void {
trace("Successfully saved XML");
successFunc();
});
service.send(); // called after the event listeners have been added :)
}

That's it. The successFunc and failureFunc are only scoped to the calling
code's method and so should be garbage collected when the service is garbage
collected.

What I don't know is when the service is garbage collected? I'm assuming not
before the result or fault event is fired!
-- 
View this message in context: 
http://www.nabble.com/Best-practice-for-calling-asynchronous-functions--tp20930596p20969533.html
Sent from the FlexCoders mailing list archive at Nabble.com.



Re: [flexcoders] Best practice for calling asynchronous functions?

2008-12-10 Thread Mark Carter

Thanks for all the responses.

I hadn't really looked into the ASyncToken until now. However, for me it
seems that using the ASyncToken would be limited to the implementation of
the, for example, save(XML, Function, Function) method.

The calling code doesn't need to know about it. In my opinion this is neater
than something like:

var asyncToken:ASyncToken = save(xml);
asyncToken.addResponder(...

Also, I don't like adding responders after the call has been made. I know it
works, but still...

Maybe I should start a new topic for this next question, but...

...in my implementation, I create a new HTTPService for each call. Any ideas
how (in)efficient this is?  As you can imagine, it keeps the implementation
much simpler. No need for the ASyncToken. Just add new listeners each time a
call is made. Everything is garbage collected. Oh, hang on, what keeps a
reference to the HTTPService?
-- 
View this message in context: 
http://www.nabble.com/Best-practice-for-calling-asynchronous-functions--tp20930596p20948799.html
Sent from the FlexCoders mailing list archive at Nabble.com.



[flexcoders] Best practice for calling asynchronous functions?

2008-12-10 Thread Mark Carter

In my app, I make a wide variety of XML-RPC calls. Now, to avoid having to
add/remove listeners all over the place, I've created a class (facade?) with
functions like:

function save(xml:XML, successFunc:Function, failureFunc:Function):void;
function load(id:String, successFunc:Function, failureFunc:Function):void;

Note, the class' state does not change when any of these functions are
called.

The class makes the necessary XML-RPC call and listens to the appropriate
events before calling the relevant success or failure function. The class
guarantees that either the successFunc or the failureFunc will be called at
some point (but never both).

This makes my calling code very neat:

save(myXML, function(id:String):void {
Alert.show("Successfully saved XML using id: " + id);
// now do the next step
}, function(msg:String):void {
Alert.show("Failed to save because: " + msg);
// now rollback
});

One obvious drawback of this is that its not so easy to add multiple
listeners to, say, the save operation. But, in my situation, I never need
to.

What say you all - good or bad practice?
-- 
View this message in context: 
http://www.nabble.com/Best-practice-for-calling-asynchronous-functions--tp20930596p20930596.html
Sent from the FlexCoders mailing list archive at Nabble.com.



  1   2   3   4   5   6   7   8   9   >