MX: Textfield In Scrol Pane
Hi, I have a text field in a scrol pane.
It is a xml news list.
The problem I am having is that I want the pane to fill up as the news comes in.
At the moment I have so set the text field to be a certain size and it gets populated.
What I want to do is have the text field push down, depending on the amount of content - making the scrol bar appear if the text goes down longer than the size of the scrol pane.
Can you help please/
M@)
FlashKit > Flash Help > Flash ActionScript
Posted on: 09-24-2003, 07:35 AM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
MX: Textfield In Scrol Pane
Hi, I have a text field in a scrol pane.
It is a xml news list.
The problem I am having is that I want the pane to fill up as the news comes in.
At the moment I have so set the text field to be a certain size and it gets populated.
What I want to do is have the text field push down, depending on the amount of content - making the scrol bar appear if the text goes down longer than the size of the scrol pane.
Can you help please/
M@)
Scrol
hey guys,
help me plz i want to scrol text up and down in flash 4
help
Scrol External Txt Problem
Hi people,
Someone can help on my probl.?
It's like this.I made a scroller loading in a external txt file.When
I place the scroller inside an mc and place on stage it works.Only because of the structure of my site.This mc should be placed inside another mc.This mc is loaded by a button from the root with an attachmovie function.Now the scroller and txt file is loaded but the buttons don't scrol the text anymore
Can someone have a look at this file and solve the probl.
You'll see mc>test is where I placed my scroller in and mc>test2
is where I placed mc test in.
Really appreciate this
Big thx in advance;
Modulater
Scrol External Txt File Problem
Hi there,
I wanne make a scroller that loads in external txt file so its easy to update.Problem is the way my site is setup it doesn't seem to load the txt.
My scroller is placed inside an mc.This mc is placed inside another mc.The mc is loaded by a holder(attachmovie function).
The only way I can see it working is when the scroller(mc) is placed on the main timeline.How can I make the scroller work
inside an mc placed inside another mc wish is loaded by a holder.
Hope someone can help me out because I'm really stuck.
Big thx in advance,
Grtz,
Modulater
Scrol External Txt File Probl
Hi there,
I seem to have a probl with my scroller.The txt file get's loaded only the scrollbuttons don't seem to work.
Can someone have a look at this file.(see below)
the scroller is placed inside a mc(test).This mc is placed inside another mc(test2).On the scene you'll see I attached test2 by a holder.(attachmovie function).The way it's set up all has to do with the site I'm trying to make at the moment.
You'll also see if you place test2 on stage it all works only the way I want it loaded from the button doesn't seem to work.Hope someone can help out because I'm really stuck at this.
A thousand thx in advance.
Grtz,
Modulater
Flash Intro With No Menus, No Status,no Scrol, Bar Etc...nothing
i want to open my flash intro with no menus, no status,no scrol, bar etc...nothing but the intro ....no this is where it gets ???
when the index.html is completed it is directed to my home page where i want the end user to have his menu and scroll and status etc.. back in hisher control ???
1. So we want no frames in intro
2. and we want all control back to end user.
Please help
Text Scroller Download Can You Make Smoother Scrol
If I give you this text scroller download can you make it scroll smoother? Thats the challenge I havent seen one roll smoothe yet. Can you apply some code to make it scrol in small pixel amounts and speed as well? So that it rolls up or down the screen the same as movie words scrol on the TV screen?
http://www.geocities.com/jaffasoft2/texscroller.fla
Vertical Scrol Bar Controling Separate Text Area
Hi, in my flash site I have a text area controled by a scrolbar.
But, I want to use the new style scrol bars.
There does not seam to be an option of having a separate vertical scrol bar in the new style and associating it with a text area...
M@)
Loading Text & JPG Nito TextField Makes Textfield White
Hi guys !
Does anyone know, why a textfield may become white when loading text + JPGs into it? Sometimes it happens to me, sometimes not. I haven't figured out why.
If you have any clues... I'd be really thankful
The AS I'm using:
_target.container.t.html = true
_target.container.t.condenseWhite = true
_target.container.t.autoSize = "left";
_target.container.t.htmlText = _data.texto
The String ( &HTML ):
"Text lorem ipsum bla bla ..... <img style='WIDTH: 154px; HEIGHT: 59px' height='298' width='856' alt='' src='http://www.spacilong.com/arq/img/AlcatelLucent_Hor_2col_sm.jpg' />
Textfield Woes, How To Anti-Alias A Dynamic Textfield?
this is driving me nuts, even if i have it marked so that my dynamic textfield is anti aliased, it still looks as if its text is aliased. And if i simply make that textfield Static, the text all of a sudden looks amazingly crisp and anti aliased.
How can i fix this?! I am attempting to load xml data into my text fields but its wasted if the text looks like crap..
So can anyone enlighten me on how to do this? i tried searching Flashs help, all i came out with was "Textfield._quality" but i do not understand what the description means exactly.. And i tried coding my textfield to _quality = "BEST";, with no avail.
Please help, i'v seen other websites with what i am sure is dynamically loaded fields, and smooth looking text... so what gives?
Thanks!
[textfield] How To Check If Input Text Is More Than Textfield Height?
Hi guys, Is there a way to check if the text that has been input into the textfield is more than the height of the textfield.
I have set the scrollbar hidden and it will become unhidden once the text is greater the the textfield height.
I did try to count the input text and set the visiblity of the scrollbar against that count. Unfortunatly this is unreliable.
Anyone got a better idea?
Cheers
Paul
[textfield] How To Check If Input Text Is More Than Textfield Height?
Hi guys, Is there a way to check if the text that has been input into the textfield is more than the height of the textfield.
I have set the scrollbar hidden and it will become unhidden once the text is greater the the textfield height.
I did try to count the input text and set the visiblity of the scrollbar against that count. Unfortunatly this is unreliable.
Anyone got a better idea?
Cheers
Paul
Link In Dynamic Textfield To Jump To Section Of Same Textfield
Howdy all,
I know you've all seen this before - you are on a website and you click a link and you stay on the same page but jump down to a different section of the page. Like an FAQ page or something where all the questions are listed above but you click on one and jumps down to the answer below.
Is it possible to do this in a dynamic (scrollable) textfield with externally loaded text files in Flash? I don't have DW and I know that there are limited html tags available but if anyone knows an easy way to do this please let me know!
thanks!
Link In Dynamic Textfield To Jump To Section Of Same Textfield
Howdy all,
I know you've all seen this before - you are on a website and you click a link and you stay on the same page but jump down to a different section of the page. Like an FAQ page or something where all the questions are listed above but you click on one and jumps down to the answer below.
Is it possible to do this in a dynamic (scrollable) textfield with externally loaded text files in Flash? I don't have DW and I know that there are limited html tags available but if anyone knows an easy way to do this please let me know!
thanks!
Masking Dynamic Textfield When The Textfield Has A Stylesheet
ok... i have a movieClip containing dynamic textfields, which i'm trying to mask. the textfields are linked to a stylesheet. i understand that, for the masking to work, i have to embed the font. so i've placed the font in the library, given it a linkage name and set embedFonts = true for the dynamic textfields.
what do i do next? and does the fact that i'm embeding the font override the effect of the stylesheet?
(sorry if i sound confused over this. that's because i am.)
thanks in advance for any help
[F8] Input Textfield Inside A Dynamic Textfield?
Hi,
Is it possible to place an input textfield inside a dynamic textfield?
I'd like to replace the variable, this.nTotal, below with an input textfield.
Is there some way to do this?
this.txtComplete.text = "There are " + this.nTotal + " pages in " + this.sGirlName + "'s book.";
Thanks!
Textfield In ScrollPane > Textfield Only Accessible With Clicking Twice
hi!
i have a scrollPane on the stage which contains an editable textfield.
unfortunately i can only access the textfield in the pane when i click on it twice. it seems that the first click goes for the activation of the pane and then comes the textfield.
does anybody have an idea how to solve that problem?
// Text Field
var myTextField:TextField = new TextField();
myTextField.text = "Please insert text";
myTextField.selectable = true;
myTextField.type = TextFieldType.INPUT ;
// ScrollPane
var myScrollPane:ScrollPane = new ScrollPane();
myScrollPane.source = myTextField;
addChild(myScrollPane);
Masking Dynamic Textfield When The Textfield Has A Stylesheet
ok... i have a movieClip containing dynamic textfields, which i'm trying to mask. the textfields are linked to a stylesheet. i understand that, for the masking to work, i have to embed the font. so i've placed the font in the library, given it a linkage name and set embedFonts = true for the dynamic textfields.
what do i do next? and does the fact that i'm embeding the font override the effect of the stylesheet?
(sorry if i sound confused over this. that's because i am.)
thanks in advance for any help
||| O ^ | + O ¬
Masking Dynamic Textfield When The Textfield Has A Stylesheet
ok... i have a movieClip containing dynamic textfields, which i'm trying to mask. the textfields are linked to a stylesheet. i understand that, for the masking to work, i have to embed the font. so i've placed the font in the library, given it a linkage name and set embedFonts = true for the dynamic textfields.
what do i do next? and does the fact that i'm embeding the font override the effect of the stylesheet?
(sorry if i sound confused over this. that's because i am.)
thanks in advance for any help
||| O ^ | + O ¬
Return TextField From Extended TextField Class
Hi
I'm trying to return a TextField from a class and then display it on stage... but I'm having problem to get it to show up on stage?
Help appreciated!
TFCreator.as:
Code:
import flash.display.*;
import flash.text.*;
public class TFCreator extends TextField
{
// TextField
private var tf:TextField;
// Properties
private var txt:String;
private var instancename:String;
private var color:Number;
private var autosize:String;
private var multilinee:Boolean;
private var wordwrap:Boolean;
// Default TextFormat
private var dfrmt:TextFormat;
private var dfrmt_font:String;
private var dfrmt_color:Number;
private var dfrmt_size:Number;
// External TextFormat
private var efrmt:TextFormat;
public function TFCreator(txt:String = "Text", instancename:String = "Instance", color:Number = 0x333333, autosize:String = "LEFT", multilinee:Boolean = false, wordwrap:Boolean = false, dfrmt_font:String = "Arial", dfrmt_size:Number = 11, dfrmt_color:Number = 0x333333):void
{
// Init Properties
this.txt = txt;
this.instancename = instancename;
this.color = color;
this.autosize = autosize;
this.multilinee = multilinee;
this.wordwrap = wordwrap;
// Init Default Textformat
this.dfrmt_font = dfrmt_font;
this.dfrmt_size = dfrmt_size;
this.dfrmt_color = dfrmt_color;
// Create TextField
createTextfield();
}
private function createTextfield():TextField
{
// New TextField
this.tf = new TextField();
// Set Default TextFormat
setDefaultTextformat();
// Set Properties
this.tf.text = this.txt;
this.tf.name = this.instancename;
this.tf.textColor = this.color;
setAutosize(this.autosize);
setMultiline(this.multilinee);
setWordwrap(this.wordwrap);
trace("Textfield created");
// Add TextField to Displaylist
//addChild(this.tf);
return this.tf;
}
// Getters & Setters......
}
}
and test on timeline:
Code:
import TFCreator;
var ttxt:String = "Halloooo?";
var t1:TFCreator = new TFCreator(ttxt,"inst1",0x666666,"LEFT",false,false,"Arial",13,0x333333);
addChild(t1);
t1.x = 200;
t1.y = 300;
//t1.selectable = false;
t1.setText("Baaaaa");
trace(t1.getText());
//t1.setAutosize("CENTER");
trace(t1.getAutosize());
trace(t1);
getChildByName("inst1");
It seems to work ok it just wont show up on stage.
Masking Dynamic Textfield When The Textfield Has A Stylesheet
ok... i have a movieClip containing dynamic textfields, which i'm trying to mask. the textfields are linked to a stylesheet. i understand that, for the masking to work, i have to embed the font. so i've placed the font in the library, given it a linkage name and set embedFonts = true for the dynamic textfields.
what do i do next? and does the fact that i'm embeding the font override the effect of the stylesheet?
(sorry if i sound confused over this. that's because i am.)
thanks in advance for any help
||| O ^ | + O ¬
TextField: Can We Embed HTML In Textfield?
Hello all,
I know that textfield can embed HTML like:
Code:
createTextField("noteText", 1, 100, 100, 300, 30);
noteText.type = "dynamic";
noteText.wordWrap = true;
noteText.border = true;
noteText.html = true;
noteText.htmlText = '<font color="#FF0000">This is HTML</font>';
I wonder if we embed button, HTML input field int Flash textfield?
Code:
noteText.htmlText = '<input name="txtTest" type="text">';
Thanks,
Create Textfield With New Textfield Variable?
flash MX 2004 professional
--------------------------
anyone know if it's possible to create a dynamic textfield AND specify not only an instance name but also a textfield variable?
thx
eve
Cant Get Textfield Height From AutoSized Textfield
Afternoon guys.
I am creating a new nwe3s blogger. Instead of relying on a scrollbar to scroll the news story i thought i would use
code: textField.autosize="left"
This works fine...
At present i am loading x amount of news into flash at any one time. I am placing the news story underneath each other using
code:
holder.attachMovie ("newsMc", "news" + i, i);
holder['news' + i]._y = nextY;
nextY += Math.ceil (holder['news' + i]._height) + 2;
this is fine...
But when i use
code: textField.autosize="left"
nextY retains it's orginal height even though some of the news stories have made for higher textfields.
I thought i could pull the height from the previuosly created news holder
code:
if (i > 0) {
j = i - 1;
trace (j + " text height=" + holder['news' + j].newsStory._height);
if (holder['news' + j].newsStory._height > 184) {
nextY += Math.ceil (holder['news' + j]._height) + 2;
} else {
nextY += Math.ceil (holder['news' + j]._height) + 2;
trace ("nextY=" + nextY);
}
But this still returns the intial height
Here is the complete code
code:
for (i = 0; i < this.newsCount; i++) {
holder.attachMovie ("newsMc", "news" + i, i);
holder['news' + i]._y = nextY;
holder['news' + i].newsTitle.text = this['news' + i + 'newsTitle'];
holder['news' + i].newsDate.text = "Submitted: " + this['news' + i + 'newsDate'];
holder['news' + i].newsStory.htmlText = this['news' + i + 'newsStory'];
nextY += Math.ceil (holder['news' + i]._height) + 2;
if (i > 0) {
j = i - 1;
trace (j + " text height=" + holder['news' + j].newsStory._height);
if (holder['news' + j].newsStory._height > 184) {
nextY += Math.ceil (holder['news' + j]._height) + 2;
} else {
nextY += Math.ceil (holder['news' + j]._height) + 2;
trace ("nextY=" + nextY);
}
}
unloadMovie (dtLoader);
viser._visible = 0;
}
Cant Get Textfield Height From AutoSized Textfield
Afternoon guys.
I am creating a new nwe3s blogger. Instead of relying on a scrollbar to scroll the news story i thought i would use
ActionScript Code:
textField.autosize="left"
This works fine...
At present i am loading x amount of news into flash at any one time. I am placing the news story underneath each other using
ActionScript Code:
holder.attachMovie ("newsMc", "news" + i, i);
holder['news' + i]._y = nextY;
nextY += Math.ceil (holder['news' + i]._height) + 2;
this is fine...
But when i use
ActionScript Code:
textField.autosize="left"
nextY retains it's orginal height even though some of the news stories have made for higher textfields.
I thought i could pull the height from the previuosly created news holder
ActionScript Code:
if (i > 0) {
j = i - 1;
trace (j + " text height=" + holder['news' + j].newsStory._height);
if (holder['news' + j].newsStory._height > 184) {
nextY += Math.ceil (holder['news' + j]._height) + 2;
} else {
nextY += Math.ceil (holder['news' + j]._height) + 2;
trace ("nextY=" + nextY);
}
But this still returns the intial height
Here is the complete code
ActionScript Code:
for (i = 0; i < this.newsCount; i++) {
holder.attachMovie ("newsMc", "news" + i, i);
holder['news' + i]._y = nextY;
holder['news' + i].newsTitle.text = this['news' + i + 'newsTitle'];
holder['news' + i].newsDate.text = "Submitted: " + this['news' + i + 'newsDate'];
holder['news' + i].newsStory.htmlText = this['news' + i + 'newsStory'];
nextY += Math.ceil (holder['news' + i]._height) + 2;
if (i > 0) {
j = i - 1;
trace (j + " text height=" + holder['news' + j].newsStory._height);
if (holder['news' + j].newsStory._height > 184) {
nextY += Math.ceil (holder['news' + j]._height) + 2;
} else {
nextY += Math.ceil (holder['news' + j]._height) + 2;
trace ("nextY=" + nextY);
}
}
unloadMovie (dtLoader);
viser._visible = 0;
}
INPUT TextField Within An HTML TextField Via <img>
I'm trying to extend an HTML TextField to include an INPUT TextField control as an <img> tag. This I can do. The problem is that mouse and keyboard events are not being seen by the inner TextField. I created a test case to demonstrate the situation. My guess is that <img> tags are treated like AS2 events and because the outer TextField is trapping text events, they are not propagated to the inner TextField. Is there anyway around this problem? Mouse events to other DisplayObjects work fine. I'm using Flash CS3.
The test case contains two classes. TextImgTest is the document class for TextImgTest.fla. TestImg implements the <img> loaded by TestImgTest. To run this. Just create an empty TextImgTest.fla and set the document class to TextImgTest. Then publish and run.
Attach Code
package
{
import flash.display.MovieClip;
import flash.events.TimerEvent;
import flash.text.TextFieldAutoSize;
import flash.text.TextField;
import flash.text.StyleSheet;
import flash.utils.Timer;
import TestImg;
public class TextImgTest extends MovieClip
{
public var textField: TextField;
public var styleSheet: StyleSheet;
public var img: TestImg;
public var timer: Timer;
public function TextImgTest(): void
{
// render directly
img = new TestImg();
addChild(img);
// render within a TextField as an <img> tag.
styleSheet = new StyleSheet();
styleSheet.setStyle("p", {fontFamily:"sans-serif", fontSize:"10"});
textField = new TextField();
textField.styleSheet = styleSheet;
textField.multiline = true;
textField.autoSize = TextFieldAutoSize.LEFT;
textField.wordWrap = true;
textField.border = true;
textField.borderColor = 0x0000FF;
textField.background = true;
textField.backgroundColor = 0xFFCCFF;
textField.width = 190;
textField.x = 5;
textField.y = 120;
textField.htmlText = "<p>TextField with an <img src='TestMsg' id='rmk'> tag:<br><img src='TestImg' id='rmk'></p>"
addChild(textField);
textField.selectable = true;
textField.mouseEnabled = true;
// Give it a little time to render then get a reference to it.
timer = new Timer(3000, 1);
timer.addEventListener(TimerEvent.TIMER_COMPLETE, onTimeout);
timer.start();
}
public function onTimeout(evt: TimerEvent): void
{
var freeText: TestImg = textField.getImageReference("rmk") as TestImg;
freeText.tField.mouseEnabled = true;
freeText.tField.selectable = true;
freeText.tField.appendText(" Got ImageReference for 'rmk'.");
}
}
}
===================================================
package
{
import flash.display.MovieClip;
import flash.display.SimpleButton;
import flash.display.Sprite;
import flash.text.TextFieldAutoSize;
import flash.text.TextFormat;
import flash.text.TextFormatAlign;
import flash.text.TextField;
import flash.text.TextFieldType;
public class TestImg extends MovieClip
{
static public const MSG_WIDTH: int = 170;
static public const MSG_HEIGHT: int = 100;
static public const MSG_MARGIN: int = 8;
public var tFmt: TextFormat;
public var tField: TextField;
public var sBut: SimpleButton;
public function TestImg(): void
{
super();
this.tabEnabled = false;
this.mouseEnabled = false;
// Show this MovieClip
with (this.graphics)
{
clear();
beginFill(0x9999FF);
drawRect(0, 0, MSG_WIDTH, MSG_HEIGHT);
endFill();
}
// Show the INPUT TextField within it.
tFmt = new TextFormat("_sans", 10, 0x000000, true, false,
false, null, null,
TextFormatAlign.LEFT);
tField = new TextField();
tField.type = TextFieldType.INPUT;
tField.height = MSG_HEIGHT - 2*MSG_MARGIN - 16;
tField.defaultTextFormat = tFmt;
tField.multiline = true;
tField.wordWrap = true;
tField.width = MSG_WIDTH - 2*MSG_MARGIN;
tField.border = true;
tField.borderColor = 0xFF0000;
tField.background = true;
tField.backgroundColor = 0xFFEECC;
tField.x = MSG_MARGIN;
tField.y = MSG_MARGIN;
tField.text = "TestImg MovieClip containing an INPUT TextField.";
this.addChild(tField);
tField.selectable = true;
tField.mouseEnabled = true;
// Show the button within this MovieClip
var butGraphics1: Sprite = new Sprite();
with (butGraphics1.graphics)
{
lineStyle(1, 0x000000);
beginFill(0xFF0000);
drawRect(0, 0, 32, 16);
endFill();
}
var butGraphics2: Sprite = new Sprite();
with (butGraphics2.graphics)
{
lineStyle(1, 0x000000);
beginFill(0x00FF00);
drawRect(0, 0, 32, 16);
endFill();
}
sBut = new SimpleButton();
sBut.upState = butGraphics1;
sBut.overState = butGraphics2;
sBut.downState = butGraphics1;
sBut.hitTestState = butGraphics2;
sBut.x = MSG_MARGIN;
sBut.y = MSG_HEIGHT - MSG_MARGIN - 16;
this.addChild(sBut);
}
}
}
[ac-mx-04]duplicate A Textfield OR Doing A Textfield With Outlines.
Either I want code to duplicate a textfiled OR...
To do a textfield that that font outlines on "§!"#¤%&/()=?`@£${[]}¨^~'*-_.:,;<>|qwertyuiopåasdfg hjklöäzxcvbnmQWERTYUIOPÅASDFGHJKLÖÄZXCVBNM01234567 89"
And some others settings:
font: fixed_v01
color: white
align: left
size: 8
selectable: NO
render as html: yes
Can someone help me with this?
Cant Get Textfield Height From AutoSized Textfield
Afternoon guys.
I am creating a new nwe3s blogger. Instead of relying on a scrollbar to scroll the news story i thought i would use
ActionScript Code:
textField.autosize="left"
This works fine...
At present i am loading x amount of news into flash at any one time. I am placing the news story underneath each other using
ActionScript Code:
</p>
<p>holder.attachMovie ("newsMc", "news" + i, i);</p>
<p>holder['news' + i]._y = nextY;</p>
<p>nextY += Math.ceil (holder['news' + i]._height) + 2;</p>
<p>
this is fine...
But when i use
ActionScript Code:
textField.autosize="left"
nextY retains it's orginal height even though some of the news stories have made for higher textfields.
I thought i could pull the height from the previuosly created news holder
ActionScript Code:
</p>
<p>if (i > 0) {</p>
<p>j = i - 1;</p>
<p>trace (j + " text height=" + holder['news' + j].newsStory._height);</p>
<p>if (holder['news' + j].newsStory._height > 184) {</p>
<p>nextY += Math.ceil (holder['news' + j]._height) + 2;</p>
<p>} else {</p>
<p>nextY += Math.ceil (holder['news' + j]._height) + 2;</p>
<p>trace ("nextY=" + nextY);</p>
<p>}</p>
<p>
But this still returns the intial height
Here is the complete code
ActionScript Code:
</p>
<p>for (i = 0; i < this.newsCount; i++) {</p>
<p> holder.attachMovie ("newsMc", "news" + i, i);</p>
<p> holder['news' + i]._y = nextY;</p>
<p> holder['news' + i].newsTitle.text = this['news' + i + 'newsTitle'];</p>
<p> holder['news' + i].newsDate.text = "Submitted: " + this['news' + i + 'newsDate'];</p>
<p> holder['news' + i].newsStory.htmlText = this['news' + i + 'newsStory'];</p>
<p> nextY += Math.ceil (holder['news' + i]._height) + 2;</p>
<p> if (i > 0) {</p>
<p> j = i - 1;</p>
<p> trace (j + " text height=" + holder['news' + j].newsStory._height);</p>
<p> if (holder['news' + j].newsStory._height > 184) {</p>
<p> nextY += Math.ceil (holder['news' + j]._height) + 2;</p>
<p> } else {</p>
<p> nextY += Math.ceil (holder['news' + j]._height) + 2;</p>
<p> trace ("nextY=" + nextY);</p>
<p> }</p>
<p> }</p>
<p> unloadMovie (dtLoader);</p>
<p> viser._visible = 0;</p>
<p>}</p>
<p>
[ac-mx-04]duplicate A Textfield OR Doing A Textfield With Outlines.
Either I want code to duplicate a textfiled OR...
To do a textfield that that font outlines on "§!"#¤%&/()=?`@£${[]}¨^~'*-_.:,;<>|qwertyuiopåasdfg hjklöäzxcvbnmQWERTYUIOPÅASDFGHJKLÖÄZXCVBNM01234567 89"
And some others settings:
font: fixed_v01
color: white
align: left
size: 8
selectable: NO
render as html: yes
Can someone help me with this?
Cant Get Textfield Height From AutoSized Textfield
Afternoon guys.
I am creating a new nwe3s blogger. Instead of relying on a scrollbar to scroll the news story i thought i would use
ActionScript Code:
textField.autosize="left"
This works fine...
At present i am loading x amount of news into flash at any one time. I am placing the news story underneath each other using
ActionScript Code:
holder.attachMovie ("newsMc", "news" + i, i);
holder['news' + i]._y = nextY;
nextY += Math.ceil (holder['news' + i]._height) + 2;
this is fine...
But when i use
ActionScript Code:
textField.autosize="left"
nextY retains it's orginal height even though some of the news stories have made for higher textfields.
I thought i could pull the height from the previuosly created news holder
ActionScript Code:
if (i > 0) {
j = i - 1;
trace (j + " text height=" + holder['news' + j].newsStory._height);
if (holder['news' + j].newsStory._height > 184) {
nextY += Math.ceil (holder['news' + j]._height) + 2;
} else {
nextY += Math.ceil (holder['news' + j]._height) + 2;
trace ("nextY=" + nextY);
}
But this still returns the intial height
Here is the complete code
ActionScript Code:
for (i = 0; i < this.newsCount; i++) {
holder.attachMovie ("newsMc", "news" + i, i);
holder['news' + i]._y = nextY;
holder['news' + i].newsTitle.text = this['news' + i + 'newsTitle'];
holder['news' + i].newsDate.text = "Submitted: " + this['news' + i + 'newsDate'];
holder['news' + i].newsStory.htmlText = this['news' + i + 'newsStory'];
nextY += Math.ceil (holder['news' + i]._height) + 2;
if (i > 0) {
j = i - 1;
trace (j + " text height=" + holder['news' + j].newsStory._height);
if (holder['news' + j].newsStory._height > 184) {
nextY += Math.ceil (holder['news' + j]._height) + 2;
} else {
nextY += Math.ceil (holder['news' + j]._height) + 2;
trace ("nextY=" + nextY);
}
}
unloadMovie (dtLoader);
viser._visible = 0;
}
Help With This Pane Im Getting?
I am a beginner in flash and truly appreciate any assistance. I will tell you of this pane i m getting....
I have a combo box component with an action attached to it on the first frame on the top layer (i have 3 layers):
//Example menu loads external movie into content movie
menuCombo1.addItem("", "")
menuCombo1.addItem("base", "base_movie.swf")
menuCombo1.addItem("buy", "buyswf")
menuCombo1.addItem("see", "see.swf")
menuCombo1.addItem("view", "view.swf")
menuJump = new Object()
menuJump.change = function(){
_root.contents.loadMovie(menuCombo1.value)
}
menuCombo1.addEventListener("change", menuJump)
//
I have an empty movie clip with an instance name "contents" on the layer below the combo where the combo loads external movie into. And the actionscript above works ok if tested.
Now on the lowest layer I have a scrollPane component with an instance name "body". here's my real problem. I wish to load the external movie from the combo box into the scrollPane called body.
Can anybody please tell me how i can change the actionscript so to load the external swf from the combo box into the scrollpane instead of loading into the empty movie clip. Thanks,
Scroll Pane
Does anyone know how to use the 'scroll pane' component? I thought it was like the scroll bar, where you can drag it to the text field and it adjusts itself to the field. I read the scroll pane was drag and drop, but nothing I drag to it works. Am I doing something wrong?
yeffer
Scroll Pane
Hi all,
Is there any way to scroll down a scroll pane with a button? Or at least to jump for example 50px down within the Scroll pane.
Thanks!
Natsurfer
Scroll Pane
has anyone got the code to duplicate a movie clip within a scroll pane please?
Scroll Pane
I am going to be creating a web site and I need a scroll pane on it. How would I go about doing an easy scroll pane that would match (so I can change colors). I just got flash and I dont understand the fancy actionscript talk, so the simplist chat would be the best for me. Thanks in advance !
Scroll Pane Help Please
i recently posted over the weekend about trying to use scroll bars for text and images and the moderator estudioworks was kind enough to point me in the right way by telling me to use scroll pane.
now the problem i have is:
a: text and images are exceeding the scroll bar boundries. by this i mean, say i have 600x600 stage and the scroll bars are defined at 300x300, the text and images start in the box but as soon as you start scrolling down, the text go beyond the scroll bar boundries (as opposed to "disappearing" and go over the background graphics.
b: i am also trying to customize the skins for the scroll pane which some pretty bad results. is there a tutorial out there someone can point me to?
c: lastly i'm also trying to get rid of the default white background the scroll pane uses, i'm thinking this is also a skin, but i can't seem to find it.
thanks in advance
lawrence
Scroll Pane
on a scrollPane.loadScrollContent where the image size is bigger than the scroll pane how do you set the scroll bars. not sure what's going on because even though it loads the jpg when i debug it the loadContent is undefined as are content hieght and witdth.
Code:
if (imagepath != "No Image Found For This Record" or undefined) {
this.attachMovie("FScrollPaneSymbol", "iBar", 10);
this.iBar._x = 575;
this.iBar._y = 0;
this.iBar.setSize(400, 250);
this.iBar.loadScrollContent(imagepath);
this.iBar.refreshPane();
}
any assistance is appreciated.
Pane In The Arse...
if i do a scrollpane.loadScrollContent(url) and point to a local object it resizes and handles things perfectly fine. however, if i point the url to a full path (ie http://otherserver.com/images/theimage.jpg) it will load the image so that i can see it but the scroll pane does not function. i tried with the regular scroll pane and with the draggable scroll pane to the same result. with the draggable scrollpane you actually get the bounding box and everything. you can even drag the image around from the drag tab on the scroll pane. but you can't scroll the image. in fact the image extends beyond the bounding box. is this a glitch? is there a fix?
Scroll Pane Please Help
Hi,
First I create an mc that has basically a bunch of Thumbnails, which I attach from the library. Every Thumbnails has a text field associated to it. All of it get's created properly, but as soon as I set it to to scrollPane using setscrollcontent, The Text is there but the Thumbnail(attached .gif from the library is not visible.
Any Idea why? Is this not possible?
Thanks
MX Scroll Pane
Hi all,
Ever have one of those days where your head is just numb? Today is such a day.
For the life of me I can't do this-
dynamically load a jpg into a movie clip
dynamically Load this movie clip into the scrollpane
the idea is to create a slideshow with a scrollpane down the bottom with thumbnails that have been dynamically loaded from a folder into the scrollpane, then once you click on a thumbnail a large jpg will dynamically load into a movieclip on the stage.
I just can't seem to get my head around it today.
thanks in advance....
SWF In Scroll Pane
Hello All,
Hope somebody has an idea of how to fix this. I have the scroll pane component that has a SWF loaded into it when it loads. The SWF in the scroll pane has multiple frame labels on it's timeline.
I am trying to tell the SWF in the scroll pane to gotoAndStop() on a frame label that is pulled from an array.
Code sample:
PHP Code:
level0.content_sp.loadTemp.gotoAndStop(curPage_array[0]);
For some reason it will not reference it in any way.
Any ideas?
Any help is greatly appreciated.
Thanks,
Brian
Scroll Pane
i cant figure out how to get good text in a text pane, how can i do that with the scroll pane component?
Joe
Scroll Pane Help
hey all, i have still been trying btu am not sure how to get the scroll pane to work on flash mx 2004. how do i do that?
Joe
Scroll Pane Help?
Hey. well, i am having some trouble. I am making a site in dreamweaver, and trying to use flasha s well, and i want to ahve a spot on the front page where i can post news and updates which are relative to my site. i am also trying to make my site so that you will never have to use the scroll bar to the far right in explorer, but only a flash scroll bar which will alwasy be in the middle ofa page, so that i an have every page looking basically the same except for the content in that particular scrollpane.
so, my problem i this. i can mke a 700 px X 350 px scroll pane, by dragging it in from the components list and resizing and whatnot, but cannot get the scroll buttons on it, and have no idea how to add content further down the scroll pane, that you will ahve to scroll down to to see it... i think that makes sense. can someone help me out?
Scroll Pane Help?
Hey. well, i am having some trouble. I am making a site in dreamweaver, and trying to use flasha s well, and i want to ahve a spot on the front page where i can post news and updates which are relative to my site. i am also trying to make my site so that you will never have to use the scroll bar to the far right in explorer, but only a flash scroll bar which will alwasy be in the middle ofa page, so that i an have every page looking basically the same except for the content in that particular scrollpane.
so, my problem i this. i can mke a 700 px X 350 px scroll pane, by dragging it in from the components list and resizing and whatnot, but cannot get the scroll buttons on it, and have no idea how to add content further down the scroll pane, that you will ahve to scroll down to to see it... i think that makes sense. can someone help me out?
Scroll Pane
Hi there, im trying to use the Scroll Pane UI component in flash MX to make a movie clip scrollable. Thing its the first time i have ttried this and the tutorials in flash were useless. I drag a pane onto the frame but dont know how to get it to display my movie clip inside. Can anyone help?
Thanks, ste.
|