Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash




Problem Using Css ?



Hello guys,well I'm using Css to format some dynamic text but I don't understand something.... If I try to format a text with a Css class, I've no problem.... but if I want to format a link it doesn't work.So my question is : Is it possible to do a class for my links? like :a.link1....}a.link1:hover{....}etc for link2
Code:
//my code in Css : a.link1:link {color: #990000;}a.link1:hover {color: #FFFFFF;}//in flash :function style(mc){mc.html = true;mc.embedFonts = true;mc.styleSheet = styleCss;}styleCss = new TextField.StyleSheet();styleCss.load("liensStyle.css");styleCss.onLoad = function(ok){if(ok){style(liens1)style(liens2)liens1.htmlText = "<a href='#' class ='link1'>liens1</a>";liens2.htmlText = "<a href='#' class ='link1'>liens2</a>";}}
thanks a lot...



KirupaForum > Flash > Flash 8 (and earlier) > Flash MX 2004
Posted on: 12-09-2005, 12:30 AM


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

    Copyright © 2005-08 www.BigResource.com, All rights reserved