ActionScript 3.0 :: Loading External Swf From Different Website?
Mar 5, 2009
I am quite a rookie when it comes to action script soI made myself an advert from using some video and the filesize is obviously quite large (1mb). The problem is that the sitewhere the advert is to go only accepts file sizes up to 50kb. My plan is therefore to make a smaller version of the advertwhich just displays the company logo, but then loads the other .swffile from my website.Firstly is this possible....... and second how do I do itspell it out really simply as I always seem to get lost inall the gargon. I have been researching it a lot and the problem isthere seems to be a million different ways to do, but I haven't had
Say I load a movie clip "ball.swf", and I attach it to the scene. But then I change root frames, and need to reattach it (I DON'T WANT IT TO REDOWNLOAD!) and it needs to be external,Will the browser cache it, so it doesn't have to be redownloaded, when you call it to be attached?
I have a very basic intro AS3 game. i have a base.swf, level1.swf, level2.swf, level3.swf and youwin.swf.
play the game in flash and it works perfectly! evertyhing loads the way it is supposed to.
i published it, uploaded it to my site, and it plays fine until youwin.swf is supposed to load at the end. i tested it on safari, firefox and opera. it works on opera but oes not play the youwin.swf like it should with the animation.
what are the possible causes for this type of occurrence? i have checked and double checked my code to make sure my variables are correct.[code]...
The problem: I have a Flash website and created the gallery for in in a seperate swf file. I now want to load this gallery into a movieclip once the playhead reachs fram 45. I have loaded the data successfully when the button is clicked, but that's as far as it goes. I try to add it to a movieclip (gallery_mc.addChild(loadGallery); )and recieve the error: "1067: Implicit coercion of a value of type flash.net:URLLoader to an unrelated type flash.display: DisplayObject.". I probably should mention that this code is on the timeline as well, so it isn't a matter of importing events.
notice how it doesn't take any time to load on first URL, but on the second URL, it takes A LOT of time for the flash swf (header) to appear. Even when you change pages, it doesn't seem to get cached.
Somehow through tons of research I've been able to make myself a flash website which features my work. There is one big problem, my site loads really slow and I'm afraid I'm loosing all of my potential clients who probably won't wait for it to load.
Here's my website url: [URL]
I'm hosting with hostgator if that matters at all, I've also optimized the images.
I am an interactive design student working on a flash portfiolio and . I can't figure out how to load a game I made in flash into my porfolio so that it loads after clicking on a button, becomes playable, then have a button to leave the game and go back to my portfolio. I'm working in Actionscript 2.0 because that's all my teachers will show me and I have minimal actionscript knowledge.
Im currently making website in flash. My problem is that I have some trouble with putting one of my games on my website ( Yes it is MY games, not stolen). I use the code:
I have some video that's loaded in to the FLVPlayback component, the source of which is pulled from an XML file.On my own server, everything runs fine. On my clients server, the video is not loading. What could cause this to be happening?The pathing goes a little like this:main.swfvideos/movie.flvxml/data.xmlMain loads the xml file, then the xml file references the movie link and loads it into the FLVPlayback component.
I've built a flash website for my client. I created the website, and it worked just fine. The client then came back with a few minor changes and additions. The only major addition was an intro animation, which I created in 3D / After effects.
Now, the website works when it's on my hard drive, but the minute I upload it, it suddenly stops at 3%. The loader dissapears, and nothing happens after that. I have tried deleting the additions, including the animation, and the updated menu. Same problem, only the point at where it stops loading becomes 5% instead of 3%. I have tried removing the preloader, and creating a shell.swf, which loads the file in using an external preloader. Same problem occurs. If I link directly to the file ie [url]... then nothing happens either (that link is for example purposes only). I have tried copying frames and pasting into a new flash file (main2.swf) and same problem occurs. Lastly, I tried removing the preloader, instead creating a simple test animation that loops until the file is loaded. Also just sits there and stops loading.
I want to create a piece that allows a box to open that would hold say [URL]. The goal is to keep the user on the flash page but allow them to do a quick search without needing to leave the page. From what I can find though, flash can only render basic HTML. So far I have only found responses using As2 which gives me a slim hope but not much. I'm guessing this might be better achieved with javascript.
Have a look at this:notice how it doesn't take any time to load on first URL, but on the second URL, it takes A LOT of time for the flash swf (header) to appear. Even when you change pages, it doesn't seem to get cached. What could be the cause of this?
I have a web banner inside a website, I want to when i click this banner, to open up a external swf on top of the website.So not inside the banner but somewhere else on the side.For example when i click the web banner, a bird flies across the website.So the swf has transparent background. Then in a few seconds the external file unloads.
My site is [URL]. It has an index page to start which then, when clicked, takes you to the flash page. The trouble is that sometimes it doesn't load until the refresh button is pressed.
Have a look at this: [URL] and then this: [URL]. Notice how it doesn't take any time to load on first URL, but on the second URL, it takes A LOT of time for the flash swf (header) to appear. Even when you change pages, it doesn't seem to get cached.
We uploaded a simple flash site in URL... and when it starts downloading for few seconds it shows white space rather showing the perloader. and the background of the website is blue but it show white during this transtional time.
I am building a website entirely out of flash. I know thats not a great idea, but it is not the biggest website in the world, however it does contain seven or eight .sws that take some time to load.When I test the website via a cable connection (T1), the speed of opening the website is not bad, but on DSL pretty slow.I dot want to turn people away from my site how can I make sure my flash site doest load that slow? Ie read somewhere that if you put all the .Ss into one master file it could make the site load faster.seen some flash websites that are big and their files load
I have made a CoverFlow carousel where one image is always displayed in the center and the others are on either side in the background. When clicking on of one the images in the background that image appears in the center. Nothing else should happen. When clicking on the image in the center, a website loads. Using A3 I managed to get a website to open when clicking on the center image. The problem is that when one clicks on one of the background images it comes to the center and then automatically the website loads. I don�t understand why this happens since I specifically stated that on mouse click only it should open. Maybe because it counts the previous mouse click??Here is the relevant code:
PHP Code: private function show(id : uint) : void { fo (var i : Number = 0;i < covers.length; i++) {
I'm an intern for a small college and have been given the task of designing the athletic departments intro page. Nine different sports teams need to be represented (football, volleyball, cross country, etc.). I have all the visual elements in place but I need action script to work for bringing up a randomly selected picture from a pool of pictures for each sport. In other words, after the slide show cycles through each of nine sports, how can I make it so a different picture is displayed the next time through (for each sport). Or if the page is refreshed, a different image is displayed. My boss is not familiar with flash and needs a folder that she can put images in for each sport after I am finished with my internship.
I've got this API loading on every page of the website. Can .SWF tell itself when it has loaded and thereby default to a loaded position? So that when a user moves to different web pages, the API defaults to its loaded point? NOT from scratch? All the blurs and fade-ins are Methods that respond to a bunch of Timer Events. Once the .SWF is loaded how can it DEFAULT to its loaded point when a user changes web pages?
Just finished building my photography portfolio www.tonerayphotography.co.uk in Flash CS3 using some Action script 2. When I first uploaded the site in Firefox 3.5 the menu buttons were `stuck` and there was a delay of about 30 secs before I could use them. Once I finally got use of the menu buttons I later returned to the site and it worked perfectly. Is this because the site was now in the cache of Firefox?
On my stage timeline there is one navigation movie clip holding aboutl 50 of my photos. Is this delay due the size of this movie clip trying to load?
I have a movieclip clip that plays when the movie starts, the movieclip is a visual assets that show's that the application is loading some information but it's not showing any loading progress, just playing while the assets are loaded.I created a for loop that will load the assets using a simple loader, and then when the object is loaded the application push the object to an array.Problem is that when the loading starts all the animation that i have on screen stops until the loading is finished.The whole point is that the animation will play while it's loading.
I spent almost a week trying to figure out how to unload a currently loaded swf using its button and loading a new swf... I have three files, a main.fla, file1.fla and file2.fla. In my main.fla, I have a code which loads the other two files. If i will click the "unload" button in the file1.swf, I would like the main.fla to unload the file1.swf and load the other file, file2.swf. Here is the code to load the file1.swf:
[FMX] I am having trouble loading an XML file on an external server into my flash movie when it is uploaded. The data loads in fine when the flash file is on my local computer with the xml file on a server. As soon as the flash file is uploaded the XML data will not load in.
So, I have to make a link to an external URL on a flash website, but I want it to appear in my flash website. So like the top banner of my flash website appears on top of the external link so that way users can just click on a link on my top banner and go back to my home page of the site.
I'm creating a website for a cabin and I want the users to be able to view a calendar that exists on the reservations website. The calendar is constantly updating as people are reserving cabins. I want this calendar to dynamically load from the external server onto my website for people to view. Then once they view it - I want to remove it on the next mouse click. Right now it stays and ends up on every page in the website. I think it should be easy and I have some sort of misunderstanding of how to do it. I have literally spent days trying to get this stupid thing to work. It's driving me crazy!!! Here's what I have right now.
I want one animation of a content area but i want the menu to run the animation and put in a certain .swf so i can have something like:when u click a button that is suposed to goto Home then it plays a MC that has Home as an external .swf loaded into it and when i click another link like Portfolio it starts that MC over but with Portfolio as an external .swf in it
I am trying to link some text to an external web site. I am using the following code, but whenever I try to launch the external web site, I get prompted by Adobe Flash Player Security saying that it has stopped a potentially unsafe operation. It then tells me that I need to change my security settings in order to view the website. I am wondering if there is any way around stopping the security check, or is this built into Flash?
var linkLaunch:URLRequest = new URLRequest('content/web/fuel/project/home.html'); navigateToURL(linkLaunch);