RE: [flexcoders] How to communicate 2 computers using Air Application

2011-08-11 Thread Gregor Kiddie
Sockets



RE: [flexcoders] how do you guys read flexcoders

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

 

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



RE: [flexcoders] Slow connection to a server

2010-09-02 Thread Gregor Kiddie
Proxies can slow down connections. I know service capture can do it, and
I'd be very surprised if Charles couldn't.

 

Gk.



RE: [flexcoders] Re: AIR and Printing...

2010-09-01 Thread Gregor Kiddie
You won't have any problem accessing the data. It's actually a bit
easier in AIR than the Flash Player as the security model is a bit more
permissive (in places).

 

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Laurence
Sent: 01 September 2010 00:42
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: AIR and Printing...

 

  

It does seem, from reading that document, that you can choose the
printer to send the print-job to, and set the parameters for that
printer, and skip all the dialog boxes... I'll have to play with that...
Thanks!

My next question, then, is accessing remote data -- my Flex app using
the Flash Player has no problem calling a remote ColdFusion function to
grab data from the SQL server, and send data back there... How much does
that change in AIR? Or is it pretty much the same thing?

L.



 



RE: [flexcoders] FB4: Looping thru itemrenderers

2010-08-25 Thread Gregor Kiddie
If you need to access an itemrenderer, there's almost always a better
way of doing what you are trying to do...

 

So, why are you wanting to access the itemrenderer instance?

 

Gk.



RE: [flexcoders] Getting HTTP status codes from NetConnection

2010-08-25 Thread Gregor Kiddie
Can of worms...

 

Short answer. You can't.

 

Long answer. You can't and the way that was making you cringe is right.

 

The browsers don't tend to pass back the http status code back to the
Flash Player, so you have to make do with passing back a 200 with the
code embedded inside.

 

Gk.



RE: [flexcoders] Checkbox on Image

2010-08-13 Thread Gregor Kiddie
Sit them both in a Canvas and position them correctly, or write your own
custom component based off UIComponent and deal with the layout
yourself.

 

Gk.



RE: [flexcoders] Air Update -modules

2010-08-12 Thread Gregor Kiddie
Since the change to the module loader allowing modules to be loaded by
bytes...

 

http://help.adobe.com/en_US/FlashPlatform//reference/actionscript/3/mx/m
odules/ModuleLoader.html?allClasses=1#loadModule()
http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/mx/m
odules/ModuleLoader.html?allClasses=1#loadModule() 

 

... you don't have to supply the modules alongside the rest of the AIR
application. You can download them post installation and store them on
the filesystem yourself.

 

Which means you can minimise the AIR install to only the core
application, and only require an update if that core application
changes.

 

You can strip it down to nothing much more than a Preloader which sucks
in a module with your core application in it, leaving you with requiring
updates only for one class, but I suspect that Adobe wouldn't recommend
this as a best practice.

 

Gk.



RE: [flexcoders] Re: AMFPHP Security?

2010-08-11 Thread Gregor Kiddie
If you want it to be fairly untouchable, have all your game logic on the
server. The only thing the swf does is gather input, and display state.

 

That way, nobody can spoof the game logic (which is pretty much your
issue).

 

Gk.



RE: [flexcoders] Stopping a function

2010-07-28 Thread Gregor Kiddie
The Flash Player is single threaded... so if Function B is running,
Function A isn't.

 

Gk.



RE: [flexcoders] Stopping a function

2010-07-28 Thread Gregor Kiddie
I slip under the radar me...

 

;)



RE: [flexcoders] Issue with item renderer in Flex 3

2010-07-23 Thread Gregor Kiddie
Add the isEdited variable to your data item and inside set data(...) do

 

If (data.isEdited) {

...

}

 

Instead.



RE: [flexcoders] Re: Issue with item renderer in Flex 3

2010-07-23 Thread Gregor Kiddie
If you are doing a lot of this, there is a decent approach but it's very
long winded...

 

Override your DG so that when you add to the dataprovider (or when items
are added to the DP) the objects in the DP get wrapped in a DGAware
object. This object provides access to the wrapped object and exposes
the relevant fields for checkboxes (isEditedYellow, isEditedBlue, etc).

 

This keeps your underlying data object ignorant of any renderer related
fields, and still allows you to set up the state of the renderer in set
data.

 

This is a fair bit of work mind...



RE: [flexcoders] Flex print Without Dialog Box ?

2010-07-13 Thread Gregor Kiddie
You need to have something actually on the user's machine to do this,
i.e. a service running that you can talk to.

 

You can't do this natively from the Flash Player, otherwise your printer
would be printing out advertising leaflets every time to you saw a Flash
ad on a website... and nobody wants that! (Except maybe the evil
advertisers...)

 

Gk.

 

I print with Flex using FlexPrintJob.

Do you think if it is possible for me to print without print Dialog?

Thanks




 



RE: [flexcoders] Flex print Without Dialog Box ?

2010-07-13 Thread Gregor Kiddie
  True, I should have prefixed that with... with the Flash Player

I think AIR 2.0 will let you get around it.





 



RE: [flexcoders] The lifespan of flex.

2010-07-12 Thread Gregor Kiddie
Not quite necro posting... (been on holiday so...)

 

The route back to your client is to show both penetration statistics for
Flash Player 10 versus HTML 5 compliant browsers. The 99% versus ~15% is
a big difference. You might want to point out the ROI of Flex is
drastically higher than HTML ( HTML5 especially as it is new ), the fact
that HTML 5 isn't set to be completely supported for years...

 

The best thing I've seen from friends who have had similar questions, is
when they deliver price estimates for an HTML 5 version versus a Flash
version for something moderately complicated. The differences have been
significant enough for their clients to drop the idea of HTML 5 very
quickly.

 

Gk.



RE: [flexcoders] loading image from url for groundoverlay on map

2010-07-12 Thread Gregor Kiddie
What's the size in pixels of the larger image? There is a hard pixel
limit in the Flash Player.

 

