ActionScript 2.0 :: Deleting Content When Loading Clip?

Feb 25, 2010

I am loading an external SWF into my flash movie, however when the external SWF loads the content that was previously in the scene is still in the background of my external SWF, is there a way my external SWF can replace what its being loaded into and how would I achieve this?

View 6 Replies


Similar Posts:


ActionScript 2.0 :: Deleting Xml Drawn Content From Mc

Dec 19, 2007

I have an XML file which consists of x/y coordinates...from this I draw shapes in a movieclip on stage when the user chooses(from list component) an xml to load...how do I clear the contents of the mc so that when the user chooses another xml file from the list component the new xml is drawn in the now emptied mc from before??...

View 1 Replies

ActionScript 3.0 :: Flash CS5 Randomly Deleting Library Content?

Sep 13, 2010

I'm working on a  rather large project at work using CS5 Flash. The project involves  loading several .swf files at different times from a main 'hub' type  structure. Think of it as a multi-channel platform and when you click on  the channel you want, it loads the sub-swf with the videos and movie  clip contents/as code in it.
 
As one can imagine, this has  cause the overall project to grow quite huge. When we open up the main  fla file that contains the library content of it's children fla's, some  files will randomly go missing.  These files are being shared over a  network with various people via a file repository system so no two  people can be working on the same file at the same time. This doesn't  appear to be the problem, nor is accidental deletion as an individual  can check out the files, work on them locally, save them locally, close  and reopen them  locally and random content will be missing again.
 
We  believe that the issue may have to do with the overall size of the  fla's (the fla's range in size from 16mb to 3mb).  They will be playing  as stand alone objects, not on a website so other outside content isn't  an issue. Some of the computers being used are 64 bit system while  others are 32 but all systems have had the issue. We are also using AIR  to help with some of the functionality but this issue started before we  started using AIR.

View 1 Replies

ActionScript 3.0 :: Deleting A Movie Clip?

Mar 16, 2011

Only been working with flash/as3 for about 2 months now so I'm still a little green but in a nutshell, I make interactive Flash presentations, aimed at educators as a tool to make their teaching seem a bit more interactive with their pupils, and we are in the process of developing a tool that will allow our users to create their own flash presentations similar to the ones that we provide for them.One of the features I have is the ability to delete something off the screen which they may have added accidentally or no longer want on the screen. This is done by simulating something similar to the recycle bin.

They can click and drag items onto the recycle bin and it removes them from the stage, however as you might know, the movie clip for that item is still in memory, so when the presentation is exported (it exports as an xml file) the "deleted" movie clip is still there.When exporting the presentation, the xml elements are generated by looking at the children of the container movie clip for different types of movie clips(static images, images with rollover effect, animations).I know the problem with that, and according to another post I must set the movie clip to null in order to get around this. But here's my problem:I have a click listener on the stage objects - which enables the drag and drop, when dropped, the listener calls a function to check if the movie clip has been dropped in the bin, and passes the mouse event onto the function.

