Solved

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

Posted on 2009-05-17
4
403 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 500 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

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

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

Recently, I was asked to recommend a tracking system to be implemented on a clients website. As the entire site was built on flash, my first thought was to suggest custom built tracking system. However, our company at that point of time didn't h…
The last time I worked with Flash and Socket connections was in AS1. A recent project required flash connecting to a Socket, and sending receiving information - we figured it would be easy enough - we all know about the socket policy documents and c…
In this tutorial viewers will learn how to create a basic shape tween animation in Flash including shape hints for smooth animation Open a new document in Flash: Draw a shape: Select another frame (how long you want the tween to be): Right click and…
The goal of the tutorial is to teach the user how to select the video input device. Make sure you have an input device that in connected and work and recognized by Adobe Flash Media Live Encoder and select it in the “video input” menu.

626 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