Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash




Flash/html Text Scroller?



Would someone be willing to assist me with a flash text scroller that can display html content?

Ashley



Ultrashock Forums > Flash > Flash Newbie
Posted on: 2003-03-25


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

Html In A Text Scroller
hello,

im trying to externally load text into a text scroller.

the problem comes up when html code is included in the .txt file

ive used this tutorial to build it
http://www.flashkit.com/tutorials/In...-640/index.php

i know that you have to change some of the html code to make in compatible with flash,
but im not sure what to change. (the tutorial is a bit vague)

could anyone help me with this problem?
thanks,
jonny

Dynamic Scroller With Html Text
Hi,



I have got the tutorial regards the html text with dynamic scroller. And I have also succeeded in implementing the same in my project. But here we can only add the text cannot apply the html tags eg: <li>, <strong>, <a href>, <src img>



We cannot add these in the text. This particular project that I’m working on has loads of images. I was thinking if we could add the image dynamically through the html file, which becomes easier to maintain the site. How do we get this done?


thanx
bncreator

External HTML Source For Text Scroller ?
Hiya,

I have been recreating the example of Kirupa's "Text Scroller with external Source".

It works very nucely.

I would like to know if I can extend this to take it's data from an external HTML source so I can add http links and email tags?

Can this be done?

Tanx

bmak

External HTML Source For Text Scroller ?
Hiya,

I have been recreating the example of Kirupa's "Text Scroller with external Source".

It works very nucely.

I would like to know if I can extend this to take it's data from an external HTML source so I can add http links and email tags?

Can this be done?

Tanx

bmak

Scroller And Dynamic Html Text File
I am trying to html format dynamically laoded text and when i add the line scroller.html.text = this.var1 the text formats with html but the scroll bar button disappears can any help?

actionscript

loadVarsText = new loadVars();
loadVarsText.load("news.txt");
//assign a function which fires when the data is loaded:
loadVarsText.onLoad = function(success) {
if (success) {
trace("done loading");
//Now that we know the data is loaded,
//set the text content of the Text Field
//with the instance name "scroller" equal to the
//contents of the variable

scroller.html = true;
scroller.htmlText = this.var1;

} else {
trace("not loaded");
}
};


Thanks

