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








Flash Recognizing Latin Characters


Hi

I'm having problems using a flash formulary using PHP. When the information comes in the email, it modifies the latin characters like "á,â,í,ç".

Does anyone know a command in actionscript that can fix this problem? I need to change the encoding... or may the problem is in the PHP?

very thanks


Alexandre Horbach
Brazil




KirupaForum > Flash > Flash 8 (and earlier) > Flash MX 2004
Posted on: 08-12-2005, 10:07 AM


View Complete Forum Thread with Replies

Sponsored Links:

XML Into Flash With Western Latin Characters
Hi, i need show some data with special characters based on Western Latin encoding, i try create XML file with UTF-8 and ISO-8859-1 enconding in first line, but Flash don't show right the special characters like this "ã".
How i can do that?

View Replies !    View Related
Non-latin Based Characters In Flash 5/MX
Hi All,

I have a project where my client has asked me to translate their Flash movies. Up until now this has seemed to be relatively painless as the languages I have been using are based on Latin character sets (French German Dutch Dannish etc...) however in a later batch I will need to use chienese Japanese characters. Eventhough I have the relevant fonts and have enabled all language support on my PC (Win2000) I can't get Flash 5/MX to recognise non-latin characters such as chienese/japanese/hebrew etc.

Does anyone know of a way I can get round this problem or set up my pc correctly. I can't use graphics created in another package (not fireworks as it seems to have inherited the same problems as Flash) as some of the strings are in ActionScript.

Many thanks to anybody who can spend some time on this, I am really stumped.

Dan

View Replies !    View Related
Latin Characters
Hello guys!
I'm working on the flash homepage of this site: http://tabkha.com/
can u check it plz?
In the calendar, there a 4 daily items of the menu.
They are in french, I tried to embed the Basic Latin characters, but no good result. The characters like é,ç,è... never appear.

Anyone can help?

Thanks in advance,
Rony

View Replies !    View Related
Latin Characters
Hello guys!
I'm working on the flash homepage of this site: http://tabkha.com/
can u check it plz?
In the calendar, there a 4 daily items of the menu.
They are in french, I tried to embed the Basic Latin characters, but no good result. The characters like é,ç,è... never appear.

Anyone can help?

Thanks in advance,
Rony

View Replies !    View Related
Latin Characters
I'm having a problem with latin characters loaded from an XML file.
Basicaly is when I load a ñ, Flash returns me a square, that means that flash don't recognize the character, so I decided to make it HTML with & n t i l d e ; and


ActionScript Code:
my_txt.html = true;


but the problem is at the end ot it, Flash render

& n t i l d e ; instead of ñ.

somebody know how to solve the problem.
Thanks in advance

P.S.
Sorry for the spaces on & n t i l d e ; but the browser recognize the code.

View Replies !    View Related
Latin Characters
Is there a way to load latin characters textfile(.txt) in a textField in flash with loadVariables without changing all the characters by is Encoding URL (%09).

Thanks

Best regards

View Replies !    View Related
Latin Characters Are Not Showing Up
I'm using dynamic text fields, where I load from XML Latin text. I've selected to export outlines for pretty much everything "Latin" in Flash, yet still nothing is showing up when it comes to special charcters.

I also added

system.useCodepage = true;

and still nothing!!!

View Replies !    View Related
Input Text (Non-Latin Characters, Etc...)
hi all

someone told me this:


"to be able to load from a txt file and display correct the several non latin characters (üöä etc) you need to save the text file as .txt with UTF-8
encoding."

how can i do this so it displays the umlaute?

also does someone know how it is possible to display links in text-scrollers? i need a input txt.file to update news and need to know how i can insert links from there.
what i noticed too is that the standard text-scroller from mx allows the user to delete and edit the text. how can i disable this?

thank you very much for your help

ps: i saved the .txt-file as utf-8 central eurpean format, but still doesnt work in the input text. what do i need to do so it can display the äöü, etc???

View Replies !    View Related
XML - Loading Latin-1 (ISO-8859-1) Characters?
Have some experience loading XML files, but this is a new issue to me. I see my accented characters displaying properly in my text editor. And I've confirmed that my font is OK in Flash by testing a dynamic text box--the accents in the test appear OK, so it's not the XML file or the font, it seems to be the XML loader itself.

