Flash stripping out coding after php reference

Hi,

I have a button within a flash movie that points to a web page. The url that the button points to includes coding for tracking purposes. The problem is that Flash 8 Pro seems to strip out all the coding after "php" and therefore goes to the incorrect page. When I am publishing the movie, I'm saving it for Flash 6. This is the coding:

this.mc_contact.btn_website.onRelease = function() {
      getURL("http://www.pennfoster.edu/urm.php?source=UE2A18T&url=http://www.pennfoster.edu/enrolltoday/index.html", "_blank");
};

The page that opens is http://www.pennfoster.edu when it should open http://www.pennfoster.edu/enrolltoday/index.html. Can anyone tell me why Flash is not recognizing anything after "php" and how to fix it?

Thanks a lot!
choward123Asked:
Who is Participating?
 
CyanBlueConnect With a Mentor Commented:
Ah, I totally missed this topic...  Sorry about that...

You can use '%26' to replace the '&' sign...   See if that works...
http://kb.adobe.com/selfservice/viewContent.do?externalId=tn_14143&sliceId=2

CyanBlue
0
 
CyanBlueCommented:
Try this and see if it works...

CyanBlue
this.mc_contact.btn_website.onRelease = function()
{
	var _lv:LoadVars = new LoadVars();
	_lv.source = "UE2A18T";
	_lv.url = "http://www.pennfoster.edu/enrolltoday/index.html";
	_lv.send("http://www.pennfoster.edu/urm.php", "_blank", "GET");
}

Open in new window

0
 
choward123Author Commented:
Thanks, but the new coding didn't seem to make any difference. I appreciate the attempt.
0
Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
CyanBlueCommented:
Can you provide the URL where I can see that SWF???

CyanBlue
0
 
choward123Author Commented:
Thanks for the help CyanBlue.

Please click on the movie camera icon to view the swf file.
http://www.distancestudies.com/profile.cfm?artid=26464&smc=yes

If you click on the link "Visit School Website" it takes you to the correct page but I had to take out their code for tracking. Code has been inserted so that we (the host) can track it but it conflicts with the client's (the school) code.

This is what was initially there that didn't work:
this.mc_contact.btn_website.onRelease = function() {
      getURL("./VT_click.cfm?artId=" + v_artId + "&sid=" + v_sId + "&wid=" + v_wId + "&link=http://www.pennfoster.edu/urm.php?source=UE2A18T&url=http://www.pennfoster.edu/enrolltoday/index.html", "_blank");
};

After your suggestion we tried the following without any luck:
this.mc_contact.btn_website.onRelease = function()
{
      var _lv:LoadVars = new LoadVars();
      _lv.source = "UE2A18T";
      _lv.url = "http://www.pennfoster.edu/enrolltoday/index.html";
      _lv.send("./VT_click.cfm?artId=" + v_artId + "&sid=" + v_sId + "&wid=" + v_wId + "http://www.pennfoster.edu/urm.php", "_blank", "GET");
}

So at this point, we are looking at how we track things to see if there's a fix.
0
 
choward123Author Commented:
Ok, now we figured out the problem but are not sure of the solution. Basically it looks like we have a parameter within a parameter. The "&" in their link is what seems to be causing a problem since that is what defines the parameters in our coding. Is there a way to make the second  "&" be ignored as a parameter?
0
 
choward123Author Commented:
Thanks for the help, but that didn't seem to work. Someone here was able to figure something out so the link is now working correctly.
0
 
choward123Author Commented:
Although your suggestion didn't solve my problem, I really appreciate the attempt.
0
All Courses

From novice to tech pro — start learning today.