Closed Thread
Results 1 to 5 of 5

Thread: Onclick change font for flash site?

  1. #1
    zeroradius's Avatar
    zeroradius is offline Speaks fluent binary
    Join Date
    Feb 2008
    Location
    Ohio
    Posts
    1,403
    Rep Power
    25

    Onclick change font for flash site?

    Hi, I am making a flash web site as an alternitive to a powerpoint for my humanities class. I have two font's i want to use greek and arial at the bottom of the page i want to have buttons to switch between the fonts. I can do this by making two layers one for each font and using the button to hide one text and show the other, but for this to work corectly i need to hide one of the layers onload wich i can not get to work. can any one tell me how to do the hide on load or if there is a way to just have one layer for text and on click toggle the font setting some how, eaither one would work. thanks in advanced. (If this does not make since i apoligies i have been working on reasearching the knights templar for a good part of the day and my brain is starting to lag)

  2. CODECALL Circuit advertisement
    Join Date
    Always
    Location
    Advertising world
    Posts
    Many

     
  3. #2
    shibbythestoner's Avatar
    shibbythestoner is offline Programmer
    Join Date
    Jun 2007
    Location
    Scotland
    Posts
    136
    Rep Power
    0

    Re: Onclick change font for flash site?

    Perhaps you could learn to use setProperty() to see if that will let you change the font type?

    Set Property - ActionScript.org Flash, Flex and ActionScript Resources

    No offence if you already know how to use it and/or know it won't work.
    I've never tried it.

  4. #3
    Join Date
    Mar 2008
    Location
    The North Pole
    Posts
    13,174
    Blog Entries
    13
    Rep Power
    114

    Re: Onclick change font for flash site?

    Just set up 2 CSS Styles. Then, in JavaScript, just set the current style to the required one.

    Quote Originally Posted by Jordan View Post
    Good members, like yourself, stick around and post for ages to come!
    Mr. Xav | Blog | Forums

  5. #4
    zeroradius's Avatar
    zeroradius is offline Speaks fluent binary
    Join Date
    Feb 2008
    Location
    Ohio
    Posts
    1,403
    Rep Power
    25

    Re: Onclick change font for flash site?

    Thanks for the help guys, i ran out of time so i din't get to try these, but i will try them when i get time.

  6. #5
    Join Date
    Mar 2008
    Location
    The North Pole
    Posts
    13,174
    Blog Entries
    13
    Rep Power
    114

    Re: Onclick change font for flash site?

    That's fine. It's quite easy to swap CSS properties in JavaScript.

    Quote Originally Posted by Jordan View Post
    Good members, like yourself, stick around and post for ages to come!
    Mr. Xav | Blog | Forums

Closed Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. TASM how to change characters font
    By H2010 in forum Assembly
    Replies: 13
    Last Post: 12-09-2010, 02:51 PM
  2. Flash Games on my site?
    By phpforfun in forum Website Design
    Replies: 5
    Last Post: 09-23-2009, 02:12 AM
  3. Change font size of 'Product', 'Size', ...
    By DavidBoggitt in forum ionFiles
    Replies: 1
    Last Post: 09-03-2009, 06:21 PM
  4. Font Color Change?
    By staceyx in forum ionFiles
    Replies: 4
    Last Post: 07-10-2009, 08:55 AM
  5. Online flash games site
    By 2stamlers in forum Site Reviews
    Replies: 5
    Last Post: 01-10-2008, 09:39 AM

Tags for this Thread

Bookmarks

Posting Permissions

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