My XML file looks like this (there are Latin accented characters in the text node:

<?xml version="1.0" encoding="ISO-8859-1"?>
<projects>
<project id="0">
<_iID>0</_iID>
<_sProjectDescription>La piratería es una práctica, tan antigua como la navegación misma, en la que una embarcación privada o una estatal amotinada ataca a otra en aguas internacionales o en lugares no sometidos a la jurisdicción de ningún Estado, con un propósito personal para robar su carga, exigir rescate por los pasajeros, convertirlos en esclavos y muchas veces apoderamiento de la nave misma.</_sProjectDescription>
</project>
</projects>

BUT, once Flash loads the XML, I trace it out and the output misses these characters:
<_sProjectDescription>La pirater?a es una pr?ctica, tan antigua como la navegaci?n misma, en la que una embarcaci?n privada o una estatal amotinada ataca a otra en aguas internacionales o en lugares no sometidos a la jurisdicci?n de ning?n Estado, con un prop?sito personal para robar su carga, exigir rescate por los pasajeros, convertirlos en esclavos y muchas veces apoderamiento de la nave misma.</_sProjectDescription>

Is this a known issue I don't know about? I can't find anything in the documentation and have scoured the web for hours for an answer.

Any help would be greatly appreciated! Below for reference is my load function for reference.Thanks.

SB

--

function loadXML()
{
trace("loadXML()");
map_xml.ignoreWhite = true;
map_xml.onLoad = function(success:Boolean) //handleLoad becomes a method of map_xml
{
if(success)
{
trace("loadXML: XML Status: " + map_xml.status);
trace("loadXML: XML load success. XML:");
trace(map_xml);
handleXMLLoad();
}
else
{
trace("loadXML: ***ERROR - map_xml.load FAILED.*** Status/Error code: "+ map_xml.status);
}
}
map_xml.load("xml/Map_data.xml"); //read from XML file.
}

View Replies !    View Related
Latin Characters In Dynamic Textfile
Is there a way to load latin characters textfile(.txt) in a textField in flash with loadVariables without changing all the characters by is Encoding URL (%09).

Thanks

Best regards

View Replies !    View Related
Non Latin Characters/problem With Device Font
Publishing my .swf from Flash MX (Windows)
and when I looking at it on Mac (OSX) the text looks weird. Using device font (Verdana) with nonlatin characters as åäö.
Ok in Windows but not on a Mac.

When I removing the nonlatin characters the text looks ok.

View Replies !    View Related
Utf And Latin-1: Sending Mail Through Flash And Php
How to unify the encoding of the text?
eg: part which is written in php file looks ok, no strange symbols but part in flash look like rubish.


Code:
<?

header("Content-type: text/css; charset=iso-8559-1");
$msg .= "Imię: $sender_name
Ä™";

$to = "$receiver";

mail($from, $to, $subject, $msg, $mailheaders),;


?>

View Replies !    View Related
[F8] Flash Not Recognizing My .FLA... HELP
i know this is a longshot, but i gotta ask...
I was working on one of my websites, and Flash pooped out on me for some reason (probably cause my cpu is about 1 day older than dirt), but i got the Debug/Close message, chose Close, then when i reopen Flash, and try to open the .FLA i was working on (which was a pretty intensive site), i get a "Unexpected file format" error...


does anyone have any clue of what i could even try to do to fix it??

even my latest backup is a week old and missing TONS of work...

TIA.

View Replies !    View Related
Recognizing If Someone Has Flash Installed?
I am building a web site for an advertising/marketing comapany and they want a flash banner and navigation at the top of the page. They also want a HTML-only version for some of their clients.

They suggested that I build a 'splash' page to offer a link to the flash and html pages.

However, I do not like that idea and was wondering if there is a script I can put on the main page to redirect them if a flash player is not found on their compter? That way clients can go straight to the main page, and if they can't view the flash navigation bar, it will re-direct them to the HTML pages.

Is what I am trying to accomplish possible? Are there any other solutions?

Thanks
Sean S.

View Replies !    View Related
Flash 8 Not Recognizing Fonts
I'm experiencing difficulties with Flash 8 not recognizing the majority of a font family.
Its strange because Photoshop & Illustrator recognize them & display them just fine.

The fonts involved my project include:
Helvetica
Helvetica Compressed
Helvetica Condensed
Helvetica Black
Helvetica Light
Helvetica Extra Compressed
Helvetica LT Std
Helvetica Neue
Helvetica Ultra Compressed

Of this list, Flash 8 is only recognizing:
Helvetica
Helvetica LT Std
Helvetica Neue

So at this point I'm having to literally type EVERYTHING out in Illustrator, export swfs, and import them into Flash.
This is obviously time consuming and makes simple text changes a pain.

I'm leaning towards the fact that this is a corrupt font issue, yet these fonts are available in every other software I've tried them in.

Has anyone else experienced this issue?

Any thoughts??

Thank you!!!

-eric

View Replies !    View Related
Flash Not Recognizing Fonts?
I have 10 variations of a font that I'm using for a Flash project. 6 of these are a true type font, and the other 4 have a big red "a" on them, and when I see the font it calls them a "type1" font. Never heard of that.

My problem is that Flash is only recognizing 5 variations of the font. 4 of them are true type fonts, the other 1 is a "type1" font.

Any ideas on how to make them all visible?

Thanks,

Brian

View Replies !    View Related
Desperate For Help, Flash Not Recognizing OnSoundComplete
I have a project I'm working on, a basic mp3 player. My problem is that the onSoundComplete event is never triggered. What it was doing when it was working was calling the playSong() function which starts a song, I commented that out and simply told it to write some text on the event, and it is just never triggered.

Here is the entire page of AS, it's not that long. Any help is greatly appreciated. Everything is working except for the onSoundComplete.

Edit: I wrote this in Flash Proffesional 8, and publishing it for Flash Player 7.

Code:
//Setup the sound object
var sObject:Sound = new Sound();
sObject.setVolume(75);

//Create an array that holds all our songs
var saUrl:Array = new Array();
var saTitle:Array = new Array();
var saSongID:Array = new Array();
var saImage:Array = new Array();
var saUserID:Array = new Array();
var saArtist:Array = new Array();

//Currently Playing Song
var sCurrentlyPlaying:Number = -1;

//Position of the music
var sPosition:Number;

//Length of the song
var sDuration:Number;

//Load the xml file
var xml:XML = new XML();
xml.ignoreWhite = true;
xml.onLoad = function()
{
var nodes:Array = this.firstChild.childNodes;
for(var i=0;i<nodes.length;i++)
{
saUrl.push(nodes[i].attributes.songurl);
saTitle.push(nodes[i].attributes.songtitle);
saSongID.push(nodes[i].attributes.songid);
saImage.push(nodes[i].attributes.songimage);
saUserID.push(nodes[i].attributes.userid);
saArtist.push(nodes[i].attributes.songartist);

//Check to see if this song is the selected song
if (playNowSong == nodes[i].attributes.song_id)
{
sCurrentlyPlaying = i - 1;
}
var songNumber:Number = i + 1;
}
playSong();
};

xml.load("http://www.website.com/music/mp3_xml.php");

//Play the mp3 file
function playSong():Void
{
sObject = new Sound();
sPosition = 0;
//Check to see if we are at the end of our list
if(sCurrentlyPlaying >= saUrl.length - 1)
{
sCurrentlyPlaying = 0;
}
else
{
sCurrentlyPlaying++;
}
if(saUrl[sCurrentlyPlaying] != undefined)
{
//Load the new song and set the title
sObject.loadSound(saUrl[sCurrentlyPlaying], true);
csTitle_txt.html = true;
csTitle_txt.htmlText = "<b>::Playing</b> <i>" + saTitle[sCurrentlyPlaying] + "</i>";

//Load the album art
_level0.albumArt_ldr.contentPath = saImage[sCurrentlyPlaying];

//Reset our volume button
vMute_mc.gotoAndStop(1);

//Finally update our play list
var varsObject = new LoadVars();
varsObject.id = saSongID[sCurrentlyPlaying];
varsObject.state = "play";
varsObject.sendAndLoad("http://www.website.com/music/update_played.php",varsObject,"POST");

//Start the meter bar
_level0.meter_mc.gotoAndStop(5);
}
};

sObject.onSoundComplete = function()
{
csTitle_txt.htmlText = "finished";
//_level0.meter_mc.gotoAndStop(1);
//playSong();
};

albumArt_ldr.onRelease = function()
{
getURL("http://www.website.com/community/profile.php?p_id=" + saUserID, "_blank");
};

View Replies !    View Related
Flash Movie Not Recognizing Php-passed Variable - Help
OK, flashers. I need a master flash guru to help with a particularly sticky dilemma. My problem involves passing variables back and forth between flash and a php script that I have running.

Basically, the crux of the problem is that while I can LOAD variables into the flash movie using a button with the following actionscript attatched to it:

on (release) {
loadVariablesNum ("../includes/case-analyser.php", 0, "POST");
}

the script in question (case-analyser.php) is just a small script containing this:

<?
print "&_root.goFade=left&_root.testvar=passed ok&loading=no";
?>

Soo... When I export the movie and click the button, the variable "left" appears in the text field called goFade on the root level just fine, because it's loaded in from the PHP. Fine and dandy. HOWEVER, I can't do anything else WITH it. I have a bunch of scripts which are set so that if (_root.goFade == left) then certain things will happen, only they don't. (I have some buttons in the flash movie iteslf that set this variable to 'left' and they work just fine) Also I have another variable reading the length of that text field. It doesn't seem to register a new integer when the variable is loaded... basically it's like the variable appears on the screen but doesn't REALLY enter the movie at all. Or at least flash can't read it.

I've tried creating little controller movie clips that just constantly refresh and check the field for new data - but nothing seems to be working. Does ANYONE know why I should be able to see the variable in the text field of my flash movie, but have it NOT affect the movie like a regular variable? I'm completely baffled.

View Replies !    View Related
Flash Button Recognizing Html Page
I asked a similar question before, but now have come across another problem. I have Flash navigation that contains 5 buttons, each with an off state colored red and an on state colored yellow. This navigation is placed on each html page and each of these buttons link to a unique html page. I need these Flash navigation buttons to recognize what html page they're on so the on state is active when on a particular page. So, when the user is on the Contact Us page, the Contact us button needs to stay yellow and the rest remain red. Any ideas?

View Replies !    View Related
Flash CS3 Debugger Not Recognizing Keyboard Input
I am trying to debug a piece of code involving a keystroke. While debugging, when I hit the key the first time, the breakpoint is triggered. But after the breakpoint, the debugger simply ignores any other keystrokes. I'm trying to see what happens when the key is pressed a second time so you can see why this is frustrating me.

I'm running Flash CS3 on an intel iMac. The program is written in AS3.

Is this a known issue? Are there any workarounds?

Thanks in advance!
Jeremy

View Replies !    View Related
Recognizing Earlier Flash Players In Flash 5
howdy,

i would like to find out what flash player version my visitors have so that i can tell them to update to flash 5 if neccessary.

it seems that people without flash completely get the download prompt, but those with flash 4 or earlier get and see nothing... no likey.

please help or advise, am i totally confused?
much appreciated, thanks

quazi

View Replies !    View Related
Utf8 And Latin 1
Hi all,
can someone please help with that email form in.swf? The problem is I used the form on utf 8 based project and it was just fine but now that I need to use it in charset=iso-8859-1 based system, the php code doesn't translate it and ships it in as utf, so I get strange characters for iso-8859-1 characters...
Is there a way to translate utf 8 into iso-8859-1? or any other way to come across this pb?
Thanks a bunch.
starting going nuts here.
Fabrice

View Replies !    View Related
LoadVariablesNum And Latin Fonts
hi,

i have a little form in my flash movie. Poeple can enter case loke ÇçàÀéÉ, it's for french visitor. The problem is that when i retrieve this value i get crapy string. I tried to retrieve the same variables from a html document and everything is just perfect.

here the codes i use

on (release){
loadVariablesNum("place for the url", "", "POST");
page = page;
prenom = prenom;
courriel = courriel;
nom_ami = nom_ami;
mailing = mailing;
courriel_ami = courriel_ami;
texte = texte;
}
}