Code:
function checkHitArea(evt:Event)
{

[code].....

View 3 Replies

ActionScript 2.0 :: Deleting A Movie Clip From Scroll Pane?

Jul 15, 2011

I currently have two movie clips (test & test2) that upon button release (button & button2) I am loading into a scrollpane (scrollPane). (For testing purposes I load each clip several times, but in the final product I will have up to 10 different movie clips & buttons the user can load into the scrollPane.) On each of the movie clips I have a delete button (btnDelete). I also have an additional delete button on the main page called btnRemove. When the two movies are loaded into the scroll pane I can click the btnRemove button and the last clip I loaded will be deleted, then if I click it again the one above it will be deleted, etc. - so it works that way. However, I would like the user to be able to click on the delete button (btnDelete) that goes with the specific movie clip they would like to delete-not just the last one that was loaded. I have this action on the btnDelete within the test movieclip:

Code:
on (press) {
this.removeMovieClip("test");

[code]......

View 0 Replies

ActionScript 3.0 :: Flash - Loading External Content On Top Of Main Content?

Jan 28, 2011

I'm loading one SWF into another but the internal one is coming over the main content and that can't happen.here is the part of my code where the external content is being loaded anyone hason what I can do to fix this? here is my code:

Code:
var loadAnimBox:Loader = new Loader();
var vid_mc:MovieClip;

[code].....

View 2 Replies

ActionScript 3.0 :: Loading Images - Substitute The Content For The New Content?

May 20, 2010

I have a menu whee you can choose a picture to lead, works great with first selection, but when you choose a different picture it loads over the last picture,I want to substitute the content of that movie clip not to load all the pictures in the same space. I treid to use clear() and removeChild(), but this only works when I choose pic1 then remove that to load pic2, is there an easy way to substitute the content for the new content?

View 1 Replies

ActionScript 2.0 :: Loading External Content To MC Content Box?

Oct 8, 2003

how to load external swfs into the an MC content box using movies with embedded buttons?the problem i'm running into is this: i have animated buttons within movie clips. i also have a main_content MC in my scene into which i'm trying to load background images from another file. this other file has 3 frames, each with a different image.i don't know what the action script would be for a movie/button to load my external swf frames into the main_content MC.

View 1 Replies

ActionScript 1/2 :: Move Content From 1 Movie Clip To Another?

Sep 15, 2009

I have loaded an external swf into the movie clip 'image1' on the stage. Once the swf has loaded into 'image1', is there any way I can seamlessly move the content from 'image1' to movie clip 'image2' (on a different layer and position on stage.

View 1 Replies

ActionScript 3.0 :: Button In A Content Movie Clip?

May 7, 2010

I am trying to create a website for my Spa but having difficulty getting reservation buttons to work with a content movie clip.I set it up in four layers (from top) AS3, Page, Content, and Background. In Page layer is where I named each page like home, about us, full body treatments, and so on. There are a total of 9 pages one of which is the reservation page. In the "full body treatment page" I place a reservation button that I want to lead to "reservation page". I have been searching for days now on how to optimize this reservation button to go to the "reservation page".

View 9 Replies

ActionScript 2.0 :: Content Of The MC Clip Filled Dynamically?

Oct 11, 2004

In the attached (Flash MX 2004 professional) .fla you'll find a reasonably basic scroller that i can't get to work properly. The advanced part of it is that the content of the MC clip that is to be scrolled up and down is filled dynamically based on the number of items it needs to display. In this demo the number is set but this will eventually be data from an XML file. the trouble is that altough the MC scrolls one screen at a time (using setinterval and an easing function) it loses track of the correct start and end positions after one or two screens. Please take a look and see what the trouble could be. Don't mind the design (there isn't any) it's just a test of the functionality. This little code snippet shows how i did the down button for instance:


[code]...

View 2 Replies

ActionScript 3.0 :: Best Way For Loading Content SWF?

Aug 27, 2009

With AS3 and the loader class and all of that, what's the consensus on best method for loading big SWFs? I looked on the forum and saw a mix of either using the loader class and making one multi-frame swf or using a loader swf and a separate content swf.

View 7 Replies

ActionScript 2.0 :: Loading XML Content From One To Another?

Aug 2, 2006

Is it possible to load XML content from one XML file to another? In other words I would like to make a menu that can choose which XML file is being loaded into a movieclip. If so do you gus know how?

View 2 Replies

CS3 Controlling A Content Movie Clip Through A Navigation Panel?

Nov 23, 2009

I've just start working on a project whereby the site will be entirely in flash, have a nav panel down one side, and a content panel down the other. I want some subtle animations on the content as each page is selected (either scroll or fade out) but as each page will have a different background, I'm not sure what the best way to do this is.

My current thinking, would be to put all the 'pages' in one movie clip, animated with each having a fadein, then stop, then a fade out. When a link is pressed, it would play until it encounters a 'stop' (hence, the fadeout frames), then jump to the fade in animation for the link that was clicked.With being new to Flash though, I just thought a) I'd check to see if this is the given way to do this, or if there is a better, standard way, and b) if anyone can give me any tips on coding it. I would imagine it would be onPress(function), then the two instructions?.

View 3 Replies

ActionScript 1/2 :: Content Of External Swf Showing Outside Of Movie Clip?

Dec 8, 2009

This is my final project for a multimedia class I have, a link of which is here[URL]...Basically, I have a movie clip instance (loader_mc).  I have the buttons loading external swfs with this code:

[Code]...

View 9 Replies

ActionScript 2.0 :: Duplicating A Movie Clip With Dynamic Content

Oct 14, 2009

I have created an application that lets the user dynamically edit the content of an online greeting. I want the application to be able to duplicate the edited greeting 4 times, so the printed page will contain 4 exact duplicates.

I tried using duplicateMovieClip, but it would not duplicate the dynamic content edited on runtime.

I was able to use attachBitmap and "capture" the screen content, only to find out the resolution of the duplicates was far from being acceptable (I guess because screen resolution is only 72 dpi, and I need it to print nicely).

View 3 Replies

ActionScript 3.0 :: Vertically Scrolls Movie Clip 'content-mc'

Jan 19, 2010

I have some code that vertically scrolls my movie clip "content_mc".[code]the problem is my movie clip is behind a mask and not alone on the stage so the content_mc scrolls regardless of weather the curser is over the movie clip or anywhere else on the stage.Is there a way to contain this movement to when the curser/mouse is over the "content_mc" only?URL...If you moue over the bottom right the movie clip moves and then the same over the top right, I just want it to scroll with the mouse over the "content_mc" movieclip?

View 1 Replies

ActionScript 3.0 :: Copy The Content Of One Movie Clip (with Many Frames) Into Another

Aug 24, 2010

I need a way to copy the content of one movie clip (with many frames) into another dynamically using as3. I have created one mask container and i am filling it with the images from xml i.e. MovieClip(root).myContainer.forward.imageContainer .addChild(myspriteImage). How can i dinamicaly dublicate the movieclip myContainer with all child in it, so i could dinamicaly put ieach image in each container?

View 1 Replies

ActionScript 2.0 :: Duplicating A Movie Clip With Dynamic Content?

Oct 14, 2009

I have created an application that lets the user dynamically edit the content of an online greeting. I want the application to be able to duplicate the edited greeting 4 times, so the printed page will contain 4 exact duplicates.

I tried using duplicateMovieClip, but it would not duplicate the dynamic content edited on runtime.

I was able to use attachBitmap and "capture" the screen content, only to find out the resolution of the duplicates was far from being acceptable (I guess because screen resolution is only 72 dpi, and I need it to print nicely).

View 2 Replies

ActionScript 3.0 :: Duplicating Loader.content Into Another Movie Clip?

Feb 14, 2011

I'm trying to keep a fresh copy of my loaded swf's in the loader.content while I use a copied version in my main swf. What I'm trying to do is make a slide show using a master swf to load many other slide swfs. The first time through each swf plays just fine but the second time through there can be problems with eventListeners, etc so I want to trash each slide when I'm done with it and get a fresh copy when the user wants to see it again. I've done this utilizing the cache in the browser but I'd rather use the method below.

I saw this code from: [URL] that allows you to copy movie clips so I should be able to do that with this method but I'm clueless how other then cutting and pasting code and praying that it works.

Security.allowDomain("*");
var myMovie:Sprite;
var l:Loader = new Loader();

[Code].....

View 4 Replies

Professional :: Cant View Content Keeps Loading

Nov 15, 2010

URL...This link works fine in my desktop computer, but when i try to check it with my laptop or netbook, it wont load the video thumbnails or so.It just keeps saying leniyor (loading) and gets stuck.The flash player version is the same with my desktop and laptop. I tried it over various browsers including IE, Chrome and firefox.

View 1 Replies

ActionScript 2.0 :: XML Loading Content Into Various TextFields

Sep 17, 2009

This below Is the typical XML we might have to change it. What I supposed to happens is when. a button I clicked the http link is activated and all this info in this but be placed in the various text windows also below.

Code:
<article>
<lang id="de">
<title>Acryl-Pulver 500g</title>
<subtitle>pink / ros </subtitle>
<artnr>003132</artnr>
[Code] .....

View 0 Replies

ActionScript 3.0 :: Frame Content Not Loading?

May 4, 2010

when i click the aboutUs_btn , gotoAndStop moves me into frame 3.. trance confirms frame 3, but content in 3 does not apear on sceen. no errors reported.

here is the code

var myStage:Stage=this.stage;
myStage.scaleMode=StageScaleMode.NO_SCALE;
myStage.align=StageAlign.TOP_LEFT;

[code]....

View 0 Replies

ActionScript 3.0 :: Loading AS2-Content In Fails

Dec 7, 2010

I have a SWF-Movie written in AS2(I call it AS2-Bridge), which loads another SWF2-Movie. Now if I run the AS2_Bridge.swf everything works fine.But if I load the as2_bridge into the as3-movie - then the as2_bridge fails to load the other content.[code]

View 3 Replies

ActionScript 2.0 :: Loading Content Through An XML File?

Aug 31, 2006

I'm loading content through an XML file. Most of the content is working correctly. Flash is creating buttons based on some of the content in the XML file, the rest of the content in the XML file is static text and images.

Everything at first loads fine, the buttons all work, they change the text values but for the life of me I can't figure out why its not changing the image. I tried to create a function to remove the first image then load the new one but that didn't work.

Code:
function DisplayInfo() {
clientwork.txtclient.text = this.client_text;
clientwork.txtlink.htmlText = this.link_text;
clientwork.txtdesc.htmlText = this.desc_text;

[Code]...

View 1 Replies

ActionScript 2.0 :: Way To Keep Loading Content To Main?

Dec 9, 2006

i have a main swf with 5 menus and i want to , when i click on one buton the meuns will apear ( they have exactly the same size as the main movie)im trying with loadMovie but i cant make it work cause, when i load the new menu, i cant go back to the main one.

View 6 Replies

ActionScript 2.0 :: Loading Daily Txt Content?

Aug 6, 2007

I need to display daily text on a movie. like daily quotes or other content like daily thoughts. the files are on a txt file and I found a sample that I like but I can't get it to work, I don't know much action script but kinda mess around untill somehow I get things to work the way they suposed to, but I keep having problems with this one. I would like to create a simple page with two dynamic boxes, one that displays the date and another one that displays the content for that day.

also I have flash 8 and would like this script to run on a pocket pc if possible or flash 6 player.can anyone help me and guide me thru it and tell me the mistakes I have on the file. I've attached the fla and external txt file that will feature quotes.

View 3 Replies

ActionScript 3.0 :: Loader Not Loading Content?

Jul 17, 2009

I have a loader, and it doesn't seem to be loading my content when I am viewing it on my website. However, when I open up my loader.swf in a browser, it loads up my content once it is done loading.

Loader AS3:
var loader = new Loader();
loader.load(new URLRequest("slideShow09.swf"));

[code].....

View 3 Replies

IDE :: Slow Dynamic Content Loading In IE?

Nov 17, 2009

This is really weird and I have no idea what could be causing this.I have this simple Flash site:

http:[url]....The main interface is loaded, and then it starts to preload a few external JPG images.The problem is that with IE it is taking about FOUR times (or even more) the time to load the same pictures with FF. In a slow connection such as a 128K the main interface takes the same time to load either on FF aswel IE - about 5-10 seconds. Then, it starts loading the external pictures - in FF it will take about 20 seconds more and in IE it will take about 80 seconds more. It is clear to me that the problem is not in the site loading itself, but in the contents loading. I can't see what in the browser could be interfering in the SWF, unless that the IE Flash plugin have some known (or unknown!) bug regarding to MovieClipLoader!

The only thing I can have in mind, is that I am not terminating the listeners in the onLoadComplete events, so theoretically they would be keeping the CPU busy even after the pictures finish to load (I spawn about 30 listeners, one for each picture). However, I doubt that this is the reason or else it would make FF slow down too, indeed? Also I noticed that when running the application in the authoring environment (control+ENTER) but loading contents from remote server, it have the same behavior as when loaded within IE (slow loading).

View 1 Replies

ActionScript 3.0 :: Loading External Content With XML?

Jan 27, 2010

So I know how to load external images via XML, but don't know how to make it so that it can load both movies and images. Right now I can just load images such as .jpg, .gif, and .png.I want to also be able to load movies such as .swf (.avi would be cool if possible but if not, its not a big deal).So basically how do I change the below code so I can also load a movie if I wanted to, instead of the image.Here is my code:

XML code:
Code:
<?xml version="1.0" encoding="utf-8"?>

[code]......

View 3 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved