Shaun Mccran

My digital playground

26
O
C
T
2008

Be careful using URL FlashVars!

A while ago I subscribed to an online magazine. Its a bit laddish, but it has the odd interesting article, and its done in flash/flex.

The most recent article arrived in my in-box the other day, and one of the pages was an advert for the new film 'eagle eye' rather unfortunately they had passed in your subscription name value as a flashVar in the URL scope.

This is probably one of the easiest ways to pass variables into flex, but also the most unsecure, and easily changed, as per the screen shot below. Luckily in this case it was just a display variable, but what about if this was a query param? or a value for a piece of data being sent back to a server?

There are many other ways of passing variables into flex apps, I'd go for using a properties file. Have your flex look for a server side XML definitions file on "creationComplete". Or edit your Embed/Object code, whilst still not ideal its far better than a url variable!

The magazine:
http://www.monkeymag.co.uk/

07
J
U
L
2008

Init method for coldfusion cfc's

I'm lucky enough to be working in an environment that is small enough to allow me access to our whole suite of coldfusion cfc's. So i generally know pretty much what they all do, but what if your interrogating unknown cfc's?

Well you can use the init() method.

[ More ]

03
J
U
L
2008

Matching date ranges to flex arrays in SQL queries

Whilst writing a search function for a flex applicaiton I needed to be able to filter results back to flex from a remote cfc by a variety of criteria. Two of these were the month, and the year. So here's a handy way of doing it.

[ More ]

01
J
U
L
2008

Flex - Coldfusion Remoting, passing an Object usefully

Ever noticed that with the increase in scale of a Flex application, the amount of data that you pass around seems to grow exponentially? Well I was fed up with passing multiple values back and forth from CF to flex, so after some digging here's the first article in using objects in remoting.

[ More ]

_UNKNOWNTRANSLATION_ /