Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Flash LoadVars - need to load in a string that contains an ampersand

Posted on 2009-05-17
4
Medium Priority
?
410 Views
Last Modified: 2013-11-11
I've got loadvars working fine in flash, but I need to load in a string that contains URLS which contain the ampersand character (&). Problem is flash sees these as separators for the name=value pairs and is loading stuff into all kinds of different variables.

Is there some way I can excape these in the source file? I tried backslashes before them which didnt work. Or if I swapped them for something else - say | - is it possible to replace these with the & character with acxtionscript once I have the variable loaded somewhow? Or any other ideas how I can do this?

Thanks,
Matt
0
Comment
Question by:MatthewP
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
4 Comments
 
LVL 37

Accepted Solution

by:
CyanBlue earned 2000 total points
ID: 24407541
Those are the ones Flash expects special action on, so you cannot use them...  The & or any other special characters need to be coming in as a urlescaped format where & should be %26 or = should be %3D...  

     http://community.contractwebdevelopment.com/url-escape-characters

CyanBlue
0
 
LVL 37

Expert Comment

by:CyanBlue
ID: 24634947
Did that answer help???  It'd be nice if you could close this topic if you resolved the problem...  ;)

CyanBlue
0
 
LVL 6

Author Closing Comment

by:MatthewP
ID: 31582364
Yes it did, I had to do a string replace in the PHP script that generated the source but fixed it up nicely, many thanks!

Matt
0
 
LVL 37

Expert Comment

by:CyanBlue
ID: 24931978
Cool...  :)

CyanBlue
0

Featured Post

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.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I know the transition can be hard. We got used to the ease of use ActionScript 2 had, but honestly, it became problematic later on, especially if designers were involved in the project and found it easy to add code as they saw fit. So, this artic…
There are times in your Flash CS4 application when you want more than a simple pointer or a hand, and it's hard to find an ideal walk-through to tell you what to do.  I spent a few days recently learning my way around making custom cursors in Flash,…
The goal of the tutorial is to teach the user how to set there setting in Adobe Flash Media Live Encoder and YouTube for optimal video and audio quality.
The goal of the tutorial is to teach the user what frame rate is, how to control it and what effect it has on the video.

721 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question