View Replies !    View Related
Latin Vocab Quizzes
I needed some help focusing on my Latin last night, so I wrote this script, along with a dictionary of the stage, to help me study:


Code:
def print_tuple(words):
string = '"'
for word in words:
string += word + '" or "'
return string[0:-6]+'"'

def quiz (words, shuffle=True):
print 'Beginning Vocab Quiz!
'

keys = words.keys()
if shuffle:
import random
random.shuffle(keys)

wrong = {}

for word in keys:
print '%s:' % (word,),
entered = raw_input().lower()
while True:
# Remote to
if entered[0:2].lower() == 'to': entered = entered[0:3]

if words[word].__contains__(entered): break
elif entered.find('skip') > -1 or len(entered) == 0:
print 'The word meant %s' % (print_tuple(words[word]),)
wrong[word] = words[word]
break
else:
print 'Try again!
%s:' % (word,),
entered = raw_input().lower()

if len(wrong) > 0:
print '
You got some wrong. Try those again (y/n)?',
if raw_input().lower()[0] == 'y': quiz(wrong, shuffle)
else:
print '
You're done and got them all right! Start again (y/n)?',
if raw_input().lower()[0] == 'y': quiz(words, shuffle)

words = {
# Section 31 Vocab

# Mostly Nouns
'dux, ducis': ('leader', 'general'),
'patronis, -i': ('patron',),
'cliens, clientis': ('client',),
'praeco, -onis': ('herald',),
'vultus, -um': ('expression', 'face',),
'libertus, -tatis': ('freedom',),
'avis, avis': ('bird',),
'fraus, fraudis': ('trick',),
'tempus, temporis': ('time',),
'mos, moris': ('habit','custom',),
'casus, -us': ('misfortune',),
'superbus, -a, -um': ('proud', 'arrogant',),
'pauper': ('poor', 'poor man',),
'adverus, -a, -um': ('hostile','unfavorable',),
'idem, eadem, idem': ('the same',),
'quidam, quaedam, quodam': ('a certain',),

# Mostly Verbs
'volvo, volvere, volvi, volutus': ('turn',),
'in animo volvere': ('wonder',),
'praeterio, praeterire': ('pass by','get past',),
'oro, orere': ('beg','plead',),
'veho, vehere, vexi, vectus': ('carry', 'ride',),
'spero, sperare': ('hope',),
'appello, appellare': ('call by name','call out to',),
'effendo, effendere, effundi, effusus': ('pour out',),
'ignosco, ignoscere, ignovi, ignotus': ('forgive',),

# Other Stuff
'identidem': ('again',),
'ne... quidem': ('not even',),
'ubique': ('everywhere',),
'haudquaquam': ('not at all','in no way',),
're vera': ('trully','really','in fact',),
'quia': ('since','because'),
'nihilominus': ('nevertheless',),

# Nasty Neuters
'iter, iteneris': ('journey','route',),
'nomen, nomenis': ('name',),
'caput, capitis': ('head',),
'corpus, corporis': ('body',),
'flumen, flumenis': ('river',),
'opus, operis': ('work',),
'vulnus, vulneris': ('wound',),
'carmin, carminis': ('song', 'poem',),
'onus, oneris': ('load','burden',),
'fulmen, fulminis': ('thunderbolt',),
}

