Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash




Problem With Dynamic Greek Text



Hello
I am having some problems with greek characters in flash.
The flash is calling dynamic text from a database.
The problem is that the greek characters are not readable.
The strange thing is that in windows is working just fine the problem is on macintosh.
Please help !!!!
Thank you

Actionscipt

Code:

myData = new LoadVars();
_global.katiurl = ""
function displayCustomData ( id ) {
myData.load("../tb2/tb1.php?id="+id)
myData.ref = this
myData.onLoad = function(succes){
if(succes){

kartelan.Lektiko.text = this["Title0"]
kartelan.Hospital.text = this["Hospitals0"]
kartelan.HCentre.text = this["HCentres0"]
kartelan.CClinics.text = this["CClinics0"]
kartelan.PHospitals.text = this["PHospitals0"]
kartelan.DCentre.text = this["DCenters0"]
} else {
kartelan.Lektiko.text = "--"
}
}
stop()
}




php Script


Code:

<?php
$connect = mysql_connect("localhost", "gggs_useddfr", "asdasdas");
mysql_select_db("gggs_asds", $connect);
$query = mysql_query('set character set greek');

//$result = mysql_query("SELECT Title, Comments, Image FROM titles");
$result = mysql_query("SELECT name, hospitals, heathcenters, communityclinics, privatehospitals, diagnosticcenters FROM categories where cid =".$id);
$cant = 0;
while($row=mysql_fetch_array($result)){
echo "Title$cant=$row[name]&Hospitals$cant=$row[hospitals]&HCentres$cant=$row[heathcenters]&CClinics$cant=$row[communityclinics]&PHospitals$cant=$row[privatehospitals]&DCenters$cant=$row[diagnosticcenters]&";
$cant++;
}
echo "cant=$cant";
?>



FlashKit > Flash Help > Flash ActionScript
Posted on: 06-14-2008, 03:46 AM


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

Problem With Dynamic Greek Text
Hello
I am having some problems with greek characters in flash.
The flash is calling dynamic text from a database.
The problem is that the greek characters are not readable.
The strange thing is that in windows is working just fine the problem is on macintosh.
Please help !!!!
Thank you

Actionscript

Code:

myData = new LoadVars();
_global.katiurl = ""
function displayCustomData ( id ) {
myData.load("../tb2/tb1.php?id="+id)
myData.ref = this
myData.onLoad = function(succes){
if(succes){

kartelan.Lektiko.text = this["Title0"]
kartelan.Hospital.text = this["Hospitals0"]
kartelan.HCentre.text = this["HCentres0"]
kartelan.CClinics.text = this["CClinics0"]
kartelan.PHospitals.text = this["PHospitals0"]
kartelan.DCentre.text = this["DCenters0"]
} else {
kartelan.Lektiko.text = "--"
}
}
stop()
}
PHP script


Code:

<?php
$connect = mysql_connect("localhost", "gggs_useddfr", "asdasdas");
mysql_select_db("gggs_asds", $connect);
$query = mysql_query('set character set greek');

//$result = mysql_query("SELECT Title, Comments, Image FROM titles");
$result = mysql_query("SELECT name, hospitals, heathcenters, communityclinics, privatehospitals, diagnosticcenters FROM categories where cid =".$id);
$cant = 0;
while($row=mysql_fetch_array($result)){
echo "Title$cant=$row[name]&Hospitals$cant=$row[hospitals]&HCentres$cant=$row[heathcenters]&CClinics$cant=$row[communityclinics]&PHospitals$cant=$row[privatehospitals]&DCenters$cant=$row[diagnosticcenters]&";
$cant++;
}
echo "cant=$cant";
?>

Problem With Greek Fonts In Dynamic Text Field
http://www.actionscript.org/tutorial...xt/index.shtml

i used this tutorial to create a dynamic scrollable text field that loads the text from an external file... it worked fine until i exported the swf in flash player 7
the problem is that even when i embed greek fonts they won't appear at all i only see the english part of my text

any ideas?

im using a dynamic text field with this script
loadVariablesNum("gr.txt", 0);

Greek Text
I am developing a site, that consists of greek and english text. The home page will be developed in flash, and I will be loading news articles from an external file. However I cannot get any greek characters to work properly, what should I do?

Greek Copy And Paste Text
Hi! i΄m doing a bilingual site, i made the english part, and now i need to do the greek part, i have all the text on a word document... when i try to copy/paste the greek text from the word document to flash (using an arial greek font) it gives me a bunch on interogation signs...no the greek characters, Someone knows how i can copy paste the info into flash? Thanks!!