p1}{el []

Still Problems With The HTML Button In The Dynamic Text Scroller.
I cannot get a symbol html button to work in my scrolling dynamic text from an external, txt file. Im confused, I have the, "display as html button" clicked in my fla/swf, file. The external txt. file is a dreamweaver txt. file.

here I posted the swf on my server:

www.carpeinternational.com/forte.html

scroll all the way to the bottom to see my "wanna-be-working" button.

please help, I'm stuck.

Thanks

-gg

Image+text Scroller, Form Scroller, And Loading External Text Files - Urgent
Hi everybody!

Does anybody know how to do the following things in Flash MX?

1.Make a scroller with text + images in it;
2.Make a scroller with text + a form in it;
3.I followed the tutorial entitled "Scrolling Dynamically Loaded Text", but the text that I tried to load has over 160 lines, and I can only scroll down to about half way of the total lines. Why is that?
4.I also tried to load xml files using the code <?xml version="1.0" encoding="utf-8"?> on the first line of each xml file, but the ', &, and " " don't work.

Can anybody help me, please? This is urgent!

Thanks in advance!

animind

Image+text Scroller, Form Scroller, And Loading External Text Files - Urgent
Hi everybody!

Does anybody know how to do the following things in Flash MX?

1.Make a scroller with text + images in it;
2.Make a scroller with text + a form in it;
3.I followed the tutorial entitled "Scrolling Dynamically Loaded Text", but the text that I tried to load has over 160 lines, and I can only scroll down to about half way of the total lines. Why is that?
4.I also tried to load xml files using the code <?xml version="1.0" encoding="utf-8"?> on the first line of each xml file, but the ', &, and " " don't work.

Can anybody help me, please? This is urgent!

Thanks in advance!

animind

Flash Scroller Within Html Frame HELP
Can any one help me ? I have a flash mx mc scroller embeded within a frame. but for some reason the action script commands to scroll the mc wont work in ie 5.0 or netscape. I tried publishing it as flash 5 still no luck. the thing works by its self off my hard drive. I would love any help.
thanks

http://www.folderfolder.org
(work section)

Flash Scroller In Html Frame Help
Can any one help me ? I have a flash mx mc scroller embeded within a frame. but for some reason the action script commands to scroll the mc wont work in ie 5.0 or netscape. I tried publishing it as flash 5 still no luck. the thing works by its self off my hard drive. I would love any help.
thanks

Anyone Seen Or Made An HTML News Scroller In Flash?
Hey there, I'm trying to figure out if it's possible to make a scrolling news ticker (horizontal) in Flash that pulls in from a text file and displays HTML still.

So far I can only figure out how to make a scroller that parses the text string letter by letter and then scrolls them, but this won't allow for links or HTML formatting. Anyone ever seen this done, or have done it yourself?

Thanks much!

Text Scroller Help - Scroller Won't Scroll Full Length Of Text?
I have a text scroller that calls for a external text file. I have 16 numbered items in the .txt file but only 12 items will scroll. Why is this and how do I fix it? Also, is there any way to format text in the .txt file so that it appears formatted in flash? Right now there is a bunch of spaces between the numbered items. Thanks anyone!!

Convert Movieclip Scroller To Dynamic Text Scroller
I have code I borrowed that is set up to scroll a movie clip image. However, it doesn't work well if I replace the graphics with a text box as the scrolling becomes "jerky" as I think there is too much information for it to process with the complexity of the text. So I was hoping to change the scrolling content from a movie clip image with text to a dynamic textbox. But it will not function when I do that change. In this currrent setup, the movieclip instance name is "contentmain". I tried naming the instance of the dynamic textbox with that name, but no text shows up next to the scroller when I play the movie.

Here's the code:
scrolling = function () {

var scrollHeight:Number = scrollTrac._height;
var contentHeight:Number = contentMain._height;
var scrollFaceHeight:Number = scrollFace._height;
var maskHeight:Number = maskedView._height;
var initPosition:Number = scrollFace._y=scrollTrac._y;
var initContentPos:Number = contentMain._y;
var finalContentPos:Number = maskHeight-contentHeight+initContentPos;
var left:Number = scrollTrac._x;
var top:Number = scrollTrac._y;
var right:Number = scrollTrac._x;
var bottom:Number = scrollTrac._height-scrollFaceHeight+scrollTrac._y;
var dy:Number = 0;
var speed:Number = 10;
var moveVal:Number = (contentHeight-maskHeight)/(scrollHeight-scrollFaceHeight);

// Setup easing event
contentMain.desiredX = contentMain._y;
contentMain.onEnterFrame = function() {
this._y -= (this._y - this.desiredX) / 3;
};

scrollFace.onPress = function() {
var currPos:Number = this._y;
startDrag(this, false, left, top, right, bottom);
this.onMouseMove = function() {
dy = Math.abs(initPosition-this._y);
contentMain.desiredX = Math.round(dy*-1*moveVal+initContentPos);
};
};
scrollFace.onMouseUp = function() {
stopDrag();
delete this.onMouseMove;
};


btnUp.onPress = function() {
this.onEnterFrame = function() {
if (contentMain._x+speed<maskedView._x) {
if (scrollFace._x<=left) {
scrollFace._x = left;
} else {
scrollFace._x -= speed/moveVal;
}
contentMain._x += speed;
} else {
scrollFace._x = left;
contentMain._x = maskedView._x;
delete this.onEnterFrame;
}
};
};
btnUp.onDragOut = function() {
delete this.onEnterFrame;
};
btnUp.onRelease = function() {
delete this.onEnterFrame;
};
btnDown.onPress = function() {
this.onEnterFrame = function() {
if (contentMain._x-speed>finalContentPos) {
if (scrollFace._x>=right) {
scrollFace._x = right;
} else {
scrollFace._x += speed/moveVal;
}
contentMain._x -= speed;
} else {
scrollFace._x = right;
contentMain._x = finalContentPos;
delete this.onEnterFrame;
}
};
};
btnDown.onRelease = function() {
delete this.onEnterFrame;
};
btnDown.onDragOut = function() {
delete this.onEnterFrame;
};

if (contentHeight<maskHeight) {
scrollFace._visible = false;
btnUp.enabled = false;
btnDown.enabled = false;
} else {
scrollFace._visible = true;
btnUp.enabled = true;
btnDown.enabled = true;
}
};
scrolling();

Any ideas?

Thanks,
Dave

Convert Movieclip Scroller To Dynamic Text Scroller
I have code I borrowed that is set up to scroll a movie clip image. However, it doesn't work well if I replace the graphics with a text box as the scrolling becomes "jerky" as I think there is too much information for it to process with the complexity of the text. So I was hoping to change the scrolling content from a movie clip image with text to a dynamic textbox. But it will not function when I do that change. In this currrent setup, the movieclip instance name is "contentmain". I tried naming the instance of the dynamic textbox with that name, but no text shows up next to the scroller when I play the movie.

Here's the code:
scrolling = function () {

var scrollHeight:Number = scrollTrac._height;
var contentHeight:Number = contentMain._height;
var scrollFaceHeight:Number = scrollFace._height;
var maskHeight:Number = maskedView._height;
var initPosition:Number = scrollFace._y=scrollTrac._y;
var initContentPos:Number = contentMain._y;
var finalContentPos:Number = maskHeight-contentHeight+initContentPos;
var left:Number = scrollTrac._x;
var top:Number = scrollTrac._y;
var right:Number = scrollTrac._x;
var bottom:Number = scrollTrac._height-scrollFaceHeight+scrollTrac._y;
var dy:Number = 0;
var speed:Number = 10;
var moveVal:Number = (contentHeight-maskHeight)/(scrollHeight-scrollFaceHeight);

// Setup easing event
contentMain.desiredX = contentMain._y;
contentMain.onEnterFrame = function() {
this._y -= (this._y - this.desiredX) / 3;
};

scrollFace.onPress = function() {
var currPos:Number = this._y;
startDrag(this, false, left, top, right, bottom);
this.onMouseMove = function() {
dy = Math.abs(initPosition-this._y);
contentMain.desiredX = Math.round(dy*-1*moveVal+initContentPos);
};
};
scrollFace.onMouseUp = function() {
stopDrag();
delete this.onMouseMove;
};


btnUp.onPress = function() {
this.onEnterFrame = function() {
if (contentMain._x+speed<maskedView._x) {
if (scrollFace._x<=left) {
scrollFace._x = left;
} else {
scrollFace._x -= speed/moveVal;
}
contentMain._x += speed;
} else {
scrollFace._x = left;
contentMain._x = maskedView._x;
delete this.onEnterFrame;
}
};
};
btnUp.onDragOut = function() {
delete this.onEnterFrame;
};
btnUp.onRelease = function() {
delete this.onEnterFrame;
};
btnDown.onPress = function() {
this.onEnterFrame = function() {
if (contentMain._x-speed>finalContentPos) {
if (scrollFace._x>=right) {
scrollFace._x = right;
} else {
scrollFace._x += speed/moveVal;
}
contentMain._x -= speed;
} else {
scrollFace._x = right;
contentMain._x = finalContentPos;
delete this.onEnterFrame;
}
};
};
btnDown.onRelease = function() {
delete this.onEnterFrame;
};
btnDown.onDragOut = function() {
delete this.onEnterFrame;
};

if (contentHeight<maskHeight) {
scrollFace._visible = false;
btnUp.enabled = false;
btnDown.enabled = false;
} else {
scrollFace._visible = true;
btnUp.enabled = true;
btnDown.enabled = true;
}
};
scrolling();

Any ideas?

Thanks,
Dave

Text Scroller With Image With Mouse Scroller
Hi to all,
I have problem with flash. that i want to creat dynamic text & image scroller in scroller by creating custom scroller (not inbuilt component) That scroller i can scroll with help of mouse's scroller. (the mouse's scroller & image must be include in to the scroller box)
Help me !
Help me !
Reply me fast if u have solution for it!!!!

