Double Quotations: Escape Character For Xml?
I'm pretty new to xml concept. Anyway I was playing around with xml/flash and thought of use the double quotations with escape character to see the effect something like this xml file: example="blah blah blah "blah" and example='blah blah blah's blah' but Flash seem doesn't support the escape method. Is there any method that flash/xml will support the escape character?
KirupaForum > Flash > Flash 8 (and earlier)
Posted on: 05-08-2006, 12:49 PM
View Complete Forum Thread with Replies
Sponsored Links:
Double Quotations: Escape Character For Xml?
I'm pretty new to xml concept. Anyway I was playing around with xml/flash and thought of use the double quotations with escape character to see the effect something like this xml file: example="blah blah blah "blah" and example='blah blah blah's blah' but Flash seem doesn't support the escape method. Is there any method that flash/xml will support the escape character?
Thanks,
jace
View Replies !
View Related
Escape Character
Hello all..
Hope you can help coz im stumped?!
Im producing an XML based menu and need to access a sub folder called XML to get at the document but when I use the “/” to change directory in the action script its seeing it as an escape character and knocking off the first letter of the XML doc?
Hence it cant find the document and wont load the menu…
I’m building using Flash 7 and saving and exporting as flash 6
Thanks..
Chris/
View Replies !
View Related
How Can I Escape An & Character In A Querystring
I am using Flash in conjunction with PERL to get data from a MySQL database, and have run into one little problem... some of the data I need to send to flash contains a & in the field. Is there an accepted way to escape it so flash doesn't break the string in the wrong place, or should I convert it to something else and change it back when it gets to flash? Any help would be appreciated
View Replies !
View Related
Flex2 Escape Character
Hey!
So I've been making a website in Flex2 lately. This website accesses some external .xml files on remote servers where I have no administrator access.
So one of the .xml files I need to use has "-"s between words. The node is called "game-view-top" and so this causes Flex2 to say "Access of undefined property top." & "Access of undefined property view.". Do you know of anyway to fix this problem?
Any help is greatly appreciated!
View Replies !
View Related
Escape/unescape And Character Sets
Hi, I’m going nuts with this…
I have a question for you that you maybe have the answer to.
When using escape/unescape I get to encode/decode my text to use with url’s. You are with me this far..
The problem is: When I decode a character I get this result: C3%A5 for example. What puzzles me is that normally acharacter is encoded to two characters and not four.
And, these four characters does not seem to be the correct character when checking the standards.
Any ida why this is? Is there any character settings or similar in Flash?
I'm using this when communicating with PHP and as a result I get 2 wrong characters instead of the 1 correct one I am interrested in.
View Replies !
View Related
Javascript Bothers Double-byte Character Desplay
When I open a popup window with on(release) commande in a menu bar, all the Japanese characters in the bar (dynamic text) transforms into half-byte characters which causes display problems with non-Japanese OS PCs.
Even on Japanese OS, you can see double-byte transforms into single-byte. What can I do?
View Replies !
View Related
Random Quotations
I want to write a script that loads in a random quotation on every new visit to the page. My first thought was to create an array with all the quotes and use the Math.random function to load a different quote on each new page load.
However, I'm not quite sure on the best way to extract an element from the array and pass it to the textfield.
I'm using Flash MX 2004, AS 2.0.
Can anyone offer any help? Or possibly suggest an alternative solution?
Thanks
View Replies !
View Related
Various Quotations In Random Order?
Hi again...
I would like to have an ongoing 'movie' on my flash site where various quotations are displayed in random order. (So that you don't get the same quote every time you visit).
Any ideas on how to do this? Is it too complicated for a newbie like me?
Much thanks!
View Replies !
View Related
Adding Quotations To An Array
Hi,
I have an admin system that creates the following array in an XML file.
(valueOne, anotherValue, something else, another)
I need to take those values and add them to a combo box. However they first need to be converted to be:
("valueOne", "anotherValue", "something else", "another")
Is there a simple way I can take the values of an array and convert them to be comma delimitated and in quotations ?
Thanks
Stephen
View Replies !
View Related
Quotations In Action Script Text Ack
I am trying to utilise an image scroller, yet when I use action text that has quotes in it I get errors as it signifies something to the script..
ie:
_level0.masker.contentText:contentText = " he said,"what the heck is going on" , he shrugs and tries the board";
anybody know a solution?
View Replies !
View Related
When I Put Quotations Marks ", He Chokes
I have in my flash some animation with MCs and dynamic filds, I am pulling some texts from my PARAM in the HTML, and he works normal, but now I got some problems.
The first Product in de PARAM from my HTML I have this (NOVO+Produto+1+")
when I put quotations marks ", he stop de animation from my MCs, it does not bring the outhers texts, he chokes.
I try to put quotations marks ", dynamic text "Character" but nothing.
I have this in my PARAM HTML.
Code:
'barra17?i1=imagemVertical&t=Destaques&n1=NOVO+Produto1+"&n2=Descrição.......'
Somebody knows because it does not appear the quotations marks ", or somebody knows what I have that to do for he works.
Sorry about my English.
View Replies !
View Related
When I Put Quotations Marks ", He Chokes
I have in my flash some animation with MCs and dynamic filds, I am pulling some texts from my PARAM in the HTML, and he works normal, but now I got some problems.
The first Product in de PARAM from my HTML I have this (NOVO+Produto+1+")
when I put quotations marks ", he stop de animation from my MCs, it does not bring the outhers texts, he chokes.
I try to put quotations marks ", dynamic text "Character" but nothing.
I have this in my PARAM HTML.
Code:
'barra17?i1=imagemVertical&t=Destaques&n1=NOVO+Produto1+"&n2=Descrição.......'
Somebody knows because it does not appear the quotations marks ", or somebody knows what I have that to do for he works.
Sorry about my English.
View Replies !
View Related
Dynamic Text Box - Useing Quotations Within
I have problem and didn't know if there was a simple solution. I would like to use AS to fill the contents of a dynamic text box but I want to include quotations. such as
mytext.text = " The man said "Howdy."";
but of course the quotes cause problems with that. I know I could call an external text file to do this, and perhaps even use a variable that has a value of a " but didn't know if there was something obvious I was missing.
Thanks!
View Replies !
View Related
When I Put Quotations Marks ", He Chokes
I have in my flash some animation with MCs and dynamic filds, I am pulling some texts from my PARAM in the HTML, and he works normal, but now I got some problems.
The first Product in de PARAM from my HTML I have this (NOVO+Produto+1+")
when I put quotations marks ", he stop de animation from my MCs, it does not bring the outhers texts, he chokes.
I try to put quotations marks ", dynamic text "Character" but nothing.
I have this in my PARAM HTML.
Code:
'barra17?i1=imagemVertical&t=Destaques&n1=NOVO+Produto1+"&n2=Descrição.......'
Somebody knows because it does not appear the quotations marks ", or somebody knows what I have that to do for he works.
Sorry about my English.
View Replies !
View Related
Double My Array? Double The Fun
HEY!
Have a nice random array here courtesy of Pixelwit from this site but i need the numbers to duplicate in the array..as an example, instead of the array saying...
[7, 4, 23, 14, etc]
it would double them...
[7, 7, 4, 4, 23, 23, 14, 14, etc]
Below is the code...i'm too much of a newbie so far to make it work, any help would be great!
(alternativly, i just need code that makes a random 10 number array, no two numbers the same, but then duplicates each one twice in the array then assigns that array to a variable)
thanks
ActionScript Code:
// How to shuffle any Array
// (Robert Penner June 2001)
Array.prototype.shuffle = function () {
var len = this.length;
for (var i = 0; i<len; i++) {
var rand = Math.floor(Math.random()*len);
var temp = this[i];
this[i] = this[rand];
this[rand] = temp;
}
}
//
// Make initial array and shuffle it
totalImgs = 25;
allImgsArry = [];
for(i=0; i<totalImgs; i++){
allImgsArry[i] = i+1;
}
allImgsArry.shuffle();
trace("allImgsArry = "+allImgsArry);
//
// How to chop big array into little ones
function chopAllImgsArry(divisor){
var i = 1;
while(i*divisor<allImgsArry.length){
this["imgsArry"+i] = allImgsArry.slice((i-1)*divisor, i*divisor);
i++;
}
this["imgsArry"+i] = allImgsArry.slice((i-1)*divisor);
}
//
// Chop big array and show results
divisor = 10;
chopAllImgsArry(divisor)
for(i=1; i<Math.ceil(allImgsArry.length/divisor+1); i++){
trace("imgsArry"+i+" = "+this["imgsArry"+i])
}
View Replies !
View Related
The & Character In Flash...how To Use URLs That Contain The & Character...
I am loading in an array or urls from my database via php into my flash movie.
the output of my script looks like this:
quote:
--------------------------------------------------------------------------------
&id=1,&imagelist=1.jpg,&urls=http://www.homemade.ch/shop/100/conliste.asp?langext=&katno=8|&titles=Silence|&com ments=Silence, a painting by Bea Fehr|
--------------------------------------------------------------------------------
problem is that the url contains the '&' character, which Flash uses to seperate the variables....
ex:
http://www.homemade.ch/shop/100/con...angext=&katno=8
but problem is that it is being read into flash as this:
http://www.homemade.ch/shop/100/con_liste.asp?langext=
becuase Flash cuts it off when he see the '&' sign.
How can I workaround this problem, has to be a common issue I would guess since lots of URLs have this format....?
Do I need to write some parsing code?
View Replies !
View Related
Escape
Hi,
I have made a screensaver with flashWiz.
In the animation, there is a button to link to a website, but how quit(escape) the screen saver to go directly to IE ?
I use this action, the link is ok, IE is open but I don't know how escape from the screensaver (.swf).
on (release) {
getURL ("http://www.mysite.org");
???????????
}
Excuse my bad english, but i'm french ;o)
View Replies !
View Related
Escape()?
hi all,
I'm having a problem with transferring data by url ... since the strings may contain non-alphanumeric characters they must be encoded (url-encoded). I've checked the docs and it says escape() would do it. The folling doesn't work though:
loadVariablesNum ("gb.php?Name=" add encode(name.text) add "&Entry=" add encode(entry.text), 0);
Strange thing I've seen that the function escape() doesn't have a return value - so where is the result after calling the function?
Thanks a bunch.
View Replies !
View Related
Escape Key & Exe
Hello,
1)When click the swf it loads in fullscreen when i use fscommand.But when i press escape it shows the menu and load in different size.
My problem is when i press escape key the swf should close.
2)When i convert swf to exe the standard format comes but i want to have different .ico for my exe.
Suggest me
View Replies !
View Related
RE:Escape
Hello,
I have created a movie using fullscreen , now when i click escape key,
the movie menu starts appearing in the swf then only i have to close it.
But what i want is, when i press "escape" key the movie should close.
What i have to do ?
With anticipation
kathiravan.T
View Replies !
View Related
How Can I Get ESCAPE Key?
I need to close dialog window when user presses ESCAPE on the keyboard.
(see blue menu button in Matter of Time )
I can get any key except ESCAPE. But it only happens in the browser window!
It works fine in Flash player. It looks like IE doesn't send the ESCAPE key code to the Flash object.
How can I fix it?
This is a snapshot of my code:
// create keyboard listener to control Esc key
var keyListener = new Object();
keyListener.onKeyDown = function()
{
trace(Key.getCode())
}
Key.addListener(keyListener);
View Replies !
View Related
Un-escape BUG
if memory serves me right, all un-escape procedure from almost all programming language i know ALWAYS un-escape + sign into "space"
but try copy-pasting the code, and run it on actionscript 3.0, it wont parse the + sign properly (the error do not occur when you publish them on actionscript 2.0)
I am quite new with actionscript 3.0 though, is there any other way of unescaping string in actionscript 3.0 that produce the right result?
Thanks in advance.
Cheers and God Bless,
Chowi
Attach Code
var MyString:String = "This+is+my+escaped+string! in%20actionscript%203.0,%20the%20%2b%20sign%20is%20not%20escaped%20properly";
trace("Escaped String : " + MyString);
trace("Un-escaped String : " + unescape(MyString));
View Replies !
View Related
ESCAPE Key....
Hello everybody!
I have a swf file which will be played on a browser, whtat i want is... when i press the "ESCAPE key" it should do certain action... but how can flash detected that i have pressed the escape key that the browser seems to have it as one of its shortcuts? ..any other way around?
thanx
View Replies !
View Related
ESCAPE Key....
Hello everybody!
I have a swf file which will be played on a browser, whtat i want is... when i press the "ESCAPE key" it should do certain action... but how can flash detected that i have pressed the escape key that the browser seems to have it as one of its shortcuts? ..any other way around?
thanx
View Replies !
View Related
AS3 - AS3 Escape Vs AS2 Escape
Does someone knows why the following thing happens?:
ActionScript Code:
//in AS3
trace(escape("á")) //outputs:%E1
trace(escape("í")) //outputs:%ED
//in AS2
trace(escape("á")) //outputs:%C3%A1
trace(escape("í")) //outputs:%C3%AD
View Replies !
View Related
Trapping The Escape Key
Help me! I am working on a CD-Rom that will run in fullscreen mode. If the escape key is pressed the player will revert to windowed mode. What I need to do is trap the pressing of the escape key so that the normal application behaviour is prevented and I can use my own custom code.
I already know about Key.ESCAPE and all that malarky. It just doesn't seem to work.
Any help appreciated.
View Replies !
View Related
Capturing The Escape Key
Hello all,
Here's a really simple question (I guess) - I am really new to MX and am experiencing troubles to switch from flash 5...
Well, what used to be easy as a song has now turned (for me) into the dark pitchs of horror : I want to prevent any use of the ESCAPE key.
I am *clueless* on where to go from that : do I have to create a "listener" ? Where should I put it ??
Thanx for any help, and sorry for the low-level of my question (darn, to say I thought it would be easy to switch to MX!) ;)
Anik =:)
View Replies !
View Related
'escape' Shortcuts
Does any know where I can get a list of the escape shortcuts that are in the Actionscript editor (like 'esc'+gp for gotoAndPlay). That little plus sign thing in the editor's top left corner goes so many levels deep that its not that useful anymore...
ta
PBH
View Replies !
View Related
Escape Characters XML
hey everyone.
i try to send xml-data to my php script.
everything works fine, except the fact that
new lines "
" are not submitted.
can anyone give me a hint?
/*
the variable myText is a multiline-textbox on the stage.
*/
function buildXML(){
temp = new Object();
plXML = new XML();
temp.thread = plXML.createElement("package");
temp.thread.attributes.action = "newEntry";
plXML.appendChild(temp.thread);
temp.user = plXML.createElement("user");
temp.user.attributes.id = userID;
temp.myTextNode = plXML.createTextNode(myText);
temp.myText = plXML.createElement("text");
temp.myText.appendChild(temp.myTextNode);
temp.myHLNode = plXML.createTextNode(myHeadline);
temp.myHeadline = plXML.createElement("headline");
temp.myHeadline.appendChild(temp.myHLNode);
temp.forum = plXML.createElement("forum");
temp.forum.attributes.id = forumID;
plXML.firstChild.appendChild(temp.user);
plXML.firstChild.appendChild(temp.myText);
plXML.firstChild.appendChild(temp.myHeadline);
plXML.firstChild.appendChild(temp.forum);
plXML.send(_root.urlPath add "insertEntry.php");
/*
//this one dind't work, so i tried sth. like this:
testXML = new XML();
testXML.parseXML("<![CDATA[" add myText add "]]>");
testXML.send(_root.urlPath add "insertEntry.php");
*/
}
when i catch it with the php $_SERVER["QUERY_STRING"] statement and put it in a textfile, the output is the following
(myText is "blah1
blah2" ->newline after blah1)
//first exapmle:
<package%20action="newEntry"><user%20id="1"% 20/><text>blah1blah2</text><head
line>foren%20saugen</headline><forum%20id=""%20/></package>
//second one:
blah1blah2
this messes me up!! please help me! thanks in advance.
cheers
View Replies !
View Related
Escape Symbols
Hi,
Any actionscript gurus can help me solved my problem?
The situation is currently I have a flash application on the web, which process a jsp script at the back end. Using the sendAndLoad() to send my variable pass. However 1 of my field contain a special character '&'. Thus now i need to escape my this variable before posting it to my server side script. However when the server side retrieved my variables, all the escape symbol is not unescape, thus storing them into my database with those escape symbol.
So hopefully there are some gurus can help me solved this problems without unescaping the variables at the serverside script??
Thanks a million!!
Darren
View Replies !
View Related
How To Escape A Fullscreen SWF
I created a SWF with a Fullscreen action but I would like to place a button that reads "Click here to quit Movie" I know that you can use the ESC button but I did this for a client and some of his employees once the flash movie was launched they did not know how to quit it. I imagine is an action attached to a button like on release go to and there another action that reads close or something like that , please advise thank you
View Replies !
View Related
Disable Escape Key
hi,
i'm creating a projector for a presentation.
i wanted my projector to be in full screen view all the time until the movie ends.
i scripted it with fscommand but when i play the swf file the window shows up when the user presses the escape key.
i wanted to disable the escape key so that it will remain full screen.
can anyone provide me a solution to this problem? please
thanks.
View Replies !
View Related
Escape Button
Hello,
I am trying this code which will work if I change "ESCAPE" to "RIGHT" but I need to use the esc key.
Any ideas????
THANKS!!!!!!!!!!
onClipEvent(keyDown) {
if(Key.isDown(Key.ESCAPE)) {
_root.loan_ops.gotoAndStop(20)
}
}
View Replies !
View Related
Escape / Unescape
I'm working in flash MX2004 and i have a little problem i think that this is a bad configuration problem if you can help i will be gratefuly.
I search in web the URLenconder and i find a page with all urlencode character, if i do this line of code.
trace(unescape("%dc"));
Output is nothing
but if i do this line of code
trace(escape("Ü"));
Output is:%C3%9C
but if you see in table of urlencode character code(%C3%9C) is wrong.
you can find a table in this url: http://i-technica.com/whitestuff/urlencodechart.html
why this happen?
View Replies !
View Related
URL Encode (escape) '
I'm trying to URL encode an apostrophe (') the value I need it to come out as (and what it comes out as in PHP) is %5C%27. However, when I use the escape command in Flash it equates an apostrophe to %27. I figured out that %5C%27 means ', I don't know why it comes out like this in PHP becuase I'm only URLencoding '. At any rate, when I use escape in flash on the characters ' I still only get %27 not %5C%27. I've also tried manually typing in %5C%27 into the getURL in flash but it translates it to ' for me.
Does anyone know how I can get %5C%27 into the URL in flash?
View Replies !
View Related
[F8] Escape Key Problom
I have a code from previous code of flase, that use ESC key,
this code is not working when I publish my movie to flash 8 movie,
code:
global.myKeyHandler = new Object()
_global.myKeyHandler.onKeyUp = function(){
var theKeyCode = Key.getCode();
trace(theKeyCode)
switch(theKeyCode) {
case Key.ESCAPE: // ESC pressed
trace("ESC pressed");
break;
case Key.TAB: // tab key
trace("TAB pressed");
break;
}
}
Key.addListener(_global.myKeyHandler);
when i test the movie (Control > Test Movie) it can work only if chose to publish to older flash player or if I chose to disable keyboard shortcuts
(Control > Disable Keyboard Shortcuts).
it look like the "esc" key is disabled for flash 8, is there a way to bypass this?
10x
View Replies !
View Related
Room Escape
How you can make it so that when you pick up a object (let's say for example a key), and then it disappears? I can make it so that it disappears, but when going to another frame and back to the same, it comes back... I guess you need some actionscript for that. Can anyone help me?
View Replies !
View Related
AllowFullScreen Escape
Hey every one
I have a movie that the end user can set to FullScreen or normal.
but when they press escape i am bot getting a return
Code:
i=0
Controllers.toggle_btn.onRelease = function() {
i++ // this does not happend when the end user changes browser windo or presses escape
// toggle button has been hit
tester.text=i
if (Stage.displayState == "fullScreen") {
Stage.displayState = "normal";
} else {
Stage.displayState = "fullScreen";
}
};
View Replies !
View Related
Disable Escape Key
Hi..
I have a Flash movie that is going to run fullscreen as an EXE on the PC (fullscreen=true, resize=false). If a user presses the Escape Key, I want it to go and replay the movie instead of making fullscreen=false. So I used this command on a clipEvent:
AS
onClipEvent (keyDown) {
if (Key.isDown(27)) {
_root.gotoAndPlay("begin");
}
}
/AS
"27" is supposed to be the numeric equivalent to the Escape key. But this ClipEvent still does not override the Escape key getting rid of the fullscreen. Is there any way to override the Escape key from doing this?
View Replies !
View Related
How Check For Escape Key
Hi,
is it possible to check for escape key in Flash 8?
I tried "on(keyPress "<Escape>").." but it never gets there.
I tried it with "fscommand("trapallkeys");" but it doesn't help.
Am I forgetting something?
TIA
View Replies !
View Related
|