Lost Password?


Go Back   CodeCall Programming Forum > Web Development Forum > Website Design

Website Design Forum for discussing flash, graphics, fonts, video and music! Have a question about how to implement something into your website? Ask here.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 04-20-2008, 03:33 AM
zeroradius's Avatar   
zeroradius zeroradius is offline
Programming Professional
 
Join Date: Feb 2008
Location: Ohio
Posts: 311
Rep Power: 5
zeroradius will become famous soon enough
Send a message via AIM to zeroradius Send a message via Yahoo to zeroradius
Default 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)
__________________
"I would love to change the world ...... but they won't give me the sorce code"
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Sponsored Links
  #2 (permalink)  
Old 04-21-2008, 01:54 PM
shibbythestoner's Avatar   
shibbythestoner shibbythestoner is offline
Programmer
 
Join Date: Jun 2007
Location: Scotland
Age: 17
Posts: 129
Rep Power: 6
shibbythestoner is on a distinguished road
Default 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.
__________________
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 04-21-2008, 02:41 PM
Xav's Avatar   
Xav Xav is offline
Code Warrior
 
Join Date: Mar 2008
Location: On God's Planet
Posts: 9,852
Last Blog:
Web slideshow in JavaS...
Rep Power: 78
Xav has much to be proud ofXav has much to be proud ofXav has much to be proud ofXav has much to be proud ofXav has much to be proud ofXav has much to be proud ofXav has much to be proud ofXav has much to be proud of
Send a message via MSN to Xav
Default 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.
__________________


Mr. Xav | Website | Forums | Blog
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 04-24-2008, 04:48 PM
zeroradius's Avatar   
zeroradius zeroradius is offline
Programming Professional
 
Join Date: Feb 2008
Location: Ohio
Posts: 311
Rep Power: 5
zeroradius will become famous soon enough
Send a message via AIM to zeroradius Send a message via Yahoo to zeroradius
Default 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.
__________________
"I would love to change the world ...... but they won't give me the sorce code"
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 04-25-2008, 11:44 AM
Xav's Avatar   
Xav Xav is offline
Code Warrior
 
Join Date: Mar 2008
Location: On God's Planet
Posts: 9,852
Last Blog:
Web slideshow in JavaS...
Rep Power: 78
Xav has much to be proud ofXav has much to be proud ofXav has much to be proud ofXav has much to be proud ofXav has much to be proud ofXav has much to be proud ofXav has much to be proud ofXav has much to be proud of
Send a message via MSN to Xav
Default Re: Onclick change font for flash site?

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


Mr. Xav | Website | Forums | Blog
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Sponsored Links
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Top 10 Ways To Promote Your Web Site ravs2k6 Marketing 30 02-02-2008 05:20 AM
Online RPG For Sale - Predicted PR 5 phb50530 Site Reviews 10 01-10-2007 06:59 AM
Using change management Cosmet General Programming 2 10-30-2006 07:16 PM
Embeded Font Chan C# Programming 1 09-22-2006 11:18 PM


All times are GMT -5. The time now is 04:53 PM.

Contest Stats

WingedPanther ........ 2753.6
Xav ........ 2704
Brandon W ........ 1702.32
John ........ 1207.73
marwex89 ........ 1175.24
morefood2001 ........ 966.05
dcs ........ 655.75
Steve.L ........ 475.59
orjan ........ 418.58
Aereshaa ........ 383.54

Contest Rules

CodeCall Goal

Goal: 100,000 Posts
Complete: 100%


Complete - Celebrate!

Ads