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?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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
CyanBlueCommented:
Can you provide the URL where I can see that SWF???

CyanBlue
0
The Ultimate Tool Kit for Technolgy Solution Provi

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy for valuable how-to assets including sample agreements, checklists, flowcharts, and more!

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
CyanBlueCommented:
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

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
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
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Adobe Flash

From novice to tech pro — start learning today.