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.
FlashKit > Flash Help > Flash ActionScript
Posted on: 09-04-2002, 09:37 PM
View Complete Forum Thread with Replies
Sponsored Links:
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
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.
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 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 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
Loading External Swf Files
I'm using flash 5 and having trouble loading external swf's. I create an empty movie clip and place it on frame 5 of the main timeline, and give it an instance name of "container". The buttons are on frame 1. So on frame 1, I give a button called "links" this action...
on(release){
container.loadMovie("links.swf");
}
The swf of that name (links) is in the same folder as the rest of that projects fla's and swf's, so it should pick it up.
I also tried something that seemed to be easier but did'nt work out well. I made a movie clip and place this code on frame 1...
loadMovieNum ("links.swf", 1);
Then I placed that movie clip on frame 5, and telling the links button on frame 1 to simply "goto and play frame 5". The swf file appears but i can't center it regardless of where i place the movie clip on the stage..
I'm sure i'm missing some small detail...thanks for any help
PS i'm aware of another method using _levels etc..but i would like to know how to do using the method described at the beginning of this post..thanks again
View Replies !
View Related
Loading External Files
I want to load external flash games from my webpage. My webpage is also flash. I would like the games to run in a new window, and also is there a way to prevent the user from maximizing the window?
Thxs in advance
View Replies !
View Related
Loading External SWF Files
I would like to load external SWF files (each with their own preloading scene) onto a larger stage. There will be a list of buttons on the left hand side, each a different subject, and when clicked it loads an external swf of a menu with 4 pictures to search though onto the right side of the stage. Is this at all possible?
View Replies !
View Related
Loading External .swf Files
Hey
I am just starting to make my Flash MX site.
I know it is going to be too large to preload the whole site in one giant preloader... so i want to break them up.
What i need is to be able to: on the click of a button preload each section of my site independently.
I know I need to load < on the click of a button > external .swf files... but I am not a advanced action scripter, and all the tutorials i have done dont give me any practical use for what i need to do.
Am i doing something wrong?
To my understanding each section has to be its own .fla
And somehow i have to load these different .swf files into my main .fla
Is there anyone out there who can give me a understandable explanation on how to do load these external 'Sections' on the click of a button?
View Replies !
View Related
Loading External Txt Files.
I have 5 different sections on this page i'm making. Each one has a dynamic text field that loads an external .txt file. Each text box has the same properties, 13pt, Blue, Verdana, yet each box looks different when I test the site. also, when I was making the first text field, I had font set to Verdana and size to 12pt and it displayed 10pt Garamond. Do I need to assign style sheets within flash or is Flash bugged?view problem here
View Replies !
View Related
Loading External Swf Files
I have a problem trying to load multiple external swfs into a movie. On the site I want to have a single swf embedded in the html that will then reference 3 other swfs and load and unload them in succession so that I can simply update those files instead of the main file on the site.
Right now all of my files load one after another. I've tried using some delay scripting or a while condition to try to prevent that but I'm not even sure if you can use the while condition when checking to see if a movie is currently loaded.
Do I need to add an unloadMovie script after each file and then check to make sure it has unloaded before loading the next one? Any suggestions or helpful coding would be awesome.
View Replies !
View Related
Loading External .txt Files
I had an issue last night trying to load some external text. All the code looked right. The problem anded up being in the text file itself.
aboutMe = "...";
changed to:
&aboutMe = "...";
and it worked. Just thought someone might benefit from that. Doesn't seem very documented.
Good luck,
1M.
View Replies !
View Related
Loading External .swf Files
Hi, I've been struggling w/ this problem for a day or 2 and need an outside viewpoint. If anyone can help, it would be GREAT!
I am trying to use a loadMovie command on a button to load an external .swf file and place it in a specfic spot on the stage.
when I use: on(release){
loadMovieNum(".swfname",1);
}
the .swf file loads correctly, but in the default placement of the upper left hand corner of the parent stage.
when I used:
on(release){ loadMovieNum(".swfname",_root.empty);
}
(empty = receiving movie clip for external .swf file)
the .swf file loaded on top of everything and was the only thing visible, no navigation of the parent movie was possible.
and finally I tried:
on(release){
_root.empty.loadMovie(".swfname")
}
which manages to load 1 frame of the preloader for the external swf file and then refresh the parent flash movie timeline.
Thanks in advance for any help anyone can give me.
View Replies !
View Related
HELP Loading External Files
Hello...i need some help here please.
I´m creating a flash site of a Tattoo Store here in Brazil and I have a doubt. There are a lot of pictures in the site. I created an empty movieclip just to load the pictures, but i need to put a preloading on this empty MC, to preload each picture...how do I do this?
Someone can help me please!!!!! I have to finish this site as soon as possible...
Thanks a lot!!!
Matheus Kluber
View Replies !
View Related
Loading External Swf Or Fla Files..
I wanted help with a nav bar on my site. I have both parts of it done. I have the swf with the actuall nav bar. And I have a different swf file of a little flash file with some motion on it that i want to be displayed on the same flash file as the actual nav bar. Plz help me try finding out what to do.
View Replies !
View Related
Loading External Swf Files
I have numerous .swf files that are loaded one-by-one when buttons are clicked in my main timeline. But they take 5-10 secs to load, if its your first time on the site. How can I have these secretly load when you first hit my index page? So that when the user clicks on a button, it loads immediately.
View Replies !
View Related
Loading External SWF Files.
Hello...
Can anyone tell me if it is possible to load an external SWF file into a FLA file that im busy creating.
The problem is i got 3 linx on my site, i need to update only one of them and i created the SWF file. So now when i click on the link i want the external SWF file to load in the current movie.
Something like
creat a emptyclip on frame 30 where i still have all my buttons and background active and load the file.
so something like createEmtyClip...
then getURL("video.swf");
but everytime i try to load external files it gives me an output error of "ERROR LOADING FILE C:BLAH BLAHlah.swf
any help please?
View Replies !
View Related
Loading External Txt Files
here is what i am trying to do...i am using flash mx 2004 and i have a button in a scene and i want that button to load an external text file into a dynamic txt field, which resides in a different scene. i have this code scripted to the button:
Code:
on (release) {
gotoAndPlay("About");
loadVariables("about.txt", "About.textMovie");
}
the initial scene is named "Home" which harbors the button and textMovie is the name of my dynamic text field, which is in the scene titled "About", but the text does not load...
my code is probably wrong, so any help would be greatly appreciated.
View Replies !
View Related
Loading External .txt Files
I am having a
huge problem that deals with more advanced (for me at least)
ActionScript.
I am trying to load an external .txt file into my flash document. I
need to do this because the website I am making this for will be
updated weekly and it would be too much of a pain changing the .fla
file. I have read many tutorials on this topic already and none have
worked out for me yet. I am trying to load the external .txt file
over an image (that of a brown box) in Flash. I have tried everything
and I can't figure it out.
Can anybody help me out with this problem? Any help would be greatly appreciated. Please reply or contact me at me e-mail address: LeftyGunsMafioso@gmail.com
View Replies !
View Related
Loading External Files
I am starting a project which will Accompany a book. Essentually the book reader will need files (word, excell, powerpoint, etc) to complete there tutorial.
The user will install the product onto there hard drive, and can launch it whenever needed and can look at the resources when needed. The product will be used for Mac and PC.
I have been told to us a programme called, Zinc, is that right, and any advice would be appreciated
View Replies !
View Related
Loading External Swf Files
I am trying to load small external swf files for a website, so that it loads faster, but the code isn't working for me. I'm using this AS code:
MC_name.loadMovie("filename.swf");
stop();
I have a blank movie clip that should load the external swf. And I have the external swf file saved in the same folder.
But when I test it, it first says "the method loadMovie is no longer supported," then it says "TypeError: Error #1006: loadMovie is not a function.
at record_base_fla::MainTimeline/record_base_fla::frame25()"
(I'm using flash CS 3)
Anybody know what's wrong?
Thanks
View Replies !
View Related
Loading External Swf Files
Hello. I'm hoping someone can end my misery. I've been trying to figure out how to load several swfs into one fla file and get them to run sequentially. Right now I'm able to get the first swf to play after putting it in a level. But when I place the next swf into level 2, both movies play together.
Also, after getting all the swf files to run one after the other, I then have to have buttons that say "play" "pause" and "stop". This is a training module which was originally in Powerpoint and converted into mini swf files. Each swf file contains narration.
Any help would be very much appreciated.
Thanks!
View Replies !
View Related
Loading To External Files
Did they add the ability to output to a file in actionscript 3 or will I have to write a php script to solve that problem? I am trying to save a bitmap to a file and wondered if there were any other ways to handle it besides using php.
View Replies !
View Related
Loading External .rtf Files
Hey i was just wondering if any one knows how to load an external .rtf (rich text file) in to flash 8 after having clicked a button. If anyone knows this actionscript could they please tell me. Thankyou in advance
Jimmy
View Replies !
View Related
Loading External Mp3 Files
i am currently making an mp3 player in flash 8
is there a way to load an external mp3 file not relative to the directory of the folder where you saved your .fla and .swf?
is there a code where i can open a window-like explorer so that the user could just search his own PC for an mp3 file and when he selects it the file will be played by the player?
i can open the windows explorer using this code
fscommand("exec", "explorer.exe");
however i cannot load the file i have selected
thanks in advance
View Replies !
View Related
Loading External .swf Files
I want to make a swf file that loads other swf files and manipulates them.
Something like:
make a movieclip "somelevel"
load "level_3" into it
access stuff in the level_3 swf such as level_3.background_mc etc.
I've been experimenting with loadmovie (it must attach to a movieclip) but I can't seem to access properties in the swf files. Help?
View Replies !
View Related
Loading External SWF Files
Hey. I'm new to the board, and I have been having a problem for quite some time. What I am trying to do is load an external .SWF file into an existing one.
I have a layout, and when the user clicks a button, I want it to load a SWF into a specific location I created for it to load in. So basically, I want to be able to load it, then change the x and y scales and positions. The problems I have been having are:
-It loads, but changing the x and y coordinates or scale doesn't work
-it loads, I can change everything, but the buttons within that SWF file do not work.
Any help would be greatly appreciated.
View Replies !
View Related
Loading External Xml Files?
How do I have dynamic text inside of my flash file to where it is editable through an external xml file? I am creating a website, and the content needs to be editable without having to open flash pro 8 or any other flash editing program.
Thanks for your help!
View Replies !
View Related
Loading External Swf Files
I hope someone can help. I'm developed a nav system based on rotating carousel, which is working fine.Each Icon is an external swf file, when u click on an icon, u jump to frame 2 of that external file which is fine. Problem is when I try and upload swf file into that frame 2,(to act as an info page with btn) I cant get buttons on that file to work.
I've tried..loading swf file into movie clip -this way looks fine but buttons dont work
or I've tried ...uploading straight in - btns work this way but cant get rid of it after I click off Icon button to back to carousel
sorry, I'm new to this and probably explained that really badly! I have a swf within a swf within a carousel swf. Think I need parent/ child?
tnx...Maya
View Replies !
View Related
|