Copy link to clipboard
Copied
I'm trying to have everything within one .FLA because this file will be moved around everywhere and having an external CSS posses a liability and something not working right, so I've been looking around the net with no luck so I'm here asking...
Is it possible to have all of it in one frame and just call for it when needed. So far I've been able to simplify the as2 code to call the CSS but still can't make it be within the .FLA (still requires an external file)
this is in frame one.
var format = new TextField.StyleSheet();
format.load("flash.css");
output.styleSheet = format;
output.text = "<br><p class='one'>I don't like external files.</p>";
it works well... but like i said...
Thank you in advance for your time and response
also...
does flash hate border styles?... can't get them to work...
eg:
var styles:TextField.StyleSheet = new TextField.StyleSheet();
styles.setStyle("bodyText", {fontFamily: 'Arial,Helvetica,sans-serif', fontSize: '12px'}
);
styles.setStyle("headline", {fontFamily: 'Arial,Helvetica,sans-serif',fontSize: '24px'}
);
Copy link to clipboard
Copied
you can define css styles on your timeline.
Copy link to clipboard
Copied
That's where I'm left in blank.... I tried just putting in the css style into a frame but no luck, flash doesn't recognize it as a code, so I don't know the proper way to do this...
Copy link to clipboard
Copied
eg:
var styles:TextField.StyleSheet = new TextField.StyleSheet();
styles.setStyle("bodyText", {fontFamily: 'Arial,Helvetica,sans-serif', fontSize: '12px'}
);
styles.setStyle("headline", {fontFamily: 'Arial,Helvetica,sans-serif',fontSize: '24px'}
);
Copy link to clipboard
Copied
so this way I dont have the same "creative styles" as a CSS, for example a bottom border (having the opportunity to make a double-bold underline)?
Copy link to clipboard
Copied
you must open flash.css and convert the css there into code formatted the way i showed (or something similar). you'll need to set a style for each style used in your html text and listed in your css file.
Copy link to clipboard
Copied
cool, i've started playing with it your way and i'll eventuallt get it my way, thanks
Copy link to clipboard
Copied
you're welcome.
Find more inspiration, events, and resources on the new Adobe Community
Explore Now