# Start quizzing
quiz(words)
Usage is rather self-explanitory…

View Replies !    View Related
LoadVariables() With Latin (á É) Chars Problem
Hi! I've been having trouble to load variables with Portuguese accents (like forum in portuguese, 'fórum'). Anyone knows how to get thru this?

Thanks,
Leo

View Replies !    View Related
Percentage Flashplayers In Latin America?
Hi everyone,

Not sure in what section I should ask this, but here's my question:
Does anybody know a rough percentage of the internet users in South/Latin Amercia who have a flashplayer (7 or higher) installed?
Can't find it anywhere, I only found these statistics: flash version penetration
I'm building a website with the fCMS component from flashloaded, but it's for a client in peru, I want to make sure people actually can view the website over there.....
Thanks!

View Replies !    View Related
Bitmap Font Latin Charaters
hi all,

i'm using one of the miniml fonts, ceriph
static text
when i set the anti-alias to static or animation or custom, the á é í ç ã â... charaters are visible, but when i set the textblock to bitmap text they turn into a square.
what is wrong with this, i'm i missing something?!

.am

View Replies !    View Related
Firefox+flashvars+latin Character = ****ing Problem
Hi.. I have tried allthinks to latin character sended into the embed in the html code for flash in firefox, but the latin doesn´t has printed into the screen.