"greek" Text When Scrolling
in quark xpress, indesign and illustrator there is a thing called text "greek", which is replaceing the text for lines with the width and color of the text lines..
now i want something like that in flash, for instance when a page is scrolling.. i think it's a nice effect, and i've even seen it in one site but i can't remember what site..

but is there a simple way to do that?! or is this really hard to acomplish?! i hope anyne can help!

Greek From XML
I΄m loading text via XML and when I trace it it looks fine in the output window. So the data is there. But, when I add it to a text field on the stage the text comes up as squares on the stage. Some of the words that only contain latin characters look fine.

I΄ve tried to save the XML file in various ways with both Dreamweaver and Notepad, greek encoding, UTF-8, iso-8859-7, Unicode, Unicode big endian etc but to no success.

Also, when writing the greek text in a static textfield with the same font as the embedded one - it shows! So the characters are there in the font. But it all goes Pete Tong somewhere between the XML data and my textfield.

Please help! My deadline has already passed.

(I΄ve seen some PHP solutions but PHP is not an option on the server we΄re running)

Thanks in advance
Pierre

Greek Fonts
can anyone tell me how to get my fonts to work when in the 'greek' language mode in windows 2000 i'm trying to get OPTIMA to work

Greek At Flash MX
Hi.
I am trying to import a text in flash that is written in greek but i can`t read anything because letters are symbols that i can`t understand. Is there any way to see it like it realy be?

It's All Greek And Masks To Me ...
I have read more posts on the issue then I care to admit and I'm still stuck. I want to display Arial Greek under a mask. I am able to display the Greek font but the moment I imbed the font so it will display under a mask it all disapears. Please help. I have attached a file with some sample code trying to demonstrate the problem. Thanks.

Greek Symbols
Hallo guys,
I have a question about incorporating GREEK symbols in flash movie. I read something about unicode, but I did not quite understand it. Also, I am not quite sure about solution that comes from HTML.
Every hint will be appreciated
Hogar

How To USE Greek FONTS?
Dear friends, My problem is very serious now days.
Now days I face problem that is fonts in Flash. When I copy and paste greek Fonts in flash , it is not showing correct fonts... and when I use dynamic content it is doing fine.
Please guide me that how I can direct copy and past the fonts....in flash .. Or if there is any setting need to be cahngein computers.
with regards,
Harpal singh

Greek Symbols
Hallo Kirupa forum,
I have a question about incorporating greek symbols in flash movie. I read something about unicode, but I did not quite understand it. Also, I am not quite sure about solution that comes from HTML.
Every hint will be appreciated
Hogar

Greek Symbols For ActionScript?
Can Actionscript handle these greek characters? like Pi, delta, etc....


like these in this url...

http://www.vinini.com/greek.html



it seems to me that flash cant handle them, if it can tell me how i need to use them for some scripting. thanks.

Problem With Greek Characters...
I'm on a Mac,
OS 10.2.8
Flash Professional MX 2004

I need the alpha and beta charatcers within a paragraph of text. works fine in Word using the Symbol font... but in flash all i get is a rectangle

