ActionScript 3.0 :: While Inserting A New Swf File?
May 24, 2010
I've made this swfContainer in which 'var defaultLoad links to the default swf... After that I've made 2 buttons that link to my swfContainer. The problem is that when I click my links randomly, the swf files just keep piling onto each other, making the site more and more slow!
How do I get my links to clear the container, while inserting a new swf file??
I've tried with both the unload and removechild functions, but I can't seem to figure it out.
I have a created an exe file using CS5 Flash, with multiple imports of swf files into the exe. However, the following problems occur:
1. While the exe file is open, I import a swf file into the main program (exe), and when I wish to close the swf file, it closes BOTH the exe file and swf file. I have made a button to close the swf file, actionscript as follows: on (release)
{ getURL("FSCommand:quit", true); }
Is this wrong or ok? It does close the swf, but closes the exe file as well, and at the same time, and I do not want that.
2. While the exe file is open, I import a swf file, and through the opened swf file, I import another sfw file into the existing swf, which is opened in the exe file, and it seems like the first opened swf file disappears or becomes transparent. For importing swf files, the following actionscript was used:
on (release) { loadMovieNum("Les2Alpes.swf", 12); }
I have been trying to insert flash file but I keep getting error messages that: Not Found The requested URL /annimations/Snow.html was not found on this server. Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
I firstly publish flash into both swf and http files. Then, I opened view source of the http file and pasted the code onto the dreamwaever file. <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="[URL]" width="700" height="500" id="Snow" align="middle"> <param name="allowScriptAccess" value="sameDomain" /> <param name="allowFullScreen" value="false" /> <param name="movie" value="Snow.swf" /> [Code] .....
In addition, I deleted code that swfobject.registerObject(FlashID) on the http file. The dreamweaver gave an error message that the code swfobject.registerObject(FlashID) can cause error when downloading the flash. Finally all http, swf and flash files were uploaded. But I still got the error message above. In the past, I managed to upload flash using the method above, although I did not get any message regarding swfobject.registerObject(FlashID).
I have a created an exe file using CS5 Flash, with multiple imports of swf files into the exe. However, the following problems occur:1. While the exe file is open, I import a swf file into the main program (exe), and when I wish to close the swf file, it closes BOTH the exe file and swf file. I have made a button to close the swf file, actionscript as follows:on (release) getURL("FSCommand:quit", true);}Is this wrong or ok? It does close the swf, but closes the exe file as well, and at the same time, and I do not want that.2. While the exe file is open, I import a swf file, and through the opened swf file, I import another sfw file into the existing swf, which is opened in the exe file, and it seems like the first opened swf file disappears or becomes transparent. For importing swf files, the following actionscript was used:
on (release) { loadMovieNum("Les2Alpes.swf", 12); }
i've been recently working on a game, which based on stills pictures. now, i've made a panoramic 360 swf file using PANO2VR. i've loaded the file into a movie clipe in flash using this code:
I made the header and navigation links in one fla file and all the content in another fla file. I am now trying to create a third file and insert it all together in different movie clips but I have a couple problems. I am trying to copy all of the frames from the content and put it into the third fla but my computer doesn't have enough memory to perform the action (on top of numerous flash crashes). The content.fla is 100mb. I think I have optimized it the best I can, it has a bunch of jpeg thumbnails. Any advice on optimization? Also, any advice on getting the content fla into the third fla? I tried publishing it and inserting swf but I need to access frames in the content fla from the header fla.
I am working on flash headers for a website. After I insert the swf file in DW and upload it, it looks fine in IE. However, in FF there is a gap under the header, so it doesn't look uniform.
I am doing a project for someone and we bought a template and I know enough to modify pretty much anything we need... until now.I want to do exactly what is listed here: [URL]But I can't figure out where to add the code. I'm not much for adding, so far I've been able to copy something in the library and modify it to do what I wanted but I have no idea what I can copy or modify for this.
I'm working on a Flash project that includes a number of buttons, each of which opens a Web page using the getURL function.I'd like to write the URLs into the XML file, then have the AS2 code reference those URLs.[code]
I'm currently developing a full flash site. I've made the dropdown navigation menu with flash also. However, whenever I insert or import it into the webpage .fla, nothing works. When I preview the navigation menu swf file it works perfectly, ie, the mouseover effects, however I lose all actionscript coding when I bring it into my webpage .fla, what am I doing wrong?
I have created a flash file that demo's how to use a certain WAP site that is already created. (HTM files with links etc.) - I would like to put this "site" on a cellphone screen in my flash movie to then be navigated as per the HTM files.
Basically is there a way i can EMBED this mini WAP site into my flash movie so that it will function as if in an IFRAME on a standard website.
everywhere i look i come accross with tutorials about how to load data from XML file to flash, but i havnt found any article how u insert or update data in xml from flash. how is it done? i need to insert texts from a textbox in flash into xml file after i press a submit botton.
I'm trying to insert an old banner ad into a new Flash site The problem is, the banner I made at 20 frames per second, and the Flash site is set to 41, so it literally plays the banner twice as fast.
I've just used the accordion component in flash to successfully load some external data into it.For the purpose I want to use it, the accordion is a good option.However, as you keep adding more and more elements into it (and, presumably, there will eventually be lots of them in this project), the headers start to take up more and more space, up to the point that you can't see the content.So yes, I made it so that the accordion adjusts its size depending on the number of elements it needs to display each time. And that works fine.BUT... then, there's a point where the accordion is just too big for the stage... so it doesn't fit, and you can't see part of it.I thought it would be possible to insert the accordion inside a ScrollPane, but I can't make it work.
The first step would be to put the accordion component inside a new MC. But when I do that and test the movie, I get a very weird behaviour of the component. It loads the content, but at first only half of the component shows up. Then when you click some items, they don't display properly and do weird things.Still, I went forward and tried to put that MC inside a scrollPane (gave the MC a linkage name, etc.), but still the scrollPane seems to display a "blank" accordion inside it, not the one with the content.Is it possible at all to get a working accordion inside a ScrollPane? If not, can you think of any other way to make the accordion component "scrollable" so that it can have whatever size is needed, and still be usable?
I am making a Layer contains 312 Key Frames that is made of 312 gif images (each image contains a specific detail for my movie).what I have done;
-I have made a Keyframe in Frame 1 (imported Det1.gif to stage)
-then Selected Frames 2 to 312 and pressed F6 (Made 312 Key Frames that they all contains Det1.gif)
-Now I am one by one, going to different frames and cicking on Det1.gif image, and click SwapImage.
Now that I am talking to you, I have Swaped 50 of them, But still I have a long way infront of me to go before I finish those 312 SWAP images one by one.
I come from the Delphi school. I was really used and pleased with Delphi grids with the plus features of InfoPower. Not just me, my users loves all features that include grids. Some motives for that are: With grids they have the ability to insert detail information using only the keyboard. Input, Tab, Input, Tab, Input Tab (automatically insert new row), input, tab, etc. They were able to simply click in a row and edit it´s data. They could navigate between records using only arrow keys. In my flex apps I´ve being working arround this quite often, sometimes using a popup to insert data, sometimes using repeater instead of grid. But now I really really need some intuitive, fast way for my users to insert this data.
I am trying to use DataGrid (or AdvancedDataGrid) with inline editors and I am living a real hell to do that. For the last 3 days I am struggling, tweaking and workarrounding in order to try to mimic the features that I had with Delphi.
Having all these problems and not getting substantial material to solve them makes me think the (now obvious) fact that it is just not the way grids are intended to work in flex. My question is: what are the patterns used in flex applications to make sequencial, intuitive, fast, keyboard only insertions in a detail?
I'm making a basic photo slide show for a website I'm working on. I have the following in place and working:
- One movieclip (images_mc) preloads all of the images before the main slideshow movieclip (player_mc) begins
- player_mc contains photo_mc which is the container for the image that is currently playing...it is animated on the stage and everything is setup that I can insert the first image and play it, then insert the second image and play it again
- I have an array full of pointers to the images_mc instances of the photos (mc_array)
- I'm having problems inserting the content from images_mc into photo_mc...I've done the following:
The assignment on line 4 is causing the placeholder_mc to be completely rewritten, instead of duplicating the content from images_mc and inserting it into placeholder_mc. How do I duplicate the content into the placeholder? I've tried duplicateMovieClip() several times, but it always returned UNDEFINED, so maybe I'm not doing it right?
I'm very new to actionscript and I managed to recreate the activity on this page successfully with different objects and 6 options instead of 4. [URL]However, I need to get a reset button in there so the student can retry when they come to the end of one cycle.
I have created a Carousel with CoverFlow where images are imported from Flickr. Now I would like to import images from an XML file so I replaced the relevant code with code from a past project that consisted of designing a Papervision 3D Carousel. The problem is that my CoverFlow Carousel consisted of a Cover with Bitmap images while my Papervision 3D Carousel consists of a plane that loads/saves images through BitmapFileMaterial. Flash does not seem to accept that I insert a BitmapFileMaterial into a cover.
It gives me error 1067 (translated from German to): Implicit change of a value of type org.papervision3d.materials:BitmapFileMaterial into an unrelated type flash.displayisplayObject. In my code below I commented next to the function that causes the problem.
I have a portion of a project that is similar to a MS paint program and the user can create a picture/poster, etc. When they hit the continue button, I am able to scale down the picture they created (it is in a movieclip) and store it in an array to be returned later on in the project. The only problem is that when it is returned, sometimes the textboxes that they inserted will push the last word to a new line.ex. They type = "This is my poster Yeah!"it returns = "This is my posterYeah!"I was playing with converting it to a bitmap and then displaying that, but I've never used that so I'm unsuccessful
how to place a value into an array at a certain place rather than just pushing it to the end every time..ie..ActionScript Code:Code: Select allvar A:Number = 1 var B:Number = 2 var C:Number = 3 var tArray:Array = new Array(A,C);At a latter data via dynamics I want to insert a B into the array in the middle or where ever I chose.ActionScript Code://Something like this tArray.push(B) trace(tArray) //Results in 132 //But I would like it to trace 123;etc
becase it replaces the user's inputed text. I want to just insert text where there "flashingType-dealy" is located (my apologies I don't know what it is called).