Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash




Disappearing Movie Clip?



Ok...here is what is going on. I have an "contact.swf" file that is loading a e-mail form "form.swf" file into and empty MC. That works just fine. BUT, in my main.swf I have a button that loads the "contact.swf" into an empty MC in the main.swf. What is happening is that the "form.swf" shows up, but the rest of the content from the "contact.swf" has vanished and will not appear. Does anyone know why this is happening??? My fla's are to big to post here.

Thanks,
daddy



FlashKit > Flash Help > Flash Newbies
Posted on: 11-23-2004, 10:24 PM


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

Disappearing Movie Clip - Why?
I have a slideshow that loads slides in using the attachMovie() to put movie clips into a droptarget, the transitions fade in the next slide with actionscript. However, after an extended period of time, the slide just disappears and the then throws off the other arrays in the slideshow. What on earth would be causing this?

Here's the code for the transition:
onClipEvent(enterframe){
// See if the aDest has been changed
if (this._alpha != setAlpha) {
this._alpha += (setAlpha)*.05;
}
}

I'm not sure if that's it, but if I slow the timing of the actionscript tween, the longer the slide will last on the screen. It seem to work fine when the tween is set to .01, but anything higher, the slide will disappear (or perhaps remove itself) after about a minute.

Disappearing Movie Clip - Why?
I have a slideshow that loads slides in using the attachMovie() to put movie clips into a droptarget, the transitions fade in the next slide with actionscript. However, after an extended period of time, the slide just disappears and the then throws off the other arrays in the slideshow. What on earth would be causing this?

Here's the code for the transition:
onClipEvent(enterframe){
// See if the aDest has been changed
if (this._alpha != setAlpha) {
this._alpha += (setAlpha)*.05;
}
}

I'm not sure if that's it, but if I slow the timing of the actionscript tween, the longer the slide will last on the screen. It seem to work fine when the tween is set to .01, but anything higher, the slide will disappear (or perhaps remove itself) after about a minute.

