Text Scroll, External Loaded Content
Hi there, Can anybody help me out. I need an scroller for some external loaded text. The trick is, that i have to use it many many times, and it would be very much work if i have toe rescript the scroller everytime. I want to have a scroller that i can scale en place wherever i want on the stage, and the actionscript needs to work always. Can anyone help me out? Greets Martin
KirupaForum > Flash > Flash 8 (and earlier) > Flash MX 2004
Posted on: 05-06-2005, 09:29 AM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Text Scroll, External Loaded Content
Hi there,
Can anybody help me out.
I need an scroller for some external loaded text. The trick is, that i have to use it many many times, and it would be very much work if i have toe rescript the scroller everytime. I want to have a scroller that i can scale en place wherever i want on the stage, and the actionscript needs to work always.
Can anyone help me out?
Greets Martin
Scroll Text Disappears When Loaded As An External Swf
Hi. I've searched for an answer to this problem and only found one thread with the same problem which wasn't answered. So here goes. If you have the answer then please post it.
I have a swf file that contains scrolling text (not external text. the text is written in an actionscript frame in the movie). The text and scroll arrows work fine when I preview the movie. However when this swf is loaded into the main movie the text is not visible. Can anyon help with this. Do I need to insert a _parent. before the scrollableText or aomething. Thanks for your help
Jim
Scroll Text Disappears When Loaded As An External Swf
Hi. I've searched for an answer to this problem and only found one thread with the same problem which wasn't answered. So here goes. If you have the answer then please post it.
I have a swf file that contains scrolling text (not external text. the text is written in an actionscript frame in the movie). The text and scroll arrows work fine when I preview the movie. However when this swf is loaded into the main movie the text is not visible. Can anyon help with this. Do I need to insert a _parent. before the scrollableText or aomething. Thanks for your help
Jim
Scroll Xml Loaded Content
Hi!
I load let's say 10 post from an xml-page (another time it could be 20 posts), but only 8 fits into the design... how do i scroll them? I load it like this:
for (var i=0; i<attractionItems.length; i++) {
attraction = _root.attachMovie("attraction", "attraction" + i, i);
attraction._x = 625;
attraction._y = (i*50)+(450);
attraction.name.text = unescape(attractionItems[i].attributes.name);
attraction.web = unescape(attractionItems[i].attributes.web);
attraction.onRelease = function() {
getURL("http://" + this.web, "_blank");
}
}
Auto Scroll For Dynamic Textfield Content Loaded From XML ?
Hi, I´m using this code for typewriter effect of external loaded text into dynamic textfield. http://www.actionscript.org/forums/s....php3?t=105852
I would like to add script with function of auto scrolling when the text reaches bottom of the text field . But how, I am not a programmer and have basic understanding of action script only
Flash Player Bug Prevents Dynamically Loaded Content To Scroll...
I tried the moocks solution for flash player bug, which prevents dynamically loaded content to scroll, but I am not able to make it work. The possible problem might be that I already upgraded to flashplayer 6 (I hoped that the bug might be fixed, but it seems not), so - does anybody know whether moocks workaround from his free chat server works under flash player 6? If yes, than I would be extremely grateful for any hint how to make this solution working.
I understand, that the essential part is a separate mc, which resets the textfield with this script like this:
onClipEvent ( enterFrame ) {
if ( _root.documentUpdated ) {
this.text.scroll = this.text.maxscroll - 1;
_root.documentUpdated = false;
}
}
I applied it exactly as moock in his chat server, but without success. Maybe I overlooked something. Does anybody know some downloadable .fla (less complex than this chat server) which I could use as an example?
__________________
Borut
Preloading External Content Loaded Through Xml
I want to preload an external swf which loads a large image through xml. I can do this successfully when the image is already contained within the external swf but because its loaded via xml the preloader doesn't return the correct amount of bytesTotal.
Any tutorials around for this any suggestions?
Adding Different URL To Dynamically Loaded External Content
Hey!
I am dynamically loading files clip01.swf and clip02.swf. I have to be able to click any of them once they are loaded an get a distinct url. as you see from the script below, i would get forwarded to http://www.google.com after clicking the clip01.swf. I use the same kind of script to load clip02.swf, only the url is different. However, the problem is that MovieClip.prototype attaches the same url to both of clips. is there some way to attach a url to each clip so that they dont interfere? i was trying to make mHolder and mlLoader work instead of MovieClip.prototype for this purpose but it didnt work... any ideas?
Code:
MovieClip.prototype.fadeIn = function() {
this.onEnterFrame = function() {
if (this._alpha<100) {
this._alpha += 10;
} else {
delete this.onEnterFrame;
}
};
};
var mEmptyMC = this.createEmptyMovieClip("mHolder", this.getNextHighestDepth());
mEmptyMC._x = 0;
mEmptyMC._y = 0;
var mlLoader:MovieClipLoader = new MovieClipLoader();
var oListener:Object = new Object();
mlLoader.addListener(oListener);
oListener.onLoadStart = function(mHolderClip:MovieClip):Void {
mHolder._alpha = 0;
};
oListener.onLoadComplete = function(mHolderClip:MovieClip):Void {
mHolder.fadeIn();
};
mlLoader.loadClip("clip01.swf", mHolder);
MovieClip.prototype.onPress = function():Void {
this.getURL("http://www.google.com");
};
Scroll Content, Not Text...
I'd rather scroll content in this one section of the movie, rather than text, but still use the scrollbar. Is it easily done. I'm still hacking away as I write this but I am have a difficult time for sure. First I imported 4 images. Combined them into an MC, then dragged the Scrollbar component on top of the MC which was instance named 'scrollThis', and that didn't work (obviously). I then tried to mask the MC with a box the size of the top pic. Still not working.
Any help would be appreciated.
Thanks in advanced folks.
Loading Content Into Containers From External Swf Loaded Movies.
Maybe someone can help me out, I'm a little confused: I have a movie which initializes, then loads home, and from there, home loads the content.
Each movie is supposed to be loaded from init.swf into a container; however, i am unable to load content from home. My movie just hangs.
I'm using the LoaderClass: com.qlod.LoaderClass.as
and i have three movies
init.swf = root layer (FLA attatched)
home.swf = navagation layer (loaded from init) (FLA attatched)
news.swf = content, loaded from home (SWF attatched)
The init has global functions, such as _global.LoadNext()
home is able to load into init's container, but home.swf is not able to load news.swf
I dont get it? I through some traces in to see if the function from home.swf was even calling the LoadNext() located in init.swf but i dont think it was? Any ideas?
thanks
Dynamicly Resize & Smoothing For External Loaded Content
Hello,
i would like to have external loaded content (swf/jpg/flv) dynamicly resized by it´s width/height.
My goal ist to create a simple portfolio grid with some loaded thumbs from a XML and if you click them it should load the "big" content to a centered movieclip with it´s own loadbar and dynamicly resize to the content width/height with some basic tweening.
How to do something like that?
Movie Clip Text Content Scroll Problem
I created a movie clip to house dynamic text content from .txt files that load in the clip when a user clicks on a link (there are several links, each display a different text file). It also scrolls. It works fine except when the user scrolls down to read one file, then clicks on another link, the new text file doesn't display from the top - it starts wherever the last document left off.....so to see the beginning of the newly loaded text file the user would have to scroll up to the top. How do I get the new text file to load at the top?
Abel
Here is the code in the movieclip:
onClipEvent (enterFrame) {
if (downScroll == "1") {
this.textfield.scroll += 1;
}
}
onClipEvent (enterFrame) {
if (upscroll == "1") {
this.textfield.scroll -= 1;
}
}
Here is the code in one of the links:
on (release) {
loadVariables ("cast_mel.txt", "_root.textMovie2");
loadMovie ("cast_mel.swf", "castempty");
}
Please help.
Thanks.
Dynamically Resizing A Text Field To Content And Scroll If Beyond ScreenResolutionY
Day 4 researching this and still trying to see if there were a way for me to have scroll bars appear for my auto size text field if the content were to go beyond the viewable area. This would regard screen resolution I guess?
So if viewers were on a smaller screen size the scroll bars would appear, but no scroll bars for people on large monitors. I am aiming for a design that will be effective for most resolutions.
The best exmple of it I have seen is here choose PRESS then check out the way Biography resizes.
Hope I am clear.
I am mindful that I may be biting off more than I can chew but I would really love to add this functionality to my design.
Apprecite any ones ideas
Text Loaded From A Text File And Scroll Bar Components
I am loading text from a text file using LoadVars. I have two text fields on the same timeline both with scroll bar components. When the text loads into the text fields, only one of the scroll bars is active.
Does anyone know why this is?
Adding Linebreaks To Dynamic Text Fields W/ XML Loaded Content
I'm having a problem inserting line breaks in my XML formatted text, and I was wondering if anyone could help me.
Here's a basic sample of my code
This is my XML
Quote:
//<infoContent>
//<sections>
//<content item="Experience" words="This is where I'm going to put my work experience... where there is a slash, I'd like to insert a linebreak or 'newline' / Adobe Photoshop: 8 years / Adobe Illustrator: 8 years / Adobe InDesign:3 years / Macromedia Flash: 6 years / Macromedia Dreamweaver: 5 years / Quark X-Press: 7 years "/>
//<content item="Other Stuff" words="This is where I'm going to put other stuff..."/>
//</sections>
//<resume>
//<work item="my_Resume.pdf" myLoc="information/my_Resume.pdf"/>
//</resume>
//</infoContent>
and this is my AS
Code:
_global.myContent=new Object();
//
parseXML = function () {
myContent.myTitle = info_xml.firstChild.childNodes[0].childNodes
myContent.myWords = info_xml.firstChild.childNodes[0].childNodes
myContent.myResume = info_xml.firstChild.childNodes[1].childNodes[0].attributes.myLoc
};
I'm putting the content into an Object, and then when I need it to display in my text, I call it up.
Code:
this.myExperience_txt.text = myContent.myWords.childNodes[0].attributes.words
This works to get my content where I need it, but I'd like to break apart different sections of my XML content...
Is there a way to parse the content, find the character and replace it with "newline" or "/n"? do I do this while I'm parsing my XML or once I access the information into the textField?
Any help would be greatly appreciated
TRYING To Scroll Text Loaded From URL
I have content that I am loading into a text field from a text file on my server. I am using the ScrollBar component in Flash MX, but each time the swf loads, the scroll bar is inactive. How do I get the scrollBar to realize that there is text to scroll in the text window???
Scroll Text Loaded From An XML
I'm having trouble scrolling text imported from an XML document. I've searched for hours and can't find a thing. Any help is appreciated.
Scroll Pane Content - Accessing Values Within Content Mc
hey all -
i'm having a bit of a problem. i need to access the .text value of various text fields within a mc that is presented in a scroll pane. i need to check the value against another value, and i'm having trouble grabbing it.
here's what's not working:
//within a for loop where "i" is incrementing
myContent = scroll_pane.getScrollContent();
myText = eval(myContent + ".text" + i +"_txt");
trace (myText.text);
when I run this, myText ends up equal to: _level0.scroll_pane.tmp_mc.text10_txt
where i=10 in this case (all the others increment no problem)
however, if I trace (myText.text) I get nothing (not undefined, just nothing). however, if i forcibly trace(_level0.scroll_pane.tmp_mc.text10_txt.text), it will show me the .text of this text field.
any ideas as to what is happening here?
thanks
oh - flash mx on os x
Scroll Bar + Loaded Text.txt = Nono
Well the eqation above seems to set me back quite a bit. So, to make the long story short - what do i do ?
(Symptoms : I load a text.txt into a dynamic text box, the text from text.txt then apears withing the box as it should - but the scrolled doesn't "see" any difference - and isn't functioning. As far as i can figure - i must refresh it somehow. How ? )
Thanks!
How To Scroll Loaded Text Using This Component
HI!
I downloaded the Illogicz Component Set from flashcomponents.net at
http://www.flashcomponents.net/component.cfm?nav=2&id=19
i am trying to use the slider2 componet to scroll loaded text and i can't get it to scroll the text.
I have a button that when when you press it it loads the text,then the slider2 above it .
on the button I have :
on (press) {
loadVarsText = new loadVars();
loadVarsText.load("text1.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
mtext.text = this.var1;
scroller.setScrollTarget(mtext)
} else {
trace("not loaded");
}
}
}
thanks!
Scroll Component And Loaded Text
Hey guys,
I have a text field that has information loaded from a text file using the load variables command. When I drag a scroll component onto it, the scroll function doesnt work. I cant scroll up and down. However, if I dont load the text into the field but rather instead manually have text in the field, the scroll works. Can anyone please help me with this. I've been trying to figure it out for the past 3 hours. Thanks
Don
Scroll Bar In Conjunction With Loaded Text
Version: Flash MX
Problem: I have a dynamic text box that has text loaded into it from an alternate text file. I have a component scrollbar that is linked to the text box, however, even though there is more text than fits in the text box, the scroll bar does not work. Is there any way around this?
Thanks.SA
Text Won't Scroll When Loaded In Main... Why?
Hiya,
Here's my situation... I have an externally loaded text file (example1.txt) and scroller set up the way I want, and everything seems to load and scroll just fine when playing the movie (resume.swf) by itself... however, when I have that movie (resume.swf) loaded into my main movie (main.swf) I can't get it to scroll at all. You can see what I am talking about by looking at the .fla's below.
Any help would be greatly appreciated... Thanks in advance!
Gotemgreat
Dinamic Loaded Scroll Text
I've tried the tutorial about create a dinamically loaded scroll text, and it works, but when I insert the swf file into the web page with Dreamweaver MX, and I try to see the page, it doesn't work.
I see the movie, but no text is loaded. With the Flash viewer it works, but tring to see the full web page with Internet Explorer don't. Loop and Play params are selected in Dreamweaver... so has someone any idea about what I'm doing wrong?
Can You Scroll Variable Loaded Text?
I used the AS tag
ActionScript Code:
loadVariableNum("/url.txt", 0);
into a skewed text box that i assigned a scroll bar component to. It works when i type text right into Flash, but when I load text the text shows up with the scrollbar inactive. Is there a way to fix this? (flash mx)
[5] Can't Scroll Dyn. Loaded Text In AttachedMovie
hi,
i've got a button that attaches a movie with this code:
ActionScript Code:
on (press) {
i++;
_root.attachMovie("bio1", "bio1", i);
setProperty ("bio1", _x, random(570)+10);
setProperty ("bio1", _y, random(590)-390);
}
within this movie i loaded a text file with:
ActionScript Code:
loadVariables ("./text/bio1.txt", i);
but i can't seem to get the text to scroll. i've got a scroll down button:
ActionScript Code:
on (press) {
tellTarget ("/bio1down") {
gotoAndPlay (2);
}
}
on (release) {
tellTarget ("/bio1down") {
gotoAndStop (1);
}
}
why isn't it working??
yukot
Loaded Text Anyway Of Text Scrolling Without Using Scroll Bar?
Hi All
Im only new-Was onto the tute about scrolling dynamically loaded text-
Its great got it working!I was wondering if there is any way of allowing the text to scroll automatically upwards as the info in the news box will be small so the clients want it to be constant eg"Dont forget halloween...Dont forget "etc scrolling upwards
they want to update the news box themselves
Thanks in advance!
L
How To Auto-add Scroll Buttons To Loaded Text?
Hi,
Does anyone know where I can find a tutorial on how to automatically add scroll buttons to an MC when the amount of text loaded from an external file exceeds the available space in the dynamic textbox?
The closest I've found was one on http://www.nooflat.nu/ that adds a slider but no buttons but I'm sure I've seen one with buttons before - just can't remember where!
I've tried searching the forums but the dodgy titles people give their posts make it pretty difficult to find what I'm looking for - more descriptive posts please!
Thanks,
Andy
Scroll Bar Problem On Dynamically Loaded Text
I created a text box using the Text Tool and I applied a scroll bar (component) to it. It works fine when I add some text in the text filed but when I load dynamically (using loadVariablesNum) the text the scroll bar doesn't work. I mean it doesn't resize the whole text.
What I need is to load a text from an external text file and to be able to redesign the scroll bar (component).
Anyone could assist?
Dynamic Text Loaded From A .txt File With A Scroll Bar
Hello, I've tried to do things the way the tutorial on Flash MX told me to load the dynamic text, but it seems I might be missing something. I have no idea what, or why this isn't working, but maybe someone can take a look at my .fla file and see if they can come up with a way to do things. What I'm looking to do is on frame 2 of the "site" scene, I want that text field to have a scrollbar, so i can make the text larger and easier to read. I would want to do this on a few other frames too, so if someone can let me know how to do this, it would be great. I would also like the "Treat text as HTML" option enabled as well.
P.S. I've tried to do this by taking the variable name away, and the scrollbar doesn't attach, i've tried making an entirely new field of dynamic, multiline text with nothing in it and placing the scroll bar in it and it didn't attach. I even tried it with static text and it wouldn't work! It's not like the component isn't working, I've done it when i just create a new file but for some reason it doesn't want to work with this .fla. Perhaps someone can tell me why? or What I can do?
The .fla file is located at http://www.daveking.ca/daveking.fla and i'm currently uploading it now. It's about 1.4 megs I believe.
Dynamic Text Loaded From A .txt File With A Scroll Bar
im using this tutorial, http://www.macromedia.com/cfusion/kn...fm?id=tn_16142 and its not working. i even downloaded the source file but i get this error,
**Warning** Scene=Scene 1, layer=Layer 3, frame=1:Line 1: The identifier 'loadVars' will not resolve to built-in object 'LoadVars' at runtime.
loadVarsText = new loadVars();
Total ActionScript Errors: 1 Reported Errors: 1
i attached the .fla.
please help! thanks.
it says its too big to attach, so i uploaded it here
Buttons To Scroll A Dynamic Loaded Text
okay I did the TUT. on Creating a text scroller but the thing is i want the buttons to scroll a dynamic loaded text.
I put in all the action on the buttons and on the dynamic text like it say on the TUT. and the problem is that it wont scroll the dynamic text. The text shows but the buttons don't work.
Can someone tell me what i did wrong or if its possible to do it.
PS
I didn't do the action for the varible because i wanted to use the dynamic loaded text.
Load External Text Inside An Already Loaded External Movie
here's the problem as simply as I can explain it.
there's a main.swf, a news.swf and a text.txt
the news.swf is loaded into the main.swf and I want to load the text.txt into the news.swf
everything works when I just load the text into the news.swf without loading it into the main.swf, so I know the text.txt part is loading.
Loading Content From An External Text File?
I want to load up a welcome message into two dynamic text boxes one for the title and the other for the bulk content, how do set up the text file and link it to the text boxes?
Thanx
External Menu Links And Text Content
I have 55 links which will wil on left side of the screen
have a scrolling , the link to it and and link name needs to be changed from external text file on click the contents loads to the right side of the screen .Here also the text loads from the text file.Pls help me how do i do this.
The clients wants it that way.
here is a site http://www.5sec.com/freezone/index2.php
its already ben done in this examples
regards
sabs
[5] Can't Scroll Dynamically Loaded Text In Attached Movie
hi,
i've got a button that attaches a movie with this code:
on (press) {
i++;
_root.attachMovie("bio1", "bio1", i);
setProperty ("bio1", _x, random(570)+10);
setProperty ("bio1", _y, random(590)-390);
}
within this movie i loaded a text file with:
loadVariables ("./text/bio1.txt", i);
but i can't seem to get the text to scroll. i've got a scroll down button:
on (press) {
tellTarget ("/bio1down") {
gotoAndPlay (2);
}
}
on (release) {
tellTarget ("/bio1down") {
gotoAndStop (1);
}
}
why isn't it working??
yukot
[5] Can't Scroll Dynamically Loaded Text In Attached Movie
hi,
i've got a button that attaches a movie with this code:
on (press) {
i++;
_root.attachMovie("bio1", "bio1", i);
setProperty ("bio1", _x, random(570)+10);
setProperty ("bio1", _y, random(590)-390);
}
within this movie i loaded a text file with:
loadVariables ("./text/bio1.txt", i);
but i can't seem to get the text to scroll. i've got a scroll down button:
on (press) {
tellTarget ("/bio1down") {
gotoAndPlay (2);
}
}
on (release) {
tellTarget ("/bio1down") {
gotoAndStop (1);
}
}
why isn't it working??
yukot
Loading External XML Formatted Content In Several Text Boxes
i've had followed the tutorial
http://www.actionscript.org/tutorial...nt/index.shtml
all works fine ,
but i have several textarea and want re-use a single xml file to load several piece of text in different text boxes,
how to assign portion of xml into different text boxes
<kungfu1>
<text>lorem ipsum</text>
</kungfu1>
<kungfu2>
<text>lorem ipsum</text>
</kungfu2>
where kungfu1 text go to textbox 1 and kungfu2 text go to textbox 2
thanks
Loading Content From External Text/html File
I am trying to load content from an external text file.
(It would be great if i could format it with html code, is this possible)
I have the following code on frame 1 (Thanks to "nebrekab")
Code:
// array of button names
var btn_arr:Array = ["email","contact"];
// vars to be used in for loop
var i:Number, btn:MovieClip;
// loop array of buttons
for ( i = 0; i< btn_arr.length; i++ ){
// get ref to each button movieclip
btn = dottedPlants_mc[ btn_arr[ i ] + "Ani_mc" ];
// store button name as property
btn.name = btn_arr[i];
// give button roll over effect
btn.onRollOver = function() {
this.gotoAndPlay("shake");
}
// give button roll out effect
btn.onRollOut = function() {
this.gotoAndPlay("start");
}
// give on release method
btn.onRelease = function() {
trace( this.name + " clicked");
}
}
I have modified the onRelease to the following as i want it to go to a particular frame and load the text there
Code:
btn.onRelease = function() {
cont = this.name + ".txt";
gotoAndStop("container");
}
on the frame labled "container"
I have the following code (sourced from the adobe website)
Code:
this.createTextField("my_txt", 10, 10, 10, 320, 100);
my_txt.autoSize = "left";
my_txt.border = true;
my_txt.multiline = true;
my_txt.wordWrap = true;
var envirText_lv:LoadVars = new LoadVars();
envirText_lv.onData = function (src:String):Void {
if (src != undefined) {
my_txt.text = src;
} else {
my_txt.text = "Unable to load external file.";
}
}
lorem_lv.load(cont);
trace(cont);
now this works fine for the first click.
but when i click any other btn it does not work
is it becasue the codes are on different frames?
when i put the code from the container frame to the frame 1
it still wont work ;(
any help with this?
thank you
Scrolling Text - Doesn't Scroll Using External Text
Okay, this is something I've got around using some fairly complex coding from these boards before, but I'm wondering if there's a much easier way.
I have a dynamic text box named "mainText", and am using buttons to scroll up or down with the following AS:
on (rollover, dragOver) {
_root.mainText.scroll -= 1; // change to += to go down
}
Now, this works fine if the txt is placed in the actual text box, but if I load external text it does not scroll.
Is there a simple way around this?
Cheers
Dave
AS3 Loader.content Access To Partially Loaded Content
I have a main swf that loads an external swf. The external swf is a fairly large video embeded on the timeline.
Ive got my Loader all setup correctly, handling PROGRESS, COMPLETE and INIT events all fine.
What id like to do (which i could do in AS2 very easily) is start the playing and accessing variables in the loaded swf before it finishes loading. If i do these things when the video swf is loaded completely, everything works fine.
Any attempt to access Loader.content or the container clip ive placed Loader.content in, BEFORE its finished loading (when it reachs, lets say, 20%), i get error:
#2099 The loading object is not sufficiently loaded to provide this information.
Anyone have any ideas on how it could be possible to start messing with loaded SWF content before all of its frames are loaded? Thanks in advance for lookin over my post!!
How To Swap Movieclip With Other Content, In A Movieclip Loaded External
Hi! I'm getting desperated.
I started about 3 days ago trying to solve this problem, maybe i'm very noob!
I have a main movie. Inside this, i load various externals swf's. One swf for a menu, another for a image presentation, etc.
In the menu, i load various instances of another swf file... a button swf, and witch one has to have a different image as button.
So inside the button, i have a layer with a button, but no shape or nothing, and in another layer, i have a movieclip to can swap by an image.
So, the struct is like this:
Main Movie
. image_presentation
. contact
. menu
. . button1
. . . button
. . . image
. . button2
. . . button
. . . image
. . button3
. . . button
. . . image
. . button4
. . . button
. . . image
So, button is only a swf file, with various instances. "button" inside the buttons, make the button efect, with a white border apearing on mouse over button. "image" is a movieclip created only for change with an image (button 1 = image 1, button 2 = image 2, etc).
How can i do this, controlling the images url's from the main movie?? I had tried a lot of ways, but i could do it.
Please help.
Thanks.
External Text Scroll
hi, i need to load a text file into a text field which i did fine, but the scroll bar i attached to the field doesnt work with the loaded file.
any ideas?
CSS In External Scroll Text
Hi, I'm having trouble getting my css to apply to my imported scrolling text file. the frame action calls #include "actionscript.as", which specifies scroll parameters and name of text file to import (there are many). I'm, pretty sure the css has to therefore be specified in the .as file, but I can't get the syntax to work, can anyone help?
Here are the standard lines of code for applying css, but not sure how to apply them:
var myCSS = new TextField.StyleSheet();
var cssURL = "example.css";
//define onLoad handler
myCSS.onLoad = function(success) {
if (success) {
/* If the style sheet loaded without error,
assign it to the text object, and assign the HTML text to the
text field*/
myText.styleSheet = myCSS;
myText.text = exampleText;
}
};
//Load CSS file
myCSS.load(cssURL);
Here is an example of a .as file
http://www.magma.ie/client/flashpros...fessional01.as
Here is the text file it calls
http://www.magma.ie/client/flashpros...essional01.txt
Here is the current file - with scrolling external text, but no css (each line hardcoded! - what I am trying to avoid!)
http://www.magma.ie/client/flashpros...ROIonline.html
- Click on courses > Joint Financial Services Diploma (right hand column) to see the text above
the dynamic text box is in an instance of an MC called 'placeholder'. Each instance has it's own relevant #include script attached. The text box itself has the variable 'daTextBox'
Any help would be greatly appreciated,
Paul
External Text No Scroll Bar
I have tried; Add from components a scroll bar.. It works if you preview the swf or even just open the swf from your browser.
However, if you open this in a html file you no longer have a scroll bar..
what the heck.
var loader:URLLoader = new URLLoader();
var myRequest:URLRequest = new URLRequest("external.txt");
loader.load(myRequest);
loader.addEventListener(Event.COMPLETE, tb)
function tb(e:Event){
myText.htmlText = (loader.data)
myText.background = true;
myText.backgroundColor = 0XCCCCCC;
myText.border = true;
myText.borderColor = 0x008576;
}
|