Using Actionscript 2, I'm a bit new to all the scripting stuff.I have a loader loading a couple of flash movies like this:loadMovieNum("sound.swf", 1);loadMovieNum("logo.swf", 2);loadMovieNum("mainmenus.swf", 3);Those 3 movies I need to go to the main section of the site. However, I would like the loader to also load the remaining movies needed to further navigate the site, but without displaying them now Kind of like 'caching' the rest of the site, so when the access is needed, there's no load time.
I have a question in Flash play/pause button. I have created a flash slideshow which was exceeding 16000 frames, so I've split the movie into two. I'm loading the second movie at the end of the main movie using loadMovieNum. I have placed the play/pause button in the main movie which works fine until the second movie loads. This used to work for me in the older version of Flash (flash 8).I'm using CS4 now.
I have an intro.swf file that is basically a movie with sound that is exported for actionscript but not exported in the first frame. I just stuck it in a movie on my timeline and it works great and the preloader works because it doesn't load the sound before the preloader. I use :
musicSound = new Sound(); musicSound.attachSound("music"); musicSound.start(); to play the sound in intro.swf.
However, now this intro.swf gets loaded into an index.swf and everything works fine and the sound plays as long as I have the sound included in BOTH the intro.swf and the index.swf and the sound is exported on the first frame in the index.swf. I was hoping I could remove the sound entirely from my index.swf since it already loads into the intro but so far
I'm loading an external XML file when in the Flash development environment. ActionScript 3.0 (CS3) accesses the XML file using URLLoader. Everything is fine until I have to make changes to the XML file. When testing the Flash application while in the development environment, it does not see the changes I made to the XML file, because the URLLoader is somehow caching the results. Thus, the XML file looks exactly the same. This is very frustrating. Is there any way I can blow out this cache so that URLLoader is forced to load the XML file? Currently, I either have to re-start the Flash environment or change the name of the XML file.
I'm quite new to flash and got stuck on a problem involving: loading external movie clips and file paths.I have 5 swf files and want to access them from one main navigation screen.[code]It fails after a few click because the file paths get duplicated..[code]Can any of you Flash gurus point me in the right direction?
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?
I'm trying to turn caching off so when I reload the text file, it always gets a fresh copy. I keep getting compiler errors however with the useCache line. I'm not accessing the properties correctly or something. When I take out that line it works fine but always fetches the cached file.
My code is:
loadDoctorVariables(); function loadDoctorVariables() { var requestJo:URLRequest = new URLRequest(" http://www.grxsolutions.com/gtslideshow3/"+doctorURL+".txt");
I've been searching on google and through forums for hours now trying to find a way to prevent my site from cache in browsers. I know it's not possible to "prevent" it from caching, but it's a way to trick the browser into thinking it needs to load the SWF again instead of just getting the one from the cache.Now I've tried many types but I can't get it to work. I don't understand how to implement it into AS or Javascript and what goes where.My site is set up by one parent SWF combined with a HTML script and 6 child SWF's, and they are updating all the time so I really need this function.The most used one is this I think or something close:
Any movie whatsover (i.e. any file in any location on my drive) cannot be published (including test movie via Command-Enter) because I get this error: "Error creating SWF movie file. Be sure the destination file is not locked or on a locked drive. Also, check that the file name is not too long."
The file name isn't too long, and I am logged in as an administrator on the machine. All folders I have tried to publish to are unlocked and I have read/write priveliges to them. This is a new install of CS4 and has been updated to the very latest version (and it didn't work before the update, not does it work after). This is NOT to do with my specific permissions. This is a clean install of Flash CS4 Professional on a very new Macbook Pro running OS 10.5.7.
I'm running Flash CS5 on a Mac (yes I've got Adobe running). However, when I press Cmd and Rtn I get the followng error message: "Error opening URL [URL] how I can run movies in Flash?
1. I've read that when Bitmap Caching an object, if the objects you are caching are bitmaps that all point to the same bitmapData object, than only one instance is cached and used by the GPU. However, if the bitmap contains a scale, does this hold true, or is a new bitmap cached for each object because of the new scale? I'm pretty sure its the second one, just checking.
2. When using cacheAsBitmapMatrix, I've seen examples setting the matrix to identity, and setting it to the concatenated matrix of the bitmap object. Can someone explain the difference between the two approaches? I would assume setting it to identity doesn't scale it up or down when caching is as stated in the documentation:
"The matrix transformation you apply to the cacheAsBitmapMatrix property is applied to the display object as it isrendered into the bitmap cache. Thus, if the transform contains a 2x scale, the bitmap rendering is twice the size of thevector rendering. The renderer applies the inverse transformation to the cached bitmap so that the final display looks the same."
But if this bitmap is nested in a sprite that moves throughout the scene, will the bitmap still move with it? Or will I need to update the matrix's x/y everytime I update the sprite's x/y. If this problem exists, does using the concatenated matrix get around it.
3. Finally, I have seen some sites state that more gpu memory is used when cacheAsBitmapMatrix (such as an additional copy of the texture being pushed into the gpu), but I was under the impression that this would just rotate and scale the texture in memory using openGL matrices. Why would more gpu memory be used when cacheAsBitmapMatrix is set?
My understanding is that when designing for mobile, if the graphic isn't too large, and the object doesn't contain nested animating objects, the best approach is to cacheAsBitmap and cacheAsBitmapMatrix on the object to ensure it won't be pushed to the gpu each frame, but feel free to correct me if I'm wrong. Adobe states "Always set the cacheAsBitmapMatrix property whenever you set cacheAsBitmap to true in content created for mobile devices."
When I tried to import music to flash animations I have created, I received error message that: One or more files were not imported because there were problems reading them.
The platform: Mac AA audio file Encoded with iTunes 10.1.2, Quick Time 7.6.6
Is it because of the audio file format that music cannot be imported? If so, how can i convert it to the compatible format?
I created a simple Flash app that shows a menu on the side with 2 movie choices. Each movie choice is supposed to play a different movie. The whole thing works just fine on my local machine but when I upload to the test server, the movies never start. Near as I can tell the SWF loads and functions fine but the movies dont work... constant loading bar. Of course, I want them to stream in a YouTube-like fashion. I've fought with this for some time, tried .FLV files directly in DW (no joy there either) so I'm stuck. If I replace the movies with images, the SWF functions just fine. Just can't seem to do the movies.
Im creating a website and when I test flash content in an html page locally on my mac, I get this annoying message
"Adobe® Flash® Player has stopped a potentially unsafe operation. The following local application on your computer or network: /Users/myname/Documents/Websites/mysite/version 1/site/Scripts/expressInstall.swf
is trying to communicate with this Internet-enabled location:fpdownload.macromedia.com
To let this application communicate with the Internet, click Settings.You must restart this application after changing your settings."
Ive tried following the settings button and adding "/Users/myname/Documents/Websites' to local storage settings by site but no joy the content still wont play and every time I refresh or test the page I get the same message. I want to add the whole websites directory so I don't get this message again, when testing other sites pages and content.
I have this PHP page that lists several people. When someone clicks on one of the people they are sent to another PHP page that has their video greeting in a .swf embedded into the page. This works by the php writing the path to the greeting video to the xml file that the .swf loads and plays.
Well in firefox it works perfect, but in IE when they try to click on another greeting the original greeting still plays. Its like the swf is caching the first greeting and refresh of the page does nothing to alleviate this. Is this a problem with the swf caching? or XML caching? or am I totally clueless?
I have a small FLA file i created myself. its just a simple mp3 player, pause and stop and a volume slider, thats it.I want to import three instances of this into a bigger movie and have them all available to run at the same time.I need them to be all on the screen at one time (same frames) and I need them each to be able to play a different mp3 The user will not be able to decide which mp3, this is all 'hard coded' into the fla file.So how can I do this and get access to each individual movie's controls?
For example when I use the slider on the first player, I only want the volume to change on the first mp3.Would I even have to worry about this in the big file that has all three movies in it?I mean could I just code the volume slider to work right in the mp3 player file and then the bigger movie file will automatically know that when the volume slider is moved, only to affect the voume of the first mp3?if i do it that way, would I have to save out 3 different versions of the mp3 player file. one with '1.mp3', say, hard coded into it, another with '2.mp3' hard coded into it, etc?
I have recently launched a site for a client which includes an interactive flash element on the home page but it takes a long time to load (10-30seconds). I have followed advice from others about keeping image small and link movies rather than embed but still slow, the swf file is about 7.9mb which i thought was ok for the size of flash file. Does anyway else know where I have gone wrong whether it be the embedding or some other area.
I have always the argument with my colleagues which authoring strategy to use. I always attached to the idea of authoring several swf files, and have them all loaded to the main swf when needed. And than attach Preloader to each swf that I load.
Others think that it should be only one swf with one preloader. And have all the navigation to use scenes or goto actions.
So the advantage of using my strategy is that users will not wait too long for one movie when its being loaded. And its more convenient to work on several fla with each have its own layers, symbols, etc
I want to create a website having one main stage file(main.fla) with different swfs(movie1.swf, movie2.swf,movie3.swf) for various sections. Am not sure what I am doing wrong here but somehow when I click the button it does not load the respective flash file
I am creating a presentation which has a main flash and then 3 sub categories to it. Main.fla is nothing but a container to load the other movies into. I could get the the first movie (movie1.swf) to load onto main.swf by using the foll code:
Now the problem is in movie1.swf the menu is like on the 3rd level, i.e. main stage>menu_mc>menu (where the buttons are).
How can I add a code on level "menu" so that when I click button2 or button3 it loads movie2.swf and movie3.swf respectivley onto the main stage. Makes sense or am making it too confusing..
I want to try this breaking a big movie into smaller parts functionality so that I can understand flash more.
i have a photography website, the main 'index.swf' file has two scenes, one for the loader and one with the content.i have a navigation menu:item 1, item 2, item 3, and so on. i have 10 layers, my nav menu is on layer 10, at the very top.i also have a a layer for each one of my navigation menu content. Now i click on item 2, and i load a external movie clip called "fotos_mc" on to the stage and inside this movie clipe i load pic1.swf using: loadMovie ("pic1. swf", 1);it loads fine, except that it loads on top of my navigation menu, logo and so on, even it's on a layer that's under the layer where i have placed my menu and logo. is there a way that i have load my movie so that it displays behind my menue?
is it possible to keep the loaded movies and then attach them to a mc ?The thing is that I have several external resources to load and I wish to attach them pour MCs along the execution of the movie.
i want to load an external swf movie into the main swf movie. now ive been using the loadmovie script and it works fine but the loaded movie comes up in the top left of my site so my ? is, how can i specify the location of where my loaded movie ends up
I got some movies loading in a container, but the movies stay open, I want to be able to "close" the container, or hide it when I click on other navigation buttons that are included in my main timeline.
Basically I have a primary navigation and secondary or nested menu on one menu item. The following load movie script works fine on the primary menu on the root:
I read the tuts on dynamic loading etc (the one about external stuff like mp3s, jpgs, swfs; and the one with the transitions). I'm messing around with it in MX and all works fine, except the problem I have is I cant check it locally! the bandwidth simulator and profiler doesnt seem to work with loading external content, the movie appears immediately.
So I tried loading the swf from the web (i.e. URL = file://[URL]) that gave errors "opening file" (the movie is there though). my only solution so far is to keep uploading my movie everytime I wanna check it!!! which is CRAP! I dont have a network at home, so cant really use those bandwidth simulators I saw on the sticky. basically I juz wanna load an external movie, and see how the parent movie handles it (i.e. progress is kept track of correctly, loaded notifications work etc.) how can I check all this locally?