ActionScript 2.0 :: Swf Does Not Load Other Swfs In Safari?
Dec 17, 2009
i have a very frustrating problem, which occurs only in safari:the main.swf loads an external swf-file.alas in safari this does not work. Movie clipLoader throws out an URLNotFound with httpstatus:0.
I am loading eight external swfs by way of eight buttons with actionscript to remove the swfs and sound after a new button is clicked. This works fine except that as soon as you get to the frame where the actionscript is all the swfs load at one time on top of each other. I don't want any to load until the button is clicked for the right one. MouseEvent listener works but only after all the swfs have loaded. How do I get the swfs to load only when the buttons are clicked. I can't figure out what I am doing wrong.
I have a html page that has a flash movie embedded in it. In the movie, when a button is pressed, it passes variables to a PHP script, processes them and then sends the variables back to the movie (all behind the scenes)... It works perfectly in Firefox, but in Safari 2.0.4 (for mac) nothing happens when I press that button...looking at the 'Activity' window in Safari, it shows the url to the php file and beside it '0 bytes of ?' indicating that it can't locate or process the page properly.
Has anyone else encountered this?
The strangest thing is that I just tested it on my older mac laptop which has Safari 1.3.2 on it, and it worked fine! ... I've never had problems with php on the 2.0.4 version of Safari before (being run on an intel iMac) ... and I tried it on another iMac in here, and it didn't work on it either!... so it must just be that version of Safari for some reason..? and I also tested this file on a PC with both IE and Firefox and it worked fine..so I'm confused as to what could be going on.
I have a page that loads loads of swfs*. I'm loading in them all at the same time, Sequentially which is slowing down the intro animation. Is there a way to load swfs sequentially? Or if not load them on a timer (half a sec would do the trick I think)
*there lots of different dynamically generated Flex graphs so it's not possible to have them all in one.
I'm loading (and unloading) external swfs into a holder in my main document. However, they seem to load perfectly the first time, but after that, they load at a different x and y. I've seen this happen before in someone else's file, but I'm not sure what the solution is.
Okay so I am trying to load external swfs which load videos dynamically.
I can load the swfs into the parent fla fine (if I remove all the code and just place a circle or something on the stage of the swf), and the swfs are also loading their respective videos correctly. But when I try to load the external swfs, if they contain any casting related code in them, I'm getting an error
[AS]TypeError: Error #1009: Cannot access a property or method of a null object reference. at swf1_fla::MainTimeline/frame1()[/AS]
Is there some specific method to casting within external swfs?
My code for loading the videos is this:
[AS]var vc:NetConnection = new NetConnection(); vc.connect(null); var vs:NetStream = new NetStream(vc);
I have a website im working on and I have it load multiple swfs etc. But although the site will load in the beginning it takes time to load each swf. Although I grasp the logic behind that is there a way to make them just all load at once? Like an AS code to include in a preloader of sorts?
Trying to load swfs with loadmovie script. They load fine but when close window button is pressed the Main movie behind it dissappears to blank screen.
I'm having a heck of a time trying to get a number of external SWFs loaded into one main SWF in successive order, the next one playing after the other has ended. To complicate matters, the external SWFs have FLV files in them.
using Flash CS3 Actionscript 3.0
So, here's essentially what I'm looking to do: - I have one main SWF file (call it main.swf)- load several SWF files into this file so they play in order (let's call them movie1.swf, movie2.swf, movie3.swf, and so on) - these external SWF files all have FLV progressive downloads (not embedded, becuase then my audio doesn't sync up) - I want movie1.swf to load and play in the main file, then detect when the movie is complete, and unload that audio/video then load in movie2.swf, and so on.
This script seemed promising, but loads all of my SWFs on top of each other, making for some ::interesting:: audio... (i have it pasted in actions on first frame in main.swf)
var a:Array = new Array("movie1.swf", "movie2.swf", "movie3.swf");var tl:MovieClip=this var index:uint=0; loadF(new Event("nada"));
[Code]....
Maybe there's some code that can be pasted in the individual SWFs?
I am using this thumbnail gallery attached but instead of loading images through the xml I want to load external SWF'S. I also want to be able to control each SWF loaded in individually apparently in order to do that I need to give the container different instance names..however I don't know how to extend the code inorder to achieve this..
I have a preloader and I want it to load each section when called with this code: Callback function: caps_mc.btn_continue_mc.addEventListener(MouseEvent.CLICK, nextpls); function nextpls(e:MouseEvent):void { MovieClip(parent.parent).nextSWF("startPage", parent);}
The code above tells the preloader that it is finished with the startPage and in the preloader it should next load faq, but I get an error saying that nextSWF is not a function when it clearly is, Is it even possible to use a preloader to load up swfs in this way??
Preloader: import flash.display.*;import flash.events.*; import flash.net.URLRequest; var loadedSWF:Loadervar progressPercent:Number; function startLoad(SWFName:String):void { loadedSWF = new Loader(); loadedSWF.contentLoaderInfo.addEventListener(Event.COMPLETE, gameLoaded); [Code] .....
Here is the error: TypeError: Error #1006: nextSWF is not a function. at startPages_fla::MainTimeline/nextpls()[startPages_fla.MainTimeline::frame1:7]
Let's assume that I can't script the loaded swf, nor can the loaded one script the loader swf.
I was attempting to set frame rate to 0, and wait after all swfs are loaded, and set frame rate back. But I found when I set the frame rate to 0, I could not receive the complete event! And it's weird that i can still receive UI events...
Is there a way to load several swfs and start them together?
Can I load external SWF files using Javascript sequentially? Or does it have to be in Flash to load the SWF files from XML?
Currently we have SWF banners (900 x 230) loaded from XML sequentially and it works fine, but it is killing our computers. I wonder if the javascript will run the SWF banners smoothly?
I've got this down using ActionScript 3, but I am in over my head trying to revert back to ActionScript 2.
I have a main swf that acts as a shell and calls up external swfs via XML upon a button click.
I've read a number of tutorials over the past few hours, and have learned the basics of how to trace the XML information; however, I'm struggling getting the content to appear on stage.
I am working on a an automatic slideshow that's also clickable with buttons...I got the code to work fine on my sample file, but now that I brought it over to the actual file I need to make a slideshow out of - the external SWFs don't load all the way! The first default one loads ok - and the rest remain at about 80% Alpha...
//Import classes for easier use import fl.transitions.Tween; import fl.transitions.TweenEvent; import fl.transitions.easing.*;
I'm loading external swfs into my main swf and they should just be playing automatically. When I test in Flash, the system works. Upon loading the swf into an HTML page, the system seems to shut down. It seems liike the exteranl swfs aren't even loading. This is what I've got so far.
var clips:Array = ["amerishelf2.swf", "bedHardware.swf"]; var index:int = 0; var thisLoader:Loader = new Loader(); thisLoader.contentLoaderInfo.addEventListener(Event.INIT, doneLoading);
i have multiple SWFs loading on multiple button clicks. so by default i have one.swf loaded on the screen. now when button two is clicked i load two.swf replacing one.swf. similarly when button three is clicked i load three.swf.
is there anyway i can preload two.swf, three.swf and other swf files in the background so that when user clicks on the button to view these, the swf is already loaded and takes no time to appear.
i'm using hga77's xml menu you can view here.ok, so i'm trying to load swfs from the menu, what i've got so far is:
Code: function executeAction() { loadMovie("NEWS.swf", _root.content); trace(NEWS.swf);
[code]....
but the menu stops working. is there anything i can stick in this bit "function executeAction()" that will make the loadmovie load a different swf each time, rather than creating loads of loadmovie functions.
I am working on a an automatic slideshow that's also clickable with buttons...I got the code to work fine on my sample file, but now that I brought it over to the actual file I need to make a slideshow out of - the external SWFs don't load all the way! The first default one loads ok - and the rest remain at about 80% Alpha... Does anyone have any idea what may be the prob lem??
//Import classes for easier use import fl.transitions.Tween; import fl.transitions.TweenEvent; import fl.transitions.easing.*;
While I'm not new to Flash builds I am certainly new to ActionScript 3.0. I'm currently trying to use a myLoader variable to load the different pages of my site(.swfs) but for some reason the swfs are just loading on top of the current swf. I've listed the code below.
var myLoader:Loader=new Loader (); ask_btn.addEventListener(MouseEvent.CLICK, askcontent); function askcontent(myevent:MouseEvent):void { var myURL:URLRequest=new URLRequest("ask.swf"); myLoader.load(myURL); addChild(myLoader); [Code] .....
is it possible to loas as3 swfs with loadMovie into as2 swf and keep them working? i have a whole as2 swf website and i want to embedd an as3 flv player....
I am delving into AS3 and need a little bit of help. I am building an application that allows users to view content by clicking "next" and "previous" with a visual cue telling the user what slide they have loaded (slide 1 of 15, slide 2 of 15 etc etc) but I am really struggling with it. I want to load each slide as an external SWF because they are heavy.
I found this code online which loads swfs when you hit a "next button" but I have no idea how to get it to work to load swfs when you click a "previous button" and how to add the slide reference:
I want to embed multiple swfs on a single page. they will be identical. i was wondering if browsers will redownload the swf each time or store the first one and retrieve the others locally? if they re-download it, is there a way to tell the browser that it can use the same one?