Disappearing Movie Clip Problem.
I've got a main movie (built upon the use of movieclips and classes/objects). Frame 1 contains all my (non-movieclip) Class definitions. Handlers are defined here in frame 1 to deal with particular user actions. After an event has been handled the movie jumps to the relevant frame where it's supposed to be (rather than executing the code again of all the frames in between. I've got containers that store all movieclips that I want to display. I've got a background container that I use to display my background (which the user can change at will). This is done by creating the container at design time and then swapping it's depth to -16384 dynamically, just to make sure it's always at the bottom. The background movieclip is just attached into the background container.

When the user changes the background, handlers in frame 1 handle it and sends the timeline to frame "holder". The timeline is supposed to just wait on frame "holder" until it needs to handle another user action. What happens though is that even though there is absolutely no code that sends the timeline past frame "holder", it does go to the frame after the background is changed and I have to send it back to "holder". That's fine but not only that, the movieclip that was attached into the background container is fine on frame 17, but then for no apparent reason ceases to exist when the timeline is sent back to frame holder. (The only code in the frame after "holder" is "this.gotoAndPlay("holder");". I get around the problem by re-attaching the background on frame "holder", but I'm now trying to use externally loaded backgrounds. Obviously because I only have a single instance of the loaded movieclip, it's disappearance is a big problem. Any ideas as to the cause of the problem, or better yet, the solution or workaround???

http://www.zollkhan.plus.com/problem.html

Here is a link to a sample file (the source is over 1Meg even though the swf is only 18k), the background is attached directly on level -16384 in this, rather than in a container, but it has the same effect. When a button is pressed, it (indirectly) calls the Nav.handleEvent() method on frame 1.

Disappearing Images Inside A Dynamic Movie Clip
when i am trying to alter properties of a movieClip that was dynmically created the clip sometimes disappears and sometimes doesn't.

I attach a movieClip from the library. when attaching this movieClip i also load an image into one of the movieClips child movieClips that were created at authortime.

The disappearig act happens when i try to change the _x and _y position and the _xscale and _yscale of the parent movieClip containing this image...

i know the movieClip is still there because i have access to the roll over properties and the clip still functions. the only thing that happens is that the image in the movieClip sometimes disappears and sometimes doesn't!

does anyone know anything about this??

Disappearing Smart Clip Componants
Hello

I am using the built in learning interactions and have a rather wierd problem.

A true / false interaction does not show the radio button or button componants.  If i try adding these to a new .fla however they work as expected.  I am using 2004 pro on windows 2000.
The two true/false smart clips are being pulled from the smae library.  The only actionscript on the same frame is a stop action on another layer

anyone got any ideas ?

thanx

Disappearing Movie...
The oddest thing.

A little background: I am creating a movie that I can reuse many, many time for my fonts page. I created a simple movie to be a "pass thru" to load the main movie. I am passing the filename to an XML file, so I created the PassThru movie to be put in the cache many many times while the main movie is loaded once.

Anyhow, when I view the whole think inside of Flash, it works fine. But when I publish to an HTML page, I see my main move flash onto the screen then disappears. I have no frames on the main movie that are blank. It is almost as though the PassThru movie is deleting it. The PassThru has one frame and one action (loadMovie). The main movie receives the XML filename by reading the _parent.XMLFilename property.

Any thoughts?

Disappearing Movie
I have developed a Flash document, but now when I open it I can only view the timeline, and the work area is all white, none of my images show up. When I >control >test movie, it plays the movie. Does anyone possibly know how I accidentally hid the presentation? Do you know how to show the work area now? Thanks for your help.

Disappearing Movie
I'm having trouble with a movie clip disappearing after scrolling down the page. The only flash on the page is the buttons on the left-hand side. So far, the only person that has noticed this is viewing the page using IE on a mac.

http://www.redjetacid.com/performink/performink.html

I'm also having a little trouble using some pixel fonts. Even if everything is lined up so that x and y are whole numbers, I'm still having trouble making the text crisp. Any other ideas what the problem might be? Maybe there's just too much movement.

Disappearing Movie
Hi
I have encountered a problem which is hard to explain but easy to see when publishing the attached file. Once the movie has gone through the frames and after about 20 to 30 seconds everything but the text vanishes and then some seconds later re-appears.
I suspect it has something to do with the function pause. Have I overlooked something obvious? Any ideas? I would be greatful for some help

Disappearing Movie Clips
Dear all,

I have created a little Flash movie in which I have movie clips travelling across the screen; the AS 2.0 code for this is OK. I realize that every time the movie clip (mc) travels across the screen it creates a new depth. However the problem I have is that in the middle of the screen I have button and the images of the mc go over the button. I want them to travel behind the button.
Is there anyway to do this?
I thought that maybe I could have the button always at a higher depth than any mc that way any mc would pass beneath it but I don’t think I can do this.
Any advice received would be most grateful

I am using Flash 2004 MX Version 7.0 Professional, AS 2.0

Sorry if I have posted this in the wrong section but its all written in AS 2.0

Many thanks

Disappearing Movie Clips
Hello all

I'm having a problem with my Movie Clips and I think it has to do with how I set my layers.

This is going to be hard to explain in detail so I will try hard to provide a data-like information:

Key:

> = Folders or Layers
--> = Contains in keyframe
-->> = Contains within

Flash 8

>Folder 1 (Background)
>Layer 1 (Grass) --> Movie Clip -->> Moving Tween -->> Graphic -->> Mask

>Folder 2 (Midground)
>Layer 1 (Character) --> Movie Clip -->> Graphic every 2 frames
>Layer 2 (Grass) --> Movie Clip -->> Moving Tween -->> Graphic

>Folder 3 (Foreground)
>Layer 1 (Grass) --> Movie Clip -->>Moving Tween -->> Graphic -->> Mask



Alright, here is the problem, I'm trying to make a parallax effect with those 3 Grass Movie Clips, each moving in different speeds. Now, when both Masks are activated, the Background Grass is seen working but the Foreground Grass completely disappears. If both Masks are deactivated, everything works fine, but of course I want both Masks to work. Now this is what I found out:

1. If Background Folder is beneath the Midground and Foreground Folders, everything is working except the character disappeares.

2. If Foreground Folder is above the Midground and Foreground Folders, everything is working except the Background Grass completely disappears.

3. If the Mask in the Foreground Folder is deactivated, everything works except the Foreground Grass completely disappeares.

4. If the Mask in the Background Folder is deactivated, everything works except the Mask doesn't work (obviously since I turned it off). But the grass in the background doesn't disappear.

The Masks are set up like this:

Layer 1: Drawings of the blades of grass
Layer 2: A colour gradient

Can anyone help me? I don't want to move the folder because it will disrupt the rest of the animation in terms of layers.

Thanks in advance

Delaying And Disappearing Movie Clips
I wonder if anyone could help me please.

I want to create a scenario whereby a fly randomly flies across the screen. I have created a fly movie clip and he's wrapped in an overall movie clip called "FlyFly" with instance name, also FlyFly.

I have a layer on my scene main line called FLY...........

In the first frame I have this.........
-----------------------------------------
FlyFly.enabled = false;
FlyFly.visible = false; //set original fly status
FlyAppear = Math.ceil(Math.random()*3); //odds of fly appearing 1 in 3
if (FlyAppear == 2){
FlyFly.enabled = true;
FlyFly.visible = true; //allow him to be seen
}
else{
FlyFly.enabled = false;
FlyFly.visible = false;
}

--------------------------------------------

In frame 5, I have the FlyFly movie clip on the stage...........it's on frame 5 as from frame 1 there is a button that sends the user to frame 5..........

Within the FlyFly mc I have this in frame 1.........
-----------------------------------------------

FlyDelay = Math.ceil(Math.random()*10); //randomise the delay
_root.initTime = getTimer();
_root.onEnterFrame = function(){ //delay the fly's appearance
if((getTimer() - initTime)/1000 >= FlyDelay){
gotoAndStop(2);
}
}
stop();


----------------------------------------------------
In frame 2 of this mc, where the above code point to........ I have this.....
-------------------------------

FlyPlay = new Sound(this);
FlyPlay.attachSound("flybuzz");
FlyPlay.start(0,1);
---------------------------------------------------


Now, what I'm getting is the fly appearing as appropriate, the sound even plays, which for me is a classic bonus.


What I need help with is having the delay work and also have it either enabled or disabled depending on the outcome of the random number generation.

In frame 1 of my mc there is a timer delay function, this doesn't seem to work...........Also, my code for enabling or making it visible doesn't work as the fly is ALWAYS appearing.

What am I doing wrong ?????

Thanks in advance

Movie Clips - Disappearing Text
Hi there,

I have movie clips in my animation which consist of a rectangle shape and a dynamic textbox. These movie clips are rotated when the user clicks a button.

Everything works fine except that when the clip is rotated the text disappears. Once rotated back to the horizontal it reappears.

Anyone have any clue why this is happening, and how it can be fixed?

Many thanks.

Prototype + Disappearing Movie Clips
Hiya,

I have a parent prototype class that has (amongst others), onRollOver and onRollOut methods (clsBuilding). I have another class whose prototype chain is set to the parent class (clsMain).....clsMain shouldn't need to define onRollOut etc handlers, as it should inherit them, right? Thing is, it does, but the movie clip that Im rolling over appears, and when rolled over, disappers, for good - its still there though in the debug window!

here is the parent class

PHP Code:



#initclip

function clsBuilding(name,lnk,inst){
    this.fullname=name;
    this.lnkid=lnk;
    this.instid=inst;
    
    //add the image
    this.addGraphicOfSelf();
};
//set up chain
clsBuilding.prototype=new MovieClip();
Object.registerClass("lnkClsBuilding",clsBuilding);
//add image
clsBuilding.prototype.addGraphicOfSelf=function(){
    
    this.iOutline=this.attachMovie(this.lnkid,this.instid,100);
//    this.iOutline._visible=false;
    
};

//handle mouse activity
clsBuilding.prototype.onRollOver=function(){this.iOutline._visible=true;};
clsBuilding.prototype.onRollOut=function(){this.iOutline._visible=false;};
clsBuilding.prototype.onPress=function(){trace("pressed");};
#endinitclip 




and here is the child object

PHP Code:



#initclip 1

function clsMain(){
        this.name="Main Building";
        this.lnkid="lnkMainOutline";
        this.instid="oMainOutline";
        super(this.name,this.lnkid,this.instid);
        };
//add graphics methods called on this class are in parent class
clsMain.prototype=new clsBuilding();
Object.registerClass("lnkClsMain",clsMain);
#endinitclip 




the child pass the details of the clip it wants attached to it to the constructor of clsBuilding via super(), and the addGraphicOfSelf() method in building attaches the movie OK (its there) - its just the rolls etc that dont work??

what am I doing wrong....

any ideas very much appreciated

mike

Flash 5- Movie Layers Disappearing
I have a movie (home.swf) on layer0 with buttons that loads other movies (corporate_web_sites.swf, community web_sites.swf etc...)into layer 1. Everything is working fine, however for some reason when I preview the site every 4th or 5th click the background (home.swf on layer0) dissapears.

Any ideas?

Thanks!

Help Images Disappearing In Published Movie
Need a bit of help here. I built a simple but long presentation...inside a MC I have 3 layers containing:

- 30-40 minutes of sound set to streaming
- 42 static images keyframed to match audio
- actions layer with a stop() action in the last frame

Think glorified ppt presentation. This is pulled into the main movie which uses the pBar and loader components.

Everything works great and fine for most of it but once it gets to frame 1175, *poof* the images completely drop out and come back very sporadically towards the end. The total movie length is 2033 frames. Movie is set to 1fps.

I thought maybe it was dropping frames but the image sizes and audio are consistently the same and happens in the same place every time. This even happens when I watch it locally. Anyone have an idea why this may be happening? If it drops the keyframe with a missing image, would it not show anything until it encounters the next image keyframe?

Need help as I'm in a bit of crunchtime. If i had more time I would've cut the audio/images up into their own MCs and just done a loadMovie. If anyone has a quick fix, I'd really appreciate it.

Pete

Help Images Disappearing In Published Movie
Need a bit of help here. I built a simple but long presentation...inside a MC I have 3 layers containing:

- 30-40 minutes of sound set to streaming
- 42 static images keyframed to match audio
- actions layer with a stop() action in the last frame

Think glorified ppt presentation. This is pulled into the main movie which uses the pBar and loader components.

Everything works great and fine for most of it but once it gets to frame 1175, *poof* the images completely drop out and come back very sporadically towards the end. The total movie length is 2033 frames. Movie is set to 1fps.

I thought maybe it was dropping frames but the image sizes and audio are consistently the same and happens in the same place every time. This even happens when I watch it locally. Anyone have an idea why this may be happening? If it drops the keyframe with a missing image, would it not show anything until it encounters the next image keyframe?

Need help as I'm in a bit of crunchtime. If i had more time I would've cut the audio/images up into their own MCs and just done a loadMovie. If anyone has a quick fix, I'd really appreciate it.

Pete

Problem With Disappearing Movie Clips ...
Not sure why this is happening, the white areas on this movie at: http://www.ramsaystudios.ca/v5Dev/ disappear for some reason when I try to load external text files into them.

Anyone have an idea why this happens? Another thing to note is that it all works fine offline ... thats part of why I'm stumped, all the files are uploaded.

Load Movie Level Problem & Disappearing Cursor
Can anyone help me with these 3 BIG (probably very simple) problems, which have been driving me mad.

Background to problem:

1. There are 3 files: Test1, Test2, Test3. (see attached)
Test1 loads Test2 (no problems there)

2. Then Test2 loads Test3. On Test2 there are 2 buttons: button1 loads Test3 using level; button2 loads Test3 using target.

PROBLEM 1

button1 loads the drag & drop activity (see attached), which works. However, we can't manage to get the loaded file centred to stage (it loads to the top left corner of the screen).

PROBLEM 2

button2 loads the activity on the center of the stage. However the drag & drop action doesn't work.

PROBLEM 3

The other problem is that the cursor disappears when the back-to-post button in Test2 is clicked.

(Question:
Which code should we add to the back-to-post button to get the normal cursor to reappear?)

Any assistance in sorting out these 3 problems would be greatly appreciated.

Thanks in advance for your time.

Dani

Making A Movie Clip In A Movie Clip Go To The Next Frame Of The Original Movie Clip
I have a movie clip (for simplicity I'll call it movie_a) in movie_a I have another movie clip movie_b.

in movie_a i have a button that when pressed makes movie_b play (it has a stop frame every once in a while so the button acts as a "next" button)

I want it so that when i get to the last frame of movie_b and press the button, it will go to the next frame of movie_a

I hope that doesn't confuse u and u can help me solve this problem, as i am stumped and I've tried everything I could think of (which isn't that much as I'm not too good with actionscript)

thnx

Targeting A Frame Label In A Movie Clip From A Button In A Separate Movie Clip.
I have two separate movie clips placed on a timeline-MovieclipA and MovieclipB. I have a button in MovieclipB clip that wants to target a frame label located in the MovieclipA timeline. Can someone help me?

Movie Clip Buttons Nested Inside Movie Clip Dont Work
Hi people!
im having a problem here.

in my first frame i have a movie clip named "menu_mc".
i have this AS for this movie:

Code:
this.menu_mc.onRollOver = function() {
menu_mc.gotoAndPlay(8);
}
this.menu_mc.onRollOut = function() {
menu_mc.gotoAndStop(7);
}

thats working ok, the menu_mc plays on rollover from frame 8 till frame 12 where stops.
On frame 12 (this is inside the menu_mc movie clip) i have another movie clip, named button1_mc.
and also i have AS controling that MC:

Code:
this.button1_mc.onRelease = function() {
getURL("index.htm", "_self");
}


The problem is that when i rollOver on menu_mc it work fine and the button1 appears, the problem is when i try to click button1...
doesnt work.

the swf you can see it on www.wt.com.mx/menu.swf
can anybody help me please?
what im doing wrong?
or what other ideas can you give me so i can make that work.

thanks!

Mouse Rollover On One Movie Clip Increase Decrease Alpha Of Another Movie Clip..
So I really haven't messed with Actionscript much for a couple years and here is my issue.

I have several movieclips I put together that will eventually be a menu for my website. When you roll over a menu option (movieclip) I am trying to get another movie clip to fade in giving the description of the menu item.

For example - when you roll your mouse over the 'Live Chat' option a brief text description would appear telling you what the live chat is about. This description is a seperate movie clip appearing away from the original menu.

I have made the movieclips for the menu and the movie clips for the descriptions. I tried this action on the menu option to get the description to fade in:


Code:
onClipEvent (load) {
this._parent.mc_text_discussionBoard._alpha = 0;
}
onClipEvent (enterFrame) {
this.onRollOver = function() {
if (this._parent.mc_text_discussionBoard._alpha<100) {
this._parent.mc_text_discussionBoard._alpha += 5;
}
};
}
But the alpha only increases on the description (mc_text_discussionBoard) by 5 when I keep rolling my move over and out and over again. It makes sense why it does that, but I'm not exaclty sure how to get it to continually increase the alpha by 5.

any help would be great and I am anxiously waiting to get this solved!
Kevin

Code 4 MovieClip Button To Load A Movie Clip Into A Placeholder Movie Clip.
Yeah that title sounds a little confusing...so i will explain:

Is there a way to tell a "movie clip button" that once it is clicked on to load a "movie clip" into a "movie clip placeholder". So instead of loading an external swf into the placeholder, it will be a movie clip from within the same library. Putting every single custom clip on the timeline would take a while, so that is why I thought it would be easier like this, and the other movie clips are not that large that I want to load into it so there is no need for external swfs, trying to keep it clean. Here is the code along the lines I am trying to go for.

__________________________________________

this.profile_mc.onRelease = function() {
placeholder_mc.loadMovie("profileSection_mc","plac eholder_mc","_root.content");
}
__________________________________________

- "profile_mc is the button I am trying to activate to load the
"profileSection_mc" into the "placeholder_mc". but so far no good.

- the movie clips are within the same library, not on the timeline or external library.

- Is this possible?

Using A Button In A Movie Clip To Control The Movie(and Not Movie Clip) Timeline
Ok i have a button placed in a movie clip. I want this button, when released, to go in another scene, frame one, on the movie(scene) timeline and not on the movie clip timeline.

So i tried: gotoAndPlay("mission", 1); (mission is the name of my scene)

But it goes to the frame 1 of my movie clip, It would be great if someone could tell me how i can control the movie timeline while my button is in a movie clip

thaks
Vakarm

A Movie Clip Inside A 2nd Movie Clip Colliding With 4th Movie Clip That's In The 3rd
sorry if that sounds a bit odd, this is really a simple problem that i can't seem to nail.

Can u please give the the hittest that shows when a movie clip collides with another regardless of their level.

How To 'stop' A Movie Clip Within A Movie Clip Within A Movie Clip Loop
I've done searches, laughed, cried, and punched holes through the wall, but I can't figure this out.

I'm in Flash MX (pro) and I have a MovieClip on my main timeline (frame 1). Inside that clip is another animation (the static animation scrolling across the screen), and another inside of it of the static animation (6 characters on a train each animated uniquely).

Confused yet? Ha! OK, so I just want the damned animation on the main timeline to run once and then stop (or to 270 frames). I've tried:

myMovieClip.stop()

to no avail. I've tried attaching the script to the movie clip itself, and also to the frame.

Any suggestions?

Making A Draggable Movie Clip Control The Location Of Another Movie Clip
http://www.kineticz.net/jba/residental.jpg that is a picture of what i am trying to do. the white bar at the bottom is the draggable movie clip and the group of 3 pictures right above that is the movie clip that i am trying to control w/ the draggable clip. I am having trouble writing a script that will do this. any help you can give will be much appreciated.

When I Click On A Movie Clip I Need The Movie Clip To Goto And Play Frame 2
i have created a movieclip and draged it on to the stage i tryed used on mouse down then tell target goto and play but that ment when ever the mouse clicked any where, how do i tell in to only play when i click on the movieclip ?

How Can I Control A Movie Clip Which Was Loaded In To A Empty Movie Clip On Level 0
how can i control a movie clip which was loaded in to a empty movie clip on level 0 the name of the movie is 'imagemc.swf' and 'imagemc' for the empty movie clip on level 0. the movie doesn't have a movieclip name, how am i going to tell target the movie?

How To Manipulate A Movie Clip On The Main Stage From Inside Another Movie Clip
I have a button inside a movie clip, and I want it to work that when you hit the button, a different movie clip will go to frame 5. anyone know how to help? I think it has something to do with which level it is on, but I can't manage to figure out anything else.

A Button Inside A Movie Clip, Within A Movie Clip, Calling Another Scene:
Is it even possible?

I have been trying to do it for the last few days for a site I am working on.

I have done searches in many forums and it's foolish looking for an answer that way, because quite frankly every thread I opened was something to do with LoadMovie or GetURL, etc.

What I have right now is on the button in my Menu Bar Movie Clip:

on (release) {
gotoAndPlay(285);
}

Which plays a fancy little animation in the movie clip and then on the last frame of that movie clip I had:

gotoAndPlay("Contact", 1);

Which is the Scene for the "Contact Us" Scene named "Contact"

One would think that it would load up the scene and play at frame 1, however all that happens is it reloads the movie clip of the "Menu Bar" at frame 1 and starts over, not even realizing what I asked.

Anyways, I figured there's a script or something that tells it to look outside of the movie clip or to the _Root, or whatever.

If someone has a solution, it would be greatly appreciated.

Sorry I have no example to show, since I have yet to upload it. (It's my company's web site, and I don't think customers would want to see some half-arsed web site that's not complete.

Thanks in advance.

On Mouseover Show Movie Clip, On Mouseout Close Movie Clip *HELP*
Basically what I am trying to do is this...

I have a movie clip that is a name. When you put your mouseover the name I want another movie clip to display to the right of the name. This clip has a photo and bio of the person.

The photo and bio have an animation that fades it in and an animation to fade it out. I have 5 frames for the fade in, then stop frame, then 5 frames for the fade out.

What actionscript do I need to use to make that second movie clip load when a user mousesover the name (first movie clip) and to make the second half of the second movie clip play when the user removes their mouse from name (first movie clip).

NOTE: I tried using loadMovie and unLoad movie but I couldn't do it loading another swf. The reason being this is already an swf loaded inside a main movie. I guess you can't load an swf inside an swf that's already loaded inside an swf. I hope this all makes sense!

I appreicate all the help!

Thanks a lot!

Create A Movie Clip As A Button To Jump To Half Way Through Another Movie Clip?
hi guys and gals,
i am wondering if i can make a movie clip (as a link for a website) jump to half way through another movieclip...
thanks in advance

Create An Empty Movie Clip Inside An Existing Movie Clip?
I'm making sort of a tabbed navigation scheme by reading the data for each tab in from an XML file. What I'm wondering is if it's possible to use createEmptyMovieClip() to make a new empty movie clip inside a movie clip that already exists on the stage.

Using
ActionScript Code:
m_anchor.loadMovie(bg_image);
works as I would expect. bg_image is just the relative path to an image file, and m_anchor is a movieclip already on the stage. However, doing a similar thing:
ActionScript Code:
m_anchor.createEmptyMovieClip("textbox", this.getNextHighestDepth());
and then drawing a shape (a rounded rectangle, which I then want to put text on top of) doesn't work. It works if I just say "this.createEmptyMovieClip" instead of attempting to create it inside the m_anchor clip, but if I do that, the "textbox" is created at the root level and I can't unload it along with everything else in the "m_anchor" clip. Is it possible to create a new empty movie clip inside of one that is already on the stage?

Thanks!

Load An Internal Movie Clip To An Empty Movie Clip On The Stage
Can any of you shed some light as to why this is not working:

on (release) {
emptyMC.attachMovie("mrimc","instance1",this.getNe xtHighestDepth());
}

what I want to have happen is when the user clicks a button it loads the mirmc into emptyMC on the stage.

I have double checked that my empty movie clip does indeed have an instance name of emptyMC and that the movie I want to load into does in fact have the name mrimc in the library. Any ideas?

Problem Getting Movie Clip Inside Of Movie Clip To Face Mouse
I used the code below to make a movie clip face the mouse, it works when I use it on a movie clip that's not embedded in another movie clip, but when I used it on an embedded movie clip, it's axis seems to change.









Attach Code

var stickGun:MovieClip = this.stick_holder.stickGun_mc;
//stick_holder.stick_mc.stickGun_mc

stage.addEventListener(Event.ENTER_FRAME, onMove);
//stick_holder.stick_mc.stickGun_mc.addEventListener(MouseEvent.MOUSE_MOVE, onMove);

function onMove(event:Event):void {
// get the radian value of the angle between the clip and the mouse...
var myRadians:Number = Math.atan2(mouseY - stickGun.y, mouseX - stickGun.x);
// convert it to degrees...
var myDegrees:Number = Math.round((myRadians * 180 / Math.PI));
// get the horizontal and vertical distance between the clip and the mouse...
// rotate the clip toward the mouse...
stickGun.rotation = myDegrees;
}

Placing Actionscript Movie Clip Inside A Movie Clip Symbol
I'm loading an external image into an empty actionscript movie clip (holder1) using MovieClipLoader(); on frame one of my movie and is invisible. Then when the movie plays, there is an empty movie clip symbol (image1_mc) that is placed manually on the stage within another movie clip symbol (flash_mc), and is also on a bottom layer of a mask layer which is animated. Is it possible to place "holder1" inside of "image1_mc" so that I can treat it as if it were an embedded image? In other words, have the image in "holder1" inside of the manually placed movie clip symbol "image1_mc" so that I can use it like a regular symbol on the stage?

How Can I A Movie Clip Splash Prior To Attaching The Choose Movie Clip..Help
I have a presentation which I would like to publish on CD. What I want is to have movies attached to the container_mc on the stage upon clicking the desired navigation buttone. But before movie gets attached, I would like to have a logo_mc animation (from the library) to play itself before playing the selected clip.

I think I need to write up a function which will call the animation splash clip prior to attaching the clicked movie.

Appreaciate all the help.

Thanks so much.

Control Movie Clip In Container From Button Inside Other Movie Clip
There are three movie clips involved in this question.

1. A main movie clip that has a target empty movie clip where an external swf loads.

2. A menu movie clip that is built from button symbols and has its own timeline.

3. The external movie.

When a user clicks on the menu, the external swf loads into the empty movie clip target.  This part works fine. Here's the code:
on (release) {    
    loadMovie ("Lesson1.swf", "_root.container");
}

I want to use one external swf for all lesson, versus 20 external swfs. The problem I'm having is controling at what frame the external swf loads.  I've tried adding --gotoAndStop (15) -- for example. I've also tried adding, gotoAndStop "_root.container" (15), but that doesn't work either. The gotoAndStop action ends up controlling the menu movie clip timeline instead of the movie loaded into the container. I figure this is because the menu mc has "embedded" buttons and it's own timeline.

Any  help you can offer will be much appreciated.

Thanks
Sheila



Creating A Button To Open A Movie Clip From Inside A Movie Clip?
I'm using a hexagon menu to display some images. One image is placed on each slide of the hexagon menu (which can then be rotated left and right to see other "slides").

What I want to do now is to be able to click on the object (image) as a button and for it to go to another scene which shows the image blown up and some description next to it (which is another movie)

I have tried the following which doesn't seem to work:
Created an invisible button (or choosing the image as a button) and having

on(release) {
gotoAndPlay("scene 5", 1);
}

this doesn't work when I use it over the hexagonal menu, but when I move the button to somewhere else on the screen (not over the movie) it works.


Please can someone help with this - Ive been working on it flat out over the weekend and desperately want to make it work. any ideas would be appreciated!! thank you

Loading External Movie Clip With A Button Inside Another Movie Clip Help
Hi,

I am working on a scrolling thumbnail movie clip, that when you click on the thumbnail button inside the movie clip it will load an external movie clip. I have an empty movie clip on the main stage, and have been trying all sorts of code, but for some reason it doesn't like that I am inside a movie clip using buttons. It can't seem to find the external swf.

I have tried:

on (release) {
loadMovie (ithink.swf, "loader");

and

on (release) }
if (firstTime == true) {
loadMovie("ithink.swf", _root.loader);
firstTime = false;
} else {
_root.clicked = "ithink.swf";
_root.loader.gotoAndPlay("goback");
}
}

and so far nothing, for some reaosn when I click on a button outside of the movie clip with the above code it loads... and than the other works too, but if I click on the buttons inside the scolling movie clip first they won't work.

Any suggests or ideas!!?

I would really appreciate it... I am beyond frusterated!!

Unload A Movie Clip From The Movie Clip That Was Targeted From The Root Timeline
I have on the main timeline, a button that when it's pushed loads an external .swf into a blank MC. I need to be able to close the MC within the mc. I know I can do this is loadMovieNum and use levels, but then I can't target where I need it to load in...is there a way to do this?

Thanks
Stacy

Using A Movie Clip Inside A Movie Clip To Start A Frame Of An MC Inside A Movie Clip
Situation:
I have a movie clip inside a movie clip with a button inside of it.

This button on release goes to a different movie clip(svideo) in a different frame on the maintime. This movie clip has a movie clip(portfolio) inside of it.
Okay: I use an absolute path on the aforementioned button
on release
_root.svideo.portfolio.gotoAndPlay(60);

But, for some reason Flash won't go to frame 60 of the portfolio movie clip that is inside of the svideo.

I have tried numerous variations on reaching frame 60 of portfolio. Like going to the maintime line and going to the portfolio MC. Also, portfolio and svideo are the instance names and not the name of the actual movie clip.

If anybody could help, I would appreciate it. Thanks.

How Do You Make A Button Able To Jump From Movie Clip To Movie Clip
how do you make a button able to jump from movie clip to movie clip

I have 5 movies i the same scene , I need the buttons to jump from movie to movie ... how do I code this in the acrions ?

A Button Inside A Movie Clip To Move Another Movie Clip
I'm building a web page and I have a button that I need to make two movie clips play. The button is inside one movie clip and in addition to it playing I want it to make another movie clip play. It doesn't seem to recognize the movie clip target names. Any help as to how this can be done would be much appriciated.

Thanx

Movie Clip Tween From A Random Point To Another Movie Clip?
ok...
on a website I am trying to make...i have a rotating E (lowercase)

it flips around and does all kindsa crap

but when a person clicks on a button, i want it to tween from whatever frame it is on, to where all 3 of them line up and do a little flashy type thing

ei:
e#1 - upside down and backwards
e#2 - sideways and rotating on the y axis
e#3 - rotating on the x axis

now i want all of these to tween from the point they are at to a specific order....so they are all flat (ei: they look like this "e")

how the heck do i do this?!? i know i have seen it somewhere!!

Duplicate Movie Clip / Remove Movie Clip Woes
I have built a an MC that will Duplicate an MC it does this a specified 114 times.

Once all of the MCs are in the Movie I want to pick a movie clip and remove it randomly. I am doing this now but It takes to long because it is looking for numbers that are no longer existant instead of just going for the ones that are already there.

I was talking to one of the programmers at my work and he was telling me to build an array that adds in a each duplicate mc name

for instance
amount = 1
I have 114 boxes each box as it is duplicated gets renamed box + amount
amount + 1
until it gets to 114
then it looks for each box1 - box 114 and gets rid of each box 1 - 114

But how could I get it so I remove lets say box 84 it wont look for 84 for any more

I was thinking

I dynamically rename every mc > 85 to name amount - 1

and have it randomly look for 113 the next time around and so on til it finally gets to zero...

Any one have any suggestions for me?

Or if you can point me in a direction that would be good as well

Thanks a bunch

Target Host Movie Clip From Loaded Movie Clip.
Hi all.

I have a movie clip loaded into my main movie. This movie clip is the INTRO of the website. What want is that when this INTRO ends it should tell the main movie to go to the next scene of the movie. I tried _parent.nextScene() but it is not working. Please help me as I need it badly and urgently.

Thanks.

Zee

P.S: Btw this is my first ever post on FlashKit so I hope to have a great time here!

Copyright © 2005-08 www.BigResource.com, All rights reserved