Groups | Blog | Home
all groups > macromedia flash sitedesign > october 2006 >

macromedia flash sitedesign : The & and + signs


gerarddaver
10/19/2006 4:43:20 PM
Hello all,
I hope someone has the answer to this!!!!!
Here it goes;
I have created a flash file, with dynamic text fields, all works but the" + "
sign and the " % " sign, if i embed anything then the whole content does not
show at all. I have a legal version of Flash 8 pro, and it is put in a legal
version of DW8,
Details:
1) I created the fla, with within the dynamic text fields, named etc...
2) I created a text file with note pad, with all the variables etc...
3) If i embed anything the content of the textfields does not show.
4) if i do not embed the text shows but the signs & and + do not show

Well if anyone has an idea of what is the problem i will be most greatful to
find an answer to this.
Regards
Gerard
derobinson
10/19/2006 5:22:27 PM
Sounds like you might be running up against the new font embedding techniques
(new to Flash Player 8). Check the Livedocs here to make sure you're doing
tihngs correctly. If you still have a problem, write back!

http://livedocs.macromedia.com/flash/8/main/00002741.html

Good luck!

gerarddaver
10/20/2006 5:58:35 PM
Hello D,
Thanks a lot for your interest in this problem i have, Well, i tried to do
what is suggested in the live doc// no luck,
I tried to add the font symbol in the library, and with a linkage new id, and
tried to create a new var for it, but as you may guess i am rather new withe
this and i do not see the next step or for that matter the first one.

I have created dynamic text fields, named them, and, created a var so that the
fields content could be changed with an externat .txt file ( following a
tutorial )
Do i have to add a new var for the font in the library?

here is the code and the site
www.http://www.salsaswing06.com/salsa-swing_cours_de_danse_nice_cote_d'azur_stag
es.htm
This is the code relating to the external text file ( .txt )
would you be so kind and explain in a more detailed fashion the problem with
Flash 8 player, that i am having, such as once i have added the font in the
library, if i do an embed i still get no text in the fields.and if i embed only
the + sign and the % sign i still do not get a text in the field.
Oh well i am sure you are a busy person, but if you have a minute i will
appreciate any additionnal info and advice on this.
Thanks a lot for your help.
Best regards.
Gerard.



var myLV:LoadVars = new LoadVars ();
myLV.load("contentStage.txt");
myLV.onLoad= function(success) {
if (success) {
titreStage1_txt.htmlText= myLV.titreStage1;
date1_txt.htmlText=myLV.date1;
contentStage1_txt.htmlText=myLV.contentStage1;
titreStage2_txt.htmlText=myLV.titreStage2;
date2_txt.htmlText=myLV.date2;
contentStage2_txt.htmlText=myLV.contentStage2;
bientotStage_txt.htmlText=myLV.bientotStage;
}


}
flatcoat99
10/23/2006 5:07:57 PM
It sounds like you have two problems. First, to get the symbols to show, you
need to use escape characters

for "&' use the URL encoding %26
for '+' use the URL encoding %2B

Check out http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=tn_14143 for
more info

On the font embedding, there are a number of possibilities, but you have to
make sure that the font is in your library and linked for actionscript. then
you have to get the textfield set up (embed and setNewTextFormat) in the right
order, or it can fail:

First, set up a text format (myTextFormat)

then...
theTextField =
theMovieClip.createTextField("myTextfield",(theMovieClip.getNextHighestDepth()),
xPos,yPos,width,height);
theTextField.embedFonts = true;
theTextField.setNewTextFormat(myTextFormat);

/*** PART CODE ***/
if (success) {
theTextField.text = myLoadVars.theText;
// etc
}
gerarddaver
11/2/2006 12:00:00 AM
Hello,
Thanks for your help, i have been a bit busy and didn't get a chance to get back to this problem,
I will try to get all that.
Thanks again
Regards
AddThis Social Bookmark Button