I try unicodepage = true,
embedd all latins character into the field
embedd the font into the library if linkage and then set my text field to embeed the font.

Why god, Why the macromedia can´t do a plugin to work in firefox??!!! No I am trying to write the variable in url encode, but someone know what is the type of the url encoded that the unescape can translate well?

The dot.net programmes are trying to do that, but I don´t know the url encode type that work perferct.

Thank a lot.

View Replies !    View Related
Embedding ONLY 1 Special Character From Latin I Glyphs
Is there any way to have Flash embed only 1 special character as opposed to all of the Latin I glyphs?

I need the 'degree' character-- "u00b0"--to be embedded in a dynamic text field, and everything is working fine except that in order to get this symbol embedded I have had to embed all of the Latin I glyphs (388 glyphs in total and all that I want is one)--so what I want to know is, is there a way to embed only that one character and avoid increasing my file sizes with the unneeded 387 embedded glyphs? (This problem is tangibly increasing the file sizes for almost every flash file on my flash-intensive website! Please help--I appeal to all embedding gurus out there)

View Replies !    View Related
Polish Font - ISO 8859-2 (Latin 2) - From External Xml File
hi,

i need to import polish text into my flashapplication. i load the text from an external xml file.
so far anything i try fails to display the special characters.

when i hardcode the text, it works, but this is no option...

