|
Prev: Basic Director Tutorials
Next: Printing Certificate
From: Marblehead Johnson on 4 Feb 2006 17:57 Hi, I have created a Director application and also a Website running on a ColdFusion server as part of a company promotion. The first part (the Director application) will allow the customer to read all about the promotion through the application (distributed on a cd-rom). The second part (the Website) allows the customer to view 'live' statistics on the promotion to determine their progress (customer must spend $x to receive rewards. The website allows the customer to view their current progress towards these targets). Initially I created a basic login page on the website for the customer to login. However, I would rather the user login through the Director application than the Website (reason being is that I want to customer to use the application every time they want to logon). Whilst Director can preform a basic GoToURL function, it cannot (it appears) send POST script (I need to send both 'login name' and 'password' form fields). What I have done then is built the simple login fields and button with Flash. The script on the submit button is... on(release) { getURL("http://www.xxxxxxxxxxxx.com", "_blank", "POST"); } This works well when run by itself. However, when imported into Director the submit button does not preform the above action. It appears as through the submit button loses the above code. I have read through various help pages but none the wiser... Can imported flash components like this not work in Director? Is there a trick to importing such components? Is there a way that this task be performed in Director without Flash? Any direction much appreciated! If all else fails I will just have to revert to the login on the Website and run a basic link to the website through the application, however keen to be a bit more fancy with this one... Thanks, Richard
From: JB on 4 Feb 2006 20:21 When playing inside of director a Flash sprite's getURL message is sent to Director which is acting as it's host, instead of a browser and the net. Director does have a post command, to which one can pass multi parameter lists.
From: Sean Wilson on 5 Feb 2006 15:08 Check the docs for 'postNetText'
From: Marblehead Johnson on 6 Feb 2006 15:26 Thanks Sean! Reading about this topic further, I have changed the application so that it uses the GetNetText command to pull a remotely hosted .txt file into the application upon the users actions. The remote .txt file holds all the text and numbers the user needs so all I have to do is update the remote .txt file and the user can view everything within the application rather than taking them to websites etc. I created this and tested on my home computer (using a dial up internet connection) and works well, however when I run the application on my work computer (accesses the internet through LAN) a return error of "Requested object could not be found - URL may be incorrect". I am guessing that the application has not identified work's network internet connection and I wonder... Is this a common issue with applications that use the GetNetText command? Or is there a way around this? Again appreciate any help. Richard
From: Mark A. Boyd on 11 Feb 2006 20:46 On Mon, 06 Feb 2006 20:26:02 GMT, Marblehead Johnson wrote: > I created this and tested on my home computer (using a dial up internet > connection) and works well, however when I run the application on my work > computer (accesses the internet through LAN) a return error of "Requested > object could not be found - URL may be incorrect". I am guessing that the > application has not identified work's network internet connection and I > wonder... I'm guessing it is using a proxy server. You can provide a way for users to enter the proxy information (as they have to for Netscape, IE, and other Internet apps). See proxyServer in the docs. Or you might give the UltimateNet Xtra a try. I believe it has a method to read that information from the system. -- Mark A. Boyd Keep-On-Learnin' :) To email me, make a request in this newsgroup. White-list for this eddress has been in effect since the 90s.
|
Pages: 1 Prev: Basic Director Tutorials Next: Printing Certificate |