convert code to mx 2004?
- Started
- Last post
- 14 Responses
- qaddisin
i graded this source from flashkit. nice text effect that i have searched everywhere for and had now idea how to duplicate. but check this the code won't work in flash 2004 -- something about unicode -- i zipped both files -- i'd be gratful if anybody can tell me how to get this to work in 2004. thanks in advance.
zipped files:
http://www.arcanegraphics.com/de…
- ********0
The MX version won't open in MX..... you saved it in MX2004??
- ********0
Use the MX version in MX 2004 it works no problem.
Didn't even need to look at the code. Also if the error mentions unicode it's probably to do with embedded fonts.
- qaddisin0
that's weird, MX_OnD -- heres the code [below] -- when i copy the mcfrom the fmx to a new file in 2004 the textfield just shows undefined and rotates letters at the end -- saving the file as fmx states that i'm losing persistent library data and unicode -- thers no embeded fonts.
textalg = "NEWS";
if (temp eq "") {
temp = 65;
}
txtField = text1+chr(temp);
temp = temp+random(3)+1;
if (temp>=90) {
temp = 65;
text1 = text1+textalg.charAt(m);
m = m+1;
if (m == textalg.length) {
txtField = text1;
gotoAndPlay(3);
}
if (textalg.charAt(m) eq " ") {
txtField = text1+textalg.charAt(m);
m = m+1;
}
}
- qaddisin0
i uploaded the fmx file only this time.
- qaddisin0
i found i can load the file into a 2004 movie but damn i was going to use this for a couple of headers -- search the internet for "decode" "random" "lettering" -- and i get stupid text effect and php encryption -- does anyone know where i can get a clean script for this type of effect.
- ********0
qaddisin, are you wanting to use AS 2.0?
if not just publish as flash 6... simplest solution....
- ********0
I mean, if you make the publish settings Flash 6 in MX2004 it works too....
- qaddisin0
yeah i need it for as2 [flash player 7] -- the reason is i did a lot of work on a site targeting the fp7. when i do publish as flash 6 -- it works no problem -- i publish for flash 7 -- i get undefined. :(
- qaddisin0
anybody know where to point me in the right direction?
- ********0
one thing that you might try is declaring the variable types.
with AS 2.0 you should always use strict data typing...
more info and instructions here...
http://livedocs.macromedia.com/f…
sorry I can't do it for you just now, m'lady needs my time too ;)
- qaddisin0
you've done enough -- thanks alot -- take care.
- qaddisin0
actually your suggestion of publishing for flash 6 works prefectly. thanks again.
- ********0
qaddisin, if you're interested I've disected the fla a bit more iwth one of my workmates (meester flash guru ;) )
The AS bases on Flash 4 syntax most of which was already deprecated in Flash 5.....
It is really no wonder that it doesn't work in Flash MX2004 with AS 2.0 ;)
anyway at least it works when you publish as Flash 6, eh?
- qaddisin0
yeah i could have ran with flash 6 but then i remembered the project uses a lot of external text with css [flash mx 2004 only] -- so decided to discard the little decode effect for now -- i will modify it for a future project - thanks for your time -- take care.