Code differences between MX & 8

  • DrGonzo
  • Beginner
  • Beginner
  • DrGonzo
  • Posts: 36

Post 3+ Months Ago

Hello!
I had this piece of code in an file I created using Flash MX 2004. I have since tried using it in Flash 8, but it won't do it's stuff!
I know there are some differences on how code is written with 8 - anyone know how I change this?

Code: [ Select ]
onEnterFrame = function(){
    lineOne_txt.text = String(inputOne_txt.text);
    lineTwo_txt.text = String(inputTwo_txt.text);
    lineThree_txt.text = String(inputThree_txt.text);
    lineFour_txt.text = String(inputFour_txt.text);
    lineFive_txt.text = String(inputFive_txt.text);
    lineSix_txt.text = String(inputSix_txt.text);
}
  1. onEnterFrame = function(){
  2.     lineOne_txt.text = String(inputOne_txt.text);
  3.     lineTwo_txt.text = String(inputTwo_txt.text);
  4.     lineThree_txt.text = String(inputThree_txt.text);
  5.     lineFour_txt.text = String(inputFour_txt.text);
  6.     lineFive_txt.text = String(inputFive_txt.text);
  7.     lineSix_txt.text = String(inputSix_txt.text);
  8. }


The code just takes takes the input text and plonks it in a dynamic field.

Thanks,

DrGonzo.
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • classified
  • Expert
  • Expert
  • User avatar
  • Posts: 540
  • Loc: Bahrain

Post 3+ Months Ago

not really MX & 8 supports AS 2.0 unless if one of them was set on AS 1.0
did u try removing the String() ?
and just place for example

lineOne_txt.text = inputOne_txt.text;
  • DrGonzo
  • Beginner
  • Beginner
  • DrGonzo
  • Posts: 36

Post 3+ Months Ago

Bingo! - worked it out!
The MX file had fonts embedded:

Code: [ Select ]
lineOne_txt.embedFonts = true;
lineTwo_txt.embedFonts = true;
lineThree_txt.embedFonts = true;
lineFour_txt.embedFonts = true;
lineFive_txt.embedFonts = true;
lineSix_txt.embedFonts = true;
  1. lineOne_txt.embedFonts = true;
  2. lineTwo_txt.embedFonts = true;
  3. lineThree_txt.embedFonts = true;
  4. lineFour_txt.embedFonts = true;
  5. lineFive_txt.embedFonts = true;
  6. lineSix_txt.embedFonts = true;


but these were not in the library of the Flash 8 file and so didn't display!

Thank you kindly for trying to help anyway - apologies for wasting your time.
I shouldn't work with a hangover....

DrGonzo.
  • classified
  • Expert
  • Expert
  • User avatar
  • Posts: 540
  • Loc: Bahrain

Post 3+ Months Ago

Ahhh dynamics and embeding , how did i forget that ..
good information Gonzo mate ...

lol @ HangOver ...

Post Information

  • Total Posts in this topic: 4 posts
  • Users browsing this forum: No registered users and 17 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.