ActionScript 2.0 :: Loading A External Swf Into An Existing Flash Site
Apr 13, 2009
i just need to know about loading external sxf into an existing flash site. i used the load external code. but i just want to know about the link . how must i be. the example it like so
[Code]...
now the path where it says path how must it be. once these files are uploaded to my server. must it be like so(as above) or how the full part which is ./public_html/pics.swf
View 1 Replies
Similar Posts:
Sep 1, 2008
What I wan't to do is load a .swf into an existing .swf to keep down loadtimes. I've placed the visual representation of the actuall loading on the external .swf [URL] (Actuall website I need this for, I'm redesigning it)
I would copy the elements/AS from the website above but it doesn't work. So obviously I've missed something. What I've got is quite simply:
Code:
loadMovie("my_path/my_swf.swf", "stageloader");
"stageloader" being the instance name of a movieclip on the _root containing a graphic at the size I want loaded loaded .swf's to fit.
View 3 Replies
Oct 20, 2010
Im having issues with the loading external video method in acitonscript 3.0 book by todd perkin. The issue is about the lesson on page 308 in ch 11.
[Code]...
This is the only thing that crashing my site. The load external video methods nice but if I cant make practical use of it, its useless. Any actionscript gurus out there know a solution to fix this problem?
View 1 Replies
Nov 28, 2010
I would like to automatically load an external swf inside an existing empty mc (or a new one) and load/unload different external swf on several button click functions. I've been trying so many different methods until its probably loaded with irrelevant functions!
var myLoader:Loader = new Loader(); addChild(myLoader); var url:URLRequest = new URLRequest("homepage.swf"); myLoader.load(url);
myLoader.x=477;
myLoader.y=0;
/* Click to Load/Unload SWF or Image from a URL.
Clicking on the symbol instance loads and displays the specified SWF or image URL. Clicking on the symbol instance a second time unloads the SWF or image.
Instructions:
1. Replace "[URL]" below with the desired URL address of the SWF or image. Keep the quotation marks ("").
2. Files from internet domains separate from the domain where the calling SWF resides cannot be loaded without special configuration.
*/
button_1.addEventListener(MouseEvent.CLICK, fl_ClickToLoadUnloadSWF);
var fl_Loader:Loader;
//This variable keeps track of whether you want to load or unload the SWF
var fl_ToLoad:Boolean = true;
function fl_ClickToLoadUnloadSWF(event:MouseEvent):void
[Code] .....
View 17 Replies
Jul 18, 2011
s there a "best way", to update an existing Flash site to action script 3?
View 7 Replies
Aug 21, 2009
I'm still a newbie in terms of as3, but have built a code-simple flash site (using CS3 & Dreamweaver). I've only just discovered SWFAddress / SWFobject / swffit and have been combing through my flash pages to implement these oh-so helpful tools. Troubled process, as it is...
I have literally spent days (not merely hours) trying to adapt various code, watching and following tutorial and trying to adapt what I find for my existing site (which is, unto itself, still in development)
I'm trying to avoid avoid using external packages and script instead on the timeline, in keeping with how the site was originally built (with hopes this would save me from having to rebuild and reorganise the structure of the timeline - there are several gallery pages and files and buttons and cross-linking). But I'll attach here just one fla ("archives.fla") that anyone whom has experience with SWFAddress might understand what I'm contending with. I've borrowed code from so many sources at this point that the script code is sure to be bungled (one top layer of the fla file, for deep linking).
I would be ever so grateful for assistance in this regard; cannot afford to pass another day trying to figure it out (I am on a deadline)...
file to big to attach; i don't believe looking at the code will be of any use without seeing the set up and references on the timeline... but i'll insert it anyway (below). is there a way to send the file to someone directly?
[Code].....
View 3 Replies
Feb 15, 2010
The index file is .php. Now I've got this little Flash animation that we want to run first, then when it's done go to his website. When I try to add it to the top of the index page all that happens is the site loads like in normally did but with the Flash movie at the top instead of being another page. What do we need to do to have it load on it's own first?
View 1 Replies
Apr 11, 2012
My current HTML4 transitional website has several flash videos. How could I make them play in Apple devices with minimal changes? I've seen numerous threads but I've got confused. Some possible ways suggested in these threads:Identify device from request and serve another format video. Which format should be served here? I need to maintain all videos in 2 format? H.264 encoding was suggested here.HTML 5 options.
View 1 Replies
Dec 22, 2009
I have created a Flash site that I need to add another swf file to. how I can insert this other swf file into my existing website which is also a swf file? Can it be done? I've been tinkering with adding another layer and the timelines but can't seem to get it to work. The site is using AS2 but this newer swf file which I created from SlideShow Pro is using AS3.
View 1 Replies
May 20, 2010
Ok what i have is a site made from 1 flash file where i am loading external swf files for my picture galleries. now what is happening is in Flash, dreamweaver and when i test the site, everything is working perfectly, the problem is coming when i go into internet explorer go to the site and click on the flash button to go to the picture gallery, that is when it is giving me a Error #2044: Unhandled IOErrorEvent:. text=Error #2036: Load Never Completed.
View 3 Replies
Jan 16, 2004
i am extreemly new to flash / website design ( i made my first site 6 months ago ) i am very interested in making a good looking flash site. I have made a simple flash site before using dynamic text loading it form .txt documents. too bad the site is realy lame and i want to make a better one. here is the url to my site here This came about throught the useage of tutorials on this site. i am using flash MX version 6 now i am in the process of making a new site for my profile which will be totaly flash, using flash movies getting imported into a main site under a certain layer.here is how it is set up.
[Code]....
View 3 Replies
Mar 5, 2009
I'm trying to load a jpg from [URL]. I load if from my computer, it works.. load it online, doesn't. And it doesn't give me any errors or anything. The completeListener is not working! Is there a problem with flash loading from other domains or what?.. If I test it, it shows in Safari's activity that the jpg was loaded, but it won't display it.
[Code]....
View 7 Replies
Apr 29, 2010
when I first created my website I defined it in a random folder of my own choosing. Now, many months of construction later I want add some php related stuff and have to setup a proper local testing server.
I therefore have to move the whole thing to an htpdocs subfolder in MAMP - how can I do this so all links and filepaths etc are updated?
View 1 Replies
Jun 5, 2010
The existing site in cakephp with flash. We need to convert it into mobile version.
View 1 Replies
Feb 6, 2010
I have a flash file that is 1.5mb in size. As it takes about 6 minutes for someone on dialup to load this file, I have created a smaller swf file and loaded the larger one from it but I don't want the larger one to begin to play until it's fully downloaded. How do I set this up? I have set up the action script 2 as follows: loadMovieNum("top2.swf", 0);
View 7 Replies
Nov 20, 2009
All I'm trying to do is load an external .swf file into a precise location on the stage of my existing Flash file. I've spent an hour and a half on this site search and found nothing. What do I add to my loadMovie command to place the file at specific x,y coordinates?
View 3 Replies
Dec 29, 2003
I have a page on my site that loads different flash movies I've made - [URL]. There should only be one link at the top. When a little square is clicked I call:
[AS]
_mc.unloadMovie();
_mc.loadMovie(path);
[/AS]
But if you click the link a bunch of times something funny happens - the squares start to come more and more. why?
View 1 Replies
Jan 26, 2012
I am using a TextArea in flash and setting its htmlText property to contain the following link:txtMyTextArea.htmlText = "some dynamic text here that ends in you can check this out <a hrefIt works fine when I test it in flash (CTRL + Enter), although when I open the generated HTML I get the following error dialog:How can I make the link work without receiving the security dialog?
View 2 Replies
Feb 20, 2009
I need to have 4 external links going into my my flash site, seperat frames. It kind of works when using anchors in my "main.swf", and not load the "main.swf" using the loader component, but then all by itself the "main.swf" starts to jump between the 4 different anchors. When I load the "main.swf" using the loader component, nothing happens, and I feel I need to have the loader component aswell. I have tried to put the anchors in seperat frames in the "main.swf" aswll as in the "loader.swf".
This is how my site is build:
index.htm (with the html anchor codes needed) with the loader component "myLoader" in the index.htm loading the "main.swf".
View 1 Replies
Dec 16, 2010
I am running an swf on my localhost and it loads another swf from an external site. It gives me the following error:Connection to [external site] halted - not permitted from [localhost]localfile.swf.I have included the localhost directory in my Global Security Settings, as well as the local file. swf, so it should be trusted and allow the external link.
View 0 Replies
May 9, 2009
I have a lot of questions about how to optimally load my newly created flash site (very large file size). I have created an entire site in Flash (one swf). It will take quite some time to load on smaller bandwidths, so I am wondering: Is there a way to have the main movie clip load, with the others loading in the background, instead of the user having to wait for the entire site to load.
Also, if I add a preloader to the entire swf, how can I get the flash movie to start before it reaches 100%? If not, is there a way to add preloaders to individual movie clips within the site. If not, how can I quickly break my fla apart and make my movie clips into separate swfs. After this, how do I add preloaders to those? Any general tips to greatly reduce fla or swf file sizes?
View 1 Replies
Oct 25, 2008
I'm trying to load an external swf on a button push but cant seem to get the code right. it loads behind instead of replacing what is already there.
var bg_mc:Background = new Background();
addChildAt(bg_mc, 0);
controls_mc.play_btn.addEventListener(MouseEvent.CLICK,
[Code].....
View 1 Replies
Nov 27, 2009
I have an existing MovieClip called mc1 on the Stage. That MovieClip has 2 keyframes, the first one has an image in it, and the second one is an empty keyframe.After compiling, I want to load an image (image1) from the library into the the firstkeyframe, and replace the existing image.
I know I need to right click on the image in the library, export it, give it a class name, and I need to assign an url to it which would be 'image1' in this case.I was thinking of this, but I cannot get the url right, and I dont know how to refer to the firstkeyframe after I've loaded it...
var Imagecontainer:Loader = new Loader();
var image:URLRequest = new URLRequest('image1');
Imagecontainer.load(image);
mc1.addChild(Imagecontainer);
View 3 Replies
Aug 6, 2010
I am using the following code to load an external flv.
var video:Video = new Video();
addChild(video);
var nc:NetConnection = new NetConnection();
nc.connect(null);[code].....
But i want the movie to be loaded into my movie clip object that already created. How can i do it?
View 1 Replies
Jun 23, 2010
I am having an issue with my recently created flash site. I have loaded and tested this site on many different computers. There is a preloader which shows percentage of site loaded and bytes loaded. As far as I am concerned everything works great. When the owner of the company I designed the site for goes to check out things he gets an infinite load percentage and the site never shows up, only the preloader screen with an "infinite" percentage. The only difference between his setup and mine is he uses AOL online.?
View 5 Replies
Jun 13, 2010
Recently, I found a great little Flash project that acts like a jukebox for external mp3 song files, and am using it on my website to play my song demos.I'm now trying to find if there is an existing solution like that for video. I just need some way to progressively download video files from my webspace when the thumbnail is clicked... and am now looking into some sort of Flash jukebox.
I've tried just embedding the video files into HTML, but they don't progressively download for some reason (even though they are saved as Progressive With Compressed Header). I've even tried using prettyPhoto (...a script that mimics a Lightbox like feature, where the whole page dims, and a floating window appears over your site, displaying any media, and allowing you to move back/forth through your list of media)..... works great, but again, not a progressive download, so you stare at a blank screen for a while.
Seems the only way it works is if I have the file on YouTube or some other site, then embed it or use the prettyPhoto app.So, can someone either tell me how to make the embedded file download (OT, but I figured I'd ask), or point at some existing Flash file that serves as a video jukebox, showing all media on a common window?
View 2 Replies
Aug 31, 2004
[code]What I'm trying to do is load an external movie into my main flash site, but I want the main flash site to wait till the movie is loaded then the main time line starts to play again. I would told that the onClipEven(data) would give me this option. So I thought I said that when it's loaded go and play frame 6 of the main time line.My external movie works fine, and it has a preloader, just want the main timeline to wait till that movie is loaded to start to play again
View 2 Replies
Jul 13, 2008
I've got a Flash site up that is almost finished, but it just needs preloaders. [URL]. I plan on using this type of preloader in the gallery section and before the root movie is launched. I'm looking for a preloader that preloads the _root movie, and all of the content it loads on it's level, which will be external SWF files. I plan on using the loader in two ways for the site:
- For the preloader that I will insert before the entire movie, I plan on loading the tattoos/merchandise/contact/news external SWFs which will makeup the content of the _root movie.
- For the preloader used in the tattoos/gallery I plan on using it to display a loading bar on top of the button thumbnail clicked, then displaying the pop-up enlarged image (which is an external SWF file) of the thumbnail on top of the entire movie once the loading is finished.
I've tried some of the preloader examples given in the tutorial section without much luck.
View 6 Replies
Nov 27, 2009
I have an existing MovieClip called mc1 on the Stage. That MovieClip has 2 keyframes, the first one has an image in it, and the second one is an empty keyframe.
After compiling, I want to load an image (image1) from the library into the the firstkeyframe, and replace the existing image.
I know I need to right click on the image in the library, export it, give it a class name, and I need to assign an url to it which would be 'image1' in this case.I was thinking of this, but I cannot get the url right, and I dont know how to refer to the firstkeyframe after I've loaded it..
var Imagecontainer:Loader = new Loader();
var image:URLRequest = new URLRequest('image1');
Imagecontainer.load(image);
mc1.addChild(Imagecontainer);
View 0 Replies
Aug 6, 2009
how to addChild() a new Object to an existing movieClip on stage from an external class....
for better understanding:
This is my external Class:
ActionScript Code:
package joueur
{
public class CreeJoueur
[Code]....
Then i have the main .fla file with a movieClip on frame1 called 'terrain'.
When i try my code, the external class does'nt reach the terrain MovieClip :
ActionScript Code:
Error 1120: Access of undefined property terrain
View 4 Replies