Solved

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

Posted on 2009-05-17
4
387 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
  • 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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

I have been doing hardcore actionscripting for some time; and needless to say I have faced a lot of problems in just understanding others' code rather than understanding what the code executes. A programmer's life can become hell when there are a lo…
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…
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 how to select which audio input to use. Once you have an audio input plugged into the laptop or computer, you will go into the audio input settings and choose which audio input you want to use.

747 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

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now