yes, it was in the css. when you make a new css from Dw, it shows up automatically. That is why I missed that out, I missed that out.
it was the first time coded css in Dw though. Keni On 24 Apr 2008, at 03:04, Gabino Travassos wrote: > Do you mean the formatting of the CSS file? > > > ----- Original Message ----- > From: "Chi Kin Lam" <[EMAIL PROTECTED]> > To: "Open Source Flash Mailing List" <[email protected]> > Sent: Wednesday, April 23, 2008 7:57 PM > Subject: Re: [osflash] Very basic. But cant figure it out > > >> HIi, Gabino, >> >> Thanks for your answer. And I have figure it out (man..!! after all >> thozzz hours!!) >> >> it was this: @charset "UTF-8"; After I miss this out, the swf work >> smooth with the css. >> >> Keni (banging my head on the wall) >> >> On 24 Apr 2008, at 02:31, Gabino Travassos wrote: >> >>> Hi Keni >>> >>> I think it's the path to the CSS file. I used your code exactly and >>> I didn't >>> get an error. The only difference was I put the CSS file in the same >>> folder >>> as the fla/swf and changed this line: >>> font_style.load("fontstyle.css"); >>> >>> Or maybe it's the version of Flash you're using? I used version 8. >>> >>> hth >>> >>> Gabino >>> >>> >>> ----- Original Message ----- >>> From: "Chi Kin Lam" <[EMAIL PROTECTED]> >>> To: "Open Source Flash Mailing List" <[email protected]> >>> Sent: Wednesday, April 23, 2008 6:42 PM >>> Subject: [osflash] Very basic. But cant figure it out >>> >>> >>>> Hi, >>>> >>>> I have been double, trouble check and test drive my fla which is to >>>> load a external css and return some trace value. >>>> Well, as you can expect, the traced string was "error loading css". >>>> Why? anyone got some ideas? >>>> >>>> below are actionscript and css. >>>> >>>> import TextField.StyleSheet; >>>> var font_style:StyleSheet = new StyleSheet(); >>>> >>>> font_style.onLoad = function(success:Boolean){ >>>> if(success){ >>>> _root.nextFrame(); >>>> trace (font_style.getStyleNames()); >>>> }else{ >>>> trace("error loading css"); >>>> } >>>> } >>>> >>>> font_style.load("elements/css/fontstyle.css"); >>>> >>>> ============================== >>>> >>>> /* CSS Document */ >>>> >>>> .plr_style { >>>> font-family: Akzidenz Grotesk; >>>> font-size: 10; >>>> color: #CCCCCC; >>>> font-weight: bold; >>>> text-align: left; >>>> letter-spacing: 1px; >>>> } >>>> >>>> please help!!! >>>> >>>> K- ( keni >>>> >>>> _______________________________________________ >>>> osflash mailing list >>>> [email protected] >>>> http://osflash.org/mailman/listinfo/osflash_osflash.org >>>> >>> >>> >>> >>> _______________________________________________ >>> osflash mailing list >>> [email protected] >>> http://osflash.org/mailman/listinfo/osflash_osflash.org >> >> >> _______________________________________________ >> osflash mailing list >> [email protected] >> http://osflash.org/mailman/listinfo/osflash_osflash.org >> > > > _______________________________________________ > osflash mailing list > [email protected] > http://osflash.org/mailman/listinfo/osflash_osflash.org _______________________________________________ osflash mailing list [email protected] http://osflash.org/mailman/listinfo/osflash_osflash.org
