PDA

View Full Version : Upgrading from Flash MX to Flash 8 problem



driver
May 2nd, 2006, 02:34 PM
Hi, I recently upgraded from Flash MX to Flash 8 and now dealing with the following problem:
Textboxes which import external textfiles (HTML) doesn't show upon export anymore...
It displayes correctly when exporting for flash player 6. but not for 7 and 8.
Also my graphics appear to become blurry now.
After saving the *fla in 8 it doesnt open in MX (unexpected file format)
I guess the files are ruined now?

ationscript i use:

loadVarsText = new loadVars();
loadVarsText.load("bienvenue.txt");
loadVarsText.onLoad = function(success) {
if (success) {
trace("done loading");
scroller1.htmlText = this.var1;
} else {
trace("not loaded");
}
};

JoshuaJonah
May 2nd, 2006, 02:41 PM
Be more descriptive, and also "loadVars" has a capital L

var loadVarsText:LoadVars = new LoadVars();
loadVarsText.load("bienvenue.txt");
loadVarsText.onLoad = function(success) {
if (success) {
trace("done loading");
scroller1.html = true;
scroller1.text = this.var1;

} else {
trace("not loaded");
}
};

Ordinathorreur
May 2nd, 2006, 02:43 PM
Actionscript is now case sensitive, so use LoadVars instead of loadVars (note the capital L)

The bluriness problem could come from a couple of places, try right clicking your imported images in your library and checking the a"allow smoothing" box under properties to start with.

Edit: Damnit you little speed monkey! Defective 1, Ordinathorreur 0

driver
May 2nd, 2006, 02:59 PM
Thank you SO much people !:party:

However, it's strange we have to change every actionscript to work fine, when upgrading from one version to another...:h:

lunatic
May 2nd, 2006, 03:06 PM
Well as the language changes and evolves you can expect things like this. Wait until Actionscript 3 comes out (very soon) - you'll see a lot more changes!

Oh and Flash, like most software, is only backwards compatible not forwards compatible. Meaning you can open an MX version in 8 but can't open something saved in 8 in MX. :hr:

i think there are really 3 defectives and they each have at least 2 computers going at once. how else could he reply to so many posts so quickly ahead of the rest of us? speed monkey indeed! :P