Regards,
Samual

Flash 5: Text Scroller
Hi people, im new to this area.

I have been using flash 5, but i am still having troubles with a text scroller : o (

I only found out how to make a text scroller Flash MX which i dont have, but i dont seem to be able to find one for Flash 5, i would really appreciate it if someone tells me how to do it, or direct me to the link where it is located on this site.

Thanks

Flash Text Scroller
Hi All

I am looking for Flash Text scroller from left to right. I need to be able to specify a width, height, font style e.g. colour and font and size. The scroller also needs to be able to be pulled from either a text file or XML file, so that the client will be able to change the content of the scroller via an ASP.Net admin side. The scroll also needs to be continuous and have no break. But if possible it needs to have break with a small image between the text.

If anybody can help with this it would be wicked. Thanks.
Tak

Help Needed With Flash 4 Text Scroller
I am trying to make a text scroller that scrolls sections of type at a time instead of line by line. Also I am wanting to have more control over the way the type looks, paragraphs, line breaks, etc. currently I have a scroller using the tutorial found in the tutorials section. So far this is the only technique that i've seen used. I tried using tell target, but I must be doing something wrong, because that's not working. If you want to see what i'm talking about: http://www.oymdesign.com
click on the capabilites link and then on marketing and then click on the tab in the top right hand corner.

thanks for your help

Dynamic Flash Text Scroller?
Hi, I need to create a text "scroller" for headlines on a website, that moves vertically (up and down) not horizontally (left to right) and brings in text dynamically from a text file. I know that dynamic text can be brought into a flash movie for a scroller horizontally, but can you create a text scroller box that moves Vertically? I can't seem to get it to work. Thanks!

[F8] Flash Auto-Scroller Text
Hi - could someone quickly explain to me or point me to a tutorial which shows me how to create a text scroller? Just simple with to arrows and when you put your cursor over either it moves in that direction.. Not a on mouse press..but just when you roll over it the text box moves. That would be great. Thanks.

Flash Text Scroller Code Help
hey everyone,

i have a text scroller here (friendly to pixel fonts) that i want to modify, but i'm not sure the easiest way to go about it.

see the attached .fla -

now, i want to be able to click anywhere on the grey bar, and have the white scroll box follow to that point (with easing, if possible). right now, the only way to scroll, is to grab the white scroll box and drag it to a chosen position. i'd like to break up the grey bar into sections so that each section will correspond to a position of the scroller. in other words, click on bottom of scroll bar, the text scrolls to the bottom, click on top of scroll bar, text scrolls to the top.

i've look at the AS, but i'm not sure what to change. any help would be fantastic.

thanks a million!!

s.t.

Flash Scroller Wit Text And Image
take a look at this site http://www.norwaysays.no/main.html

there is a sweet scroller.very trendy.
is hard to make a similar?

any tutorials?

great forum!

Flash Text Scroller Code Help
hey everyone,

i have a text scroller here (friendly to pixel fonts) that i want to modify, but i'm not sure the easiest way to go about it.

see the attached .fla -

now, i want to be able to click anywhere on the grey bar, and have the white scroll box follow to that point (with easing, if possible). right now, the only way to scroll, is to grab the white scroll box and drag it to a chosen position. i'd like to break up the grey bar into sections so that each section will correspond to a position of the scroller. in other words, click on bottom of scroll bar, the text scrolls to the bottom, click on top of scroll bar, text scrolls to the top.

i've look at the AS, but i'm not sure what to change. any help would be fantastic.

thanks a million!!

s.t.

Flash Scroller Wit Text And Image
take a look at this site http://www.norwaysays.no/main.html

there is a sweet scroller.very trendy.
is hard to make a similar?

any tutorials?

great forum!

Custom Text Scroller In Flash Mx
http://www.christopherlawrence.com/

anyone know how to make these type of text scrollers ??

External Text Loader And Scroller In Flash 5
Hi ,

im trying to create an external text loader into my movie clip and bein able to scroll it,

Anyone can point me to somewhere easy? i searched the net and still im not satisfied. i got something who works on the maintimeline with variables but cant manage to make it load in my movie clip !

Help plz !

thx alot in advance !

Please, How Can I Do For Insert A Flash UI Component Scroller Text....
Hi all,

Please, How can I do for insert a Flash UI Component scroller text.... for paste later in Dreamweaver

For Example:

I insert text and images in flash, and when I paste in dreamweaver, can shows me the flash scroll to see all info I've created in flash.

Thanks you,

Making Text Inside Scroller Clickable Flash Actions...
I've seen plenty of scrollers that will load an external text file and scroll it. I know I can add <a href></a> tags inside that text file so Flash will open a URL.

Has anyone got a clue how to make those clickable links tell Flash to do something?

Thanks, Chuck
http://www.letterheadfonts.com

Xml Scroller.. Want To Add Html
hello fellas

I would like to use html within this scroller.. what do i need to change to get html to display.. I'm really confused

can anyone help me??

thanks

HTML & CSS Scroller
Can somebody help me with these files as you will see its a text scroller that loads a html file and a css file but i want the content to scroll with a scroll bar is it possible ?

HTML Document Scroller
I'm looking for a scroller that scrolls an external HTML document, simple enough right?

I came and asked here first because there are alot of talented flas/actionscripters here!

Thanks in advance,
Zuriki

Please Help With TextField.html Property In Scroller
Can someone send me or post a working version of the fla (and text file) located here?

http://www.macromedia.com/support/fl...t_scrollmx.htm

Also, could you let me know which html tags can be used? Thanks

Ashley

Please HELP, Me With My HTML Button, In My Dynamic Scroller.
I cannot get this html button to show up from my external, dreamweaver text file.

All I want is this to work, and I have had no luck.


its a external text file loaded dynamically into a scroller. The txt. file is in dreamweaver.


Please Please help....


here is the link, of my attempt, scroll down to the bottom to view:

www.carpeinternational.com/forte.html

Problem With HTML In A DYNAMIC Scroller.......?
I have a problem with my dynamic txt. file loading as html in my swf file. There is a problem with the html, after the first e-mail link, its telling it that tthat is where the end of the txt. file is and won't let me scroll down to the next piece of text. I must be misssing some hmtl. anyone notice it?

Thanks.

below is a example of the txt. file:



TextBox=
<b>Is CarpÈ only sold in the U.S.?</b>
CarpÈ Denim is exclusively available in select boutiques around the nation. CarpÈ Denim will soon be distributed to exclusive boutiques in the UK and abroad.


<b>Can I order custom designed jeans?</b>
CarpÈ Custom Denim Couture is produced exclusively for select celebrities, stylists, and/or special individuals. However, select custom pieces may be ordered by contacting our sales department at <a href="mailto:sales@carpeinternational.com"><font color="#330000">sales@carpeinternational.com</font></a>

Importing Txt As HTML AND Using The Scroller Component
OK... I've been beating myself silly trying to get a .txt file to import as HTML (need to use links) AND use the scroller component. I've tried the LoadVar, and a script from a friend that consists of:

loadVarsText = new loadVars();
loadVarsText.load("copy.txt");

loadVarsText.onLoad = function(success) {
if (success) {
trace("done loading");

scroller.text = this.textField;
} else {
trace("not loaded");
}
};

I can get the scroller component to work with this script, but it will not load the txt file as HTML.

I also tried to use the hyperField.html=true; at the beginning, and that doesn't import the .txt file as HTML.

Merely clicking on the HTML activation property button doesn't solve the issue either... Any ideas??? THANKS!!!

Scroller Works In Fla But Not In Preview Html...?
hi all!
can someone take a look at my files and see why my scroller will work on my computer (fla file) but when i upload it to my site and/or go to preview html the scroller doesn't work!!!!

files are here under folder exiled:
http://briefcase.yahoo.com/downloadgeek
a typical lyric page is also there "deep inside".

i would appreciate any and all help with this.
thanks so much.

Dynamic Scroller/html Problems
Why can't falsh figure out how to render my dynamicloades text ad html when I have added a scrollbar to the dynamic textbox??

the code I have used:
//loading text dynamic
loadVariablesNum("html/links.txt", 0);

loadText = new loadVars();
loadText.load("html/links.txt");
//creating the loadVarsText function
loadText.onLoad = function() {
linkscrol.text = this.links;


heeelp!! when this code is added to get to scroller to work, the dynamic text is transformed in to html codes!!

Movie Clip Scroller That Support HTML
Hey
I am looking for a scroller component for movie clips, that would support HTML files, I find a few movieclip scroller at the flash kit archive, that I guess was made for flash 5, and they do not support html text inside the movie clip. dose anybody have any idea?
(I am not looking for a text scroller, if that’s what you had in mind)

thanks

Stylish Scroller That Loads External HTML
I am looking for a decent looking scroller FLA that loads External files. SO everytime I want to add content to the scroller I can just upload the HTML file on the server instead of upading the FLA file. I haven't found something easy to use and stylish. I don't have enough actionscript knowledge to make one myself. Does anyone know of a code that does this??

Thank You

MC Scroller Html Textfield/character Problem
Hi Guys,

I'm having an issue with the display of html-text and special characters in an
Mc scroller clip...(I think the problem lies inside the "depth path" of the textfield ..in this clip...)

like for example the letter "é" in my dynamic textfield
also <B> bold </B> function, making html links etc etc doesn't work...


I can't narrow it down

i've tried "system usecodepage=true" but this function ...is'nt appropriate for what I want


Just plain html-text with special character support... would be great



I attached the .fla (8) file


Hope someone can help me out!!



Best

Arn


(seems like a dummy question....but....it's more tricky this time I think...)


home.txt

text=<b>Yogaplace Namasté </b>

&loadklaar=true

Html Fulscreen But Keep Scroller If Browser Is Small
hi there mates!
just finishing a website, and got up with a real big problem....
i cant use the fulscreen if the browser is small....
the site proportions are 900x600px, wich cant be seen in as 800x600 resolution...the menus get cutted out...

how can i keep the fullscreen apearence but use the html scroller if the browser is smaller than that 900x600px proportion ?


thanks in advance mates!
regards

How To Make Flash Movie Read Text From A HTML Text Box In Current Page
I want to have a flash movie on an html page. I want to read the text from a text box in the parent html page.

I presume action scripting is the way to do it.

I am using flash 5

Please help.

TEXT CHANGING, When I Copy And Paste Text Scroller, And Add New Text......?
here's the problem:

I have a text scroller I took from a fla. file on here.
on my site, I wanted to just change the text. in the text scroller, and
place it in diffrent sections of my site a number of times with diffrent text.

I do not have a problem, copying and pasting the scroller.
But when I change the text from one section, to the next, it will make all the text the same.

If I copy the scroller and paste it somewhere else, swap the text it will change all to that last text I entered.

I tried, typing one section's text. Then copy/pasting the scroller, and putting new text, and converting that text to a symbol (graphic). Hoping it would work but had no LUCK.

This is huge and i need help, considering I am a newbie, there has got to be away this can be accomplished so I dont have to build seperate text holders/scroller, for all 15 sections of my site.

Let me know..and thank you all so much.

Html Text Field Write To Flash Dynamic Text Box
I have a dynamic text field in Flash.
I would like to have users type a message in the HTML text field and have it eventually appear in the Flash dynamic text field.
How can I get text from an HTML text field (on the same page as the swf) to write to the Flash dynamic text field?

Sending Html Text To Html Dynamic Text Field But It Dosnt Show
code: theNews = "<font color=#FF9900>"+newsRow0newsDate+"</font>"+": "+newsRow0newsStory+newline+"<font color=#FF9900>"+newsRow1newsDate+"</font>"+": "+newsRow1newsStory+newline+"<font color=#FF9900>"+newsRow2newsDate+"</font>"+": "+newsRow2newsStory+newline;
newsArea.textMain.htmlText = theNews;
trace("the news ="+theNews);

The data dosn't display but if i change the textMain.htmlText to .Text then it works, i need the formatted text.
Is ther something wrong with this?
i cant see anything wrong.

Cheers
Paul

Sending Html Text To Html Dynamic Text Field But It Dosnt Show
ActionScript Code:
theNews = "<font color=#FF9900>"+newsRow0newsDate+"</font>"+": "+newsRow0newsStory+newline+"<font color=#FF9900>"+newsRow1newsDate+"</font>"+": "+newsRow1newsStory+newline+"<font color=#FF9900>"+newsRow2newsDate+"</font>"+": "+newsRow2newsStory+newline;
newsArea.textMain.htmlText = theNews;
trace("the news ="+theNews);
The data dosn't display but if i change the textMain.htmlText to .Text then it works, i need the formatted text.
Is ther something wrong with this?
i cant see anything wrong.

Cheers
Paul

[MX04] External Html With Embeded Font And Scroller
Hi all,
I have a problem using scrollBar component. Well, it worked fine before but then I tried to embed (link from library) a font to externally loaded html and the scroller gets really small like there is a huge amount of extra text. My html text is loaded via variables and is ended with another &var=end


Code:
stop();
var loadVarsText = new LoadVars();
var my_fmttt:TextFormat = new TextFormat();
loadVarsText.load("grancanaria.html");
loadVarsText.onLoad = function(success) {
if (success) {
my_fmttt.font = "arial12";
scroller.wordWrap = true;

scroller.multiline = true;
scroller.html = true;
scroller.htmlText = this.var3;
scroller.embedFonts = true;
scroller.setTextFormat(my_fmttt);
} else {
trace("not loaded");
}
};



Does anyone know what is wrong ?

Cheers in advance

Adding HTML Functionality To Billy T's Dynamic Scroller
I've been working with the dynamic scroller Billy T created.

I've created scrollers in the past that use a txt file and have ability to underline, href, etc but I believe this code doesn't allow that because of textFormat code. Could somebody take a peek and let me know if its possible.

Thank you the code is below:

ActionScript Code:
// code by Billy T
// initialise some positions
textBwidth = 348;
textBheight = 200;
theMask._height = 100;
// set this to whatever you want
theMask._width = 348;
theMask._x = 0;
theMask._y = 0;
dragger._x = Math.round(theMask._width);
dragger._y = 0;
theText._x = 0;
theText._y = 0;
border._width = theMask._width+dragger._width;
border._height = theMask._height;
border._x = 0;
border._y = 0;
// set a variable
targY = 0;
// set the drag action of the dragger
// drag is restricted to the height of the mask
dragger.onPress = function() {
    startDrag(this, false, this._x, 0, this._x, theMask._height-this._height);
};
// stop the drag
dragger.onRelease = dragger.onReleaseOutside=function () { stopDrag();};
// set the mask for the text
theText.setMask(theMask);
// the scrolling animation
theText.onEnterFrame = function() {
    // set a variable
    // this variable basically stores info regarding what fraction of the total text
    // is being displayed through the mask and ensures that dragging the dragger
    // from top to bottom will reveal all the text.
    // this allows you to change the amount of text and the scroller will update itself
    //
    scrollAmount = (theText._height-(theMask._height/1.3))/(theMask._height-dragger._height);
    // adjust the height of the dragger to reflect the amount of content available to see
    dragger._height = theMask._height/scrollAmount;
    // set a new target y position
    targY = -dragger._y*scrollAmount;
    // set the y of the text to 1/5 of the distance between its current y and the target y
    // change the 5 to a lower number for faster scrolling or a higher number for slower scrolling
    // Math.round() keeps it on a whole pixel number - good for pixel fonts
    this._y -= Math.round((this._y-targY)/5);
};

The code which formats the text is:

ActionScript Code:
this.createTextField("theTextBox", 1, 0, 0, _parent.textBwidth, _parent.textBheight);
theTextBox.textColor = "0x000000";
theTextBox.selectable = false;
theTextBox.wordWrap = true;
myTextFormat = new TextFormat();
myTextFormat.font = "thaFont";
myTextFormat.size = 8;
theTextBox.embedFonts = true;
loadData = new LoadVars();
loadData.load("content.txt");
loadData.onLoad = function(success) {
    if (success) {
        theTextBox.text = loadData.theText;
        theTextBox.setTextFormat(myTextFormat);
        theTextBox.autosize ="center";
    } else {
        trace("failed");
    }
};

How Do I Load External Html Files Into A Textbox With A Scroller?
how do I load external html files into a textbox with a scroller?

I use this code on a button to load textfiles but how do I load html files?

on (release) {
scroll2._visible = (maintext.maxscroll>0);
maintext.load = "news.txt";
maintext.htmlText = myLoadVar2.news;
}

Thank u

Copyright © 2005-08 www.BigResource.com, All rights reserved