A Flash Developer Resource Site

Results 1 to 5 of 5

Thread: need help !!

  1. #1
    Junior Member
    Join Date
    Jul 2001
    Posts
    20
    Hello,

    I am learning flash5 actionscritps and was wondering if I could do something like this.

    I have a text field which has a value coming from the variable. I want to create a movie which will have a button that can change the font of the text in the text field.

    Is it possible to do something like this?

    I hope to get a solution for this. It will be very nice If somebody could help

    Thank you.

  2. #2
    Old dog learning new tricks

    Join Date
    Dec 2000
    Posts
    1,498
    No u can't do that.

  3. #3
    Junior Member
    Join Date
    Jul 2001
    Posts
    20
    Is it not possible in any way at all.?

    what if the text I want to manipulate is not a dynamic text and I try to create a movie clip for the text I want to manipulate . Is there no way of setting the font propery of a particular object?
    Actually I checked through the properties and did not find anything directly affecting a font.

    Is it possible to affect the movie object in some way may be using javascript ..

    I'm not sure ...

    I need a solution for this.

    thanks


  4. #4
    Member
    Join Date
    Feb 2001
    Posts
    31
    You cannot do that directly in Flash. But in case u know JavaScript, then u can. To change the font of the text u can use this in-built property

    document.tags.h2.fontFamily = "Arial";

    here, h2 can be replaced by any tag name which u want to use. OR you can try it this way:

    document.write("<style='font-style:Arial'>");

    Hope this helps.

    Shiv.

  5. #5
    Old dog learning new tricks

    Join Date
    Dec 2000
    Posts
    1,498
    Yeah but this affects only the html and not the swf. Anyway if I hear anythinh I'll let u know.

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