I'm trying to load an image (through url) as a groundoverlay on a google
map. I use a different url from the same domain like
(http://www.lamma.rete.toscana.it/models/marevento/wind10m_A_3.png) it
works perfectly but with the one I need (in the code) it doesn't. The
only difference is the image dimension (27.7k the one that works, 477k
the one that doesn't)




 



RE: [flexcoders] User Interface Design Groups

2010-07-12 Thread Gregor Kiddie
The IXDA lists are good places to ask this sort of question. Lots of
good people there.


I've been working on a little composite search UI component but it needs
polishing off and I wondered if there were any groups out there that
could help with this sort of thing? Does anyone know of any?




 



[flexcoders] New Datagrid announced...

2010-07-01 Thread Gregor Kiddie
Deepa announced that the Spark version of the Datagrid would be in Hero.

 

Are we talking a direct replacement for the MX Datagrid, or the ADG?

 

Let's hope it's more a direct replacement rather than redoing the ADG...
that really was rubbish.

 

Saying that, what additional feature are people looking for in a new
version of the Datagrid?

 

Gk.



RE: [flexcoders] list event listener(s) for an event type?

2010-06-30 Thread Gregor Kiddie
1.   Yes, you commonly see it if things aren’t being garbage collected 
properly.

2.   If you are implementing IEventDispatcher yourself, add in the logic to 
store them. There is a popular monkey patch for UIComponent to provide the same 
functionality for framework components.

 

Gk.

 

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of Technusiast
Sent: 29 June 2010 23:51
To: flexcoders@yahoogroups.com
Subject: [flexcoders] list event listener(s) for an event type?

 

  

Hello,

 

These are more of AS3 questions, but probably useful for Flex:

 

Is it possible to have more than one active event listener for the same event 
type on the same event dispatcher instance?

 

Is it possible to list all the listener functions ( 1 or all ) for a particular 
event type?

 

Thanks.

 

 





RE: [flexcoders] Flex version of excel spreadsheet?

2010-06-29 Thread Gregor Kiddie
How about running open office on your back end, having it open the
spreadsheet on request and doing the work there?

 

Gk.



RE: [flexcoders] Copying complex objects in ActionScript

2010-06-24 Thread Gregor Kiddie
IIRC, all the objects in the graph that you are trying to clone need to
have remote aliases if you want them to be created properly...



RE: [flexcoders] recursion help?

2010-06-23 Thread Gregor Kiddie
Not tested, but something like this should be close...

 

public function findFolderFromPath( folder : FolderClass,
fullPath:String ) : FolderClass {

if( folder.path == fullPath ) {

return folder;

} else {

for each ( var currentFolder: Folder in
folder.children ) {

var foundFolder :
FolderClass = findFolderFromPath( currentFolder, fullPath );

if ( foundFolder ) {

return
foundFolder;

}

}

}

return null;

}



RE: [flexcoders] How much does FXG affect performance?

2010-06-18 Thread Gregor Kiddie
Surely on a geek list like this, the only reasonable answer is 42.

 

Your questions may vary...

 

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Alex Harui
Sent: 18 June 2010 07:49
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] How much does FXG affect performance?

 

  

Maybe, yes, none, n/a, no, yes (17), no, depends, bribery, no thank you.
Not necessarily in that order.


On 6/17/10 7:15 PM, dorkiedorkfromdorkt...@gmail.com
dorkiedorkfromdorkt...@gmail.com wrote:


 
 
   

I saw a comment recently that large FXG usage can affect
performance.
For example, FXG in skins. But I also read it affects file
size??? If
it's vector shouldn't it in most cases be smaller in size than a
rasterized representation of the vector? What about If the
vector skin
art is relatively static how much of it is getting redrawn every
frame? If it is redrawn every frame what is the use of Show
redrawn
regions in the Flash Player context menu?

To quote Ted P, Internally the player sweeps the DisplayList
and
processes all graphics, then processes all frame bytecode, then
processed events. If there are things to do in each phase, the
phase
will expand potentially slowing down the frame speed.
http://tinyurl.com/2erm72a

Has this behavior changed in Flash Player 10.1? BTW Is there a
limit
to the number of questions I can ask in a single post? Have I
past
that limit? If so will any of my questions get answered or is
the
whole post disqualified? If so how do I get it re-qualified?
Separate
posts for each question?

JP
 
   




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





RE: [flexcoders] Android Hero denies XMLSocket or Socket connection? ....errors #2031, #2048

2010-06-16 Thread Gregor Kiddie
Isn't FP only for Android 2.2?

 

And there are pre-release forums you'd be better posting this in!

 

Gk.



RE: [flexcoders] Re: Lcds Clustering problem with Flex session.

2010-06-15 Thread Gregor Kiddie
Right, your problem is...

 

RTMP doesn't use HTTP... so there is no HTTP session to be found.

 

That's a drastically more fundamental issue.



RE: [flexcoders] Ok, Adobe Experts...Explain this...

2010-06-10 Thread Gregor Kiddie
Let's see the skin. The error's getting thrown from that.



RE: [flexcoders] Reference value

2010-06-09 Thread Gregor Kiddie
You're trying to assign a number into a string really...

 

Just doing this should be enough.

 

currentDate = 11;

 

It does raise the issue... if you are always wanting to treat the date
as a number, why create it as a string in the first place?

 

Gk.

 

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of stldvd
Sent: 09 June 2010 14:23
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Reference value

 

  

Hi,

I'm working on a sports app with teams. Depending on the date, different
team matchups will be displayed. However, before the 11th we just want
to display the matchup for the 11th. 

I have the following code, but I'm getting a compile-time error: 
Target of assignment must be a reference value.

Here's the code.

var now:Date = new Date();
var currentDate:String = now.getDate().toString()
//if the current date is before the 11th, set it to the 11th
if((Number(currentDate))  11)
{
Number(currentDate) = 11; //error is here

}
else
...

I realize I'm assigning a value to a value, and that's the problem. I'm
just not sure how to fix it.

Thanks.





RE: [flexcoders] Re: Lcds Clustering problem with Flex session.

2010-06-09 Thread Gregor Kiddie
Looking back at my notes from before.

 

The other thing we had to do was a JGroups to each instance for the
sessions to be replicated.

 

Gk.

 

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of sanjitcs
Sent: 09 June 2010 18:25
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Lcds Clustering problem with Flex session.

 

  

Thanks for your reply.

I have configured LCDS setup correctly and i am also using the sticky
session and I am still getting the similar behavior. 

For clustering I have followed step given for LCDS clustering.

Could you please elaborate make sure your LCDS setup is correct
for clustering If you are referring some specific step which i am
missing. 

Following are the piece of code
When user login to application. I am storing data in FlexClient i.e
FlexContext.getFlexClient().setAttribute(userName, username);

and in every call i am retrieving the username from FlexClient 
i.e 
FlexContext.getFlexClient().getAttribute(userName);

but in case of serverFailure. I am getting null value on other node.

According to me if FlexClient is clustered aware then I supposed to get
that userName which i have set in FlexClient.

Could you please any one let me know whether it is right expectation or
not.

Thanks



 



RE: [flexcoders] Lcds Clustering problem with Flex session.

2010-06-08 Thread Gregor Kiddie
I believe it is, but you need to make sure your LCDS setup is correct
for clustering, and that your load balancer is using sticky sessions for
it to work.



RE: [flexcoders] Re: Duplicate Session Detected Error

2010-05-27 Thread Gregor Kiddie
BlazeDS is open source so you could grab the code and make the changes
yourself. It should just be a case of removing the check.



RE: [flexcoders] AIR and Android 2.2 Emulators?

2010-05-27 Thread Gregor Kiddie
The android tools will download it for you if you sync them up.



RE: [flexcoders] Duplicate Session Detected Error

2010-05-24 Thread Gregor Kiddie
It's to get round a session based issue.

 

If you roll BlazeDS back to 3.0.0.544, you'll get the version before the
duplicate session check went in.

 

Be careful to check your sessions though.

 

Gk.

 

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Dharmendra
Sent: 22 May 2010 05:58
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Duplicate Session Detected Error

 

  

I need to get in to the bottom of this issue.

I have two saperate EAR applicaion deployed under two saperate Cluster
of Weblogic and both application has nothing to do with each other ,
they just share the same J2EE server.

I am only using Remoting which invokes sever side java code and returns
some data in response..

I could not understang what mistake I am doing which is causing this
error.

I appriciate any help on this.

- Dharmendra





RE: [flexcoders] Re: Flash IE SSL problem

2010-05-21 Thread Gregor Kiddie
What's the exception it throws?



RE: [flexcoders] Re: Flash IE SSL problem

2010-05-21 Thread Gregor Kiddie
And when you debug the app, it never throws an error, but hangs on that
line?

 

What is being loaded on that line?



RE: [flexcoders] flash 4 and flex 3

2010-05-20 Thread Gregor Kiddie
I think everyone’s having a little fun with you ;)

 

Try this article to start with if you actually mean the IDEs

http://www.adobe.com/devnet/flex/articles/flashbuilder4_whatsnew.html

 

If you mean the SDK versions try this

http://www.adobe.com/devnet/flex/articles/flex4sdk_whatsnew.html

 

Gk.



[flexcoders] Sharing authentication between ChannelSets

2010-05-17 Thread Gregor Kiddie
I'm trying to solve the following problem with RemoteObjects.

 

I want to use Secure AMF to authenticate the user, and then use regular
AMF from that point on, without having to re-authenticate.

 

I'm struggling to find a way to allow the separate Channels the share
the same authentication... ChannelSets are only used for failovers or
communication errors not for this.

 

I think it should be possible by making sure the same cookie is set in
the request headers for the RO call (for the JSessionId), but while you
can do it for WebService, it doesn't seem possible with an RO.

 

Any suggestions?



RE: [flexcoders] Sharing authentication between ChannelSets

2010-05-17 Thread Gregor Kiddie
It also appears BlazeDS doesn't agree with the Flex documentation...
Channelset says the RO is authenticated if one of the channels in the
set is.

 

I set up two ROs, and two Channelsets each with the same two Channels
but in a different order (secure first in one, non-secure in the other),
then authenticated using the secure.

 

When trying to use the non-secured one, I get the following 

RPC Fault faultString=An Authentication object was not found in the
SecurityContext faultCode=Client.Authentication faultDetail=null]

So the Channelset isn't authenticated, only one of the channels is.
Confusing!

 



RE: [flexcoders] Sharing authentication between ChannelSets

2010-05-17 Thread Gregor Kiddie
With further reading it appears that having two Channels going to the
same server isn't allowed by BlazeDS anyway! It will throw errors around
DuplicateSessions, because the JsessionId isn't shared between the
channels.

 

It surely can't be this hard to do something so straightforward?



