Style Sheet For Scrollbar (desperate In Need Of Assistance )
hi there, I looked up some help in flash itself, i looked at a tutorial about style sheets and i really dont get it to work... The only thing i want to change is the appearance of my scrollbar. I want to change the little arrows and the back bar of the thing. This is what i came up with: stop(); formStyleFormat = new StyleFormat(); formStyleFormat.arrow = 0x800080; FormStyleFormat.addListener(scrollbar); FormStyleFormat.applyChanges() Maybe i dont get the help file right but when i look @ pompstyle i dont even c the addlistener and applychanges. Could some1 explaine to me what i do wrong i would like to fix it. Greetz FaitH
KirupaForum > Flash > Flash 8 (and earlier) > Flash MX 2004
Posted on: 01-02-2005, 11:59 AM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Style Sheet For Scrollbar (desperate In Need Of Assistance )
hi there,
I looked up some help in flash itself, i looked at a tutorial about style sheets and i really dont get it to work...
The only thing i want to change is the appearance of my scrollbar. I want to change the little arrows and the back bar of the thing.
This is what i came up with:
stop();
formStyleFormat = new StyleFormat();
formStyleFormat.arrow = 0x800080;
FormStyleFormat.addListener(scrollbar);
FormStyleFormat.applyChanges()
Maybe i dont get the help file right but when i look @ pompstyle i dont even c the addlistener and applychanges.
Could some1 explaine to me what i do wrong i would like to fix it.
Greetz FaitH
Style Sheet
I'm trying to build a style sheet on my text fields. I want to make my URL link, go underline when I hover over the Link. But I'm not sure how I can create a style sheet with AS3.
Style Sheet
Hi,
is there any way to use CSS with flash TextField and action script rather than import css file ? a way to include the CSS parameters/properties in the action script code ?
i was also tried to use the CSS property "direction" and it does not work , is there some CSS properties that do not work with action sctipt ?
Thanks
Style Sheet ?
I couldn't find any info on this - I was having issues loading an external
style sheet and narrowed it down to this:
.footer a:link {
color: #abb8bd;
text-decoration: underline;
}
If I include that, which is not needed by Flash, but for the site, Flash
won't load the sheet. When removed the sheet loads fine. No real problem,
except now I need two style sheets. But just curious to know what about this
Flash doesn't like - and why it doesn't just ignore it. It seems to be the
a:link causing the problem...
--
Dave -
www.offroadfire.com
Head Developer
http://www.blurredistinction.com
Adobe Community Expert
http://www.adobe.com/communities/experts/
What Do I Do With A Css (cascading Style Sheet)
I have been working on my website and one day, in my email, I got an email concerning my website. Along with that email was a .css for my website. I have no idea what it is and what to do with it. and I feel like a stupid person by asking him about it. I mean he already took the trouble of making a css I cant ask more of him. So what is a css and what do I do with it and also how to do you make them? thanks in advance
Global Style Sheet
how do i edit the glabal style sheet, i need to edit the size fof the text in a check box button.
thanx
Style Sheet Gone Berserk
This was made using Flash 2004 Pro on a Mac.
I have a list and a text area component on the stage. When a user selects a lable from the list it loads a .txt file associated with that lable into the text area. Simple enough right? The text area is formated from an external style sheet. Still simple enough right? Ok here's my problem. I use a good amount of bullets (<li></li> tags) to break up the content of the text. When you click on the first label and scroll all the way down, and then select another label the new .txt document that is loaded is all bulleted like crazy. Also the scroll bar stays at the previous position so you have to scroll all the way back to the top to start reading the text.
I've attached my source files for anyone who is willing to help. This was made using Flash MX 2004 Pro on a Mac! Thank for any help.
Help With Reapplying Style Sheet
I have a timer system that changes the content of a text field every 8 seconds using setInterval. I have a style sheet applied to the the textfield when my movie first starts and everything looks great. My setInterval fires and calls the update function changing the content of the text field. At the end of the function I trying reapplying my style sheet but it doesn't seem to work. Has anyone run into a problem like this before and if so how did you fix it?
CSS Style Sheet Problem.
Sorry friends .This is not something related to flash.But i'm in a big trouble n really helpless. I'm in the middle of a project and got stuck b'coz of a css style sheet problem. The thing is that i'm in search for a css style to listbox, radio button and check box to make them flat whithout any 3D projection. I'm attaching the image of that what i'm looking for. Does anyone know whether its possible and if so kindly help me to get that. That will be really great if someone can help me. Thanking you in advance........
....vibi...
Style Sheet Question
The problem is that if I embed fonts in the field that I'm applying the styleSheet to, the style effect doesn't happen. However, if I don't embed fonts, the _alpha property of the _mc which contains the text field doesnt get "alphaed" The rest of the _mc gets the _alpha effect, but not the text field within it.
can this be resolved?
thanks, Chop
code that works if no fonts are embedded in the text field:
Attach Code
var newsText:String= "<body10> blah blah </body10>";
styler_mc.instructions_txt.html = true;
styler_mc.instructions_txt.htmlText =newsText;
var styleInstructions:TextField.StyleSheet = new TextField.StyleSheet();
styleInstructions.onLoad = function(success:Boolean) {
if (success) {
styler_mc.instructions_txt.styleSheet = styleInstructions;
} else {
styler_mc.instructions_txt.htmlText = "I've been robbed";
}
};
styleInstructions.load("editText/edit.css");
Formatting XML With Css Style Sheet
Adobe livedocs has a great page for formatting XML text with Actionscript 2. Learning ActionScript 2.0 in Adobe Flash >Working with Text and Strings > Formatting text with Cascading Style Sheet styles > An example of using styles with XML
I need an example of how to achieve the same result using Actionscript 3.
Style Sheet In Textfield
V can apply style sheet properties to Textfield. But, can't v edit the textfield at runtime ?
if I want the textfield must be interactive then what should v do ? can u pls help me in undersatnding the style sheet ?
Xml Menu With Style Sheet
Sir,
I am trying to do one xml menu with flash. There are six menu items. Now I want to insert one orange square in front of each menu item. ( Just like the “ul”) and try to attach a style sheet in that xml so that I can control the text as per my wish ( font weight, color etc. as u can see that the fonts are bold. I want to change it ) I cannot do this . I am attaching the fla and others as well. Feel free to change everything . Can u have some time to do this. Kindly help me.
Thanks in advance.
Trnghosh.
Hi
Ornge square has already been sorted out by me. Can anyone help me so that I can attach style sheet to control the behaviours of the texts.
Once again thanks to all who are visiting this.
Trnghosh
Style Sheet In Textfield
V can apply style sheet properties to Textfield. But, can't v edit the textfield at runtime ?
if I want the textfield must be interactive then what should v do ? can u pls help me in undersatnding the style sheet ?
External Style Sheet Not Always Loading
I have an external stylesheet that alters the appeance of some dynamically loaded text. The problem I am having is that the text will sometimes revert to the default settings that were saved for the text in FLASH when being loaded. My actionscript calls for a error message to be shown if the style sheet isn't loaded properly (this never shows so I now that it is loading properly). For instance the stylesheet calls for the text to be 12px. The font is saved as serif 1px (as an experiment to tell the difference) in FLASH. The text will sometimes show up as 1 or as 12px. Is there a reason why it is picking up the style sheet attributes only some of the time.
Style Sheet - Dynamic Text
Hi,
I need to have apply style sheet to my dynamically created text fields.
The content inside the text fields is loading from an external XML file.
I had gone through some of the examples and tutorials.. but it is not working.
Please tell me is it possible to apply style sheet for dynamic text.
If you know any good tutorial or help please forward me.
Thanks
Style Sheet In Child Movie
I am using css in a child movie, and it works perfectly when the movie is played alone. However, when the swf is loaded inside the parent movie, the css no longer works.
Here is the actionscript in the child movie I use to call the css:
PHP Code:
var errormessage = "<p class='three'>error message goes here</p>";
var format = new TextField.StyleSheet();
var path = "flash.css";
format.load(path);
format.onLoad = function(loaded) {
};
Here is the actionscript for the text box using the css:
PHP Code:
errorBox.styleSheet = format;
errorBox.text = errormessage;
Any ideas?
Applying A Different External Style Sheet
I want to be able to give the choice to the reader of my website to change font size of a given text area.
Three stylesheets have been set and loaded into the swf file.
The default stylesheet is applied with the usual code.
monTexte.textField.styleSheet=styleTexteUn;
monTexte.htmlText=texteCourant;
However, if a new stylesheet is set after clicking a button
(with a similar line of code,
monTexte.textField.styleSheet=styleTexteDeux;
monTexte.htmlText=texteCourant;
)
i get this error:
Error: Error #2009: Impossible d'utiliser cette méthode sur un champ de texte avec une feuille de style.
at flash.text::TextField/setTextFormat()
at fl.controls::TextArea/fl.controls:TextArea::drawTextFormat()
at fl.controls::TextArea/fl.controls:TextArea::draw()
at fl.core::UIComponent/::callLaterDispatcher()
Translation: Impossible to use this method on a text field with a stylesheet.
I don't understand what is wrong. Thank you in advance for helping.
CSS / Style Sheet Based UI Interface
I'm about to go about designing an extensive set of UIs in Flash that will contain a few basic components:
1) Buttons
2) Text areas with scroll bars
3) Labels
4) (Kirupa based) Hover information (label and text with help).
5) Panels
My question is what is the best way to describe these UI pieces in a way that allows me to change the template and automatically the change the button across all instances of the UI pieces, perhaps even in different .swf files?
Second question: assuming I had a button.swf that described the template, how would I organize the button.swf in a way that would allow me to do the following:
// in some new UI layout.
rightPanel = new RightPanel(); // loads the default panel template
rightPanel.addButton( new Button( "Some Label", handleClickSomeLabel ) );
screen.addPanel( rightPanel );
// later on we define the button call back
function handleClickSomeLabel()
{
// they clicked Some Label
}
Thanks for the help,
sand858
Style Sheet Support In Flash 8
I'm using a very simple LoadVars to load in an external text file that has been formatted with some basic HTML tags, like <b>, <p>, and <i>. I have a simple style sheet that formats each of these tags, including font-size, font-family, and color.
I'm using the new TextField.StyleSheet() object to apply those styles to the imported text file. The basic formatting appears correctly, such as bold and Italic, but none of the size changes or colors appear in var format = new TextField.StyleSheet();
var path = "styles.css";
format.load(path);
format.onLoad = function(loaded) {
if (loaded) {
output.styleSheet = format;
myLoadVar = new LoadVars();
myLoadVar.load("story1.txt");
myLoadVar.onLoad = function(success) {
if (success == true) {
output.variable = "story";
output.htmlText = myLoadVar.story;
}
};
} else {
output.text = "Error loading text";
}
};
The dynamic text field I'm using has HTML formatting enabled with a Var called story and an instance name of outup.
Has something changed with CSS formatting from MX2004 to 8? What am I missing?
CSS / Style Sheet Based UI Interface
I'm about to go about designing an extensive set of UIs in Flash that will contain a few basic components:
1) Buttons
2) Text areas with scroll bars
3) Labels
4) (Kirupa based) Hover information (label and text with help).
5) Panels
My question is what is the best way to describe these UI pieces in a way that allows me to change the template and automatically the change the button across all instances of the UI pieces, perhaps even in different .swf files?
Second question: assuming I had a button.swf that described the template, how would I organize the button.swf in a way that would allow me to do the following:
// in some new UI layout.
rightPanel = new RightPanel(); // loads the default panel template
rightPanel.addButton( new Button( "Some Label", handleClickSomeLabel ) );
screen.addPanel( rightPanel );
// later on we define the button call back
function handleClickSomeLabel()
{
// they clicked Some Label
}
Thanks for the help,
sand858
Dreamweaver MX Style Sheet Question
Hi. I'm trying to alter the colour of my text links in Dreamweaver MX as the default blue setting looks pretty rank against my red background. I read up on how to do this and was told to go to New CSS, use CSS selector, select a:link and define my properties in there.
I've done that and it works on the screen in dreamweaver but it goes a bit pear shaped when I upload it. In Mozilla Firefox which I use mainly it does naff all, the links remain think blue and underlined when they're supposed to be bold black and have no text decoration. In IE a couple of them look right and a couple of them don't.
This is the css info I have inbetween the head tags in my page:
<style type="text/css">
<!--
body {
background-color: #000000;
}
.maintable {
background-color: #A80000;
text-align: left;
border: #990000;
}
a:link {
font-weight: bold;
color: #000000;
text-decoration: none;
}
-->
</style>
Do any of you have any suggestions as to how I can fix this?
Cheers,
Eddie
Applying A Style Sheet To XML In Flash MX 2004
Hello!
I am developing a text scrolling Marquee application for my intranet at work. It loads an external CSS file and an external XML file to populate the text field that then scrolls arcross the screen. The problem is I am unable to get the styles to alter the text. I have tried everything I can think of and would appreciate it if someone could look at the code and see where I am going wrong. The scroller works as expected, it just isn't using the styles correctly.
Here is the relevant code(it is on the first frame of the timeline):
Quote:
stop();
// Create Style Sheet object
var xmlStyles:TextField.StyleSheet = new TextField.StyleSheet();
// load CSS file
var cssURL:String = "./swf/scrollerData1.css";
xmlStyles.load(cssURL);
xmlStyles.onLoad = function(success)
{
if(success)
{
trace("Style Sheet has loaded.");
msgText.styleSheet = xmlStyles;
var stylesArray:Array = xmlStyles.getStyleNames();
trace(stylesArray.join("
"));
}
else
{
trace("Style Sheet did not load.");
}
}
// load XML data
msgContent = new XML();
msgContent.load("./swf/scrollerData1.xml");
msgContent.ignoreWhite = true;
msgContent.onLoad = function(success)
{
if(success)
{
loadArray(this);
}
else
{
trace("The XML file did not load");
}
}
var msgArray:Array = new Array();
function loadArray(xmlNode)
{
var i = 1;
for(var aNode:XMLNode = xmlNode.firstChild.firstChild; aNode != null; aNode = aNode.nextSibling)
{
if(aNode.nodeType == 1)
{
msgArray[i] = aNode.firstChild.nodeValue;
trace("Message"+i+": "+msgArray[i].toString());
i++;
}
}
}
function playMessage(msgNumber)
{
var i:Number = msgNumber;
var nextMsg:String = "";
// initialize text field
msgText.autoSize = "left"; // Expands textfield to fit size of message
msgText.html = true;
msgText.wordWrap = false;
msgText.multiline = false;
msgText.label.condenseWhite= true;
msgText.text = msgArray[i].toString();
if(i >= 5)
{
nextMsg = "message1";
}
else
{
i++;
nextMsg = "message"+ i;
}
if(msgText.text == "" || msgText.text == undefined) // Message is blank
{
trace("Message "+i+" is undefined or blank");
gotoAndPlay(nextMsg);
}
else
{
msgText._x -= 3; // Increase this value to increase the scrolling speed
if(msgText._x < (-5 - msgText._width))
{
msgText._x = 553; // Starting position of the text field
gotoAndStop(nextMsg); // Play next message
}
}
}
gotoAndPlay('message1');
Here is the output of the traces:
Quote:
Style Sheet has loaded.
message1
message2
message3
message4
message5
Message1: Message 1: Today is Megan's Birthday. Happy Birthday, Megan!!!!
Message2: Message 2: We will be using script #456 for Sharper Image calls.
Message3: Message 3: The new DNIS for Harriet Carter inbound will be 6509.
Message4: Message 4: Please make sure to punch out for breaks and lunches. Lately this has been an issue and may affect Payroll.
Message5: Message 5: Everyone can leave at 5:30 today. Thank you for the great week and have a wonderful weekend!
Note: the style names are: message1, message2, message3, message4, message5
The XML branches are: message1, message2, message3, message4, message5
There are 5 labels on the timeline that are as follows: message1 - message5. The fuction is called like this:
stop();
_root.onEnterFrame = function()
{
playMessage('2');// 1-5
}
Please help!
[FMX 2K4-P] AS2.0 - Apply Style Without Dynamically Loading CSS Sheet
I've found a million tutorials on doing this by loading a CSS file, which is fine, but I don't want to load CSS...I'd rather just modify the thing with actionscript. I've done this before with one of my files, but can't seem to find it. If anybody has a link or can help me out with this one, I'd appreciate it.
[FMX 2K4-P] AS2.0 - Apply Style Without Dynamically Loading CSS Sheet
I've found a million tutorials on doing this by loading a CSS file, which is fine, but I don't want to load CSS...I'd rather just modify the thing with actionscript. I've done this before with one of my files, but can't seem to find it. If anybody has a link or can help me out with this one, I'd appreciate it.
Style Sheet Make Textfield Not Editable
Hello,
After applying a stylesheet to a textfield, the textfield isn't editable !
Look at this :
ActionScript Code:
var format = new TextField.StyleSheet();
var path = "test.css";
var tt = "<p class='one'>Test stylesheet <p>"
format.load(path);
format.onLoad = function(success)
{
if (success)
{
output.styleSheet = format;
output.text = tt;
}
};
stop();
StyleSheet work, but the textfield isn't éditable
it's a bug ?
Embedding Fonts With HtmlText And Imported Style Sheet
I am creating a dynamic text field when a user presses a button in my flash movie.
The text in the created text field is htmlText, and I am importing a .txt file with loadVariables to create the text in the field and I am importing a style sheet to format the text.
I want to be able to fade out this text box with another script, so I have tried to embed fonts, but I can't seem to get it to work with the external loaded html text and the associated externally loaded style sheet.
Is it possible to do?
Thanks
Dynamic Text + Mask + Style Sheet , A Solution ?
It turn me crazy :
- I have a dynamic text field which reads its contents from an XML file.
- The text is then formatted with some basic CSS from an external style
sheet
- There is a scroll bar which controls the textfield.
All of the above works absolutely sweetly.
BUT then, I then added a mask over the textfield so that the scrollbar
looks effective...., the text disappears.
Here the code :
_root.ticker.createTextField("mytext", 50, 20,20, 300, 200);
_root.ticker.mytext.autoSize = true;
_root.ticker.mytext.multiline = true;
_root.ticker.mytext.wordWrap = true;
_root.ticker.mytext.border = false;
_root.ticker.mytext.type = "dynamic";
_root.ticker.mytext.border = false;
_root.ticker.mytext.background = false;
_root.ticker.mytext.password = false;
_root.ticker.mytext.multiline = false;
_root.ticker.mytext.html = true;
_root.ticker.mytext.selectable = true;
//_root.ticker.mytext.embedFonts = true; //??? I try it uncomment or not ???
_root.ticker.mytext.maxChars = null;
_root.ticker.mytext.htmlText = myDataNews; //FROM external Html
// Loading the CSS
var myStyle:TextField.StyleSheet = new TextField.StyleSheet();
myStyle.load("news/sample.css");
_root.ticker.mytext.styleSheet = myStyle;
//IT WORKS !
_root.ticker.setMask(this.masque);
//BUT WITH MASK NO !!!!
Can someone help me ?
Bug In Flash? (Creation Of A Style Sheet Object Is Undefined)...
Is it a bug in Flash or what? I had been struggling with problems until I found what cause the problem but are unable to make it work... I did the tracing and the variable test is returned as "undefined".
Code:
var test = new TextField.StyleSheet();
trace(test);
So, with further testing....
Code:
trace(new TextField);
showed it returned an new object values but
Code:
trace(new TextField.StyleSheet());
returned an undefined message. What so odd about it is that StyleSheet() is a defined actionscript function built-in with Flash. I'm using Flash MX. See the link at http://livedocs.macromedia.com/flash/mx2004/main_7_2/wwhelp/wwhimpl/common/html/wwhelp.htm?context=Flash_MX_2004&file=00001016.html#179266 . So, it look like a bug but how do I get the bug fixed or something??
Thanks,
FletchSOD
Dynamic Text Field Uses Style Sheet, Font Not Showing Properly
I have a flash 8 movie in which there is a dynamic text field loading data from the server. The data loads beautifully and appears in a text field formatted as html.
This html-formatted text field uses a stylesheet as well which works great for everything except the font. Using Flash, I have specified a font of DIN-Medium for the dynamic text box on my stage and yet the text that appears when I publish to my hosting provider appears to be Times New Roman. WTF?
My stylesheet does not specify any font family.
Can anyone tell me how I might get the dynamic text box to show the text using the DIN font? Do I need to export the font in the library of my flash movie or something?
Here's my actionscript:
PHP Code:
stop();
import TextField.StyleSheet;
var myStyleSheet:StyleSheet = new StyleSheet();
myStyleSheet.onLoad = function(success:Boolean) {
if (success) {
// trace("Styles loaded:");
} else {
// trace("Error loading CSS");
}
};
myStyleSheet.load("styles.css");
txtFilmNews.html = true;
txtFilmNews.styleSheet = myStyleSheet;
txtFilmNews.width = 295;
txtFilmNews.autoSize = true;
txtFilmNews.selectable = false;
var lvFilmNews:LoadVars = new LoadVars();
lvFilmNews.onLoad = function(success) {
if (success) {
txtFilmNews.htmlText = lvFilmNews.html;
} else {
trace('load failure!');
}
}
lvFilmNews.load('getHTML.php?q=filmNews');
Here is my stylesheet:
Code:
p {
color: #53301A;
font-size: 12px;
margin-bottom: 0px;
padding-bottom: 0px;
border:none;
}
.title {
font-size: 15px;
text-transform: uppercase;
color: #D06F1A;
font-weight:bold;
}
a {
color: #D06F1A;
font-weight:bold;
}
a:hover {
color: #53301A;
}
Need Assistance With Custom Scrollbar I Built
I built a very simple scrollbar all on my own. I know there is lots of scrollbars in these formus but honestly wanted to see if I could make one by myself.
Well I did but I notice it's a bit skipy, not as smooth as others I've seen & was hoping for some insight.
This code resides directly on the dragger movieclip. The percent (this._y/195) I got from their being a possible 195 y position....not sure why, got it to finally work
I'd really appreciate some help.
Code:
onClipEvent(enterFrame){
percent = (this._y / 195);
_parent._parent.bioTxt.scroll = _parent._parent.bioTxt.maxscroll * percent;
this.onPress = function(){
startDrag(this,false,-18,-10,-18,195);
this.onMouseMove = function(){
updateAfterEvent();
}
this.onMouseMove();
}
this.onRelease = function(){
stopDrag();
}
}
Need Assistance With Custom Scrollbar I Built
I built a very simple scrollbar all on my own. I know there is lots of scrollbars in these formus but honestly wanted to see if I could make one by myself.
Well I did but I notice it's a bit skipy, not as smooth as others I've seen & was hoping for some insight.
This code resides directly on the dragger movieclip. The percent (this._y/195) I got from their being a possible 195 y position....not sure why, got it to finally work
I'd really appreciate some help.
Code:
onClipEvent(enterFrame){
percent = (this._y / 195);
_parent._parent.bioTxt.scroll = _parent._parent.bioTxt.maxscroll * percent;
this.onPress = function(){
startDrag(this,false,-18,-10,-18,195);
this.onMouseMove = function(){
updateAfterEvent();
}
this.onMouseMove();
}
this.onRelease = function(){
stopDrag();
}
}
Need Assistance With Custom Scrollbar I Built
I built a very simple scrollbar all on my own. I know there is lots of scrollbars in these formus but honestly wanted to see if I could make one by myself.
Well I did but I notice it's a bit skipy, not as smooth as others I've seen & was hoping for some insight.
This code resides directly on the dragger movieclip. The percent (this._y/195) I got from their being a possible 195 y position....not sure why, got it to finally work
I'd really appreciate some help.
Code:
onClipEvent(enterFrame){
percent = (this._y / 195);
_parent._parent.bioTxt.scroll = _parent._parent.bioTxt.maxscroll * percent;
this.onPress = function(){
startDrag(this,false,-18,-10,-18,195);
this.onMouseMove = function(){
updateAfterEvent();
}
this.onMouseMove();
}
this.onRelease = function(){
stopDrag();
}
}
Desperate Scrollbar Help Needed
Hi all, I've completed the 'Simple custom scrollbar' tutorial but I can't make it work horizontaly. I've changed all the '_x' & '_y' values around and the '_height' & '_width' values but the 'scrollface' component just won't behave. Anyone know of why this may be? I'll happily post my code & .swf if it'd help. I really need help with this, it's driving me nuts!
DESPERATE Scrollbar Problem
Ok I have posted this once and it never got resolved ... so here goes again I have a movie with a movie clip inside of it .. and inside that movie clip a scrollpane loads... now the problem is that the scrollpane loads with no scrollbars at all .. but if you click on the same button to lad the same on again .. it loads correctly ... take a look and hopefully someone can help me
www.digitalmpact.com/temp/beta
Scrollbar Style
Hi folks,
I'm using the uiscrollbar component (Flash 7) to scroll a bunch of text loaded dynamically into a text field, and want to change the default colors to make them more simple, only a plain color in back, one color in arrows and one color in trail.
Untill now, couldn't make this. Any clue?
Another way, could be to make a script to control the mc, but remember the dynamic text loaded... the thing I've made 'till now, moves the text on _y forever... it doesn't detect when the text has ended (and wish to make a scrollbar with simple colors and detects when the text ends).
Also, I want to make the scroller dissapear when the text fits the container.
How can I do all of this? Must be simple, but i'm stuck.
Bunch of thanks!
Cyber.
Scrollbar Style On A Window
hi... maybe you could help me..
i have seen some pages and on those pages have diferent styles like colors on the scrollbar(not a scrollbar on the flash file i mean on the window--).. see www.soulfly.com .. maybe could be more clear if you see it
thanx anyway
Add Scrollbar And Style Formatting - Help
Can anyone tell me what to add to the following actionscript inorder to achieve a vertical scrollbar and also apply style formatting on the output text.
Code:
var gig_xml:XML = new XML();
gig_xml.ignoreWhite = true;
gig_xml.load("gigs.xml");
gig_xml.onLoad = function(success) {
if (success) {
if (gig_xml.firstChild.hasChildNodes()) {
var years:Number = gig_xml.firstChild.childNodes.length;
for (i=0; i<years; i++) {
var year:Number = gig_xml.firstChild.childNodes[i].attributes.yrdate;
_root.createEmptyMovieClip(i+"_mc", _root.getNextHighestDepth());
_root[i+"_mc"].attachMovie("year_title", year+"_title", _root[i+"_mc"].getNextHighestDepth());
_root[i+"_mc"][year+"_title"].year_txt.text += " "+year;
if (i != 0) {
_root[i+"_mc"]._y = int(_root[i-1+"_mc"]._y+_root[i-1+"_mc"]._height-2);
}
var gigs:Number = gig_xml.firstChild.childNodes[i].childNodes.length;
for (n=0; n<gigs; n++) {
_root[i+"_mc"].attachMovie("row", "row_"+n, _root[i+"_mc"].getNextHighestDepth());
if (n == 0) {
_root[i+"_mc"].row_0._y = 15;
} else {
_root[i+"_mc"]["row_"+n]._y = _root[i+"_mc"]["row_"+[n-1]]._y+_root[i+"_mc"]["row_"+[n-1]]._height-2;
}
_root[i+"_mc"]["row_"+n].date_txt.text = gig_xml.firstChild.childNodes[i].childNodes[n].firstChild.firstChild.nodeValue;
_root[i+"_mc"]["row_"+n].venue_txt.text = gig_xml.firstChild.childNodes[i].childNodes[n].childNodes[1].firstChild.nodeValue;
_root[i+"_mc"]["row_"+n].area_txt.text = gig_xml.firstChild.childNodes[i].childNodes[n].childNodes[2].firstChild.nodeValue;
_root[i+"_mc"]["row_"+n].outfit_txt.text = gig_xml.firstChild.childNodes[i].childNodes[n].childNodes[3].firstChild.nodeValue;
_root[i+"_mc"]["row_"+n].instrument_txt.text = gig_xml.firstChild.childNodes[i].childNodes[n].childNodes[4].firstChild.nodeValue;
}
}
} else {
trace("No Gigs added");
}
}
};
Credit given to Neverrain for kindly coming up with the code for me.
The XML file where flash gets its data from is...
Code:
<?xml version="1.0"?>
<gigs_list>
<year yrdate="2004">
<gig>
<date>
1st Nov.
</date>
<venue>
The Dock
</venue>
<area>
Leeds
</area>
<outfit>
John Peters Quartet
</outfit>
<instrument>
Sax
</instrument>
</gig>
<gig>
<date>
30th Sept.
</date>
<venue>
Jonny's
</venue>
<area>
Sheffield
</area>
<outfit>
The Jazz Brothers
</outfit>
<instrument>
Sax
</instrument>
</gig>
<gig>
<date>
30th Sept.
</date>
<venue>
Pizza Express
</venue>
<area>
Sheffield
</area>
<outfit>
<![CDATA[DJ/Sax Duo]]>
</outfit>
<instrument>
Sax
</instrument>
</gig>
</year>
<year yrdate="2003">
<gig>
<date>
16th June
</date>
<venue>
Rock Cafe
</venue>
<area>
Manchester
</area>
<outfit>
<![CDATA[DJ/Sax Duo]]>
</outfit>
<instrument>
Keyboard
</instrument>
</gig>
</year>
</gigs_list>
Hope someone can help!
Many thanks
Tony
Changing The Style Of The ScrollBar Component
Hi
I would like to emulate the style of the scrollbars used on this site....
http://www.fontsforflash.com
Basically so they look like the scrollbars used in IE. Could anyone point me in the right direction.
TIA
Z
Style Scrollbar In Tree Component?
can anyone help me style the scrollbar in the tree component?
can it be done/ I havent been able to find anything on it.
and if not.. do I have to 'skin' it?
anyone wanna link me to ow to skin the SCROLLBAR in the tree component?
does it involve editing the halo theme or something? I read a bit or two on it.. any help would be appreciated.
Change Style Of UI-Component Scrollbar
Hi Folks,
could anybody please explain to me how to change the properties
of the UI-Component "Scrollbar" in MX2004? (like scrolltrack color, arrow color, ...)
I mean in MX it was pretty easy using "FStyleFormat" ect. but in MX2004???
Thanks in advance for your effort!
Listbox Component Scrollbar Style
I've figured out how to stylize every aspect of the list, or listbox component except for the scrollbar part of it. The closest I've come is to open the Theme folder, located at: MacromediaFlash 8enConfigurationComponentFLA, and directly edit the movie clips that make up the scrollbar. Yet, the changes still do not reflect.
Is there another step after changing the elements that I'm overlooking?
Change Style Of UI-Component Scrollbar
Hi Folks,
could anybody please explain to me how to change the properties
of the UI-Component "Scrollbar" in MX2004? (like scrolltrack color, arrow color, ...)
I mean in MX it was pretty easy using "FStyleFormat" ect. but in MX2004???
Thanks in advance for your effort!
Cascading Style Sheets Scrollbar Size
Hello. I was wondering if you can set the size of the scrollbar using Cascading Style Sheets. If so, does anyone know the code for it? Thanks in advance, Leo.
How To Style The TextArea's ScrollBar Sub-component To Accept A Halo Theme?
Hello, everyone.
Could you please let me know if it is possible at all to style the ScrollBar sub-component of the TextArea component so that it too displays the haloOrange theme (in my case) when rolled over (i.e. the gripper, the scroll face and scroll track should also be coloured, and not only the up- and down arrow areas). I tried everything I knew but to no avail.
There is an example to be seen on the Macromedia (now Adobe) exchange. Merely roll over or press the scrollbar on the right for it to be displayed.
Thank you very much.
"scrollbar OS Style" .fla
Hi guys,
I've just downloaded the "scrollbar OS style" .fla from ultrashock.com. (I'm asking this here coz no body is helping me on there) Its a slick technique in which the "scrollbar" changes height according to the length of the text thats loads in.
Its a Flash 5 AS1 file, but when I change settings to Flash 8 AS2, it doesn't work properly. When you drag the scrollbar the texts doesn't move.
Any ideas on how to make it work in flash 8? I really need it to work!
Thanks
How Do You Use A Sprite Sheet?
I need to use a sprite sheet in one of my movies and I was wondering how you can get the sprites into your movie. Anyhelp would be greatly accepted.
Spread The Sheet Around?
Hello,
I was hoping someone could point me in the right direction to duplicate movieclips, based on information from a spreadsheet.
Basically, I want to duplicate the same movieclip over and over, but have each one get it's position, and some text information from a long list in an external excel file, or a .txt
any help would be greatly appreciated.
|