Display Text In A Loaded .flv File With Cuepoints.
When a user visits the site i'm working on they first have to enter their name, after which a .flv file is loaded into the .swf file. The names they have entered should appear on a computer screen in the .flv file.
I added several cue points to the .flv file when the name of the user should appear on these screens, but i don't really know how to get the text to appear on top of the .flv file.
What would be the best way of doing this?
SitePoint > Design Your Site > Flash and Actionscript
Posted on: Nov 17, 2006, 07:31
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Display Text In Loaded Flv File With Cuepoints
When a user visits the site i'm working on they first have to enter their name, after which a .flv file is loaded into the .swf file. The names they have enterd should appear on a computer screen in the .flv file.
I added several cue points to the .flv file when the name of the user should appear on these screens, but i don't really know how to get the text to appear on top of the .flv file.
What would be the best way of doing this?
Would Like Beginning Of New Text File To Display When Loaded. Know How?
I have a dynamic text area that is reused throughout my movie in several scenes. The problem is when you scroll down to read the text on one scene and then click to go to a new scene, when the new text loads in, it doesn't display at the top (or the beginning of the new text file) but at the point where you left the scrollbar on the previous scene.
Please advise.
Dynamically Loaded Text File Doesn't Display In Text Box?
Hello People,
This is the scenario, hope you can help
I have a main mc, that loads into it an mc with a dynamically loaded external text file(" text mc")inside a text box(normal stuff). When the main mc load the text mc the external text file doesn't appear in the text box? When I execute the text mc by itself, it works sweet, text displays. I just need some help of getting the text to appear when it's loaded inside the main mc?
I've attached the text mc file so you can find the problem(note it will work fine, it's just when it's loaded inside the main mc the text doesn't display?)
thanks people
Display A JPG Loaded From An XML File In CDATA?
I've been trying to figure out if this is even possible in Actionscript 2.0.
I want to pass an XML file to the Flash program that contains the binary of a JPG file and then display that JPG file in the flash movie?
So in other words I would like to be able to load a JPG into a binary array inside the movie then change that binary array into an actual JPG for viewing.
Any ideas?
Thanks,
Text Field Doesn't Display Text When Its In A Page Loaded W/ AttachMovie
I'm having a problem where I made a 'main' page that loads sub-pages via attachMovie and in those subpages I have text fields that are populated via a LoadVars object. The subpage works perfectly when I run it by itself -- but when I load it into the main page w/ attachMovie, the text field doesn't show up. Ideas? ?
Not To Display Repeated Mcs And Loaded Text
hi this is the code for random movieclips and loaded text
i wanted that once the random movieclips appear once
it should not be repeated again
it is displaying like this 3,2,3,4,1,3,1,5
i wanted like this 3,2,4,1,5
pls help somebody
file is attached pls check
var myInterval:Number;
var count:Number = 0;
var maxCount:Number = 4;
var examples:Array = new Array("text1.txt", "text2.txt", "text3.txt", "text4.txt", "text5.txt");
var mcs:Array = new Array("mc1","mc2","mc3","mc4","mc5");
thisText = new LoadVars();
thisText.onLoad = function(success)
{
if (success) {
TextHolder.text = thisText.counts;
}
};
function mytimer() {
eval("mc"+ran).gotoAndStop(1);
ran = random(maxCount)+1;
thisText.load("text"+ran+".txt");
eval("mc"+ran).gotoAndStop(2);
}
if(myInterval != null) {
clearInterval(myInterval);
}
myInterval = setInterval(this, "mytimer", 2000, examples[count], mcs[count]);
Text Field Won't Display Loaded Variable
I've used loaded variables numerous times before, but lately, I've been getting nothing but
blank fields.
The variables are loading, and passed to text fields outside of MCs, but not visible in text
fields that 'are' inside MCs.
Movie Breakdown:
================================================== ===================
SCENE 2 'uk' / FRAME 'UK1'
UKCostGeneral = "ukpricing.txt";
loadVariables (ukcostgeneral, "");
SCENE 2 'uk' / FRAME 'UK1' / MC 'UKGen' / text field 'UKCostGeneral' (imported/shared font)
================================================== ===================
This has had me puzzled for some while . . . someone even mentioned that because MC 'UKGen'
is under a mask layer, that I'd have to (embed) the text, rather than (import) it!!?? . . .
a resolve would be very much appreciated.
Regards,
::bluemoth::
How To Display The Name Of A Loaded Movie Dynamically In Text Box?
Hello fk.
I have jpegs and swfs that load into a blank movie clip. Is it possible to put a blank dynamic text box on the stage that will display the name of whatever movie of jpeg is loaded into my blank_mc?
For example:
Through loadMovie roses.jpg is loaded into blank_mc.
Text box with instance name textBox displays "roses.jpg" .
Also, to be extra tricky, could you tell it to leave off the .jpg or .swf at the end of the file name when displayed?
Loaded Swf; Text Wont Display Properly, Help
Hi and thanks in advance to anyone who can help me out here....
I have a 'main swf' . Loading into this 'main swf' is another 'smaller swf'.
The problem I have is this....
when I click a button on the 'main.swf' it changes a font in my 'smaller swf'.
you can see it happening at http://www.now-creative.com
click on one of the thumbnails to see the text changing,
the text that changes is the headings for the three main sub sections (web design & development, design for print and interactive.)
to explain further the buttons on the 'main.swf' , i.e. the thumbnails as viewed on www.now-creative.com,
use's the root script to tell flash where to navigate to. This I think is affecting the embeded text in the 'smaller swf'. The text is embeded from the 'main.swf'
anyone got any ideas as to a logical way to fix this...would be much appreciated...
thank you
Loaded Swf; Text Wont Display Properly
Hi and thanks in advance to anyone who can help me out here....
I have a 'main swf' . Loading into this 'main swf' is another 'smaller swf'.
The problem I have is this....
when I click a button on the 'main.swf' it changes a font in my 'smaller swf'.
you can see it happening at http://www.now-creative.com
click on one of the thumbnails to see the text changing,
the text that changes is the headings for the three main sub sections (web design & development, design for print and interactive.)
to explain further the buttons on the 'main.swf' , i.e. the thumbnails as viewed on www.now-creative.com,
use's the root script to tell flash where to navigate to. This I think is affecting the embeded text in the 'smaller swf'. The text is embeded from the 'main.swf'
anyone got any ideas as to a logical way to fix this...would be much appreciated...
thank you
FLV Cuepoints - Load External Images And Cuepoints From XML
I am trying to load external images based on FLV cuepoints.
I have videos of speakers and want to sync their slide images on the stage with the video.
Ideally I'd like to load my images and the cuepoints from an XML file. I've done this with captions, but can't figure out how to do it with images.
Here's the file I used for captions.
http://chrisbutts.com/test/imageTest.zip
Display Special Characters In Loaded Text Files: &, •, Etc...
i have had Zero luck at this. Im trying to load a series of bullet points followed by text into a text feild.
the feel like there should be an escape character so i can use &#blah for the bullet code. Is this so?
if not are there any ways around this issue? the & will make flash think there is another var in the text file. How do i get around this?
please help me get up, for IveFallen.
Using List Inside ScrollPane - XML Loaded Text Won't Display.
Greetings all,
i'm working on a website that uses a ScrollPane which has pages that change inside of it. On one page there is a List component which has it's text dynamically loaded via XML. (each line also is a link to another site)
When i test just the scene with the List component, the text loads fine and everything is hunkydory...
but when i test the movie, the List text doesn't display - everything is just white, and i can click on where the text would be.
I'm using the Garamond font, which i thought i had embedded for another part of the site, but the text doesn't display.
could someone please explain to me how i get the text to display?
TIA!!!
[F8] Can Flash Load Text Without Changing It And Display Whats Raw In The Text File?
just curious... I just want flash to read a txt file and do nothing to it... just echo it out loud and display it in Flash...
is there a way to do this?
like if the text file had "the quick brown fox jumped over the lazy dog" in it and NOTHING else... no variable syntax or anything..
is there a way this can be done?
I appreciate anybody who can help
&, ", And ' Do Not Display Correctly In Dynamic Text Field When Loaded From XML
hello,
i'm having problems getting certain characters and punctuation marks to display correctly when a string from an XML is loaded into a dynamic text field. they are displayed as "&" """ etc etc..
i'm am pretty much stuck with using an XML file, so if there is any way i can get these characters to display properly utilizing the following code with as little modification as possible, that would be great!
here is what i'm using:
PHP Code:
var my_xml=new XML()
var fileList:Array
my_xml.ignoreWhite=true
my_xml.load(_root.fileName)
my_xml.onLoad=function(success){
LoadFileList()
}
function LoadFileList(){
var len=my_xml.firstChild.childNodes.length
var scrollingText=my_xml.firstChild.childNodes[len-1].childNodes.toString()
info_dt.text = scrollingText //info_dt is the dynamic text instance
}
any help would be greatly appreciated!! thank you very much
Cuepoints In Video And Loading A Swf File
PLease help i am stuck once again!
I have a video with a cuepoint called end in a video. At this point i would like an external swf file say excel.swf to appear and then close the video movie.
I ahve no idea and im stuck :(
The code i have so far is this:
on (click) {
this._parent.test_vid.play()
}
i guess the code will need to go in here somewhere but im nnot sure .
Display Random Text Message From A Text File
How do i display a Random text message in Flash from a text file?
I want to do something like a "quote of the day" thing
so i need a random quote in the flash movie everytime
users call up the htm page in the browser.
Please help.
Is It Possible To Display The Text (from External XML File) In A Text Field?
I'm a beginner with Flash ActionScript coding. I've got to make a flash menu that takes the text and URL for the menu items from an external file and displays it on a PHP page.
I've found the code to load text from an external file on the Adobe site:
http://livedocs.adobe.com/flash/9.0/main/00000890.html
However, this code doesn't work. It gives a message "Undefined" in a box, though all the paths are correct.
However, I can't use this code since I need to anti-alias the text display.Is it possible to display the text (from external XML file) in a text field? I can then apply anti-alias and select the text characteristics. I'll embed all the possible font characters in the movie.
How do I make this Dynamic Text for text fields work?
I'm using Macromedia Flash Professional 8 for creating this menu.
Dynamic Text File Doesn't Display All Of The Text HELP
Hi everyone, I have a flash site that I created for a church, and on the homepage my client wanted to have a section called Announcements, where she could easily update the text from that section. To accomplish this, I went to the Kirupa tutorials for dynamic text files in Flash.
I used the XML (or was it PHP) code, pasted it in my Flash movie, opened up Notepad to create my text file, and began inserting paragraphs of text in the Notepad. I attached a scrollbar to the dynamic text file since I wanted to see all of the paragraphs. Scrolled down to the bottom, and then quite surprisingly the rest of the paragraphs were cut off!
The website I'm working on is www.jonesumc.org, and the Announcements section and scrollbar are on the bottom left side of the homepage. The paragraph cut off was originally supposed to say:
FINANCIAL LITERACY BOOT CAMP The Financial Literacy Boot Camp for ages 5 - 18 will be held July 10th - 14th here at Jones. Applications are available today! Three levels offered, Elementary, Jr. High & High School. Our mission to “Expose & Empower” our children & youth to positive financial tools. Volunteers are needed for the week. See Hilary Byrde for more details.
Instead, the scrollbar and textbox cuts the paragraph to the word "Jr. High"
Does anyone know what the problem is?
This is the code inside Flash that allows the text file to communicate with the dynamic text box:
Code:
loadText = new LoadVars();
loadText.load("announcement1.txt");
loadText.onLoad = function() {
announce1.text = this.announce1;
};
The dynamic text box has an instance name of announce1, and the Var is labeled: announce1
The dynamic text box doesn't have any actionscript applied to it. The line type of this box is also Multiline, and the text wraps inside the box.
Inside Notepad, at the very beginning I was told to type "announce1="
Immediately after the equal sign, I could write any kind of text I wanted to. Instead of hitting the ENTER key I pressed the SPACEBAR key several times until I created a new line of text.
As for the code, that's it! There wasn't really anything complicated with the code and putting things together. In order to fully understand my problem I recommend taking a look at kirupa's tutorial for dynamic text. Thanks for your help!
Having A MC Display Text From External .txt File
http://www.billyradio.com/test.htm
there is the link...
on the left TextBox.. i want to create a blog...(another tab for more text)
im using the ScrollPlane Component in Flash MX....
how can i get the MC to import text from an external .txt file...
so that all i would have to do is upload the .txt file and the MC would change texts...
is this even possible... im sure it is.. somehow...
gulp.. help!
thanks a million in advance,
manny
How Do I Display A Variables Value In A Text File?
i tried setting it to dynamic text, then changing the var property to the same as the variable name. it doesnt change after i update the variable with a new value. what am i doing wrong?
anyone have a tutorial about using variables and text fields because ive been here all day trying to figure out the stupidest problems that occur throught my programming. right now i am having issues with displaying variables through text fields. what im looking for is how to utilize text fields to display variables which are at different timelines throughout my movie... plz help...
External Text File Display
this is my data:
http://www.tenbyten.org/Data/Now/words.txt
this file has keywords, which they update periodically:
pakistan
president
officials
military
Now, when i load this into flash i get this when it renders:
pakistan0Apresident0Aofficials0Amilitary
how do i get the result in a more meaningful manner.. something like: pakistan president officials military. or can i randomly pick one of the keywords from this file and display in my flash file.
PLEASE HELP !!
Can Flash Display Text From A Txt File?
i think i've seen something like what i require,im new to flash, yet my i wish to have a "news box" instead of re-doing my flash site everytime i need to change this box. can i upload a txt file with the words i want to be displayed in the box and have my flash site retrieve and display it?
How To Display Multiple Datas From Text File
Hope u will help me
I need to change like a news headlines in swf file. How to load multiple datas from one text file. In flash created three display text box and given variable as disp1, disp2, disp3 and in Text file given as disp1=name, disp2=subject, disp3=mark. loaded this text file in flash file and while publishing, only disp1[name] message only displaying in the swf file. idon't know how to set the script to display the all datas from text files.
i hope flash gurus will help,
thx sathish
Contents Of A Text File Do Not Display Fully..please Help
I have a calender and I have made it as when I select a day button, Its respective schedule should be listed, which I have kept in a schedule.txt file. These things work fine, except that the text from the text file is not displaying fully. For eg. if the original text is "flash for all", the displayed text looks like "flash for a". The last few words are not appearing. Any help please?
Read Text File - Display In Flash
Hello,
i have a text file with 100 lines. I would like to display the first 3 lines on my flash movie. When i click the button next i would like the flash movie to display the next 3 lines or else to display the previous 3 lines...
This is for a simple news system...could u help me doing this way or in other way if u think it's better?
Thanks,
Miguel
Loaded Text File Wont Show All Of The Text In Dynamic Text Field
When I load an external text file into flash and display the string in a dynamic text box, not all of the text will show in the text box; and using scroll button to scroll the text doesnt help.
The text that is in the text file is as follows, and as far as I can see there is no reason why all this text shouldnt show in the dynamic text field; by the way all my targets are correct, I know that for fact.
message=Code: Cheat:
BEEPSAGONER Deactivate the censor beeps
DRACULASTEABAGS 50 lives
DUTCHOVENS Frying pan mode
XFYHIJERPWAL IELWZS Debug mode
BOVRILBULLETHOLE Shoot all objects
EASY Easy mode
VERYEASY Very easy mode
SPUNKJOCKEY New death animation
SEXYMANN Birdy & Squirrel scene
Code: Unlock chapter:
PRINCEALBERT Barn Boys
CLAMPIRATE Bats Tower
ANCHOVYBAY Slopranos
MONKEYSCHIN Uga Buga
SPANIELSEARS Spooky
BEELZEBUBSBUM It's War
CHOCOLATESTARFISH The Heist
WELDERSBENCH All chapters and scenes
Code: Unlock Multiplayer character:
WELLYTOP Conker
EASTEREGGSRUS Neo Conker
BILLYMILLROUNDABOUT Gregg the Grim Reaper
CHINDITVICTORY Weasel Henchmen
EATBOX Cavemen
RUSTYSHERIFFSBADGE Sergeant and Tediz Leader
BEEFCURTAINS Zombies and Villagers
.txt File Does Not Display Text When SWF Movie Is Viewed In HTML
I hav a single line dynamic text field calling a external ".txt file sitting within a movie with the following script.....
onClipEvent (load) {
loadVariables("sample3.txt",this);
}
It loads the text fine when is previewed through flash player but when i put the movie into an HTML page it does not show the text......
what other ways can I approach this.....I have tried directing the file system properly and both files are in the same directory but that does not work either.......
any help please??
Display Formatting From Text File In A Dynamic Field
is this possible?
i read my news information from a file called news.txt... the unfortunate part is that i can not use any formatting what so ever
is there a way to display formatting from a text or html file using some codes or anything?
thanks in advamce
Problem With Display Variables From A External Text File
I took a tutorial and modified it.
http://www.flashkit.com/tutorials/3r...dex.php?chk=no
The only problem that I'm having is that when it displays the var's won't load. When I hit refresh on the browser... then they load
Here is a link to the modified tutorial live on my web server: http://www.pittsburghlive.com:8000/p...rm_sports.html Let me know if the text and var's load on the first time you load the page.
Attached are my files
.FLA file
.SWF file
.txt file
FYI - the external file is generated from a sql query then is outputed via php to a txt file
If Text File Does Not Load Display A Message To Screen
Hi,
I am currently using the code below to read from a text file and display it in a dynamic text box with a scroll bar in my movie.
When it can't load the text file an error message appears saying "undefined".
How can i modify the code so that it will print a error message of my choice to the screen. i.e. "text file not loaded"
Please help, i have tried but to no avail!
Thanks
Umark
--------------------------------------------------------------
loadVarsText = new LoadVars();
loadVarsText.load("4203-4.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.text = this.var1;
} else {
trace("not loaded");
}
};
Converted MX File Won't Display HTML Text From Variable
I'm struggling with an MX movie that simply will not display html text unless you specify the actual text within the Actionscript.
In Flash 8 you can read HTML text from a variable that's specified on a web page. The example below shows the entire contents of the web page.
&thisVar=this<br>text
The textbox and Actionscript that I use for displaying this HTML text works fine as long as I create a new .fla file. However, my project involves a movie that was created in Flash MX. The movie is quite complex and it will not be easy to recreate it from scratch using Flash 8, although this would work.
I've tried many different techniques and approaches to get the htmlText to display but nothing appears in the textbox. The code in quesiton works fine in a new Flash 8 movie. I've tried opening the original movie in the original version of Flash but it still doesn't work.
To succeed with this project, I must be able to read the htmlText from an external source. I was hoping that someone would have a solution and would be happy to pay for it.
Has anyone run into this issue? Any suggestions?
Dynamic Text Array To Display Data From XML File
Hello
I'm new in the forum,i want to make a photo gallery which loads images, thumbnails and description from XML file , no problem with that http://www.kirupa.com/forum/showthread.php?t=242767
i made the Gallery in one column, want to add dynamic text field beside each thumbnail in order to display description
i used this code, but i didn't work
Code:
this.createTextField(my_txt[i], 1, 100, 100, 300, 100);
my_txt[i].multiline = true;
my_txt[i].wordWrap = true;
var my_fmt:TextFormat = new TextFormat();
my_fmt.color = 0xFF0000;
my_fmt.underline = true;
my_txt[i].text = description[i];
my_txt[i].setTextFormat(my_fmt);
can anyone help me to find a tutorial to do so ?
Thanks!
Getting Html Text To Display From Xml File Usning CDATA
Hi
I am trying to get a link to work in the body text of a text block.
I am using CDATA but can not get this to translate to html in the flash. I have checked that the 'Render text as html' box is checked.
What is it that I am not doing? or not doing right?
Below is my AS and below that is my XML
========================
xml menu stripped down
======================
function CreateMenu(menu_xml) {
var items = menu_xml.firstChild.firstChild.childNodes;
for (var i = 0; i < items.length; i++)
{
if (items[i].attributes.type == "news")
{
var header = items[i].firstChild;
var article = items[i].childNodes[1];
var item_mc = menu_mc.attachMovie("menu_item", "item" + item_count, item_count);
item_mc._y = item_count * item_spacing;
item_count++;
item_mc.header_txt.text = header.firstChild.nodeValue; //
item_mc.main_mc.content_text = article.firstChild.nodeValue; // this is the content but is I use htmlText it throws an error
item_mc.main_mc.onRelease = DisplayInfo;
}
}
}
var news_xml = new XML();
news_xml.ignoreWhite = true;
news_xml.onLoad = function(success) {
if (success)
{
CreateMenu(this);
}
else
{
trace("Error loading XML file");
}
};
news_xml.load("news_url.xml");
===================
xml file below
==================
<?xml version="1.0" encoding="utf-8"?>
<menu>
<menuitems>
<item type="news">
<header>Heading</header>
<article><![CDATA[Some <br>text here<br><font size="16" color="#999999">And some text <a href="http://www.website.com" target="_blank"><b>here</b></a></font> <img src="any.jpg"/>]]></article>
</item>
</menuitems>
</menu>
Loading Text File Randomly To Display The Updated Contents
Hai Yall,
Loading the text file to display the content in movie and this text file to be updated every 5 min's with hot news and movie displaying the contents perfectly and the latest news. For this i placed code to show the new updated text file by randomly by :
loadVariablesNum("330_hdl.txt?"+Math.random()*999, _target);
its working fine to show the updated content, But i would like to change background color of dynamic text box for important headlines. I'm not able to do that with the above code.
So for changing the background color of dynamic text box through passing variable from text file, I've placed the following code:
myData = new LoadVars();
myData.onLoad = addItems;
myData.load("330_tophdl.txt");
function addItems() {
myText.textColor = myData.myTextColour;
myText.background = true;
myText.backgroundColor = myData.myTextBGColour;
myText.text = myData.content;
}
Now the text box background color is changing. But now what i've problem is that Movie is not displaying the updated color in Internet Explorer But the updated contents are displaying automatically by using the random code. So i would like to change the background color by accessing the textfile by random code or anyway movie should display the updated text file without closing and opening IE.
What u think and solution for this. If u've pls help me, Thx for reading my problem and i hope u'll give solutions.
thx
sathish
Can You Display Formatted Dynamic Text, From A Txt File, Using Embedded Fonts
I am wondering if you can display dynamic text from a text file, rendered as html and formatted, in a text box, using embedded pixel fonts. If not, I'm having trouble with text displaying in bold, when I use <B> tags around text on other computers. Its fine on my comp. I read some macromedia tech notes, but I'm still a little confused. Help would be appreciated.
matt
How To Display Dynamic Text After Adding Flash File To Html
Please help - I have a dynamic text field in a movieclip inside a main movieclip - Within flash the dynamic text display properly but once I load the file to an html page the dynamic text no longer display - It loads undefined in text box. However when I remove the movieclip from main movieclip text display no problem.
Attach Code
myData = new LoadVars();
myData.onLoad = function() {
loadedtext.htmlText = this.info;
};
myData.load("about.txt");
External Text Loaded Into Text Field Won't Change File Attached
I have 3 textfields in 3 different frames. Each text field is for a different section of my website. I want to keep all the code that works for 1 textfield and just change the URL that is loaded. I tried so many different ways. I don't get a error so I believe the URL is being cached somewhere. When I trace it It shows that the other text doc has loaded but the text field doesn't show any change. Is there away to reload/stop cache/delete a variable?
PHP Code:
stop();var newsURL:String = "text/news.txt"//Below is other variables if you wanted to swap out the actual variable versus the url./*bioURL:String = "text/bio.txt"tourURL:String = "text/tour.txt"*///var newsURL:String = "text/news.txt"var textLoader:URLLoader = new URLLoader(); var textReq:URLRequest = new URLRequest(newsURL);var style:StyleSheet = new StyleSheet();//style defined belowstyle.setStyle("a" , {color:"#CC0000"});style.setStyle("a:hover", {textDecoration:"underline"});function textLoaded(event:Event):void{ text_mc.text_txt.styleSheet = style; text_mc.text_txt.htmlText = textLoader.data; }textLoader.load(textReq);text_mc.text_txt.autoSize = TextFieldAutoSize.LEFT;textLoader.addEventListener(Event.COMPLETE, textLoaded);function onClickNews(event:MouseEvent):void{ newsURL = "text/news.txt";// I tried including this in the button textLoader.load(textReq);// also this gotoAndStop(1);}news_btn.addEventListener(MouseEvent.CLICK,onClickNews);function onClickBio(event:MouseEvent):void{ newsURL = "text/bio.txt"; gotoAndStop(2);}bio_btn.addEventListener(MouseEvent.CLICK,onClickBio);function onClickTour(event:MouseEvent):void{ newsURL = "text/tour.txt" //var newsURL:String = "text/tour.txt" gotoAndStop(3);}tour_btn.addEventListener(MouseEvent.CLICK,onClickTour);
Please help Thanks
http://www.theofficialvip.com/testUR...RLSwitcher.zip
Load External Text Files In Sync With Flv Cuepoints - HELP, Please
been going bonkers over this for days, so would appreciate any input, please.
i'm using flash 8 and i've been able to puzzle out how to use an event listener with embedded cuepoints in an flv video (using a FLVPlayback component instance). but this is a very general understanding and i can't figure out how to do something specific that i need.
specifically, i need to load a series of external text files into a dynamic text area and these will act as subtitles to the video.
the embedded cuepoints within the video will act as the triggers that load the text files one after the other (e.g. at cuepoint 01, load subtitles01.txt...at cuepoint 02, load subtitles02.txt and so forth).
i have found zero documentation or references for the kind of functionality i need (specifically using FLVPlayback), so i could really really use suggestions from experienced flash users. thank you!
Fixing Spacing And Bolding Text When Loaded From Text File
Hi, on my current site www.dual-anime.com I use text files for the news section. However When I use the 'return' or 'enter' key anywhere in the text file, when loaded there is a 5 space gap between the lines. So for example if the text file reads:
&vInfo=Name: John Doe
Age: 24
Sport: Soccer
What I need it to look like is:
Name: John Doe
Age: 24
Sport: Soccer
But what it actually looks like is:
Name: John Doe
Age: 24
Sport: Soccer
How do I fix it so I can easily space the text to my liking. Also is there anyway to add Bolds and such to the variables inside the text file. For example having the headings (Name,Age,Sport) be bold.
Thanks~
Text Cut Off Randomly Externally Loaded Quotes From Text File.
Here is the issue, I through some ingenious coding produced a way how to create dynamically loaded random quotes onto hover captions, I know alot of you helped out and I thank you, the problem is now that it will load all that info but many times almost 90% of the time the caption will be too small to show the text, or too large and the text pops up all the way to the left of the site.
I posted you an image it is supposed to say We design websites, from full Flash sites to small HTML ones, however the excess is cut off, you can see the site at www.qualitytechnologies.net if you need clarity on the issue, I believe I also have a fla example file but I may be wrong, here is parts of the code:
The code for the hover caption on frame xx
ActionScript Code:
hover_mc.b1.onRollOver = function() { captionFN(true, this); this.onRollOut = function() { captionFN(false); };};hover_mc.b2.onRollOver = function() { captionFN(true, this); this.onRollOut = function() { captionFN(false); };};...captionFN = function (showCaption, bName) { if (showCaption) { _root.createEmptyMovieClip("hoverCaption", this.getNextHighestDepth()); //cap.desc.text = captionText; cap._width = 7*cap.fill_text.text.length; cap._alpha = 75; // if ((bName._width+bName._x+cap._width)>Stage.width) { xo = -2-cap._width; yo = -17; } else { xo = 2+cap._width; yo = -17; } hoverCaption.onEnterFrame = function() { cap._x = _root._xmouse-xo; cap._y = _root._ymouse+yo; cap._visible = true; }; } else { delete hoverCaption.onEnterFrame; cap._visible = false; }};
The random loading code, on frame 1-6 on the hover_mc clip, there are 6 buttons there from b1 to b6 of course.
ActionScript Code:
/**************************************** **Random Quotes Script******************* ****************************************/ ranQuote = new LoadVars(); ranQuote.onLoad = function(success) { if (success) { RanNum = Math.ceil(Math.random()*5); ran = this["filltext"+RanNum]; _root.cap.fill_text.text = ran;} else { _root.cap.fill_text.text = "The text failed to load due to an error";}} ranQuote.load("comprepair.txt"); stop();
And each button uses a type of this to start the random code:
ActionScript Code:
on (rollOver) { gotoAndStop("1");}
That should be enough to start off at least, I do see what the problem is, the hover caption code will continue to play regardless of the random code, I need a stop/reset code somewhere but can't figure out where.
Someone please help me I have been working on this thing for about a month now, and now it is getting really fun. Thank you.
Mx.transition With _alpha And Html Text Loaded From A Text File
Working on something that is loading html formated text from a text file into a movieclip then applying an _alpha transition to fade in the movie clip.
Problem is, if I embed the font the text does not show up, but if i do not embed the font the text shows up but does not fade in. The text field is set up to render as html. and the data is applied using ".htmltext". Anyone have a solution?
Formatting Text Loaded From An External Text File
Hi:
I have a scrollable, dragable, mini-window that uses multilined, dynamic text updated from an external text file. I also have word wrap, selectable, and HTML enabled for the text.
My question is how do I format the text? Specifically, even though word wrap is enabled, the words are being cut off at the right border. How can I prevent this??? BTW, there is no masking involved, and the text is on the top layer. Also, I experience this same problem, whether the text is loaded from an external file, or if I just type it into the action panel.
Any help will be greatly appreciated.
http://www.atlantaroadcma.org/dragwin2a.html
James
If you confess with your mouth the Lord Jesus Christ, and believe in your heart that God raised him from the dead, you shall be saved.
Text Loaded From Text File Doesn't Have Breaks
I am loading text into a dynamic textbox from an extrenal plain-text file. I was wondering how I would go about putting breaks into my text. HTML is enabled in this dynamic textbox, and I've tried using the <br> tag for breaks, but to no avail. Before hand I could just press enter twice at the end of a line to get a line break, but somehow this doesn't seem to work anymore.
Does anybody have any suggestions? If you aren't quite sure what I am trying to say, please look at the links section on this website ( http://www.alienmelon.com ). There you will see that there are no line breaks inbetween lines of text (no whitespace between lines).
Thanks,
Dr. Shim
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?
Text.Height For Loaded .php File Into Text Field
Hi,
I'm doing some basic linking of a Database to flash, loading text from a "content.php". Structure of php file is like:
myVar=TextGoesHere
I have a dynamic text box inside a movie clip that correctly displays the text. But the text box doesnt automatically resize. If I set it as 300 height, it'll show however much can fit in there. How can i fix this to make it resize itself?
Heres the code that is on the movieclip:
Code:
onClipEvent (load) {
loadVariables("Content.php", this, "GET");
}
And I simply have "myVar" set as the variable in the text box. I have made this work before by resizing the movieclip using the text.Height. But when I try and trace the text height from this, I just get 0.
Thanks in advance!
Creating My OWN Text Scroller For Text Loaded From A .txt File?
im loading my text from an external .txt file... and i know how to make a regular flash component scroller scroll this... but how would i make MY OWN text scroller... just like an up and down arrow...
i tried the one in the kirupa tutorials but it was for flash 5 and it didnt work for me...
Text Loaded From An XML File Dissapears When The Text Is Animated
I've loaded a text from an .xml file into a flash animation. The .xml file
can contain different translations of the text in several languages.
However during development the text is initially written in English inside flash. Once the language.xml file is loaded the text changes into the proper language.
The .xml file is loaded through a document class script.
The problem is though, as soon as i start to animate the text, to move it, then the text loses its translation which it loaded from the xml file and reverts back to the initial english text.
I'd like to know how to fix this, but i don't know why it happens in the first place.
Here's the document class, which loads the translation from the xml file into the text. Not sure if the document class script is even the problem though, because it works initially. The problem starts when animating the text.
ActionScript Code:
package { import flash.display.*; import flash.net.URLRequest; import flash.net.URLLoader; import flash.events.*; import flash.text.TextField; public class LoadLanguage extends MovieClip { private var languageText:XML; public function LoadLanguage() { loadLanguageFile(); } public function loadLanguageFile() { var loader:URLLoader = new URLLoader(); var request:URLRequest = new URLRequest("language.xml"); loader.addEventListener(Event.COMPLETE, completeLoadingLanguageFile); loader.load(request); } public function completeLoadingLanguageFile(event:Event) { var loader:URLLoader = URLLoader(event.target); languageText = XML(loader.data); replaceText(); } public function replaceText(){ weat.text = languageText.website.indexPhp.flashElement.frame5.weAt; } }}
Text File Into A Loaded Mc
I'm trying to get a loaded movie to pick up an external text file.
I have a base movie (A) with a loaded movie (B). This loaded movie calls a text file (SiteNews.txt):
loadVariablesNum ("SiteNews.txt", 0);
Now, I call B into A with a button:
on (release) {
loadMovieNum ("B.swf", 1);
}
When I view this 'B' mc on its own, the text file comes through fine. But as soon as I load B into A at level 1 the SiteNews.txt doesn't come through.
Is this a level issue? Can I avoid all this level stuff by having the same thing happening from within the base 'A' movie?
I feel like I've leap-frogged over some stuff here. Any guidance here would be appreciated.
|