A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: Problem w/ Phantom Text

  1. #1
    Junior Member
    Join Date
    Aug 2002
    Posts
    27
    I designed this online design tool for making Hard hat stickers, engraved signs, safety signs, etc.

    the problem is on the hard hat sticker 'wizard' when you type in text.. if you delete what you typed in all at once it leaves the characters on the sticker.. and if you delete the characters one at a time.. it leaves phantom characters that stack on top of each other at the end.

    hope that explains what the problem is.. please look here and try it:

    http://www.dvsigns.com

    I appreciate any help.. also here is a look at the code

    onClipEvent (enterFrame) {
    for (x=1; x<=100; x++) {
    // removing any previous mc duplications.
    // 100 = max number of chars in input text field, so removes all.
    removeMovieClip("letter" + x);
    }
    textLength = _root.wiz.input.length-1;
    // get diam and radius of circle
    diameter = _root.wiz.output.arch._width;
    radius = _root.wiz.output.arch._height;
    // put text into the first letter
    _root.wiz.output.txt.text = _root.wiz.input.substr (0,1);
    // add more letters and align to arc
    for (x=1; x<=textLength; x++) {
    _root.wiz.output.txt.duplicatemovieclip("letter"+x , x);
    with (_root.wiz.output["letter"+x]) {
    _x += radius-(Math.cos ( Math.PI/textLength * x))*radius;
    _rotation += x*(180/textLength);
    _y += -(Math.sin ( Math.PI/textLength * x))*radius;
    // put text into these letters too
    text = _root.wiz.input.substr (x,1);
    }
    }
    }

  2. #2
    Junior Member
    Join Date
    Aug 2002
    Posts
    27
    bump.. healp! mah puhlese!

  3. #3
    Junior Member
    Join Date
    Aug 2002
    Posts
    27
    bump.. HELP!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center