two more things: i have to create the textfield dynamically ( createTextField() ), and the font has to be embedded.

can someone point me to the solution of this problem???
any help is appreciated!

thanks
marcin

View Replies !    View Related
Embedded Glyphs For Alpha Not Working For Non-Latin Letters
Even after reading through all the posts here, I'm still confused about why embedding is necessary for alphas on text and how embedding works, so maybe someone can sort it out and help me with my problem:

I have a FLA that is trying to present the same script in (the user's choice of) several languages -- including non-Latin alphabets like Korean, Japanese, Russian, Chinese and Arabic. I'm using the Strings library to load translations into my text movie clips on the stage.

The language stuff works great except that alpha tweens weren't working. So I selected the movie clip symbols (three of them) in the library and told Flash to embed all glpyhs. Each of these symbols is using Trebuchet MS, so my thinking is that I'm not exceeding the 65K limit because I'm embedding the same glyphs for each. (But I'm not sure if that limit is for the SWF or per symbol.) I only have one other font in the FLA and for that one, I'm just embedding English alpha characters.

(Perhaps as an aside, I also included these fonts Stone Sans and Trebuchet MS as fonts in my library, but I don't understand whether this is absolutely necessary or if embedding glyphs eliminates the need for these.)

So with those glyphs embedded, my text alpha tweens work beautifully. However -- and this is where I begin to shed tears -- all the Korean and Cyrillic text is gone. It's just punctuation and no characters. I don't have Chinese, Japanese or Arabic text loaded yet, but I imagine that these would suffer from the same problem.

What am I doing wrong? Do I need to create more than one movie to achieve my multilanguage goal? (Or worse, render each language separately? -- yuck!) In my old version of Flash (just up'd to CS3) I could tween alpha text with no problem, so why is all this embedding even necessary?

Thanks,
Tim

View Replies !    View Related
Polish Font - ISO 8859-2 (Latin 2) - From External Xml File
hi,

i need to import polish text into my flashapplication. i load the text from an external xml file.
so far anything i try fails to display the special characters.

when i hardcode the text, it works, but this is no option...


two more things: i have to create the textfield dynamically ( createTextField(); ), and the font has to be embedded.

can someone point me to the solution of this problem???
any help is appreciated!

thanks
marcin





























Edited: 01/08/2008 at 05:58:06 AM by marcink

View Replies !    View Related
Displaying External Txt File Doesn´t Show Üäö And The Latin Ones Like Ãõ
hi out there

i´m loading an external txt document in my flash but it doesnt shot me the letters like ä, ü, ö and the ã, õ

anyone an idea where i have to ajust this

sincerely your
soda

View Replies !    View Related
Displaying External Txt File Doesn´t Show Üäö And The Latin Ones Like Ãõ
hi out there

i´m loading an external txt document in my flash but it doesnt shot me the letters like ä, ü, ö and the ã, õ

anyone an idea where i have to ajust this

sincerely your
soda

View Replies !    View Related
As Not Recognizing A Mc
I'm finally doing my first AS3 project after lots of AS2. I was given a .fla by the graphic artist with a timeline full of graphics and movieclips, etc., but no AS other than some stop() functions. I'll write some classes soon, but for the moment, I'm working on the timeline.

There's a movieclip on the timeline to which I need to register an event listener. I gave the movieclip a name "div". But when I run the movie, I get the following error:

1120: Access of undefined property div.

I get this error for any movieclip that was already present on the timeline when I received the .fla if I try to reference it with Actionscript in any way, even including a trace() function. If I convert one of these symbol types to a Button, then AS properly recognizes them. But then I lose the functionality of those MCs.

If I create a new movieclip with the tool palette and put it on the stage, I can do what I want with it in AS without the errors.

It's like Actionscript can't see the preexisting movieclips, even though they have instance names.

Why would this be?

View Replies !    View Related
Problem With Latin Chars Passed To Flash8 From A MySQL Db With PHP, Font Is Embeded.
This is not just a Flash problem but it is also PHP and MySQL, I guess it was best to post here as it involved Flash.

The problem relates to a dynamic Flash site, I load the data into the MySQL database and then retreive it using a PHP script then printing the data for the Flash movie to pick up. This all works well except I have discovered that when latin chars are used the text area just stops showing the data. (The text fields are formatted for html as...


Code:
textholderMC.textfield_txt.html = true;
textholderMC.textfield_txt.wordWrap = true;
textholderMC.textfield_txt.multiline = true;
textholderMC.textfield_txt.htmlText = waw_text;
and * the text areas have been set to embed the chars I am having problems with. *

The data is entered into the MySQL database using:


Code:
$string = addslashes(htmlentities($string));
retreived then printed for the Flash movie like:


Code:
print "&waw_text =" . urlencode(stripslashes(html_entity_decode($row["waw_text"])));
If I use an & 'ampersand' it reads find but if I use an ñ 'letter n with a tilde´ then when 'waw_text' is passed to the text area the 'n with a tilde' is converted to '%F1', but the text area does not show anything, it just ignores it!

String as passed to FLASH:


Code:
&waw_text =Hello<BR />This+is+an+%F1
Flash shows this as:


Code:
Hello
This is an
JSYK, I have tried leaving off the 'urlencode' for the flash string but then the text strings stop at any special char such as an 'anspersand'.

I hope this is explained correctly, anyone know how I can pass latin chars to the Flash movie?

View Replies !    View Related
Recognizing Color
I have buttons to make an object("guy") turn different colors. Now I'm having trouble figuring out an action to find out what color it is and then play a frame if it is that color on a certain frame. can anyone help. it is probably simple I just dont know.

View Replies !    View Related
Recognizing Variables
I've been trying to get a conditional script to recognize the appropriate variable to follow in the script. Would their be an error in the syntax or in setting the variable vaolues that would prevent the script from being understood.

The script seems to be skipping the first questions variable altogether. Please help straighten me out.

View Replies !    View Related
[F8] Recognizing DoubleClick
Hi Buddies,

Is there any way to get the mouse double click event ? I want to trigger a function when the mouse double clicked over a Movieclip... or on the stage...

View Replies !    View Related
Not Recognizing XML File
I have a page that rotates through a series of static graphics with an animated sequence between each static image. I did not design this and am now having to make a duplicate copy of this with new colors in the animation and a different XML file to draw the images and titles from. You can see the working version here:

Working Version

I have gone into the action script where the XML file name is specified. I have changed the name to the new XML file name. I re-export the swf file and despite the XML file being in the same location as the original XML file, this simple change seems to break the animation and it freezes just before putting up the first information from the new XML file.

Non-Working Version

Actionscript is not my strong suit. I have gone through and compared the code and I can't find anything that would explain this problem. If anyone has any pointers on what might be causing this, I would be extremely greatful to hear from you.

Regards,
Andy

View Replies !    View Related
Need Some Pattern Recognizing Help..
Hey all,

Again, I ran into trouble making tetris. Please take a look at the swf attached. None of the controls work yet - press the blue button to start/pause.

Take a look at it, and you'll see that some blocks go through others (which isn't supposed to happen). The blocks are managed into arrays of "yes" or "no". If the blocks below the current moving tetris block are "no", then that current tetris block will continue moving down. If "yes", it will become purple and initiate a new tetris block.

Now, please feel free to browse through the fla to see the structure. Test the movie in Flash and look at the check "yes" or "no" process with the traced commands.

Something is seriously wrong, and I don't know what. There seems to be a pattern of the blocks that go through others, but I can't find it out. (the swf may need to be run 2 or 3 times before a bug appears).

Thanks for your time!

View Replies !    View Related
Need Some Pattern Recognizing Help..
Hey all,

Again, I ran into trouble making tetris. Please take a look at the swf attached. None of the controls work yet - press the blue button to start/pause.

Take a look at it, and you'll see that some blocks go through others (which isn't supposed to happen). The blocks are managed into arrays of "yes" or "no". If the blocks below the current moving tetris block are "no", then that current tetris block will continue moving down. If "yes", it will become purple and initiate a new tetris block.

Now, please feel free to browse through the fla to see the structure. Test the movie in Flash and look at the check "yes" or "no" process with the traced commands.

Something is seriously wrong, and I don't know what. There seems to be a pattern of the blocks that go through others, but I can't find it out. (the swf may need to be run 2 or 3 times before a bug appears).

Thanks for your time!

View Replies !    View Related
Recognizing Variables
When I load variables from a text file into my Flash movie, it works properly. But when I try to set up "If" conditions based upon the variables, it fails to read them correctly and I have to manually type the variables in.
Is there any way to fix this? All help is much appreciated.

View Replies !    View Related
Changing Foreign Language Characters To Normal Characters
Hi

What im doing is taking a word from an imput box and the searching an xml file for it.

I have all that working.
MY issue is the application is in french and i want to be able to strip the inputed word of special characters
like é.

The reason for this i because if i have to account for the case that the user uses the special character and not use the special character (just incase) then this will eventually inflate the size of the xml im searching because ill have to put in both.

EG
User 1 searches for Abbé
User 2 searches for Abbe

They both get a result

CURRENT SOLUTION
XML Contains entry for Abbé and Abbe

DESIRED SOLUTION
XML Contains entry for Abbe only
Actionscript strips the search word of special characters à to a and é to e etc etc
Searchs the XML with new stipped word!!!

Thanks

View Replies !    View Related
Recognizing When An External Swf Is Loaded
How do I get the root movie to recognize when an external swf loaded into a target mc has finished loading?

My conditional statement seems to only be able to recognize the target mc, not the external swf.

if (_root.target._framesloaded >= _root.target._totalframes) {
_root.gotoAndPlay(26);
}

Thanks much!

View Replies !    View Related
Recognizing An External Swf Has Loaded
How do I get the root movie to recognize when an external swf loaded into a target mc has finished loading?

My conditional statement seems to only be able to recognize the target mc, not the external swf.

if (_root.target._framesloaded >= _root.target._totalframes) {
_root.gotoAndPlay(26);
}

Thanks much!

View Replies !    View Related
Recognizing Input Text
i have a game that ive made...... and there are multiples levels.
on the bigging screen i have an input text box with a button beside it . i want it so that when you put in the right password and click the button beside it.. it will go to a certain level(scene).
anyone know what i could do?

thanks
-striker

View Replies !    View Related
Recognizing Imported Variables
Hi all,
I've got a list of links that are imported from a text file via php.
The text file is formatted like this / &_level0.text1=Flashkit&_level0.link1=www.flashkit .com& /

It loads into the flash movie just fine and I can see that it is loaded because the dynamic text fields "text1" and "link1" display the proper text.

I use this code to import the names and urls of the links.

loadVariables(pathToLinksData+"?cacheKiller="+getT imer(), this, "POST");
I pass a variable at the end of the text file like this > /:Status="Done" < and in the fla there is a Dynamic text field called /:Status with the instance name StatusInstance.text (that's the only way so far that I can get flash to recognize that there is something in it).

My problem is counting them. If I manually enter the text in the fla it works fine, but If I import the values, flash thinks the value of "_level0.link1" is null or empty.

Here is the count code. It's a function.

if (StatusInstance.text == "Done") {
linkcount = 1;
countLinks();
}
function countLinks() {
while (linkcount>0) {
templink = eval ("_level0.link"+linkcount);
if (templink==null) {
/:total = linkcount-1;
break;
}
linkcount++;
}
}

Again, this works great if the variable values are not imported. I need it to work with variables and values dynamically loaded but flash can't see that "_level0.link1" is NOT empty.

whew. I dunno.

View Replies !    View Related
Loading And Recognizing Variables
Something is wrong here. But I don't know what.

I'm loading a text file like this

this.loadVariables("vis.txt");

the contents of the file will ultimately be many variables that will change but for now it is:

&Vis=1

I have a movie on the main timeline with Instance name: Vvisible1

then the code on frame 12 is:

if (Vis = 1) {
with (Vvisible1) {
gotoAndStop("on");
}
} else {
with (Vvisible1) {
gotoAndStop("off");
}
}

I change the variable in the text file and it doesn't change the frame to off. It's always on.

Please help.

View Replies !    View Related
Recognizing Htrm In An External .txt?
here is what I have

a movieclip instance name "content_updates" without quotes
inside that movie I have an empty dyanmic text field. var=text

and i have a text document



Code:
text=<p align="center">hello</p><p align="center">there</p>



what actionscript do i need on that movie clip to load that text properly (formatted)?

View Replies !    View Related
Recognizing MC's Frame (I Guess...)
Hi all!
Here's my problem: I have a MC on stage called cp. Inside the MC there's a button that shoud activate the MC on the first click and deactivate it on the second click. Basically the MC has a very simple animation of some square going down and stops when it reaches a certain frame (which has a stop(); action on it) and when the user clicks the button for a second time the square goes up. Obviously, the first frame of the MC also has a stop(); action on it. I tried to use the following code but it didn't work, there was no animation whatsoever:

code:
on (release) {
if (_root.cp._currentframe=1) {
gotoAndPlay ("_root.cp", 2);
}
else {
gotoAndPlay ("_root.cp", 32);
}
}

Any ideas how to make this thing work?

Thank you for your help!

View Replies !    View Related
Copyright © 2005-08 www.BigResource.com, All rights reserved