Forum FAQForum FAQSearchSearch MemberlistMemberlist Forum ignore listForum ignore list RegisterRegister ProfileProfile Log in to check your private messagesLog in to check your private messages Log inLog in
flash + css + margin?

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    mi3dot.org Forum Index -> Flash
View previous topic :: View next topic  
Author Message
nemogirl



Joined: 27 Oct 2004
Posts: 386
Location: istra

PostPosted: 15.09.2008 14:27    Post subject: flash + css + margin? Add user to your forum ignore list Reply with quote

uf, nisam znala ni kako da nazovem ovaj topic Razz
u flash loadam css file i radi Very Happy
buduci da flash u css-u ne podrzava margin-top i -bottom, kako napraviti razmake izmedju paragrafa??
izmedju p-ova mogu ubaciti jedino <br/> ali kako onda kontrolirati visinu <br/>-a?
ukratko: kako stylati dinamički tekst u flashu?
Confused
Back to top
View user's profile Send private message
maratz
mi3.crew


Joined: 24 Nov 2003
Posts: 1207
Location: ZAG

PostPosted: 15.09.2008 14:46    Post subject: Re: flash + css + margin? Add user to your forum ignore list Reply with quote

nemogirl wrote:
uf, nisam znala ni kako da nazovem ovaj topic Razz
u flash loadam css file i radi Very Happy
buduci da flash u css-u ne podrzava margin-top i -bottom, kako napraviti razmake izmedju paragrafa??
izmedju p-ova mogu ubaciti jedino <br/> ali kako onda kontrolirati visinu <br/>-a?
ukratko: kako stylati dinamički tekst u flashu?
Confused

Ne znam da li ce to funkcionirati, ali u CSS-u se vertikalni red može ustrojiti line-heightom

_________________
STOP HITTING YOURSELF! | NETIQUETTE | TYPETESTER | Hypertext rulez™ | CREATIVE NIGHTS | ACCOMMODATIONS
Back to top
View user's profile Send private message Visit poster's website Twitter profile
djankey



Joined: 22 Nov 2006
Posts: 128
Location: zg

PostPosted: 15.09.2008 15:06    Post subject: Add user to your forum ignore list Reply with quote

u Flashu mozes podesavati razmak izmedu redaka sa leading
npr (AS2):

Code:
var myCSSStyle:TextField.StyleSheet = new TextField.StyleSheet();      
   myCSSStyle.onLoad = function(aSuccess:Boolean):Void  {
      if (aSuccess) {
         trace("CSS loaded");
      } else {
      trace("Error loading CSS");
      }
   }
myCSSStyle.load("style.css");                                    


var textTT:TextFormat = new TextFormat();         
   textTT.font="myfont";                     
   textTT.bold=false;                        
   textTT.size=18;                        
   textTT.letterSpacing=2;                  
   textTT.leading = 10;                     
   textTT.color=0x000000;
   
var newTF:TextField = this.createTextField("mytext",1, 0, 0, 0, 0);
         newTF.antiAliasType = "advanced";
         newTF.setNewTextFormat(textTT);
         newTF.embedFonts = true;
         newTF.selectable = false;
         newTF.html=true;
         newTF.styleSheet = myCSSStyle;
         newTF.sharpness = -150;
         newTF.wordWrap = false;
         newTF.multiline = true;
         newTF.autoSize = true;
         newTF.htmlText="http://www.mi3dot.org<br>http://www.mi3dot.org";

_________________
http://www.as-flash.com
Back to top
View user's profile Send private message Visit poster's website
nemogirl



Joined: 27 Oct 2004
Posts: 386
Location: istra

PostPosted: 16.09.2008 07:12    Post subject: Add user to your forum ignore list Reply with quote

@maratz: ne, line-height nije podrzan Sad
@djankey: leading nije ono sto zelim. treba mi razmak izmedju elemenata p, h1, h2... a ne izmedju redaka.
jedino rjesenje koje mi pada na pamet je da slajsam tj. razbijem tekst u textboxove i njih razmaknem.. ali tlaka mi je to radit Rolling Eyes
a i komplicirano mi dodje zbog nekih drugih tehnickih nebuloza Razz
Back to top
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    mi3dot.org Forum Index -> Flash All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group