Creat/copy A Movie To A New _level At Runtime?
Is it possible to duplicate a movie symbol or create a new one in flash(2004) and assign it to its own _level so that if the .swf that created it is unloaded the duplicated movie stays?
E.g. So a movie on _level0 loads another .swf into _level5.
The .swf on _level5 duplicates a movie within it and assigns it to _level9.
_level5 is unloaded but the duplicated movie remains at _level9.
is this possible?
FlashKit > Flash Help > Flash ActionScript
Posted on: 08-15-2004, 05:53 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
How Can I Put A _level Forward? Or How Can I SwapDepths Of A _level?
siplyfied situation:
I have a preloader, that loads home.swf into _level5 and me.swf into _level6. I start at the HOME-Page. That works. I also have a NavigationMenu-------- When I press the button "me", this happens:
on(release){
unloadMovieNum (5);
_level6.play();
}
the same for the button "home":
on(release){
unloadMovieNum (6);
_level5.play();
}
each _level covers the whole stage.
I read somewhere that when I unload a Movie it still is in the cache of the browser, right?
here the problem:
when I jump to the "me"-page and go back to the "home"-page. I only see blank, instead of "home". I think that is because eventhough _level6 is unloaded it still covers the screen because _level6 generally covers _level5.
can i swapDepths of a _level?
Any Ideas?
Which _level Is The Movie In
I have a movie which needs to work standalone and also from a 'player' movie (which calls it onto _level100).
I want to be able to determine what level the movie is currently running from i.e.:
if it's on _level0 = it's standalone,
if it's not on _level0 = it's running from the 'player' movie.
I've tried using the following code:
if (this._level != _level0)//do stuff
but this._level always traces as _level0, even when the movie it's traced in is loaded onto a different level!
Basically is there any way to determine what level a movie is getting loaded into? I'd be grateful for any help.
Attach Movie From _level
trying to attach a movieclip that resides in a .swf that has been loaded into a _level.
// the clip I'm trying to attach is in "ext.swf" and is named "test"..... attaching this clip to "preview".
//frame action ...
loadMovieNum("ext.swf",5);
// button action
on(press) {
_level0.preview.attachMovie("_level5.test" ,"untitled",2);
}
Hmmm?
thanx
G
Detecting The _Level On Which A Movie Loads
Can anybody please tell me how I can do the following ?
I have a main .swf movie which loads about 20 other movies each one on another level dynamically chosen by the mail movie on level 0
Now if I want to close one of those 20 additional movies and free it from memory, then I need to unload the level because unloading it as movieclip leaves the movie in memory.
Fact is the movie itself should be able to detect on what level it has been loaded, so that it can unload itself (this.unloadmovie does NOT work for that)
I know that there are 65535 possible levels and I could hardcode each movie to a predefined level, but thats just what I would like to avoid.
Any ideas ?
Tnx :-)
Control _level From Main Movie
When the movie loads, it also loads a movie onto level 1. When a button in the main movie is pressed, I would like the movie that was loaded on level 1 to gotoAndPlay(1);.
Any thoughts on how I can do this?
Thanks in advance
Determining _level Of Internal Movie After Using SwapDepths()
I have several overlapping movies that the user can click on like folder tabs. the command swapDepth() works fine to swap levels of the movies but how can I detect which level a movie is on without have used loadMovie and then the _level property.
Please help!
Ken
_level Hiding Movie Once Change Frame
Right now I have 2 files. The main.swf which will load from the start. On the first frame of main.swf I do a loadMovieNum ("projects.swf", 1); .
Now the first frame of projects.swf is blank and has stop(); so nothing appears and it all seems to work good. Frame is called "start"
What the problem is when I use my menu to call parts of project.swf, such as _level1.gotoAndStop("utility");. It loads fine but once I leave that frame how do I get the projects.swf to go blank or hide without unloading it?
My main.swf menu is setup so it moves to different frames on the timeline and the frame loads the file (_level1.gotoAndStop("utility"); is on frame "menu3")
So I need a statement that tells it once I leave from "menu3" to put _level1 back to frame "start" (which is a blank frame). Or another idea of how to do this.
Thanks in advance.
Copy Of A Movie
Can anyone tell me how to - asuming it is possible - make a copy of a movie that is an equal of another movie so I don't have to perform actions on both movies to do the same on both.
For instance a 1:10 ratio version in the corner to show exactly what is happening the the larger version on the screen?
Movie Clip Copy Help
hi
Im alright with flash, but actionscripting is slightly harder, so please bear with me.
I have quite a large mocive clip file, i would like to have the main movie clip, but with 20 clips behind it, the first one from the main clip have 30% alpha, and 105% bigger the the main clip. I want the following MC to decrease in alpha by 2% and the size increase by 105%.
Is it confusing, please say, ill try to explain myself again.
Thanks for help.
Stocky
Why Can't I Copy The Frames In My Movie
I've done a movie (see attach) but i've done all the animation in the middle of the stage ! So i wanted to copy the entire animation and drop it into a movieclip so i could move it around the stage to the top left. I cant seem to copy and paste the frames into the movie clip . No doubt theres a simple solution i've missed , can someone point me in the right direction please.
cheers
Can't Copy Layers In Movie
This is driving me crazy.
I've got a little graphic with a nice candle flame applet. I added a layer that gives a flickering effect. As a movie by itself, it's WONDERFUL. Trying to copy it into my document where I actually need it seems impossible. I'm using Flash MX 2004 on a PC. At school my instructor was able to copy it into a document on a Mac. I can't believe something this easy is this maddening.
Any ideas?
Thanks,
DeerRaven
Copy Movie Clip
Hi,
I'm copying one movie clip and pasting. I'm also duplicating movie clip. Changing one changes the other. I want them to be independent. How is that done? Thanks.
Andy
Copy+Paste In A Flash Movie.
Okay, so I have in front of me a Flash movie, and in the text field (chat field) you can type, but not copy or paste (the normal way, control/command+c and +v.)
Except, I see people doing it, but how? Anyone know?
Thanks.
Copy Image Of Movie To Clipboard
Is it possible to create a button that when clicked will copy an image of
the current state of the movie to the clipboard?
Form reading the help files it looks like it's only possible to do this with
a text string.
I'm still using MX 2004.
Roy
Can't Copy & Paste Calculator Movie?
I'm trying to embed the Ultimate Calculator (attached) into a flash file, but if I copy all the library items into my library and then copy and paste all the layers, I keep getting errors when I publish it. I thought it might be because I'm putting it into a movie clip, so I tried copying and pasting everything (library & layers) into a completely blank movie, but I still get errors when I publish it?!?!
If I publish the UltimateCalcV1.fla file, it works fine??!
I would just use loadMovie, but this has to go into an LMS where the entire flash file has to be one swf, so I've got to embed this...
Any ideas??
Make A Copy Of Flash Movie
When connected to a site over a dial up modem, I cannot see a specific flash movie. The system will not show the movie, lockup or other.
If I connect to the site, using a dsl line everything is fine.
Is there a way to make a copy of the flash movie to my PC to be able to see the movie without having to connect to the site.
Copy Frames From One Movie To Another (Flash MX 2004 Pro)
Hi,
I have a movie which I would like to use on another movie (but I don't want to LoadMovie), I want to be able to copy its content, but when I do so, everything copies (apparently) but the movie does not work.
It is a Scroller that contains a several layers (Masked layer, buttons, and action script) but when I copy only one layer remains with the buttons only, the rest of the layers don't copy over and the movie does not work as it should. Any technique out there to copy the movie.
The reason why I want to copy and not load it is because I need to insert it into a Screen (Flash MX 2004 Pro.) to manipulate it from there. You can see the movie at www.jakertanner.com. In there I am using LoadMovieNum funtion to load the movie, but this is not doing the trick for what I want to do. The way it is now, I am not able to dissapear the movie after the user clicks on other links, I need to be able to disappear the album when the user click on other links.
Any thoughts?
Thanks,
Jana
How Do I Copy A Button With Movie Clip Instances
Ok so I am the lucky winner of updating a site built in flash.
it has multiple navigation buttons that go down the left hand side. They are all button symbols that have different movie clips attached to each state (up, over, down, hit) All the symbols are really just text with a little dash by them. and when you mouse over the button the the little dash appears and when you mouse off then the dash appears, but doesnt just appear it dissolves and slides in. So that means the movie clips for the rollovers are about 8 layers.
My main goal is to add a button. my question is what is the easiest way to copy a button with the movie clips so that when i edit the copied one it doesnt change the button I just duplicated.
if you guys need anything else to help me jsut ask. I really need to get this done asap for my client.
Thanks guys!
Triple G
Duplicate Movie Clip With 60 Pixels Between Each Copy
Hi,
For my first post here I'm asking a rather noob question it seems, haha.
Anyway I used the latest kirupa tutorial on duplicating movieclips. It works great. What I'm trying to do is create a script that has each duplicate on the X axis and 60 pixels away from the previous duplicate, all while moving from right to left. whew
Something like this.
<-- Moving in this direction
X X X X X X X X X X X X X X X X
I tried using
with (eval("circle"+i)) {
_x += 60;
}
This worked but ALL duplicates are +60 away from the original. Does anyone know how I can make each duplicate +60 away from the previous?
Thank you, Much appreciated!
Copy Frames From One Movie To Another (Flash MX 2004 Pro)
Hi,
I have a movie which I would like to use on another movie (but I don't want to LoadMovie), I want to be able to copy its content, but when I do so, everything copies (apparently) but the movie does not work.
It is a Scroller that contains a several layers (Masked layer, buttons, and action script) but when I copy only one layer remains with the buttons only, the rest of the layers don't copy over and the movie does not work as it should. Any technique out there to copy the movie.
The reason why I want to copy and not load it is because I need to insert it into a Screen (Flash MX 2004 Pro.) to manipulate it from there. You can see the movie at www.jakertanner.com. In there I am using LoadMovieNum funtion to load the movie, but this is not doing the trick for what I want to do. The way it is now, I am not able to dissapear the movie after the user clicks on other links, I need to be able to disappear the album when the user click on other links.
Any thoughts?
Thanks,
Jana
How To Get Value Of A Movie In Runtime
I am working on a flash paint program. Its working fine when choosing a new color and filling in the shapes. I want to save the filled color in database. How to get the color value of a particular shape when someone clicks on a shape and fills it with chosen color.
Thanks for any help
Sherly
Making A Movie Clip Copy Play At Certain Times.
What happens is the movie clip does not leave the designated spot and travel to the other side, I was wondering if there would be a way to time each copy, so that like every 2 secs it will reproduce a copy, not just all at once. I hope I explained this well enough to undrstand.
--------------CODE--------------------
onClipEvent (load) {
maxLaser = 6;
depthCount = 1;
_root.laserTwo._visible = 1;
laserCount = 1;
}
onClipEvent (enterFrame) {
if (laserCount<=maxLaser){
laserCounter++;
_root.laserTwo.duplicateMovieClip("laserTwo"+depth Count, depthCount);
_root["laserTwo"+depthCount]._visible = true;
depthCount++;
}
if (depthCount>maxLaser) {
depthCount = 1;
}
}
--------------CODE--------------------
Copy The Existing Flash MX Movie And Split It Into Other Two Movies
Hello
I have a well defined task that I am sure a lot of experts in this forum can help me.
http://www.readverse.com/1000_arabic...001_sg001.html
If you click on the above URL, you would notice that the Flash movie is
using an XML that has Titles, Images, and Sounds objects.
What I need is the following:
1) one movie with images only
2) another movie with images and sounds.
The first movie would be only images and left justified.
The second movie would images and sounds but no tile; left justified.
The images of the first movie would have several rows and each row will
be the max length of the monitor.
The images and the sounds movie may have two, three, four, five, or six
images; and the current movie has this capability.
In a nutshell, I need your help to copy the existing movie and split it
into other two movies and of course I need your great written
explanation to understand the two new movies you cloned.
Of course I will send you the entire current movie protect if you would like to help.
Can you help? Please.
Thank you.
Starting A Movie At Runtime
Hello,
My movie has a movieclip called images in it and I want it to start from run time without having to click a button.
I'd be super appreciative if someone could help me with the code I have to put on the first frame.
Thanks in advance,
Copy All Frames From Movie Clip To Stage Without Having Positioning Problems?
Is there a simple way to copy all my frames from a movieclip and paste the frames back onto the main stage/timeline?
The reason I want to do this is because when I want to make a movie say AVI, the timeline without the movie clip don't show up.
Also I want to use this in Powerpoint and make it replay, but it does not seem to work very well with the movie clip timeline? (it replays the main stage's timeline NOT the movice clipc timeline? - if there's a way around that, i'd like to know!)
Thank you so much for all of your help!
Manipulating Movie Clips At Runtime
I have placed random movieclips into an empty movieclip (named "container_mc") on the stage with the idea of resizing container_mc. However, I want to change the _x and _y of the clips inside container_mc first.
Previously, I had the random movieclips load directly to the stage and used:
Code:
_root["C"+variable]._x=whatever
to affect the particular clip. Now that they are inside container_mc, that method no longer works.
Any ideas? Thanks in advance.
[CS3,AS2] Runtime Sharing Vs Load Movie?
Hi guys,
I'm in the process of splitting a game up into assets, and I'm wondering what the difference is between using export for runtime sharing and just plain loading a movie? what are the advantages of using one versus the other, when I should use each, etc
Possible To Change Movie Quality At Runtime?
I'm working on zooming a large(3682x2078) movie clip that contains a bunch more mc's and bitmaps and what i would like to do is change movie quality during the "zoom" sequence to low and then back to high at the end of the zoom. Is this possible via actionscript at runtime?
Movie Clip Changes Width At Runtime
I have a movie clip on the stage. When I click on it, the info bar shows its width is 90px. When I test the movie and do a trace( mc._width ) it has a width of 97.1 .... any clue how this could be happening?
Updating Movie Properties At Runtime
I am reading in XML data that describes a kind of linked list tree into Flash 5 and then converting the data into a graphical representation. At design time I don't know how many nodes there will be in the tree so I don't really know the dimensions I should make my flash movie object. Is there a way to update my movie's height and width at runtime? Another thing I've noticed is that when I publish the HTML specifies the width and height with tags so it looks like I would need to somehow update those values as well. If you have any ideas about this let me know. Thanks...
How Do I Creat?
I would really like know how to create a forum .
That a user can intup text in a forum and then show it in swf .
I know you can save input text but how can you display it ???
How do you go about doing something like this ??
Thanks
How Did They Creat This
Hi i want to creat a menu sytem like this one
www.24-7media.de/Cannonball
how have they done this, i want my menu buttons to move away like this on rollover my site is here
www.freshlemon.co.uk/paragon/home.html
It would be good if sonone could show me or guide me on how to achieve this, cheers
How Did They Creat This
Hi i want to creat a menu sytem like this one
www.24-7media.de/Cannonball
how have they done this, i want my menu buttons to move away like this on rollover my site is here
www.freshlemon.co.uk/paragon/home.html
It would be good if sonone could show me or guide me on how to achieve this, cheers
Controlling Movie Playback Speed On Runtime?
Hi!
I tried to find a solution but didn't found so here i am asking for your help
I'd like to make a controller (+ and -) to change the movie playback speed. I guess i should change the frame rate to achieve the results i'm after?
The biggest problem is that i have movies in three different movie clips. The main movie and 2 empty movie clips that i'd like to be able to control from the main movie.
The greatest thing would be to be able to make a "floating layer" that would be over all the other movies.
Thanks in advance!
Defining Movie Clip Names At Runtime
Hello,
I'm trying to optermise the code commented out below into the code not commented, but it is currently not working. Is it possible to optermise the clip using the method im trying?
Code:
var mx = _xmouse;
var my = _ymouse;
var i = 0.6;
/*csfollow1._x += ( mx - csfollow1._x) * .06;
csfollow2._x += ( mx - csfollow2._x) * .07;
csfollow3._x += ( mx - csfollow3._x) * .08;
csfollow4._x += ( mx - csfollow4._x) * .09;
csfollow5._x += ( mx - csfollow5._x) * .1;
csfollow1._y += ( my - csfollow1._y) * .06;
csfollow2._y += ( my - csfollow2._y) * .07;
csfollow3._y += ( my - csfollow3._y) * .08;
csfollow4._y += ( my - csfollow4._y) * .09;
csfollow5._y += ( my - csfollow5._y) * .1;*/
while (i < 1) {
var current = "csfollow" +i;
current._x += ( mx - current._x) * i;
current._y += ( my - current._y) * i;
i+= .01;
}
Thanks
Problem Deleting Movie Clip At Runtime
ive been having problems with flash all damn day now i cant delete a movie clip during the movie using actionscript,
when i go to the game over screen in my game i want it to delete 5 things that i loaded using the attachMovie they have instance name ball0 - 4 and they are all of the object ball i have no code for this atm as mine was screwing up so i deleted it anything in mind?
also just so i dont have to create another thread how would i make it add 1 to a variable if like object one with instance name of hi hit object 2 with instance name of kill i want it to be like if hi runs into kill anywere on the movie you get a point but imnew to hit test and the other methods
Controlling Runtime Created Movie Clips.
Hi all.
I'm new to flash and am having some troubles with runtime created movie clips. I have a movie clip which on its first frame calls stop(). I create these movie clips at runtime by doing:
attachMovie("libraryname", "newname", this.getNextHighestDepth());
This works fine, but when I try to make it play the second frame with the following code:
this["newname"].gotoAndPlay(2);
Nothing happens. I was hoping for someone to point me in the way of a tutorial for this area, or just tell me what I'm doing wrong here. I've tried looking around for tutorials and other peoples movies but no luck as of yet.
Thanks in advance.
Andrew Starnes
Email A Movie Clip As An Image At Runtime
Hi
I have a lot of source for converting a Movie Clip to an image at runtime.
Is there a tutorial or source for sending the converted Movie Clip as an attachment, or simply a link to the image on a server, at runtime?
My thinking here is that a user will draw/create a custom image and then press a button to send it to a specified email address.
Creating Movie Clip And Accessing At Runtime
hi developers
i want to write below code in as3
I created 10 movie clips by using for loop but confuse in how to access it in as3
in as2 i use to write as below
=======================
for(i:Number=0;i<10;i++){
_root["mc"+i].onRelease=function()
{
//some code
}
}
==========================
but how to write this code in as3
please help me
Edited: 06/12/2007 at 10:28:09 PM by abhayk
Attaching Movie Clips At Runtime From Library
Dear All,
I have 6 different clips in Library with the Linkage class given to following names: Class: mc0, mc1, mc2, mc3, mc4, mc5, mc6,
And I want to attach these clips dynamically at run time using the for loop in AS3.0:
For( var i=0; i<6; i++)
{
What should be the code for this at runtime attachment?
//
}
Regards,
Sridhar B
Change Flash Movie Size During Runtime...
Hi
I have seen this on some site, so there must be a way of doing this. How do you dynamically change a flash movies dimension during runtime?
For example, the forum nugget is working on ( http://www.trp-florida.com/flash_forum/forum.html )..I noticed that the height of the flash forum dynamically grows as the thread gets longer...because I can see my browser scroll bars appear. How can this be achieved??
This seems mind buggling to me, because you have to set a flash movies stage dimensions before publishing and the html has the flash dimesions too, so I don't get how this is being done? Please any ideas or links to tutorials that talk about this issue will be greatly appreciated.
By the way, I did send nugget a PM if anyone was wondering...but still no reply as of yet...so I came to the forum.
Free Transform On A Movie Clip At Runtime
Hi Guys,
Basically, the scenario is this, when a user clicks on an movie clip instance at runtime, I want to be able to display free transform points that the user can click on and drag to transform the objects scale, i.e. Just like the Flash's free transform tool. Does anybody know how I can go about doing this? Is there a class in actionscript? Any suggestions would be much appreciated.
Many thanks
TAJ
|