RE: [flexcoders] Sharing authentication between ChannelSets

2010-05-17 Thread Gregor Kiddie
Rolling back to BlazeDS 3.0.0.544 gets rid of the duplicate session
issue, but the second session is still not authenticated, again because
it's trying to use a different JSessionId.

 

So it boils down to Flash side of things, what can I do to set the
JSessionId from one Channel on another?



RE: [flexcoders] Sharing authentication between ChannelSets

2010-05-17 Thread Gregor Kiddie
Success I think. My brain is totally fired at this point, so if someone
can see the problem in this, bellow loudly please!

 

The Channel set I've authenticated has two MessageAgents attached, one
of which is an AuthenticationAgent. I call connect on the second
Channelset with the AuthenticationAgent from the first Channelset, and
then make the call. It appears to be working correctly!

 

I still need to use BlazeDS 3.0.0.544 because I'm generating duplicate
Sessions, but I appear to be getting away with it.

 

Anyone see the problem in this?



[flexcoders] Looks like it Paul!

2010-05-14 Thread Gregor Kiddie
;)



RE: [flexcoders] Re: Thoughts on Flash by Steve Jobs

2010-05-04 Thread Gregor Kiddie
And this is the point the moderators should step in to shut this thread
down.

 

We've brought ourselves to the no it isn't, yes it is arguing point
guys.

 

Can we please let this thread die with a little dignity, and we can all
jump in on the next one, unless someone wants to make a blog post where
we can continue this in the comments ;)

 

Gk.



RE: [flexcoders] Re: Calling mxmlc/fcsh from PHP script

2010-05-04 Thread Gregor Kiddie
There was part of FDS (before it became LCDS) that had a web-compiler.
You called for the swf and if it hadn't been generated, it compiled it
before delivering it, later requests just used the compiled one).

 

I don't know if it made its way into LCDS, but it's worth a look!

 

Gk.



RE: [flexcoders] Re: Thoughts on Flash by Steve Jobs

2010-05-03 Thread Gregor Kiddie
Allegedly, Steve my turtle neck has cut off the blood to my brain Jobs
denied this in an email, but given the way the question was worded
(will you confirm that...) and the answer (nope), it's not done much
to stem the rumours!

 

Gk.

 

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Jeffry Houser
Sent: 03 May 2010 16:04
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Thoughts on Flash by Steve Jobs

 

  

First time I explicitly that Apple would prevent Flash from being
installed on Macs. 

The specific rumor I heard was that the next version of OSX would move
to an App store model similar to their devices. It sounds so lubricious
I can't imagine it being true. 




 



RE: [flexcoders] Re: Thoughts on Flash by Steve Jobs

2010-05-03 Thread Gregor Kiddie
If we are swapping rumours though...

 

I liked the one that Apple had demanded a truly ridiculous sum of money
from Adobe yearly to allow Flash on the iPhone, and when Adobe refused
to pay up, SJ made it his mission to prevent it from happening!

 

I'd call it a tithe, but that brings far too many religious connotations
to be associated with Jobs...

 

Gk.



RE: [flexcoders] Re: security flex

2010-04-19 Thread Gregor Kiddie
So, is it possible that Pandora's (100% Flex) payments system is
secure?

 

As Miti says, just don't hardcode things like developer, API, or
encryption keys (so the swf can't be inspected to find them).

 

You also realise that absolutely nothing on this earth is 100% secure,
there are just increasing levels of hoops to jump through to deter would
be thieves...

 

Gk.

 

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of garykim...@rocketmail.com
Sent: 19 April 2010 02:20
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: security  flex

 

  

the link has everything to do with my question. He gives an example of a
shopping cart/payment system setup in Flex. This raises my question of
whether or not flash is secure enough to operate his phone store in real
life.

More specifically, user enters information into flash app, which then
sends it somewhere to get processed (presumably some HTTPS address). The
period of time where flash is transfering info to the HTTPS address is
not secure, as described here:
http://www.adobe.com/devnet/flex/articles/flex_amazon_02.html

Specifically, Miti (a Flex Evangelist, so we should take his word for
it, right?) says:

hardcoding sensitive information into a Flex application is a highly
insecure practice. 

So, is it possible that Pandora's (100% Flex) payments system is secure?



 



RE: [flexcoders] Re: With the latest eula agreement from Apple

2010-04-15 Thread Gregor Kiddie
I have no idea how Elips are doing it, but they haven’t got the Player code, so 
they must be pulling some other trick to get it all to hang together!

 

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of Nick Collins
Sent: 14 April 2010 23:54
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Re: With the latest eula agreement from Apple

 

  

If that were the case, then OpenPlug wouldn't be able to to it with Elips 
Studio, but they are. They basically are providing a modified Flex 3.x SDK to 
use within Flex Builder. Then their IDE extensions output an XCode project that 
even will give you hooks so you can tie into native services, like the camera, 
address book, etc.

 



RE: [flexcoders] Re: With the latest eula agreement from Apple

2010-04-14 Thread Gregor Kiddie
I do agree that the main problem is that there isn't really an excellent
competitor to the App store. Once Flash is on absolutely everything, the
Flash Store will be that competitor. It doesn't matter what device you
use, mobile, PC, television, set top box, tablet, some future brain
implant, it's a one stop shop to get the app.

 

 Of course, what would really be the killer for the Flash store would be
making the app independent of the device.

Buy an app on your mobile, then turn on your PC. It checks the Flash
store, sees you have a purchased app it's not got installed, and fetches
and installs it itself.

 

The final nail would be persistent state. Buy and start playing a game
on your mobile on the train home. Get in, turn on your PC and continue
the same game. That's the app store killer right there!

 

Gk.



RE: [flexcoders] NumericStepper as itemRenders in DataGrid don't work as expected

2010-04-13 Thread Gregor Kiddie
You need value binding to the data property

 

mx:NumericStepper stepSize=0.01 minimum=0 
maximum= 
dataChange=outerDocument.debug(event)

value={data}




or... set the itemEditor of the datagrid to be a class factory which generates 
NumericSteppers with the factory’s properties set up.

 

Something like (off top of head, so probably won’t compile)

 

private function creationCompleteHandler() : void {

var itemFactory : ClassFactory = new ClassFactory(NumericStepper);

itemFactory.properties = {maximum:, minimum:0, setpSize:0.01};

dgc.itemEditor = itemFactory;  

}

 

When the Stepper is used directly, rather than being wrapped in a mx:Component, 
it picks it up directly as the set data(...) is being called on the 
NumericStepper and not the wrapper component.

 

Gk.



RE: [flexcoders] NumericStepper as itemRenders in DataGrid don't work as expected

2010-04-13 Thread Gregor Kiddie
This causes a stack overflow inside the Binding/Watch infrastructure.

Really? Didn't expect that one. I never use inline renderers if I can
help it! I suspect it'll need to be value={parent.data} or maybe
owner.data ... again, I hate inline renderers.

If I take out the mx:Component lines, it fails to compile because 
NumericStepper is not an Factory, is that why you suggest creating a
Factory 
for it ?

Yeah, the itemEditor property takes an IFactory.  The main reason for
setting it in actionscript like that is so you can set the
initialization properties (max, min, etc). It defaults to new
ClassFactory( mx.controls.TextInput).

 

Gk.



RE: [flexcoders] NumericStepper as itemRenders in DataGrid don't work as expected

2010-04-13 Thread Gregor Kiddie
Playing with this... it's the formatter that's screwing things up. The
NumericStepper uses the label for the cell and tries to parse it as a
float. The dollar sign immediately makes it terminate with a NaN which
the NumericStepper makes a 0 (It really should report it a NaN).

 

Gk.



RE: [flexcoders] Re: With the latest eula agreement from Apple

2010-04-13 Thread Gregor Kiddie
That amounts to open sourcing the player, as anyone could take a look at
the XCode project (or reverse engineer the player from it), which is a
no-no from Adobe's perspective. Turning the player into ARM code was
about the only way they could get round the licensing problems
associated with the player.

 

Gk.

 

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of valdhor
Sent: 13 April 2010 15:15
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: With the latest eula agreement from Apple

 

  

Yes, I know that.

What I was suggesting is that Adobe change the output from ARM code to
to an XCode project. Wouldn't that get around the new Apple agreement?




 



RE: [flexcoders] AIR Software creations - Modules...

2010-04-13 Thread Gregor Kiddie
You can update bits of it without having to go through the whole updater
process, which is nice if you have users who aren't administrators!

 

Gk.

 

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Wally Kolcz
Sent: 13 April 2010 17:28
To: flexcoders@yahoogroups.com
Subject: [flexcoders] AIR Software creations - Modules...

 

  

Is there any real advantages to creating an AIR app with modules verses 
all components?

I want to break up interal applications in my AIR app and I am used to 
do it by creating and dynamically loading/unloading modules to keep the 
size down on the web. Now that I am converting a web app to an AIR app, 
I seem to have a hard time testing it since it doesn't seem to generate 
the modules associated with the AIR app.

So then, is there any real advantage to creating a module based AIR 



 



RE: [flexcoders] Re: With the latest eula agreement from Apple

2010-04-12 Thread Gregor Kiddie
Doesn't matter, the wording doesn't mention XCode, just the languages
it's originally written in.

They'll still be fine though, Apple is free to ignore the agreement when
it suits them, and they aren't going to cut off Unity. They'll just
reject anything written for Flash / DotNet.

 

At the end of the day, Apple get a disproportionate amount of media
coverage to their actual market share. Apple blocking the iPhone is
annoying, but we still have the market leader (RIM), Android, etc. Flash
Player 10.1 will end up on more devices than the whole iPhone install
base.

 

I'd rather call myself a mobile developer than restrict myself to being
an iPhone developer, and that hasn't changed.

 

Gk.

 

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Tom Chiverton
Sent: 12 April 2010 10:21
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Re: With the latest eula agreement from Apple

 

  

On Friday 09 Apr 2010, Battershall, Jeff wrote:
 Reportedly Unity 3D was told that this new EULA would not apply to
them,
 yet on the face of it, it should.

Doesn't Unity work by using a real Xcode project ? Unlike CS5...




 



RE: [flexcoders] Scotland: Any Flash/Flex/AS3 conferences?

2010-04-06 Thread Gregor Kiddie
There's a few of us kicking round Dundee that do Flex / CF, but the
majority of the Flex scene in Scotland has been in Edinburgh (financial
firms mainly)

 

Scotch On The Rocks was popular (and good), but appears to have gone on
the road, I've not seen anything for it in Scotland of late.

 

I always bemoaned the lack of a good user  group in the NE of Scotland
and made some noises about starting one, but we've always lacked the
numbers in Dundee / Aberdeen to maintain one. No-one wants to travel
into Edinburgh for one... too expensive!

 

Gk.

 

((Also, apologies for virtually necro-posting... Catching up on
Flexcoders after a hectic few months!))

 

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of John McCormack
Sent: 28 February 2010 16:11
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Scotland: Any Flash/Flex/AS3 conferences?

 

  

I don't know of any here in the north (CA26 3QS).

Two years ago I went to an Adobe event in London for AIR and that was 
very good. If there were more I would go.

I recently attended Seb Lee-Delisle's course on Papervison3D in Brighton

and that was also good.
http://sebleedelisle.com/

I am sure Flash On the Beach would be worthwhile. It's always sold out.

Please let me know if you hear of anything.

John

Clark Stevenson wrote:

 Is there any events on in Scotland or the North of England at any 
 point during the year which i could attend? It seems Flash on the 
 Beach is the only UK conference i have heard about, but lets face it, 
 if im going to save up to visit anywhere, its not going to be to 
 Brighton for a few days of geek speak!!!





RE: [flexcoders] Re: Google combo like Flex interface

2010-02-04 Thread Gregor Kiddie
Gregor,

Don't think I don't appreciate it. ;) Want some stickers? E-mail me off
list. 

Nah, though if we run into each other at any of the conferences this
year, you can buy me a beer (or pretend to if it's MAX)! ;)

Gk.





 



RE: [flexcoders] Error in logout from channel in Flex 4

2010-02-04 Thread Gregor Kiddie
What's the size of the connection pool you've given the server to work
with? If it's 2, then that suggests the connection isn't being released
by the server.

 

Does log out actually close the connection? I'm not sure that it does.

 

Gk.



RE: [flexcoders] Google combo like Flex interface

2010-02-03 Thread Gregor Kiddie
Search for autocomplete comboboxes. There are several solutions, open
source and paid for.

 

Best of the paid for appears to be Flextras one (
http://www.flextras.com/?event=ProductHomeproductID=10 ) (Jeff Houser,
you owe me commission for pushing your wares like a filthy pimp)

Best of the open source ones is probably the adobe one
(http://www.adobe.com/cfusion/exchange/index.cfm?event=extensionDetaile
xtid=1047291 )

 

Gk.

 

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Christophe
Sent: 03 February 2010 14:57
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Google combo like Flex interface

 

  

Hello, 

I have a client table in a mySql database, and I want to propose in a
Flex RIA a search interface for the client list name. 

How to make a search interface like in the Google Combo. 

When you type the word 'a', it propose all the words beginning by 'a' ? 

Thank you,
Christophe, 





RE: [flexcoders] Re: What's up Adobe?

2010-02-03 Thread Gregor Kiddie
Yes, I can see your point. I think the two of us are the only people
who 
think that the Flex brand is weakened by the Flash moniker.

 

No, there are more of us... We just aren't as vocal!

 

Gk.



RE: [flexcoders] Adobe AIR and a Java bat file

2010-02-03 Thread Gregor Kiddie
Take a look at Merapi which is a java bridge for AIR, or at the AIR 2.0
beta which includes native process APIs.

 

Gk.



RE: [flexcoders] Implementing Contextual Help

2010-02-01 Thread Gregor Kiddie
Iterating through an object on every location/interaction seems pretty
expensive. Is there an equivalent of a Hash Map or a fast enough type of
search that would make this perform optimally? Or, another approach
altogether?

Take a look at Object or Dictionary. Both have implementations which
would help.

Would I be better off creating a property on each location/object for
its contextual help information, instead of searching for a key in a
centralized object that contains all the help info?



That's totally dependant on the rest of your architecture. Both have
upsides and downsides.

Gk.



RE: [flexcoders] Sort function does not work with turkish characters

2010-02-01 Thread Gregor Kiddie
IIRC, the default Sort uses the ASCII values of the characters, so the Turkish 
characters appear later in the alphabet than I and S.

 

You may need to use a custom compare function which includes functionality for 
the Turkish alphabet.

 

Gk. 

 

 

Hi everybody,

I'm also a newbie actionscript developer,  and i'm in trouble with sort 
function. I want to sort the array collection , it is successful with english 
characters, but when there is a turkish word beginning with  'İ', 'Ş',  it does 
not sort, putting these words at the end of the sorting. So i'm not able to do 
the right sorting. Any idea?

var sortField:SortField=new SortField(value);
sortField.numeric=false;
sortField.descending=false;
var sort:Sort=new Sort();
sort.fields=[sortField];
xmlListColl.sort=sort;
return xmlListColl.refresh();

Thanks all guys,,





RE: [flexcoders] localization

2010-01-28 Thread Gregor Kiddie
In the best impression of Tom that I can manage...

This link has all the answers.

http://tinyurl.com/yet2dqc

 

Gk.

 

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of ZIONIST
Sent: 28 January 2010 05:43
To: flexcoders@yahoogroups.com
Subject: [flexcoders] localization

 

  

hi guys i would like to set different currency symbols for countries, so
that if a product is particular to a certain country, that countries
currency symbol is used instead of the dollar sign. how do i achieve
this with localization?



RE: [flexcoders] How to create Value Objects dynamically at run time?

2010-01-26 Thread Gregor Kiddie
Take a look at ObjectProxy, it does a bit of what Tom has suggested, and
gives hints into how to hook into the construction of properties.

 

Gk.

 

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Tom Chiverton
Sent: 26 January 2010 16:47
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] How to create Value Objects dynamically at run
time?

 

  

On Tuesday 26 Jan 2010, gilbert_mizrahi wrote:
 Hence, I would like to create value objects dynamically, but I don't
know
 how.

You can add properties dynamincaly:

var x:Object=new Object;
x.foo=3;
x.bar='baz';

You probably want some sort of custom class that can can track what
fields are 
added and their expected types, but getting the values in and out is
easy 
enough.




 



RE: [flexcoders] Smallest module file sizes possible...

2010-01-25 Thread Gregor Kiddie
Don't worry about linking them externally. Optimise your module swf
against the main swf, and it'll strip out any classes which will have
already been loaded, while leaving the ones that the module requires.

 

Note that you have to be very careful of your application domains when
doing this, loading the module into a different domain will result in
class not found Errors.

 

Gk.

 

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of alpdhuez
Sent: 25 January 2010 06:45
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Smallest module file sizes possible...

 

  

Hi,
I am trying to get my swc/swf file sizes to be as small as possible.
Currently my site has a main swf that acts as the shell of navigation
 loads modules for each page. I have switched the main and
module SWFs to use RSLs, this has helped. Now I am looking at the size
of swc
libraries that are included in the main and module SWFS. Ideally I would
like to make the module SWFs as small as possible so that the page
loading is fast. We have a nice PreLoader, so we don't mind making the
users wait for the login if the main.swf is fatter.

My question is, if I used -compiler.include-libraries for the common swc
library references in the main swf, then used
-compiler.external-library-path in the module swfs, should this work?

So I've tried it. The main.swf goes from ~800kb to 1.6kb is larger, and
the module SWFs are about abou ~100kb but I get class not found
errors when the module.swf's load. Is this even possible? Should I debug
this more or is there a better setup?

thanks in advanced.
-al





RE: [flexcoders] Image contentWidth

2010-01-25 Thread Gregor Kiddie
Add an event listener in for the complete event. It gets fired once
the content is loaded, so it'll fire each time, unlike creationComplete.

 

http://www.adobe.com/livedocs/flex/3/langref/mx/controls/SWFLoader.html#
event:complete

 

Gk.

 

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of criptopus
Sent: 25 January 2010 15:39
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Image contentWidth

 

  

How do I detect when an Image has changed so that I can read the
contentWidth of it. An image has already loaded previously so Creation
Complete has been done with a different image?





RE: [SPAM] [flexcoders] Multiple Script Files

2009-12-01 Thread Gregor Kiddie
Cairngorm's ViewHelper is a good example of this.

 

http://www.actionscript.org/resources/articles/950/1/Cairngorm-Getting-S
tarted--Part-2/Page1.html

 

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
blocked::http://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



From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Dan Pride
Sent: 28 November 2009 04:31
To: flexcoders@yahoogroups.com
Subject: RE: [SPAM] [flexcoders] Multiple Script Files

 

  

I have never heard of this before, where could I find out about it (I
come from database design not java)
Dan Pride

--- On Fri, 11/27/09, Tracy Spratt tr...@nts3rd.com wrote:


From: Tracy Spratt tr...@nts3rd.com
Subject: RE: [SPAM] [flexcoders] Multiple Script Files
To: flexcoders@yahoogroups.com
Date: Friday, November 27, 2009, 5:21 PM

  

Another solution to this is to use helper classes, instead of compiling
the script block into the component class.  I never have more than a
single script block in an mxml file, rarely have more than one included
script file, and often have none of either.

 

You can use the code-behind technique, or static functions in a separate
class, or a normally instantiated helper class.

 

Tracy Spratt,

Lariat Services, development services available



From: flexcod...@yahoogro ups.com [mailto: flexcod...@yahoogro ups.com ]
On Behalf Of Dan Pride
Sent: Thursday, November 26, 2009 2:41 PM
To: flexcod...@yahoogro ups.com
Subject: [SPAM] [flexcoders] Multiple Script Files

 

  

A similar question. To simplfy things I have created a script file for
each table with the relevant actionscript functions for the table in the
file.

i.e.
mx:Script source=CenterScrip t.as / 
mx:Script source=SquareScrip t.as / 
mx:Script source=LocaScript. as / 
etc etc 

Is this a common way to handle script complexity as an application
grows?
The app only uses a couple of components so there is a fair bit of
actionScript code tied to the main app file.

Thanks
Dan Pride

 





RE: [flexcoders] LocalConnection - Meh!

2009-11-24 Thread Gregor Kiddie
What's that Timmy?

 

A LocalConnection has fallen down the well?

 

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
blocked::http://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



From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of djhatrick
Sent: 23 November 2009 21:07
To: flexcoders@yahoogroups.com
Subject: [flexcoders] LocalConnection - Meh!

 

  

 





RE: [flexcoders] TabNavigator stacking order

2009-11-23 Thread Gregor Kiddie
Either write a custom TabNavigator which does it (I can't see any
properties or styles for it), or

Just use a Viewstack and TabBar yourself to do the same effect
(TabNavigator doesn't actually add much to just using them
individually).

 

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
blocked::http://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] How to test if an object contains a certain property?

2009-11-12 Thread Gregor Kiddie
Try

http://livedocs.adobe.com/flex/3/langref/Object.html#hasOwnProperty%28%2
9

 

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
blocked::http://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



From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Nick Middleweek
Sent: 12 November 2009 12:11
To: flexcoders@yahoogroups.com
Subject: [flexcoders] How to test if an object contains a certain
property?

 

  

Hello,

Does anyone know if it's possible to check if an object has a given
property?






RE: [flexcoders] flexcoders stats and charts (and full data download)

2009-11-04 Thread Gregor Kiddie
9th in 2009? I didn't think I'd posted that much! (Number 2 in the Brit
list though, I demand a deathmatch with Tom!)

I wonder how many of those posts were getting into arguments with Alex
and Matt? Too many I guess.

Still, lists like this always bring out the competitive in me. I wonder,
do +1 posts count? Time to piggy back all of Alex's with I approve
this answer posts, or to auto generate an answer to any new thread
containing the words module, garbage, or renderer with the reply
check Alex's blog.

Actually that's not a bad idea...

 

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
blocked::http://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: multiple filter function of combobox and two checkboxes

2009-11-04 Thread Gregor Kiddie
Jumping into this thread late, what didn't work with the code you posted
on Tuesday?

 

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
blocked::http://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: multiple filter function of combobox and two checkboxes

2009-11-04 Thread Gregor Kiddie
Ah ok... I've got you. How about trying this for the filter function?

 

private function myFilterFunction(item:Object): Boolean
{
return(item.price = sliderFromValue  item.price = sliderToValue) 
(item.city == selectedCity || selectedCity == All)  
(item.location == selectedLocation || selectedLocation == All)  
(item.category == category.selectedValue)
(!poolSelected || item.pool); 
}



The (!poolSelected || item.pool) will equate to true when the checkbox
isn't selected (!poolSelected ) or when the item has a pool when the
checkbox is selected (item.pool).

 

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
blocked::http://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



From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of stinasius
Sent: 04 November 2009 13:31
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: multiple filter function of combobox and two
checkboxes

 

  

well, am trying to integrate some checkbox filter into a multiple filter
function and its giving me hell. basically am trying to filter an
arraycollection based on multiple criteria using different components
like slider, combo box, radio buttons and check boxes. while i have the
rest of the component filters working, i cant figure out a way to
include the checkbox filter into the filter function. here is my code so
far.

filters/
/

private var sliderFromValue : Number = 0;
private var sliderToValue : Number = 300;
private var selectedCity : String = All;
private var selectedLocation : String = All;
private var selectedValue: Boolean;
private var poolSelected: Boolean = false;

private function onSliderChange(event:SliderEvent):void
{
var slider:Slider = Slider(event.currentTarget) ;
sliderFromValue = priceSlider.values[0];
sliderToValue = priceSlider.values[1]; 
filterGrid() ;
currentState = '';
}
private function cityChangeHandler(event:Event):void
{
if( city_cb.selectedItem != null )
selectedCity = city_cb.selectedLabel;
filterGrid();
currentState = '';
}

private function locationChangeHandler(event:Event):void
{
if( lct_cb.selectedItem != null )
selectedLocation = lct_cb.selectedLabel;
filterGrid();
currentState = '';
}

private function categoryChangeHandler(event:Event):void
{
if(category.selectedValue != null)
selectedValue = category.selectedValue;
filterGrid();
currentState = '';
}

private function poolFilter():void
{ 
poolSelected = pool_ckb.selected;

filterGrid();
currentState = '';
}

private function filterGrid() :void
{
dataAr.filterFunction=myFilterFunction;
dataAr.refresh();
}

private function myFilterFunction(item:Object): Boolean
{
return(item.price = sliderFromValue  item.price = sliderToValue) 
(item.city == selectedCity || selectedCity == All)  
(item.location == selectedLocation || selectedLocation == All)  
(item.category == category.selectedValue)
(item.pool == poolSelected); 
}

there is something wrong with the poolfilter function which affects the
general filter function. i would like that if someone clicked the pool
checkbox, only property with pools show and if they uncheck it, then all
property shows up.





RE: [flexcoders] JPG Encoding Speed Issue

2009-11-04 Thread Gregor Kiddie
Take a look at he following article, it lays some of the options out.
They are all fairly good options.

http://blog.everythingflex.com/2009/01/19/green-threading-psuedo-threads
-or-air-as-a-server/

To answer your second question, where ever you and your users are
comfortable with the resizing happening. If your users are happy with a
bit of a delay, do it on the client (especially if you want to show them
the results and ask if they are happy with it). If they are happier with
a fire-and-forget scenario, offload it onto your server.

As with everything, what meets the user's needs is the best way to do
it!

 

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
blocked::http://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



From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of gimlilongbow
Sent: 03 November 2009 16:17
To: flexcoders@yahoogroups.com
Subject: [flexcoders] JPG Encoding Speed Issue

 

  

Greetings, all,
 I'm working on a Flex project in the AIR platform which I want to
generate several different file sizes of JPGs that I've brought into the
program. The program locks up when generating the new JPGs, though, and
I understand that has to do with the single-thread model in Flash. I've
run across asynchronous encoders like the alchemy encoder
http://segfaultlabs.com/blog/post/asynchronous-jpeg-encoding   and the
switchonthecode async encoder
http://www.switchonthecode.com/tutorials/flex-tutorial-an-asynchronous-
jpeg-encoder . Any suggestions on this? 

Also, I'll be uploading these different sized JPGs to a server. I guess
a more basic question would be if the server (a typical LAMP setup) or
the client (built in Flex+Air) is the better place to do this resizing? 

Thanks for your time!

~Gimli





RE: [flexcoders] dispatchEvent

2009-11-03 Thread Gregor Kiddie
Use binding?

 

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
blocked::http://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

 



[flexcoders] Adobe comment on ASC-3136?

2009-11-02 Thread Gregor Kiddie
Anyone from Adobe want to comment on the closing of the issue on
Proxies?

http://bugs.adobe.com/jira/browse/ASC-3136

 

It got changed to deferred then closed, and no-one updated the comments
with why!

 

With 110 votes, it's a relatively hot topic.

 

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
blocked::http://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] Make Flex AIR app demand more system resources

2009-11-02 Thread Gregor Kiddie
Are you really suggesting that the AIR app isn't a massive resource hog
and is unusable for any purpose? This should be a good thread to watch
*fetches popcorn*

 

Seriously though, and on topic...

 

When you say it relinquishes resources back to readily, are you talking
about CPU time, and therefore getting a jittery frame rate? Could be
either the runtime or the OS scheduler I suppose. If the runtime doesn't
place a high enough priority on running animations (i.e. AS is given a
higher priority) it could release back to easily. Likewise the OS
scheduler could be thinking the app is idle when it isn't.

 

Stupid suggestion, but running some AS code alongside the animations...
Running something small and inconsequential in an enterframe handler.
Does it change the game somewhat?

 

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
blocked::http://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: UDP via Flex socket

2009-11-02 Thread Gregor Kiddie
UDP support is being added in AIR 2.0. I don't know if that list extends
to the Flash Player as well...

http://blogs.adobe.com/cantrell/archives/2009/10/everything_new_in_air_2
.html

 

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
blocked::http://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



From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Simon
Sent: 30 October 2009 15:55
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: UDP via Flex socket

 

  

The sample code in the Adobe Docs sends a GET which I think makes it
HTTP. As far as I can tell the binary socket doesn't support UDP.
Somewhere in the internals it must be presuming TCP or HTTP - or maybe
RTMP. Anyway, it looks like my suspicions were right. I'll ask another
question about what protocol Flex developers are using to communicate
between clients for multi-player games.






RE: [flexcoders] Adobe comment on ASC-3136?

2009-11-02 Thread Gregor Kiddie
Cheers Matt,

 

Is it possible to have an Adobe employee comment on the issue with
something along those lines? Just for those folks who don't frequent
this list but who are watching the issue.

 

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
blocked::http://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



From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Matt Chotin
Sent: 02 November 2009 14:49
To: flexcoders@yahoogroups.com
Cc: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Adobe comment on ASC-3136?

 

  

It's deferred for a future Player from what I can tell. We know it's
important to folks though.


Sent from my phone. Please excuse brevity or typos.







RE: [flexcoders] Binding Model Objects

2009-10-28 Thread Gregor Kiddie
If you can't change the DTO in anyway you might be out of luck. There's
a couple of hacky techniques that could help if you can change the
DTO...

 

You might be able to get away with making the bindable properties
transient, so that AMF doesn't try to get / set them during
(de)serialization, and a separate set of non-bindable properties which
are used for setting up the object, both of which point to the same
private variable internally. You'd need to find some way of triggering
the binding update event once the object had been deserialized into an
AS3 object, and this is a really horrible hack...

 

Something like

 

public class Foo extends EventDispatcher {

private var _bar : String;



[transient]

[Bindable(fooChanged)]

public function get bar() : String {

return _bar;

}



public function set nbBar( nbBar : String ) : void {

_bar = nbBar;

}



public function get nbBar() : String {

return _bar;

}



public function dispatchChangeEvent() : void {

dispatchEvent( new Event( fooChanged ) );

}

}

 

That's really horrible though...

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
blocked::http://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



From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Richard Rodseth
Sent: 27 October 2009 16:09
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Binding  Model Objects

 

  

This is consistent with the way I've done things. In my case conversion
was necessitated by needing a dirty flag on each record, but I also
like it philosophically.

However, in another portion of the application that I don't own, there
is a large DTO displayed in a table (with user-configurable columns),
and I don't think we can pay the price of conversion without also
implementing pagination/lazy loading.

 



[flexcoders] Where did Livedocs go?

2009-10-28 Thread Gregor Kiddie
The link for them isn't working and returning a 404...

 

Flex API http://livedocs.adobe.com/flex/3/langref/  ??

 

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
blocked::http://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] Adobe-like logo maker

2009-10-28 Thread Gregor Kiddie
Is this what you are after?

 

http://clockmaker.jp/labs/air_icon/

 

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
blocked::http://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



From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of breizo
Sent: 27 October 2009 15:16
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Adobe-like logo maker

 

  

Can anybody point me to the Flex example that creates and customizes
these nice Fx, Fl, Ai, PS... logos that Adobe has?

I played with the application a while back, but I can't find it anymore.

Thanks!
Breizo





RE: [flexcoders] Where did Livedocs go?

2009-10-28 Thread Gregor Kiddie
Since some of my colleagues have come in, it's working for them, but I'm
getting the Adobe 404 page back, rather than it failing to load (which
suggests Adobe can't find the page for me, but it can for the person
sitting beside me), weird...

 

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
blocked::http://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



From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Leonardo Camargo
Sent: 28 October 2009 11:19
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Where did Livedocs go?

 

  

It's working here:  http://livedocs.adobe.com/flex/3/langref/index.html
http://livedocs.adobe.com/flex/3/langref/index.html  



 



RE: [flexcoders] Re: Where did Livedocs go?

2009-10-28 Thread Gregor Kiddie
I've been thinking that too, but we are all served by the same proxy...
I can't even blame this one on Service Capture being screwy! Weird...

 

Using Igor Costa's online copy of the API instead... thanks Igor ;)

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
blocked::http://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



From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of valdhor
Sent: 28 October 2009 13:23
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Where did Livedocs go?

 

  

Do you use a local proxy or caching server? maybe the 404 is coming from
there.






RE: [flexcoders] Where did Livedocs go?

2009-10-28 Thread Gregor Kiddie
It came back for me earlier this afternoon, I reckon it had something to
do with me being logged into a different Adobe account (though I can't
replicate it)

 

Nice site though! Haven't seen that one before!

 

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
blocked::http://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



From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Tom Chiverton
Sent: 28 October 2009 15:13
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Where did Livedocs go?

 

  

On Wednesday 28 Oct 2009, Gregor Kiddie wrote:
 The link for them isn't working and returning a 404...

Eep,
http://downforeveryoneorjustme.com/livedocs.adobe.com/flex/3/langref/
http://downforeveryoneorjustme.com/livedocs.adobe.com/flex/3/langref/

agrees !






RE: [flexcoders] Binding Model Objects

2009-10-27 Thread Gregor Kiddie
Having your DTOs physically different from your Domain Objects has a lot
of benefit using the assembler pattern to map between the two.

 

You can have entirely different structures for your DTOs, map multiple
DOs to DTOs, keep your transport and domain layers separate (also
allowing you to use different transport mechanisms AMF or XML over HTTP
both easily swapped), and allow you a great deal of flexibility in
structuring your application.

 

Downside, yes the conversion process can be expensive, BUT only if you
are planning on throwing around massive objects all the time.

Taylor your service layer to be more responsive to your needs. Don't
write a service which requires the whole object when all you need to
send is an id (example, it's the difference between sending a whole
email back to the server with the 'read' status marked as true, and just
calling a 'markAsRead' service with the id of the email).

Use paging techniques to break up your dataset, do you really need to
fetch all 10k items now? If you are only showing them in 10 item chunks
(i.e. in a datagrid) why not fetch them in 10 item chunks (or a few more
for visual performance reasons).

Well thought out business services can both reduce the amount of traffic
you need to send, and allow DTO mapping to be realistic (on both ends of
the wire).

 

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
blocked::http://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



From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Richard Rodseth
Sent: 26 October 2009 20:02
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Binding  Model Objects

 

  

Jeff

I hope we see some responses to this. I like the idea of non-bindable
and immutable DTOs, but isn't it true that if you have a very large
list, you've got substantial memory overhead in the conversion of those
DTOs to the bindable objects. Or are people tackling that with
virtualized collections?

 



RE: [flexcoders] Re: AIR Performance

2009-10-27 Thread Gregor Kiddie
 

Which is why I said can, rather than should. I can't make that decision
for him.

 

I can write you an application in any language you want which will max
your CPU, and eat up all your available memory. So how is that any
different?

Yes Adobe are producing a better version of the runtime, but that's
falling out of general improvements to allow the Flash Player to run on
mobile devices, rather than any acceptance that the AIR runtime is slow
/ expensive.

Flash / AIR are where Java was 10-12 years ago. It's easy to write a
memory hogging, CPU burning app very easily, and harder to write a good
one. Remember all those Java applets which maxed your CPU because they
were spawning a ridiculous amount of threads?

Check out this link on Firefox and watch your CPU usage, no Flash in
sight

http://www.ehiprimarycare.com/news/5322/dh_endorses_first_video_game

 

There are performance tips for reducing CPU usage in AIR which a well
designed application should follow

http://blogs.adobe.com/air/2009/05/performance_tips_for_adobe_air.html

as well as more general tips for writing applications (link is for the
iPhone experience but is still useful, runtime is optimized for Bitmaps,
so use them over PNGs, etc)

http://coderhump.com/archives/517

 

Yes the runtime should be as frugal as possible when it comes to
grabbing resources, but writing a crappy app and then blaming problems
on the runtime is just trying to absolve blame.

 

I guarantee if someone has written an app which abuses the runtime now,
AIR 2 / FP 10.1 isn't going to be their savior.

 

Personal experience... We have an AIR application with almost 400k LOC
spread over 30+ modules. It doesn't take more memory than we are
comfortable with, and doesn't burn through the CPU unnecessarily. We
would quite like it to be a bit quicker, but hopefully the runtime
improvements will sort that for us ;) We've had memory problems in the
past, managing to crash the runtime repeatedly, but these were always
traced back to poorly performing code rather than runtime issues.

 

What I will say is that currently, the runtime makes writing a well
behaved app very difficult indeed. The required level of understanding
of the internals of the runtime, and how AS3 interacts with it is
ridiculously high. The SDK bugs which contribute to the failure of the
garbage collector (the focus manager one makes me grind my teeth a lot)
are avoidable by Adobe, and they are admitting that working out where
problems lie is hard (hence the better profiler in FB4, and the amount
of posts on these forums about it).

 

For the OP, I'd say, don't believe the hype in either direction. If you
are planning on betting your company on either my or reflexactions
posts, you'd be making a huge mistake. Do the leg work yourself,
prototype stuff (not just AIR, but other options too), and actually find
out which meets your needs.

 

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
blocked::http://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



From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of reflexactions
Sent: 27 October 2009 01:07
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: AIR Performance

 

  

If you write it well, you will not have any CPU or memory issues
I am sorry but that is just so far from reality it is ridiculous.

AIR does not just have 'the same memory and CPU issue as every other
app'.

The issues are well known and accepted so I don't where you come up with
that notion, even Adobe have talked about how they are going to address
memory issues in the next version and Flex4 has throttling code built in
to try and make a PC usable when an AIR is in the background something
not 'every other app' usually requires.

When some guy is asking about makeing a decison that might affect the
future of his company it really doesnt help to stick you head in the
sand and pretend everything is hunky dory when it isn't.





RE: [flexcoders] Re: AIR Performance

2009-10-27 Thread Gregor Kiddie
Sorry Jack, I didn't mean it to come across as accusing you of either
writing bad code, or not doing due diligence.  It wasn't intended that
way! The head-in-the-sand comment got me fired up ;)

 

I'm sure as a developer you know these arguments always crop up on lists
like this... ask 3 developers a question and you'll get 5 different
answers, I know I could have written reflexaction's post as easily as my
own (depending on how annoyed with Flex I was feeling at the time)!

 

I'd never stop people from asking questions on this list, far from it!

 

Ask me again tomorrow, and I'll give you a different answer ;)

 

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
blocked::http://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



From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of jwc_wensan
Sent: 27 October 2009 12:15
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: AIR Performance

 

  



Gregor:

I am doing my due diligence. That is why I am asking those who have
more experience working with AIR than I do. 

I read the articles and I was just asking for input from the real
world developers and not relying soley on information contained in
article(s).

Isn't this what this forum is for?

You assume that I would write crappy software. 

Never have. Never will.

I have been developing software for over 30 years.

Sorry if asking my question upset you.

However, thanks for your input.

Jack





RE: [flexcoders] Binding Model Objects

2009-10-27 Thread Gregor Kiddie
Jeff,

 

Yeah, I just jumped all over the DTO part of the discussion. Our DOs
never get near AMF.

We convert everything btw... each record in the DG ends up as an
instance of a DO (which is why the performance of the service layer is
so important).

 

With DOs, we do make them bindable, but we use custom events to fire the
bindings, and we never ever make the entire object bindable, only the
fields required for the UI. The cheat here is when assembling the DO
from a DTO, use a method that doesn't go through the setters, and then
dispatch the change event once done, that way the binding operations can
be done in a single frame rather than being spread out.

 

Example (not the best architecture though).

public class fooDO extends EventDispatcher {



private var _bar : String;

 

public function set bar( b : String ) : void {

   if ( _bar != b ) {

 _bar = b;

dispatchEvent( fooChanged );

}

}



[Bindable(fooChanged)]

public function get bar() : String {

return _bar;

}



public function assemble( dto : FooDTO ) : void {

_bar = dto.bar;

dispatchEvent( fooChanged );

}

}

 

Quickly written out, but if all the bindable properties are fired off
fooChanged then the non-bindable DTO can be assembled into a Bindable
DO and cut down on the number of change events being fired. If the
default changeEvent is used, events will fire on each setter used
which is where the presentation is going.

 

Is that explained badly? Non-bindable DTOs assemble to bindable DOs in a
way that minimizes the amount of event slinging going on...

 

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
blocked::http://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



From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Battershall, Jeff
Sent: 27 October 2009 13:43
To: 'flexcoders@yahoogroups.com'
Subject: RE: [flexcoders] Binding  Model Objects

 

  

Gregor,

 

I'm doing a good bit of what you describe already - like chunking the
number of objects transferred, only transferring what is needed, etc. 

 

My big question based on Sean's preso was making domain objects
bindable.  Right now, I am, for the most part.  For example, when
editing a specific record in a datagrid, it makes it so much easier to
have that object bindable so I can load it into a form and have the UI
reflect that object instance. To NOT make domain model objects bindable
would mean creating a third layer for binding and loading a non-bindable
model object into it.  That is a total headache, but I'd do it, if it
really made that much difference.  I'm a little skeptical that a
bindable AMF model object is going to fire off a bunch of events when
received by the Flex client.

 

Jeff

 



RE: [flexcoders] Binding Model Objects

2009-10-27 Thread Gregor Kiddie
I've only ever used ObjectProxy in spikes as a replacement for real
objects which weren't available, never in a production app.

My impression of them was they were quite slow (as with all dynamic
classes), but YMMV...

 

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
blocked::http://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



From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Battershall, Jeff
Sent: 27 October 2009 14:34
To: 'flexcoders@yahoogroups.com'
Subject: RE: [flexcoders] Binding  Model Objects

 

  

Thanks Gregor,

 

I think I'm starting to get it.  -  by having client-side bindable
objects, using custom events, that are generated from DTOs, you minimize
the amount of generic change events being fired.  


What about ObjectProxy?  Can't similar results be obtained there?
(http://blogs.digitalprimates.net/codeSlinger/index.cfm/2007/8/20/Making
-the-unbindable-bindable-with-Object-Proxy).

 

Jeff

 



RE: [flexcoders] Re: Daylight Savings Time issues from Flex to ColdFusion 8.01

2009-10-26 Thread Gregor Kiddie
http://bugs.adobe.com/jira/browse/FP-1760

 

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
blocked::http://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



From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of maurice_n6n
Sent: 25 October 2009 07:07
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Daylight Savings Time issues from Flex to
ColdFusion 8.01

 

  

Do you have a reference for that bug, or a summary of what the problems
are?






RE: [flexcoders] AIR Performance

2009-10-26 Thread Gregor Kiddie
AIR apps have exactly the same memory and CPU issues as every
application written in every language ever.

 

If you write it well, you will not have any CPU or memory issues.

If you write it badly, you will have CPU and memory issues.

 

This is true regardless of the technology involved.

 

Answering your question more directly, yes you can use AIR for the
project, it scales quite well when you start using modules, etc.

 

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
blocked::http://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



From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of jwc_wensan
Sent: 26 October 2009 14:49
To: flexcoders@yahoogroups.com
Subject: [flexcoders] AIR Performance

 

  

Good morning all,

I have read that AIR 1.5 apps have some memory and CPU issues. 

This may or may not be fixed/improved in AIR 2.0.

I am considering a large scale app that will have a hundred plus 
screens. It is AIR because of the requirement for local database.

While I know it can be programmed, my question is should I and/or 
can I use AIR for this size project?

Thoughts, recommendations, etc.

Thanks,

Jack





RE: [flexcoders] Daylight Savings Time issues from Flex to ColdFusion 8.01

2009-10-23 Thread Gregor Kiddie
Join the club, we have T-Shirts (except it's passing Date from Flex to
Java).

 

The last communication we had with Adobe on the issue is that Flash
Player on Windows doesn't handle Daylight savings times properly (at
least in the UK, and a bunch of other regions in the bug), and it
appears the same issue applies to AIR.

 

What I'd love to see, is Adobe allowing us to turn off the daylight
savings code completely, and let us handle it ourselves!

 

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
blocked::http://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



From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of gareth_arch
Sent: 22 October 2009 15:13
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Daylight Savings Time issues from Flex to
ColdFusion 8.01

 

  

I am having some issues with DST when transferring a date from Flex to
ColdFusion.






RE: [flexcoders] Daylight Savings Time issues from Flex to ColdFusion 8.01

2009-10-23 Thread Gregor Kiddie
I should add that Adobe blame Windows for the problem, not the Flash
Player.

 

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
blocked::http://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] Question about function Date

2009-10-13 Thread Gregor Kiddie
It's the date / time of the pc that the swf is running on.

 

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
blocked::http://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



From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Christophe
Sent: 13 October 2009 15:08
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Question about function Date

 

  

Hello, 

Does the function new Date() return the date of the server or the date
of the client PC ? 

Thank you,
Christophe, 

 



RE: [flexcoders] Flex with Sharepoint

2009-09-25 Thread Gregor Kiddie
Sharepoint offers webservices to fetch the data back directly, so you
can target those rather than having to screen scrape.

Take a look at http://msdn.microsoft.com/en-us/library/ms479390.aspx

I've written Air apps in the past for pulling out information from our
sharepoint site in a much nicer way than sharepoint itself ;)

 

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
blocked::http://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



From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Netaman
Sent: 24 September 2009 15:28
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Flex with Sharepoint

 

  

Does anyone have a better way of integrating Flex with Sharepoint then
with a ColdFusion remote call to a C# app;

C# code here 

using System;
using System.Collections.Generic;
using System.Linq;
using System.IO;
using System.Net;
using System.Text;

namespace pathBugLibrary1
{
public class pathBug1
{
public String getURLData(string urlName,string username, string
password)
{
CookieContainer Cookies = new CookieContainer();

WebRequest request = WebRequest.Create(urlName);
request.Credentials = new NetworkCredential(username, password);
request.Method = GET;

WebResponse response = request.GetResponse();
//string responseFromServer =
(((HttpWebResponse)response).StatusDescription);
Stream dataStream = response.GetResponseStream();
StreamReader reader = new StreamReader(dataStream);
string responseFromServer = reader.ReadToEnd();
reader.Close();
response.Close();
return (responseFromServer);
}
}
}

I am doing a screen scrape from Sharepoint in ColdFusion and returning
all the pertenient data back to Flex for display and user interaction.

ColdFusion 8 code here for .Net 
cfobject type=.NET action=create
class=pathBugLibrary1.pathBug1 assembly=pathBugLibrary1.dll
name=pathBug1
cfset foo = pathBug1.getURLData (http://serveraddress/PATH/webpagename
http://serveraddress/PATH/webpagename ,username,password) 

then you can parse foo for specifics, and return any data you need back
to flex

I am looking for a better way to use the sharepoint data with a flex
frontend, the code above works, just alot of web data parsing on my end

Randy





RE: [flexcoders] How can I view internet traffic for an Air App?

2009-09-25 Thread Gregor Kiddie
Use any of the HTTP sniffers to get a real breakdown of what's doing
what traffic wise.

 

Something like

 

Charles http://www.topshareware.com/Charles-download-14516.htm

Or Service Capture http://kevinlangdon.com/serviceCapture/

 

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
blocked::http://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



From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of luvfotography
Sent: 24 September 2009 18:53
To: flexcoders@yahoogroups.com
Subject: [flexcoders] How can I view internet traffic for an Air App?

 

  

To view internet traffic while using a Flex app, I just use Safari and
go to the menu bar and go to Window/Activity.

Is there an equivalent tool to see internet traffic to and from an Air
app???

(while not in Debug mode)
thanks,





RE: [flexcoders] Strange screen behaviour when scrolling

2009-09-21 Thread Gregor Kiddie
We've seen this a lot when there are a lot of editable controls on a
screen.

Unfortunately, we've not been able to get a simple enough project that
displays the behaviour to send to Adobe.

We've re-produced it using the scroll bars as well (if you scroll up and
down quickly, you can re-create it really easily with datagrids)

 

The only work around we've found is...

...It doesn't happen in AIR.

 

Sorry,

 

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
blocked::http://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



From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of skygod37
Sent: 21 September 2009 14:04
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Strange screen behaviour when scrolling

 

  

Hi,

anyone seen this before?

When users have scroll down in a panel, some display elements overlap
each oher (see the two screenshots). By scrolling up and down a few
times they can get their display back to normal.

http://staging.studiemeter.nl/overlap.jpg
http://staging.studiemeter.nl/overlap.jpg 
http://staging.studiemeter.nl/Untitled1.png
http://staging.studiemeter.nl/Untitled1.png 

It seems that the problem is more worse when the users use the scroll
wheel. When they only use the scroll bars on the side everything works
fine.

This is really bothering our users and I hope someone has seen this
before and have a solution for it.

Dik





RE: [flexcoders] Flex PMD forum?

2009-09-07 Thread Gregor Kiddie
We had it working last week using the command line version. Not tried
the ANT version yet.

 

They need to release the Ruleset creator and violation viewer as AIR
app's though.

 

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
blocked::http://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



From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Magnus Lassi
Sent: 03 September 2009 14:16
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Flex PMD forum?

 

  

Hi, does anyone know if there's a Flex PMD forum or mailing list? The
link at http://opensource.adobe.com/wiki/display/flexpmd/FlexPMD
http://opensource.adobe.com/wiki/display/flexpmd/FlexPMD  is broken
and I haven't been able to find it.

I'm not sure if anyone on this list has started using it, I tried both
the command line and ant task and they both bomb out after a second with
the generic error java.lang.StringIndexOutOfBoundsException: String
index out of range: -1

TIA,
Magnus





  1   2   3   4   >