PDA

View Full Version : Someone please help...


JammerLV
07-08-2005, 10:00 PM
Heloo Masters of ActionScript. Please excuse my ignorance in matters here. I have visited MANY times in the last 4 years and learned alot from the posts and trully appreciate the talent and time devoted to this site.
I have built a site using a combination of flash and html ( www.cen.tv ). I am sure many could find plently of things I have done wrong, or could do better. But I am working on making things work as well as possible. One of these things includes getting a 'SitePal' imbedded in the flash portion of the home page. There is a specific instruction that confuses me and I think it is vital for the operation of the SitePal. The instruction is as follows:

Insert the following code in the first frame of the root level of your Flash movie. This is required to enable VHost player root-level callbacks, which are used for authentication
and to communicate with the Oddcast servers that host SitePal Scenes:
System.security.allowDomain("vhost.oddcast.com", "vhss-a.
oddcast.com", "vhss-c.oddcast.com");

My problem is, I am not sure which function in the Actions window is needed to insert this callback? I mean, is this a variable, a command, a property? For instance...The instructions tell me to insert some generated code into a LoadMovie method:

In your Flash movie clip, paste the URL in the In Flash tab of the Embed scene dialogue in the first parameter of the loadMovie method.

That was simple enough for me...But, that first instruction is really throwing me off...Can someone please please suggest the method I could use to accomplish my goals? Thanks so much in advance, Jammer

badlorry
07-11-2005, 01:10 PM
this is a command (function) of the System object, simply by putting the code as you have it will call the code. It is is officially undocumented, but you can find information about it on google quite easily.

here's a link to flashguru

http://www.flashguru.co.uk/systemsecurityallowdomain/

JammerLV
07-12-2005, 02:03 AM
yes...That worked...Thank you...Now I will need to adjust some parameters and this should work well...That was a big help...Thanks again, Jammer

JammerLV
07-20-2005, 07:02 PM
OK...As usual...solving one problem creates others. Now...when I use either export or embed method, no matter which page or frame, the site pal takes over the entire page it is on at the time when published. Here is an example of my action script: (each command one line, of course)

onClipEvent (load) {
System.security.allowDomain(\"vhost.oddcast.com\", \"vhss- c.oddcast.com\", \"vhss-a.oddcast.com\");
loadMovieNum(\"http://vhost.oddcast.com/vhsssecure.php?doc=http%3A%2F%2Fvhost.oddcast.com% 2Fgetshow.php%3Facc%3D17306%26ss%3D270109%26sl%3D0 %26embedid%3D94b94b408e73249936a2a35c50dd556f&edit=0&acc=17306&firstslide=1&loading=1&bgcolor=0xFFFFFF\", 0);
}

And here is a url to see what happens: http://www.cen.tv/alice.html

And here is my true homepage as it exsists now: http://www.cen.tv

As you can see on my flash example alice takes over everything and the input box and text box isnt even there.
Does anyone have any suggestions at all? Thanks again in advance, Jammer

JammerLV
07-21-2005, 02:04 AM
Ahhhh..levels....I think all of my experimenting is paying off...I think there is an issue with levels...I willl keep trying and check back, Jammer

JammerLV
07-25-2005, 10:35 PM
OK...I finally figured out how and where to embed the sitepal properly on the site.
Now I only need to have an input box underneath her. I know the call from sitepal is a form...I put the code they generated for me on the page, but I get a ton of syntax errors...here is the code;

System.security.allowDomain("vhost.oddcast.com", "vhss- c.oddcast.com", "vhss-a.oddcast.com");
this.loadMovie("http://vhost.oddcast.com/vhsssecure.php?doc=http%3A%2F%2Fvhost.oddcast.com% 2Fgetshow.php%3Facc%3D17306%26ss%3D270108%26sl%3D0 %26embedid%3D411a91d787c225767cfa92dc4be31d16&edit=0&acc=17306&firstslide=1&loading=1&bgcolor=0xFFFFFF",2);
String.fromCharCode(FORM NAME="myForm" class="form" onSubmit="javascript:sayAIResponse(textToSay.value, 1, 1, 1, 1);textToSay.value='';return false;"
input name="textToSay" value="" class="form"
INPUT TYPE="button" VALUE="Ask Alice Anything" onClick="javascript:sayAIResponse(textToSay.value, 1, 1, 1, 1);textToSay.value='';" class="form"

The errors say that a ";" is expected on lines 3-6...I put those everywhere and it didn't seem to help anything...Any suggestions anyone?

JammerLV
07-28-2005, 12:23 AM
OK...With the help of a few suggestions here I finally got sitepal embedded on the flash portion of the page. www.cen.tv
Now...You can see that some kind of action script comes up in the input box...I don't know where that comes from, or why...In the fla it has 'Type question -- Hit Enter', in reference to the button.
Also, I am trying to find a way to make the text in the input box clear when the enter button is hit.
And one last question...The text that is at the bottom of the page...Is there a way to move this in the flash portion and still have bots and spiders see it?
Thanks for taking time to check things out...And a bigger thanks for those that made suggestions.
This is my first real attempt to make a working site and I couldn't have done it without the knowledge passed on here...Everyone involved has my highest of regards. Jammer