Loading External Html Files With External Css Please Help
Hi people,
I'm new to this forum and new to ActionScript. I have not worked on AS1 or AS2 before so I just got started on AS3.
I'm trying to learn ActionScript 3 and I started experimenting with ideas and workinf examples.
What I'm trying to achieve is a website where the content shown is from external HTML files and external CSS.
My code was working up until trying loading the CSS. The error that I'm getting is "Call to a possibly undefined method URLLoader"
here is my code:
ActionScript Code:
import flash.display.MovieClip;
import flash.text.*;
import fl.transitions.*;
import fl.transitions.easing.*;
var bodyTextField:TextField = new TextField();
bodyTextField.x = 50;
bodyTextField.y = 300;
bodyTextField.width = 500;
bodyTextField.multiline = true;
bodyTextField.wordWrap = true;
bodyTextField.autoSize = TextFieldAutoSize.LEFT;
bodyTextField.selectable = false;
var textBox_mc:MovieClip = new MovieClip();
showContent("html_pages/home.html");
function showContent(paraString:String):void
{
var contentPage:String = paraString;
var myURLLoader:URLLoader = new URLLoader();
var myURLRequest:URLRequest = new URLRequest(contentPage);
var myCSSLoader:URLLoader = new URLloader();
var myCSSRequest:URLRequest = new URLRequest("html_pages/demo.css");
myCSSLoader.load(myCSSRequest);
myURLLoader.load(myURLRequest);
//myURLLoader.addEventListener(Event.COMPLETE, dataOK);
myCSSLoader.addEventListener(Event.COMPLETE, dataOK);
function dataOK(myevent:Event):void
{
var css:StyleSheet = new StyleSheet();
css.parseCSS(URLLoader(evt.target).data);
bodyTextField.styleSheet = css;
bodyTextField.htmlText = myURLLoader.data;
textBox_mc.addChild(bodyTextField);
stage.addChild(textBox_mc);
var myTransitionManager:TransitionManager = new TransitionManager(textBox_mc);
myTransitionManager.startTransition({type:Wipe, direction:Transition.IN, duration:0.5, easing:None.easeOut});
}
}
Can someone please have a look and tell me what I'm doing wrong? Thanks.
ActionScript.org Forums > ActionScript Forums Group > ActionScript 3.0
Posted on: 06-11-2008, 08:25 PM
View Complete Forum Thread with Replies
Sponsored Links:
Loading External HTMl Files?
I am wondering if you can load external HTMl files into your FLASH movie upon click/link ...whatever. Like you can load external .swfs into a certain place...and...if you can ...can you start your NAV/MENU at a level (say 3) and then load all external HTML files into say,...level 2??
I want to use external HTML pages for loading most of the content for a site...quick and easy..already done too. What i want to do is when I click on a FLASH link..have an animation happen where the HTML file is to load...say a door closing...then when it opens the external HTML files already visible/loaded underneath! Thanks...I hope you understand. I want to stay away from using frames!
-whispers- Is this possible??
P.S. Edit/Update...If I tried this using Frames...Could I possibly do sometig like this? OnClick of link "X" Load external Intro/Preloader.swf?..AND THEN....if that .swf use sometihng to keep looping (preloader) until HTMl pages is loaded into that FRAME?? Can you preload an HTML fle? What would you use? I have only used if frame loaded actions...maybe the KBloaded??? Someone help me out here.. Thanks! -whispers-
[Edited by whispers on 11-20-2001 at 03:58 PM]
View Replies !
View Related
Loading HTML From External Txt Files?
Is it possible to load HTML from an external txt File?
I want to make it so that I can change certain images externally (using a .txt file, maybe with <img src=""> tag), not sure if I can do that using external .txts.
If not, is there another method of changing images externally, without having to go into the .fla?
Thanks
Russ
View Replies !
View Related
Loading External HTML Files Into A Movieclip
Hey,
I need to know how it is possible to make a button so that when you click on it, it will load a external HTML file into a movieclip. If anyone knows how to do this could they please help right away, cause if been tryin to figure it out for weeks and my client needs to see a copy of it tommorow. Please, please help
Thankyou in advance Jimmy
View Replies !
View Related
Loading External Txt Using Btns [txt Files With Html Tags]
Does anyone know of any beginners tutorials which can help me do the following:
I would like a series of buttons to load a variety of different external txt files which need to contain the basic set of html tag, most importantly I need the buttons to load txt files which contain website links
I can't find any tutorials which over loading txt with html tags in it and how you load them using a button
Any help or advice would be great, Thanks
Ravenotice
View Replies !
View Related
TextArea Component Problems (loading External HTML Files)?
I'm having a lot of trouble loading my HTML files into a textArea component that I have. The main difference is that when I try to do it on the ._root stage, it works, but if the component is nested inside a movie clip, it can't seem to load the html file at all.
Okay, so here's the situation a little more in detail (forgive me, I don't have the files open in front of me at the moment, so I'm going strictly by memory):
The textArea is a part of a graphic symbol that I made as a popup window, so for or purposes, I'll call it 'window'. This symbol, containing the aforementioned textArea component, is inside a movie clip that I used to make transitions for the window. We'll call this movie clip "popup" as that's pretty much what it does. So in my main stage, I have a button that loads the movieclip "popup". Say the code looks like:
on(release) {
this._parent.attachMovie("popup", "instance1", 1);
window._x = 0;
window._y = 187;
}
This loads the "popup"movie clip just fine. It plays and all, but inside the movie clip, on frame 1, I'm trying to load the external html file into the textArea component that's inside the "window" symbol with a script like:
var loadtextContent = new LoadVars();
loadtextContent.load("content.html");
loadtextContent.onLoad = function(success) {
if (success) {
textArea.text = loadtextContent.mytext;
}
};
That's not verbatim, but I know that it does work on the main stage, I just can't seem to get it to work on a textArea that's anywhere else.
Want I want to do is just have a swf and when you click on a button, it loads the popup to simulate a GUI, with the html loaded on the fly, as there would ideally be several buttons for different html files.
Now, I'm rather stuck. I don't really know where I went wrong. Am I placing the script in the wrong places and using incorrect target paths ? (I do that sometimes) Am I just approching this the wrong way? In theory, it shold work, but I can't get my html loaded, so any ideas at all would be appreciated. A workaround or another way about this would be as well. Thanks all.
-J
View Replies !
View Related
Loading External Files Within External File
Is there a way to load an external file from within an already loaded external file?
Example:
I want to do a section devoted to blog entries. So, I was wanting to externally load the dated references in one textbox on the right side, and when the user clicks on one date, it loads the referenced text file into the larger box next to it.
Any ideas of how to accomplish this?
Thanks!
bbbco
View Replies !
View Related
Loading External Text Files With Links To .swf Files
i am loading a external text file with html links. I would like to know if anyone out there know how to make those links load .swf files, that would work with the levels hierarchy of the original level0 file. I tried passing a variable that would be detected by a movie clip on EnterFrame but no success, maybe I had written something wrong. Loading just the swf file will replace the html page on the browser.
View Replies !
View Related
Why HTML From External Files Is So Limited?
I am trying to find info on why when using text files externally with HTML tags that images are not recognized. The tag, for instance, img src="whatever.gif" with the less than/greater than signs..... Well, any image for that matter. Where can I read on the *full* limitations of HTML tags.
I already know about the workaround by scrolling a movie instead. Any info would certainly be appreciated. My ultimate goal is to try and make a movie configurable with external files so as to not have to constantly go into the various movies and change objects.
-SRG
View Replies !
View Related
External Pictures & Html Files
i need help !!!!
i need to load in a html file with 1 picture or 2 into the flsh movie...
somthing like this:
http://www.flashkit.com/jump.php?ID=7167&type=movies
i can load plain html into my movie but not with pictures.
but i canīt figure it out how !!!
Plz help me !!!!
Thaknz // Mike
View Replies !
View Related
Editing External Html/txt Files
ok, so i am loading external text files, formatted as html, into dynamic text fields and it's working great. now the next step is to enable my users to edit the text files through their web browsers without having to deal with (or mess up) HTML tags. i want it to be a little like posting on a forum... you have a bold button, maybe an italics button, not much more.
the trick is when you click save, the HTML code is generated and saved to whichever text file you are editing. this would be great, is it even close to possible?
View Replies !
View Related
Using HTML Or TXT For External Text Files
Hello all,
Dynamic Text, Odd Characters and Quality
Hello all,
I am having a couple of issues with dynamic text. I am loading fairly simple text documents, but am ending up with some font oddness. For example, I am using plain Arial in the CSS but am ending up with words running together. In the word "Oxygen" the "Oxy" letter spacing is really tight. Do I have something odd in the CSS? Here it is:
.bodyCopy
{
font-family: Arial;
font-size: 12px;
color: #666666;
line-height: 28px;
}
Pretty straightforward so I can't figure out why things look bad. Would embedding the font, even if it's arial, make any difference? How does that work in the code? I tried using the embedFonts = true; but that didn't seem to really do anything.
So I'm thinking that perhaps I should be loading HTML or something for these external text files. These aren't huge, but several of them contain listings, headline, main body copy, sub head - the typical sort of thing on would find in a text file. Is there a good primer out there as to what works with CSS and text files or different ways of getting text files into Flash?
My other problem is that non-letter characters are really hard to work with. For example, the + and % need to be written as %2B and %25 which is really annoying. Is there an easier way to do this? Would for example, loading an HTML file be easier than a .txt file? This makes it really difficult for a client to edit a file.
So any pointers on making this look better and easier really appreciated.
View Replies !
View Related
Html Tags On External Txt Files
Hello
I have external text files which are being loaded with all the formatting being done within the 'txt' file. So it has all my tags (<B> <i> <BR> etc)
Is there a way to get it reading the text file with more update tags ... for example <strong> instead of <B> ..... <em> instead of <i> etc
Sandman9
View Replies !
View Related
Flash CSS And External HTML Files
I have loaded an external html file and external css file using this process: var myStyleSheet:TextField.StyleSheet = new TextField.StyleSheet();
myStyleSheet.onLoad = function(){
blablabla...
The script works until I upload it to the internet. There seems to be a timing problem between flash and the external files. Sometimes I get the formated text and sometimes I get unformated text . If I go fwd to the next frame and then back sometimes it clears it up and produces formatted text. This problem has also arose using global variables in the past but can be corrected by a different formating of code but this problem with html seems to be cut and dry. Has anyone experenced this problem with external html files and external CSS files?
Thanks
View Replies !
View Related
Limitations Of Using External Html Files?
I am quite new to flash, so forgive me if the question has been answered before, but I have not been able to find it anywhere.
When using external text files, is there a way to start a MC from that text file with the current flash movie as a background?
I tried using a textarea and feed that with plain text/css. I placed a <a href......> in the text, but when the link is clicked, the main MC will disappear and the new MC is displayed on a white background.
So what I need is: I display a textarea in the main MC and the text in that textarea should contain links to other MC's that use the main MC as a background.
View Replies !
View Related
Linking To External Text Files In HTML
Sorry to post another HTML related thread, but you guys are just so helpful .
As my site will eventually have a huge amount of pages, but all with the same template I was wondering if it was possible to link to source from a .txt file. I would place this where the main content of the site is and all the headings and links around the outside of the page would stay the same. It would contain the small bit of html coding that actually does change each time. Could this be done using javascript in a way similar to how text is loaded into a dynamic text box?
I know I can do something like this using frames, but I would like to keep to the layout I have created in tables and I would rather not clutter my space with tons of .html files that are all nearly identical.
Thanks for any help.
View Replies !
View Related
Adding External Html Files Into Flash
I am trying to create a flash file with an area of the movie displayed as html.
I have seen this on a cd where a rectangular area is scrollable and is basically html code being picked up from external html files.
When a user clicks on any of the flash buttons, the text changes to that of another html page.
Any ideas how i can do this?
View Replies !
View Related
External Text Files With Html Tags
I currently have external .txt files to create content for my site.
I use this code to create an email link:
<font color ="#00B300" size="13"><a href="mailto:question@mysite.co.uk?Subject=questio n" ENCTYPE="text/plain" target="_blank">question@mysite.co.uk</a></font>
I have control of colour, size and even a prefilled email subject box.
What i want to do is have a rollover colour to emphasise the link is live?
I can't work out how and if this can be done.
cheers
Rat
View Replies !
View Related
Problems In Frame 1 With External HTML Files
I am having an issue with loading two external html files within my website.
I have a case study page with a dynamic textbox and a scrollbar attached to it.
I have another page "news" that contains another dynamic textbox with a scrollbar attached to it.
I created two .txt files with my information for both pages.
Working in Flash CS3 with Actionscript 2.0 at 30fps.
My problem is this:
I can go to my news page and the .txt file will be visible, but once I go to the other case study page and reveal that .txt file, I go back to the news page and the .txt file is no longer visible. Only a nonworking scrollbar is displayed with no text and nothing else.
I believe I need to do something different in Frame 1's Actioncode. I just don't know how to get the other .txt file to work along with the other. I will be adding more .txt files in dynamic textboxes later and I really need to resolve this issue so I am able to add them with no problems. Appreciate anyone's help immediately if you can.
Here is the temporary website link so you can test and see my problem. Don't forget to go the the news button first in the navbar. Then go to the case studies link and find the MAX Cat Packaging and view that .txt file, then go back and you will see my problem.
Click Here to Visit Site
Attach Code
Frame 1 Code:
stop();
// create a variable for a LoadVars function and name the variable LoadVarsCase
var LoadVarsCase:LoadVars = new LoadVars();
// when LoadVarsCase is called from Frame 1 of symbol mcStudyinfo execute this function
LoadVarsCase.onLoad = function (success) {
// if the external text file was loaded into memory successfully load the text into
// the dynamic text box caseStudyMC
if (success) {
_root.StudyinfoMC.caseStudyMC.htmlText = LoadVarsCase.caseStudyMC;
// if the text file did not load successfully display an error message in caseStudyMC
} else {
_root.StudyinfoMC.caseStudyMC.text = "An error occurred loading the requested content.";
}
}
stop();
// create a variable for a LoadVars function and name the variable myLoadVars
var myLoadVars:LoadVars = new LoadVars();
// when myLoadVars is called from Frame 1 of symbol webcontentInfo execute this function
myLoadVars.onLoad = function (success) {
// if the external text file was loaded into memory successfully load the text into
// the dynamic text box webNewsinfo
if (success) {
_root.webcontentInfo.webNewsinfo.htmlText = myLoadVars.webNewsinfo;
// if the text file did not load successfully display an error message in webNewsinfo
} else {
_root.webcontentInfo.webNewsinfo.text = "An error occurred loading the requested content.";
}
}
case study text symbol code:
// create a variable for a StyleSheet object and name it cssStyles
var cssStylescase:TextField.StyleSheet = new TextField.StyleSheet();
// load the external style sheet into memory
cssStylescase.load("CaseStudy Info.css");
// after attempting to load the style sheet, execute the
// function and pass on whether loading was a success or not
cssStylescase.onLoad = function (success) {
// if informed that the style sheet loaded successfully apply the
// style sheet to the dynamic text box caseStudyMC. and then load the
// external text file into memory and notify the LoadVarsCase function
// in keyframe intro if loading the text file was successful or not
if (success) {
caseStudyMC.styleSheet = cssStylescase;
_root.LoadVarsCase.load("caseStudyMC.txt");
// if the style sheet did not load successfully
// display an error message in caseStudyMC.
} else {
caseStudyMC.text = "An error occurred loading the requested content.";
}
}
webnews text symbol code:
// create a variable for a StyleSheet object and name it cssStyles
var cssStyles:TextField.StyleSheet = new TextField.StyleSheet();
// load the external style sheet into memory
cssStyles.load("NewsFlash Info.css");
// after attempting to load the style sheet, execute the
// function and pass on whether loading was a success or not
cssStyles.onLoad = function (success) {
// if informed that the style sheet loaded successfully apply the
// style sheet to the dynamic text box textInfo and then load the
// external text file into memory and notify the myLoadVars function
// in keyframe intro if loading the text file was successful or not
if (success) {
webNewsinfo.styleSheet = cssStyles;
_root.myLoadVars.load("webNewsinfo.txt");
// if the style sheet did not load successfully
// display an error message in webNewsinfo
} else {
webNewsinfo.text = "An error occurred loading the requested content.";
}
}
View Replies !
View Related
How To Open External Html Files From Within A Movie?
hey everyone. i'm working on a flash menu and i'm trying to integrate it into an HTML www but i'm having one problem... i don't know how i can open external html FILES (not actual www URLs) when i press a button in the menu. lets say the menu is located in the window index.html and after pressing a button, i want index2.html to load in the same browser window. how can i do this, assuming that both files are in the same folder?
thx in advance
View Replies !
View Related
How To Open External Html Files From Within A Movie?
hey everyone. i'm working on a flash menu and i'm trying to integrate it into an HTML www but i'm having one problem... i don't know how i can open external html FILES (not actual www URLs) when i press a button in the menu. lets say the menu is located in the window index.html and after pressing a button, i want index2.html to load in the same browser window. how can i do this, assuming that both files are in the same folder?
thx in advance
View Replies !
View Related
Help With Preloading HTML Formatted External Text Files...
I'm making a dynamic web site all in flash, and I need all the content to be dynamic, so it's all being loaded from external text files with HTML formatted text.
The problem is: I want to make a preloader that caches the files before we enter the site, and what it does currently, is it caches the text part of the files, but not the pictures.
for example:
Code:
<b>hello world</b><img src="photo.jpg">
would just cache the hello world part and not the photo. and let's say the photo is 2 MBs, we miss the point right...
does anyone have an idea of how to cache the photos inside the html formatted text?
View Replies !
View Related
Loading External Files?
Can someone tell me how i can load an external file, like an html file, into a movie. I can do it with a text file but I want to make links in the file and I can't make html links in my text files?
View Replies !
View Related
Loading External Swf Files
ok, I have a site where I will be loading external swf files on top of my _level0 page. My question is that there is some content on that _level0 page that I want to dissapear when the new _level1 is loaded. I do not need that content to appear again as the user surfs the site. What do I need to do besides the typical
on (release) {
loadMovieNum ("capabilities.swf", 1);
}
I think I need for it to advance to a blank frame before it loads the _level1.swf file so it does not show. Am I correct in assuming this? What kind of actionscript would make this work? Feedback is appreciated!!
Nate
View Replies !
View Related
Loading External .txt Files?
Ok...what's the most easiest way to do this. I have a Text Box that scrolls perfectly...I don't need to know how to add a scroll bar ..but i'd like to know how i can get a dynamic look for my text. For instance, I want to know if I can get different color text and font...and create links and all that fun stuff.
Thanks
View Replies !
View Related
Loading External .txt Files
i wish to load various external .txt files into a single text box dependant on which file is appropriate through the use of a series of buttons.
specifically; i need to load bios for a list of different people onto a single page according to which name is selected.
ex. select "jon" button from list personalities and bio for "jon" will we'll be displayed in text box.
do i need to make seperate text boxes for each person or can i call different .txt files into a single text.box?
i hope this is clear, any help would be great, thanks
View Replies !
View Related
Loading External TXT Files
Im making a flash-site and I have different windows which in each have some text. I want to load different text from .txt files to each windows and the windows are of course in their own layers. The code im using to open the .txt-files and save it in a variable is:
loadVariables ("home.txt", ""); \that's for the home window.
And in home.txt:
hometext=Testing if this works...
I want the dynamictext to be HTML, WordWrap and Selectable
This worked once but it doens't work anymore.
Ive done everything else except the text so im nearly done with the whole site. If you need the source to the site, reply here and i will send it.
View Replies !
View Related
LOADING EXTERNAL TXT FILES
i have a few dynamic text fields in a movie clip and im loading diffrent text into each.
Inside the movie clip i have this code
loadVariables("guess.txt", _root.sections, "GET");
loadVariables("me.txt", _root.sections, "GET");
loadVariables("people.txt", _root.sections, "GET");
loadVariables("places.txt", _root.sections, "GET");
loadVariables("mad.txt", _root.sections, "GET");
None of them are loading in, although when i only had on txt field it worked.
Is it not working cos i have 5 diffrent ones ?
View Replies !
View Related
Loading External Mp3 Files
Please help me.... I am fairly new to Flash. I have been trying to teach myself how to use it this summer and am doing fairly well, but I am having a problem that I just cannot figure out the answer to. I have started a web page and I wanted to gear it towards my family members who have slow connection speeds. However, I also want to have a little bit of music on the page. Now, on a dial up connection it would take a long time to load a flash movie with a decent quality mp3 file in it so I decided to keep the mp3 on my server and have flash load it after the page opens up by using this code:
mySong = new Sound ();
mySong.loadSound("MySong.mp3", false);
mySong.start();
Now for some reason this seems to be working on my friend's computer (he has a cable connection), but I can't get it to work on mine (I usually connect to the internet via my school's LAN, but am currently using a dial up connection). The movie loads just fine, and I can tell that the song is loading because I also have included in the movie something that shows the percentage of the song that has played. If the song isn't loaded, then it usually shows "NaN" or not a number because I am using some math to figure out that percentage and it ends up dividing by zero if there is no song loaded. But, the way that I have it right now, after about five minutes (the time that it takes to load the song), that "NaN" turns to a zero, indicating that the song is loaded, but has not started to play yet... So, I what I need is some help determining why it is that this is working on my friend's computer and not on mine... Oh, and in case you were wondering, I started out by using a streaming sound, but it wouldn't buffer fast enough so I had to change it to an event sound (i.e. : mySong.loadSound("MySong.mp3", false). Now I know that the song has loaded, but for some reason, it just won't start playing. I have been trying to figure this out for two days now, and have come up short. If you have any ideas on how I can make this thing work, please help me... I would appreciate any help that you can offer...
Thank you,
Dominique A. Ramirez
P.S. if it helps, my address is geocities.com/dominique_a_ramirez/new
View Replies !
View Related
Loading External Swf Files
I am having difficulty in loading an external swf file into my main flash page. I am using Flash 5. I have set up an action layer with a frame action loadMovie
("Xpage.swf", "target");
I have then created a movie instance named target with another movie within it consisting of a box named "box".
I have then made a button in the same frame with the object actions
on (release) {
tellTarget ("logo") {
gotoAndPlay (1);
}
}
When I test the movie I get the following error message
Target not found: Target="logo" Base="_level0"
I am not sure how to fix this.
Any help would be greatly appreciated.
Thanks
Schmidty.
View Replies !
View Related
Loading External Txt Files
Hi,
I want to load .xml (or .txt) files into my swf (in same folder),it works fine locally but when I publish the files online .it doesn't work.
I used absolute and relative paths but nothing.
My swf=index.swf
My xml=interface.xml
//
I finaly used this :
var url=_url.substring(0,_url.length-9);
var filename=url+"interface.xml"
nothing is loaded though ,any help?
View Replies !
View Related
Loading External .swf Files...? Help
Ok...I'm trying to make a photo gallery with different sections. the original .swf file is too big with all the images in it so i wanted to make each gallery a seperate .swf file. the problem is, I have a menu that's supposed to lay on top of the photos...when i load the external file, it loads on top of everything in the original - despite the fact that it loads into a movie clip that's on a bottom layer? is there any way around this??
is there a way to load an external .swf file into a certain layer on your current movie? is there a better way to do this...? maybe with scenes?
thanks,
Clint
View Replies !
View Related
Loading External Swf Files
I am not sure how to do the following:
i am creating an image scroller. i t will be on a loop so that each image appears two times in the scroller. the 'scroller mc' is composed of two instances of the same movie clip - 'imagesMC'. this parent movie clip ('imagesMC') will itself contain several mc's (image1, image2, image3, etc.) that on enterFrame will load external swf files.
my question is, if an external swf file is being loaded into one of the image1/2/3 mc instances will it automatically load into the second instance of the movie clip? or not because each instance will have a distinct name?
how can i get it to load into both instances of the parent mc at the same time in an effort to cut down on the load time/size?
do i load all the external swfs into the image1/2/3 mc's and then duplicate the imageMC? can one duplicate a mc into a specific position or do i have to duplicate it and then replace yet another mc that's already in the postion i want the new duplicate to be in?
hope this is making sense.
thanks to anyone for a reply.
stumped.
cheers-
cindy
View Replies !
View Related
Loading External Txt Files
hi all,
I have been working on this promblem for quite i while now with no success. I have 2 scrolling text boxes with scroll bars and i load text into these boxes. 1 loads in and it scrolls. The other only loads half the text.
The txt file that works is called ScrollBar.txt. If i load that file into the 2nd box it works.
What im i doing wrong..
Quote:
Don't knock it until you've tried it..
View Replies !
View Related
Loading External .txt Files
Hi, im getting really confused.
Here is what Im doing, basically I want my main movie, to load another movie onto it.. we'll call the main movie (root) and the loaded movie (loaded).
OK, so In the loaded.swf i have a dynamic text box that loads an external .txt file. Now when i run the loaded.swf by itself, it reads the external txt file just fine. But if i run root.swf, once the loaded.swf gets loaded.. it doesnt show the text... ???
Any ideas why? or how to fix?
Thanks guys
Dion
View Replies !
View Related
Loading External .txt Files
I am having a problem loading external text files. I can load them into my movie fine, but when I load that movie into my main movie the text disappears. Am i targeting the path wrong? heres how I load the text:
loadVariables("homeText.txt", "homeTextBox");
the text is loaded into an MC named "homeTextBox" with a dynamic text field inside it named "textField". The movie that contains this is called home.swf. When I load home.swf into my main movie the text does not appear when i preview in the browser. the font is set to _sans and the color is fine.
The beginning of the text file reads: "textfield=" and then I type my text. Is there a better way of loading this, also, the movie home.swf is loaded into a target in the movie main.swf. Any help would be just great, this is driving me crazy!
Thanks in advance.
View Replies !
View Related
Loading External .txt Files
my problem is loading external text files into a movie and then loading that movie into a masked clip in my main movie. I am loading text into the home page which is then loaded into the main layout. The home page is loaded into a masked clip in my main layout to keep the edges clean, but when I preview the main file the text is not there. If i delete the mask layer the text shows up fine. is this a flash glitch or are there special procedeures for loading text into a masked clip? please help.
View Replies !
View Related
Loading External SWF Files
Hello everyone - thanks to those who helped me out with the loading of random swf files!
i'm now stuck on another problem - i made a generic version and zipped up the files (they are small) - to show as example, for what I am trying to accomplish.
It's seems rather simple, but for some reason will not work on the web.
I have 3 external swf files loading into a movie. When I test the fla file on my computer, everything works great.....when I put the files up on the web (yes the files are all in the same folder)....nothing works.
If you notice on Frame1 in the main movie..I have an array where I am pulling the .swf files - I had also named those .swf files with the direct path.... "http://www.mywebsite.com/intro.swf" that did not work either. I have a feeling the action script for the instance of "myMovieClip'' s not written the correct way for the web.....but I could be wrong.
If you have time - could you please look this over - I would really appreciate it.
thank you,
Jackie
View Replies !
View Related
Loading From External Files
Hey anyone...I'm using Flash MX and on a website that I'm creating, and I have a few LoadVars commands to load certain .txt files into the .swf file. Anyway, it works great, but for some reason, when I update the .txt file, it only updates it for the viewer if they were to delete their temporary internet files, delete their cookies, and clear their history. Now, this is extremely annoying because, though I pretty regularily delete my Temporary Internet Files to save space...others may not..., and one of those text boxes is a "News and Updates" box, so they won't be getting the latest news. Anyway, if anyone could help me out with this, that'd be great! Thanks in advance!
View Replies !
View Related
|