anyone know what this is all about? thanks
.......ku (C8;

Xml Special Greek Characters
Hello,

I'm trying to get the greek special charater of MU to display in a text field from a external xml doc in FlashMX.
A sample of the XML code I'm using appear below.

The unicode for the MU symbol is 00B5.
Of course the CDATA will display the code as is, I need to display the actual greek symbol MU(look's like a reverse letter "u")
<textData textId="callout118">
<![CDATA[<FONT SIZE="6">"0B5";</FONT>]]>
</textData>

Thank You

iaustin

URLLoader RSS Encoding Greek
Hello,
I am trying to get a RSS feed using the URLLoader class. The page has Greek charachters and when I just trace the URLLoader data I see things like:

<?xml version="1.0" encoding="iso-8859-7"?>
<rss version="2.0">
<channel>
<title>H KAΘHMEPINH : ΠOΛITIKH</title>
<item>
<title>Χιλιάδες εκκρεμείς υποθέσεις στο ΣτΕ</title>
<link>http://news.kathimerini.gr/4dcgi/_w_articles_politics_0_09/01/2008_254817</link>
<pubDate>2008-1-9T09:05:06Z</pubDate>
<category>POLITICS</category>
<guid>http://news.kathimerini.gr/4dcgi/_w_articles_politics_0_09/01/2008_254817</guid>
<description><![CDATA[Σε μεγάλη πληγή του συστήματος απονομής δικαιοσύνης στη χώρα αναδεικνύονται οι τραγικές καθυστερήσεις κατά την έκδοση των δικαστικών αποφάσεων, που πλέον αγγίζουν και το Συμβούλιο της Επικρατείας. Σύμφωνα με τον πρόεδρο του ανώτατου ακυρωτικού δικαστηρίου... ...]]></description>
</item>

While the actual code from the source of the page I am trying to get is :

<?xml version="1.0" encoding="iso-8859-7"?>
<rss version="2.0">
<channel>
<title>H KAΘHMEPINH : ΠOΛITIKH</title>

<item>
<title>Χιλιάδες εκκρεμείς υποθέσεις στο ΣτΕ</title>
<link>http://news.kathimerini.gr/4dcgi/_w_articles_politics_0_09/01/2008_254817</link>
<pubDate>2008-1-9T09:05:06Z</pubDate>

<category>POLITICS</category>
<guid>http://news.kathimerini.gr/4dcgi/_w_articles_politics_0_09/01/2008_254817</guid>
<description><![CDATA[Σε μεγάλη πληγή του συστήματος απονομής δικαιοσύνης στη χώρα αναδεικνύονται οι τραγικές καθυστερήσεις κατά την έκδοση των δικαστικών αποφάσεων, που πλέον αγγίζουν και το Συμβούλιο της Επικρατείας. Σύμφωνα με τον πρόεδρο του ανώτατου ακυρωτικού δικαστηρίου... ...]]></description>
</item>


How can I encode the data so to look proper?

My code is:

import flash.net.URLRequest;
import flash.net.URLLoader;
import flash.events.*;

var url:String = "http://wk.kathimerini.gr/xml_files/politics.xml" ;
var rssXMLURL:URLRequest = new URLRequest(url);
var myLoader = new URLLoader();
myLoader.dataFormat = URLLoaderDataFormat.TEXT;
myLoader.addEventListener(Event.COMPLETE, xmlLoaded);
myLoader.load(rssXMLURL);

function xmlLoaded(event:Event):void
{
trace(myLoader.data);

}


thanks,
Panos

Greek, XML, Encoding Problems
I΄m making a site in thirteen (13!) languages. And I have a problem with the greek one. The site reads in the text via XML and when tracing the text it looks fine in the output window. I have embedded all characters in the font (GreekHelvetica) but the text comes up as squares. Some of the words that only contain latin characters look fine.

I΄ve tried to save the XML in various ways with Dreamweaver, greek encoding, UTF-8, iso-8859-7, but no success.

Also, when writing the text in a static textfield it shows. So the characters are there in the font. But it all goes Pete Tong somewhere between the XML and my textfield.

Any greek developers out there? Help! My deadline is already passed.

(PHP solution is not an option)

Thanks in advance

XML Php Mysql Greek Charachers
Hi,
I have problem with greek charachers.
Flash call php.
Php take data from mysql and print xml that read flash.
Mysql, xml, php are utf-8 but greek characters can't be displayed.
This work fine if I write greek in php but if php take data from mysql there is a problem.
I also put embeded ( Greek 674 glyps) - no solution.

----------------------------------------
My scipts are:

php

<?php header ('Content-type: text/html; charset=utf-8');
include("conn.php");
if (!empty($HTTP_GET_VARS['categ'])) {
$categ=$HTTP_GET_VARS['categ'];
} else {
$categ=1;
}

if (!empty($HTTP_GET_VARS['lang'])) {
$lang=$HTTP_GET_VARS['lang'];
} else {
$lang=1;
}
$xml_output = "<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
";

$xml_output .= "<images>
";

$result = mysql_query("Select * From tbl_flash_images WHERE categ_for=".$categ." ORDER BY order_flash");
while($row = mysql_fetch_array($result, MYSQL_BOTH)) {
if ($lang==0) {
$strTEXT=$row['title_flash'];
} else {
$strTEXT=$row['title_flash_en'];
}

$xml_output .= "<pic>
";
$xml_output .= "<image>dyn/flash/".$row['img_subcateg']."</image>
";
$xml_output .= "<caption>".$strTEXT."</caption>
";
$xml_output .= "</pic>
";

} //close while rows


$xml_output .= "</images>";

echo $xml_output; ?>

-------------------------

My actionscript is:

system.useCodepage = 1;
function loadXML(loaded) {
if (loaded) {
xmlNode = this.firstChild;
image = [];
description = [];
total = xmlNode.childNodes.length;
for (i=0; i<total; i++) {
image = xmlNode.childNodes.childNodes[0].firstChild.nodeValue;
description = xmlNode.childNodes.childNodes[1].firstChild.nodeValue;
}
firstImage();
} else {
content = "file not loaded!";
}
}
xmlData = new XML();
xmlData.ignoreWhite = true;
xmlData.onLoad = loadXML;
xmlData.load("xml_pics.php?categ=2&lang=0");
/////////////////////////////////////
listen = new Object();
listen.onKeyDown = function() {
if (Key.getCode() == Key.LEFT) {
prevImage();
} else if (Key.getCode() == Key.RIGHT) {
nextImage();
}
};
Key.addListener(listen);
previous_btn.onRelease = function() {
prevImage();
};
next_btn.onRelease = function() {
nextImage();
};
/////////////////////////////////////
p = 0;
this.onEnterFrame = function() {
filesize = picture.getBytesTotal();
loaded = picture.getBytesLoaded();
preloader._visible = true;
if (loaded != filesize) {
preloader.preload_bar._xscale = 100*loaded/filesize;
} else {
preloader._visible = false;
if (picture._alpha<100) {
picture._alpha += 10;
}
}
};
function nextImage() {
if (p<(total-1)) {
p++;
if (loaded == filesize) {
picture._alpha = 0;
picture.loadMovie(image[p], 1);
desc_txt.text = description[p];
picture_num();
}
}
}
function prevImage() {
if (p>0) {
p--;
picture._alpha = 0;
picture.loadMovie(image[p], 1);
desc_txt.text = description[p];
picture_num();
}
}
function firstImage() {
if (loaded == filesize) {
picture._alpha = 0;
picture.loadMovie(image[0], 1);
desc_txt.text = description[0];
picture_num();
}
}
function picture_num() {
current_pos = p+1;
pos_txt.text = current_pos+" / "+total;
}

Thanks

Multilanguage, UTF-8 And Greek/Japanese
I have a swf that needs to contain dynamic text boxes that display english, greek and japanese text.

In MX 2004 I have set my dynamic box toembed font outlines for All english, greek and japanese glyph options as well as punctuation. I have set the font to verdana.

The text comes from an external XML file which has been published in notepad as UTF-8 encoded.

The greek and japanese text just shows up as "????????".

I've been to the macromedia page: http://www.adobe.com/support/flash/languages.html and can't see that i've done anything wrong. Has anyone got any ideas?

At the moment, the only way I can get the text to show is if I remove the font embedding in character options. Then it all works but obviously is just a standard system font without anti-aliasing.

Unbeaten 'Greek Fonts' Problem
In Flash MX 2004, when I am opening any of my projects built in previous versions of Flash (even in Flash MX 6)in the place where it suppose to be my greek text now there are empty blocks. And all my Greek fonts I used until now seems to not working in this version of Flash, but only in Greek. I can type anything in English but not in Greek. I can not imagine that there is no solution but that I am making some mistake. I 've read the help about multilanguage text but it is refering to dynamic text which I can use in greek in this version as well as I could in previous.

If you know something, please share it!!

Thank you

Flash Contact Us Form In GREEK
Hello,

I created greek version of a flash form (in MX Version). I am able to enter greek characters into form fields and When the form is submitted the mail is sent succesfully to my email id. When I check the mail(even when I check my mail box in greek language, i can check mail in multi language) I found other characters instead of greek characters. Iam using CGI script for form to mail.

Any body can help on it??

Thank you,
-Saash.

Font Symbols And Greek Characters
Hi everyone,

I use a shared library that stores my fonts for an international site. Unfortunately font symbols don't seem to contain greek characters. Does anyone know a solution to that problem? Do they contain greek letters if I export on a greek OS?

Alternatively I have tried to use an external swf with textfields with embedded fonts in them. That seems to work, but as soon as I use filters on the text (glow etc.) they are not displayed nicely any more (jagged edges). If I use font symbols from a shared lib I don't have that problem, but all greek characters are missing.

Any help is appreciated.

Bye
jt

Mixing Greek And Western Fonts?
I need to use some greek symbols for enginerring text along with english. Can this be done? If so, could you tell how?

Problem With Greek Fonts In Flash 8.0
Hi everyone, here is my problem...
I load a txt file in a scroll text box (with greek fonts ) and the only I see in the text box is little square boxes instead of the real text....
I have tried to embed greek fonts but still no result. Do you have any other idea????

Thanks in advance......

Flash 8 Problem With Greek Fonts Please Help This Poor Guy Out
i want to appear some greek characters in flash that are loading from a php web page (through Mysql)
but when they appear in website they look like little squares
i don't know if i can do this but please take a look to see what i mean
www.dictiosi.gr it's upper right where it says " Τρέχοντα νέα "

Greek Pixelfont Doesnt Show The Signs
hello

I wonder if someone knows how to use a greek pixelfont ( raxel greek from FFF).
The problem is that when I΄m using it with dynamic text from an extern txt file, it wont show any greek signs.
I only see signs like these: ,.; : and numbers.

Do I have to run an greek windows or.........

Best regards

micron

Greek Characters From An External File In FLASH5?
I've read a lot about using Greek characters in MX, but I'm still struggling with how to do it in Flash5 - is there a way?

Greek displays fine for me in static text but not if I set it to dynamic.

I want to import data from an external file to populate the dynamic fields.

Any suggestions welcome!

Jumping To Areas Of Dynamic Text, Printing Dynamic Text
hello,

I have a movie clip that loads a .txt file into a dynamic text field. Due to the amount of content in the file a scroller bar is needed in order to view all of it. I want to create buttons that jump to different areas of the dynamic text for easier navigation so the user can go directly to various sections instead of having to use the scroller all the time. What kind of coding would I need to put on the buttons and within the .txt file at the areas I want to jump to?
Also, I would like to give the user the option to print everything within the dynamic text field only, not the surrounding elements in my movie clip. Is that possible?

thanks!

Dynamic Text Not Loading On Server . . . Other Dynamic Text Issues
ok - here's the url

http://www.rongilcreast.com/Test_Site/main.html

when I 'test movie' in Flash, the text comes in. But not now that it's online . . .

2nd problem. I want to add a scrollbar to the textbox, but when I drag the scrollbar onto the textbox, it doesn't snap-to the text box and resize itself.

all the files are here:

http://www.rongilcreast.com/Test_Site/main.fla
http://www.rongilcreast.com/Test_Site/main.swf
http://www.rongilcreast.com/Test_Site/Index.txt

whatamIdoin'wrong?

tia . . .

[AS2] Changing Text In Dynamic Text Field With Dynamic Instance Name
I dont know what I am missing here but what I want to do is change the text inside a dynamic text field via actionscript. the code I am using runs in a loop within a function. Trace is outputting the correct values.


PHP Code:



    for(i=0; i<=4; i++) {
        if(_root["order_"+ q][i] == 0) {
            ["order_"+ i]text = "First";
            trace("first");
        } else if (_root["order_"+ q][i] == 1) {
            ["order_"+ i]text = "Second";
            trace("Second");
        } else if (_root["order_"+ q][i] == 2) {
            ["order_"+ i]text = "Third";
            trace("Third");
        } else if (_root["order_"+ q][i] == 3) {
            ["order_"+ i]text = "Fourth";
            trace("Fourth");
        } else if (_root["order_"+ q][i] == 4) {
            ["order_"+ i]text = "Fifth";
            trace("Fifth");
        }
    } 




basically I want to do this -


PHP Code:



order_0.text = "First"; 




So how can I change this line to work as expected?


PHP Code:



["order_"+ i]text = "First"; 





EDIT- The instance names for the dynamic text fields are set
Thanks

Trying To Take The Text From One Dynamic Text Field And Populate Another Dynamic Text
I'm trying to take the text from one dynamic text field and populate another dynamic text field with its contents.

I want to display the text that is in the text field _root.MC_Control.tab_title in another text field called _root.video_title.

I have tried this:

_root.video_title.text = _root.MC_Control.tab_title.text;

and this:

_root.video_title.text == _root.MC_Control.tab_title.text;

neither one seems work....am I missing something?

Asfunction - How To Load Dynamic Text With Dynamic Text? [F8]
Hello dear helpers !!!

I'm trying to get external, dynamically loaded text to load different text files into a text box. I've figured out that I need asfunction to do it through calling a function in the movie and passing it variables, although i haven't been able to write this function at all... would anyone mind giving me a hand???


thanks sooo much!!

p.s. I've managed to get this working by creating a toggle function, so at the moment I have 25 text boxes and a show/ hide function, but that's very buggy.

Loaded Text File Wont Show All Of The Text In Dynamic Text Field
When I load an external text file into flash and display the string in a dynamic text box, not all of the text will show in the text box; and using scroll button to scroll the text doesnt help.

The text that is in the text file is as follows, and as far as I can see there is no reason why all this text shouldnt show in the dynamic text field; by the way all my targets are correct, I know that for fact.


message=Code: Cheat:
BEEPSAGONER Deactivate the censor beeps
DRACULASTEABAGS 50 lives
DUTCHOVENS Frying pan mode
XFYHIJERPWAL IELWZS Debug mode
BOVRILBULLETHOLE Shoot all objects
EASY Easy mode
VERYEASY Very easy mode
SPUNKJOCKEY New death animation
SEXYMANN Birdy & Squirrel scene

Code: Unlock chapter:
PRINCEALBERT Barn Boys
CLAMPIRATE Bats Tower
ANCHOVYBAY Slopranos
MONKEYSCHIN Uga Buga
SPANIELSEARS Spooky
BEELZEBUBSBUM It's War
CHOCOLATESTARFISH The Heist
WELDERSBENCH All chapters and scenes

Code: Unlock Multiplayer character:
WELLYTOP Conker
EASTEREGGSRUS Neo Conker
BILLYMILLROUNDABOUT Gregg the Grim Reaper
CHINDITVICTORY Weasel Henchmen
EATBOX Cavemen
RUSTYSHERIFFSBADGE Sergeant and Tediz Leader
BEEFCURTAINS Zombies and Villagers

Is It Possible To Change A Text Field From Dynamic Text To Static Text At Runtime?
The reason is because the dynamic text appears to be taking up about 90 % of the CPU usuage and I dont know any other way to reduce the CPU usage.

The text areas pull in lots of data from text files which slows down the program.

Any ideas?

Trasfering Text From One Dynamic Text Box To A Input Text Box On A Differnt Page?
Ok so I have a text box set up which receives the date on a callendar which you click on. On another page (a seperate html file) I have an input text box for receiveing this text.

I've been trying to do this using various methods using getURL, but, I can't get it to work. This is becoming tedious especially as I'm not able to test it without having to reupload the files.

If someone could please inform me on how I should do this I'd be vary greatful.

If you need any further information I'll reply as soon as possible.

How To Break Up Text When Calling Text Into A Dynamic Text Field
I am calling test in from a .txt and was wonding if there was a way to have a page with a bunch of information and have it obly call an indevidual paragraph or sentance depending on what i want it to ask.


ThnX

Load Text From A Text File Into A Dynamic Text Field
I'm trying to load text from a text file into a dynamic text field. The text field is on the "blog" page of the website. When I test my movie, the first time I go to the blog page, the text from the external text file (AND the CSS styles) show up fine. But when I click from the blog page to go to the "profit calculator" or "contact" pages and THEN click to go BACK to the blog page, the blog page animates back in, and right as the animation ends, the text on the blog page suddenly disappears and won't come back. PLEASE help me figure this out!

Dynamic Text Box / Xml Content - Text Is Too Close To Border Of Text Box
Hi,

If you take a look at my flash movie you will see that I have draggable movie clips, which contain dynamic text fields. These text fields contain text drawn in from a simple xml document.

The problem I have is that the text in the text fields is hedged right next to the border of the autosized text box. This makes them look untidy and in the worst case difficult to read. I wonder how I can add some margin to the left and right of the text to fill in some space.

http://www.nottingham.ac.uk/home/ccz...AndDrop3.1.swf

http://www.nottingham.ac.uk/home/ccz...AndDrop3.1.fla
(you also need the xml doc at : http://www.nottingham.ac.uk/home/ccz...scriptions.xml )

The code which formats the text boxes is:

with (main["dragAct"+i].dragActText) {
text = actText[i+1];
background = true;
backgroundColor = "0xe2e2e2";
setTextFormat(myFormat);
autoSize = "center";
border = true;
borderColor = "0x666699";
}

my text formatting looks like this, and you can see that I have tried to use leftMargin / rightMargin but these properties don't seem to work:

var myFormat:TextFormat = new TextFormat("Tahoma", 12);
myFormat.leftMargin = 20;
myFormat.rightMargin = 20;
myFormat.bold = true;

Any suggestions most welcome.

Thanks

Free Flash Source For Dynamic Slideshow With Automatic Thumnbails And Dynamic Text?
Is there any free flash source for dynamic images slideshow with automatic thumnbails and dynamic text / caption just like the one here:
http://images.businessweek.com/ss/06.../slideshow.htm
or this one:
http://www.clubparis.net/gallery

TIA

Dynamic Vars, Dynamic Paths Using Variables And External Text Files
Hi there,

first off, apologies for the long post, but its a tricky problem to explain... and on my first post too! (sorry )
Im have a bit of bother with flash calling variables from a text file, and using them to make paths to other variables, and to control the amount of time a duplicate clip occurs. The first of these 2 problems is this:

Im loading a text file "content.txt" into _root. (this works fine)
it contains the variables:

webclipcount=2
&webhenry=hello hello
&webbutton01=henry

on the main timeline I have this button

on(press){
sectiontitle="web"
clipcount=webclipcount
}

there is a text box on the main timeline with variable name of bodycopy.

on a clip on the main timeline I have this;

onClipEvent (enterFrame) {
if (num< _parent.clipcount) {
duplicateMovieClip(thebutton, "button"+depth, depth);
this["button"+depth].name = _parent[_parent.sectiontitle+"button"+num];

this gives button01 the name henry- this works.

on the duplicated clip I have these actions:

on(mouseDown){
_parent._parent.bodycopy=_parent._parent[_parent._parent.sectiontitle+this.name]
}

so we end up with a path like:

_parent._parent.bodycopy=_parent._parent.webhenry

and it in turn should make the textbox on the main timeline contain "hello hello"

but it doesnt.

also for the duplicating clip, unless i use:

onClipEvent (enterFrame) {
if (num< 2) {.....
<snip>

it wont work either. it seems neither can be dynamic/ pulled from the text file. (well, i can get them to work!)

If I use direct paths like:

on(mouseDown){
_parent._parent.bodycopy="bloody hell it works!"
}

and

onClipEvent (enterFrame) {
if (num< 2) {.....
<snip>

it works, but not if they are dynamicly set from the txt file...
Anyone care to shed some light onto this? its doing my head in!
thanks in advance or the help.

cheers,

chris

Mouseless, Autoscrolling, Dynamic Tweening, Dynamic Text...
I am having the darndest time finding help on this even though it seems like a common task (ok done venting)

What I need is this:

A dynamic text field (from txt file) that will autoscroll vertically. I know that I can do this by motion tweening a movie clip containing my dynamic text, but heres the thing: this source txt file will be updated daily (daily events). Some days it will be a few lines of txt (no scrolling necessary). Some days it may be 500 or more lines of text. So simply motion tweening my movie clip a fixed speed and distance will not work. I need the scroll speed, text box size, and scroll distance to be dynamic.

Please help us. The hack that made our kiosk made it almost impossible to open, so it takes me forever to open it and i don't want to do that every day... oh, you didn't need to know that, sorry.

An .fla or a tutorial would be a huge help as I am not action script savy, yet.

Thanks in advance!

Dynamic Aligning Input And Dynamic Text Box (flash 5 / 6)
Hi the title says it all really. i need to know how to dynamically align input and dynamic text boxes in (flash 5 / 6) so on a button press the text moves to the left or centred

thanks!

Dynamic Mask For Dynamic Text Won't Working Any Body Pls Help
Im' supposed to make a scrollable gridlike simulation with using MC. Inside that MC there are dynamic text area as cell in which its text will be updated dynamically.

Now i have a strange prob that when i use setMask to mask that grid MC it won't working


I have the MC name 'grid'
above that another MC name 'msk'

code is like tha
grid.setMask("msk");

it only shows the full grid instead of masking area.

Dynamic Text : Dynamic Height (depending On Content)
Hi people.

Im working on a website, and in some part there is a dynamic text space that sets its width depending on the resolution.

But well, I want the text to be sitting downside of my webpage. For this (I guess) I need to set the height of the space to its contents, so that I can use the textspace height as a unit, for putting it to the ground
(myTextSpace.y=stage.StageHeight - myTestSpace.height)

But well, I do not know, if there is any way to set the textspace height to its contents.

I hope I'm clear, thank you.

Dynamic Text Within Dynamic Movie Clip Loops
Ok my predicament. I am trying to create thumbnails, but instead of using pictures as the thumbnails I would like to have text, formatted blah blah for people to select. Now the code I am trying to adapt is fine and dandy to get working with pictures, so I know the part of this code that creates the movie clip is fine. However I cannot seem to dynamically create the text boxes within the movie clips. I need to have them within the movie clips so the opacity will change when they are hovered over.

Code:

currentName = "t"+k
thumbnail_mc.createEmptyMovieClip(currentName, thumbnail_mc.getNextHighestDepth());
thumbnail_mc.currentName.createTextField("text"+cu rrentName, thumbnail_mc.currentName.getNextHighestDepth(), 0, 0, 244, 28)
thumbnail_mc.currentName.text="test"

k will be changing anyway for each time through taht a movie clip is made hence why they will need different names.

Any help...hope this can be understood.

Accessing Dynamic Text Within Dynamic Added Movieclip.
Hi there.

I'm trying to access and change a dynamic text field within a dynamically added movieclip.

This is how I'm trying to accomplish that;


ActionScript Code:
uButton = attachMovie("_button",arr_videos[i][1], ++uDepth);
  uButton._x = uButtonStartX;
  uButton._y = uButtonStartY + uButtonDistance * uDepth  uButton.btn_name.text = "button name";

btn_name is the name of the dyn. textfield.

But this does nothing.. What am I doing wrong?

Thanks for your help

Samuel

Dynamic Text Field Receiving Dynamic Variables...
or something like that . . .

This is my problem: I'm generating _global variables via XML. Each variable represents different types of copy, of varying lengths. For Example:

_global.introduction = xmlDoc_xml.firstChild.firstChild.nodeValue;
_global.body = xmlDoc_xml.firstChild.firstChild.firstChild.nodeVa lue;
_global.summary = xmlDoc_xml.firstChild.firstChild.firstChild.firstC hild.nodeValue;

I want to create ONE text field, with scrolling, that will act as a template to house all types of content. I've assigned a variable that equals "content" to this text field. . . My problem is, I can't get the text field variable (content) to dynamically swap for the global variable (_global.introduction) in order to display the proper content.

This seems simple, but something's not working for me. Any thoughts? . . . BIG thanks in advance!

XML Loading, Dynamic Buttons, Dynamic Text Fields...
My last thread kind of died, I guess, so here's another one that I hope will get me some help; it has an updated FLA attached and what I think to be some better descriptions of my problems... I know I'm totally indebted to whomever will help, but this is an emergency and I need some timely advice.

so here's the FLA, XML, and some sample images: kirupaTest2.zip

1. I pretty much have the enlarged pictures loading I guess, which was my major problem before, but it doesn't matter because I can't get the code to "know" which of the dynamic thumbnails has been clicked (by "know", I mean return an index value, say 0 through 7 if there are 8 projects, that I can use to access that particular project in the array of 8 projects in the rest of the code)... So if the third movieclip thumbnail were clicked, I'd like "2" to come up somehow... I've tried this code, which is kind of lame, I know, based off of the idea of each of the thumbnail movieclips' names ending in their index number:

ActionScript Code:
//"this" is the button that was pressed; would return a string ending in//thumberMC_<number of whichever movieclip thumb was clicked>var: testString:String = this; //storing how many characters are in the string above...var: stringNumb:Number = testString.length;//using that value to take off the last string (hopefully the number)var: finalString = testString.charAt(stringNumb);


And that didn't work. (The code above was entered around line 71 in the layer "actions"; it's gone now)


2. An even bigger problem is I have some containers being drawn dynamically from height and width values pulled from an XML file. When I test the code that creates the objects using hard-coded values, it works fine; say if I put 481 in for the width and 375 for the height. But if I try to do it (sort of) dynamically like:


ActionScript Code:
var picHeight:Number = projects[5].bigPics[0].picHeightvar picWidth:Number = projects[5].bigPics[0].picWidth


it gets all screwed up; please try it for yourself in the supplied FLA. It's hard to describe what goes wrong; some things are drawn, and others aren't. I think it's because the objects are trying to draw before they have the data to draw with. This can be seen at lines 129 and 130.


3. Lastly, there's a dynamic textfield I'm trying to create that never shows up for some reason. Again, you could see in the FLA (in the "createDrawer" function around line 424).

If I can clarify, please let me know.

Dynamic Video Playlist And Dynamic Text Articles
Hi all, hope you can help me..?

I have the task of creating a Dynamic Video Playlist to be incorporated in a FLASH 8/HTML site. The site owner should then be able to upload their recorded videos. The client will be using a low budged camera. I am planning to suggest a video format to the client that will suit me best.

In addition I also need to create a section where text articles will be posted by the site owner.

I am a beginner in Actionscript 2.0, and I have Flash 8 installed in my PC.

Can anyone recommend some FLA source files to get me started, and a tutorial? I've seen some tutorials, but they are either too complicated or don't attend my needs.

Many thanks!

Copyright © 2005-08 www.BigResource.com, All rights reserved