Brett

I use an actionscript include file and this file actually does all my
connection stuff, so it doesnt matter what environment your in, you can
always change it via the inclue rather than having to get into the FLA to
change stuff.

Anotherway would be to pass the domain in via the flashVars param in the
object embed.  Just output the value using your CF code and access the var
in your flash.  THis way its always dynamic and you dont have to change
anything at all.

Steve

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Brett
Payne-Rhodes
Sent: Monday, 22 September 2003 12:13 AM
To: Flash Developers List
Subject: [fugli] RE: CFC and Flash Remoting Dev strategies


On a somewhat related note...

Being a Flash newbie, yes this is my first question on fugli, I'm
wondering about this security issue of not being able to access a swf
other than with the same top level URL. Specifically in terms of the
shift from development to production, which are obviously going to have
different URLs.

I've just published my first SWF in production and changed the URL in
the createGatewayConnection call to be the URL of the production
environment. It worked but I'm guessing that this is not best practice.
So what is the best way to manage this? Can Flash do a 'getURL' call to
find out the home address and use that in the connection, or is there a
cleaner more elegant solution?

Regards and thanks,

Brett
B)

Mark M wrote:
> Jason -
>
> When testing swf's you should always load them on the same web server as
> your CFMX installation.
>
> You need to make sure that Flash's inherent security sandbox (a swf in a
> browser cannot access any URLs/Sockets outside the domain it is sitting
> on).
>
> This MAY be causing your problem (may not as well).
>
> But as a general rule, I'll display a 'version number' in the bottom RHS
> of a my SWF, and update that as I upload new SWFs to the sever - that
> way I KNOW I'm looking at the right one in my browser. (Flash can cache
> like a b* sometimes).
>
> This way you aren't going to get caught by security issues later on.
>
> HTH.
>
> Mark
> ------------------------------------------------------------------
> [EMAIL PROTECTED]
> ICQ: 3094740
> Safe From Bees
> [ www.safefrombees.com ]
>


--
Brett Payne-Rhodes
Eaglehawk Computing
t: +61 (0)8 9371-0471
f: +61 (0)8 9371-0470
m: +61 (0)414 371 047
e: [EMAIL PROTECTED]
w: www.ehc.net.au



---
You are currently subscribed to fugli as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]

MX Downunder AsiaPac DevCon - http://mxdu.com/


---
You are currently subscribed to fugli as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]

MX Downunder AsiaPac DevCon - http://mxdu.com/

Reply via email to