As for projectors, not sure, I assum you could pass in the params someway via the projector exe? that or use FlashStudo (via multidmedia.com) to encapsulate the vars?


In theory it should try and access the gateway on the machine its running on?

In theory.
Scott



Knott, Brian wrote:

Scott,
        How does this relate to projectors.  Should the gateway value be
hard coded inside the exe using the gatewayUrl or defaultGatewayUrl.

I can  get webs  pages to work no problem by not specifying the gatewayUrl
inside the Flash and passing them as params from the HTML page.

Brian

-----Original Message-----
From: Scott Barnes [mailto:[EMAIL PROTECTED]
Sent: Monday, 22 September 2003 3:16 PM
To: Flash Developers List
Subject: [fugli] Re: CFC and Flash Remoting Dev strategies


Yes,


the include files work much like CFIMPORT in coldfusion mx, in that the compiler grabs the needed files and converts the logic to byte code. (Grab an AS viewer to see how a SWF is really made up, its quite interesting) and its not as layed out as it looks i the IDE.

As for setDefaultGateway...

Note: If you specify localhost as the host in the setDefaultGatewayURL method, and you run your Flash application from outside the Flash development environment or stand-alone Flash player, Flash Remoting MX does not use localhost as the default gateway host. Instead, it replaces localhost and any port specified in the setDefaultGatewayURL method with the host and port specified to run the Flash application. For example, if you specify http://localhost/flashservices/gateway in the setDefaultGatewayURL method and start your Flash application by using the URL http://apps.mycompany.com:8500/flashapps/myapp.swf in a web page or browser, Flash Remoting MX uses http://apps.mycompany.com:8500/flashservices/gateway as the default gateway URL.

I generally pass in the gateway as an argument, I also usually if its sensitive use CFC's to block person(s) from accessing methods on CF that i don't care to be made public. (Using the setCredentials to authenticate).

Alternative is to use XML packet to initialize the SWF (Which is another common trick)

Heres an Article I did way back, on Remoting:
http://macrofun.pvpers.com/archives/000004.html

Regards,
Scott Barnes
http://macrofun.pvpers.com





Mark M wrote:

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.


I was always under the assumption that the FLA took the .as file and

compiled


when it created the SWF, and added it with it, not that the SWF went

looking for


the .as file during it's play?

Is that incorrect?

I would have assumed the former, as if the Flash player would have to be

able to


parse AS code if it could dynamically include .as files - increasing it's

file size


considerably.

Of course, I may be wrong?

Mark

-----------------------------------
[EMAIL PROTECTED] ICQ: 3094740
Safe From Bees
[www.safefrombees.com]








--
Scott Barnes
http://macrofun.pvpers.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