ActionScript 2.0 :: Loading Movie Clip Into Loaded Movie Clip?

Mar 16, 2005

I'm working on a flash site and I'm having some trouble with the programming for it. I'm not so great at action script, so I'm hoping that my troubles are caused by my own stupidity and that some cool smart person will have an answer for me.
So, I have a main menu flash file that functions like the one in this tutorial:
http://www.kirupa.com/developer/mx/p...transition.htm I set it to load various swf files and it's works just fine. What I want to do is have it load a swf that functions exactly the same (buttons that load external clips with transitions) as the main swf- this is a sub page menu. So, in theory, the sub menu page should load the final content, and three swfs would be seen stacked ontop of each other.

I changed the instance names in the sub menu file to be different than that in the main menu file. This fixed the original problem of it loading the content clip into the clip that the sub menu should stay in. Now, It loads the sub menu just fine, but then it gets stuck and never loads the content. The sub menu buttons will not function at all. Independent of the main menu, the sub menu file works perfectly What can I do??? Does it have anything to do with the "_root"? I never understood the concept, so I'm having trouble with it.

View 5 Replies


Similar Posts:


ActionScript 2.0 :: Loading A Movie Clip From A Loaded Movie Clip

Feb 18, 2009

I've been trying to load a movie clip from a movie clip that has been loaded. I am trying to provide a simple means to change the look / feel of the flash application by placing the graphics and controls into a second swf. Each different screen is represented by a different movie clip that is in the second swf. So I've got app.swf loading ui.swf. I want to load screen1_mc from ui.swf.

The app.swf is loaded by a master swf. There may be multiple copies of the app.swf that can be loaded by the master.swf and each app.swf could be configured differently. For each "unique" app.swf it is stored under a unique folder that is not known to me in advance. Since I don't know the unique folder in advance, I can't use import / export for runtime sharing. Is there any way to load the movie clips from the loaded movie clip? (Basically, I want to treat the ui.swf as an extension to the library.)

View 0 Replies

ActionScript 2.0 :: Loading An Internal Movie Clip Into A Movie Clip?

Oct 30, 2009

i have movie clip x (which is blank), and movie clip y, but movie clip is only on the timeline

how do i play movie clip y in movie clip x ??

View 1 Replies

ActionScript 2.0 :: Making A Loading Movie Clip While Data Are Being Loaded?

Feb 2, 2011

i want to ask if i want to make a mc loader to make the user see that the data I am getting from the database is still loading. I was using these commandsvIn.getBytesLoaded()lvIn.getBytesTotal()but I do not know where i exactly put these two commands with some formulas or what other function i am missing. Because when i put it in the function(success) part, it gives an equal value which is the total bytes loaded. I am working currently with 900+ items (will be increased after some time ) which gives around 4-5 seconds delay before all data is loaded, so i want to make a loading movie clip so that the user will know that the data is still loading.flash communicates with a php file on the server. php file communicates with mssql servermssql goes back to phpthen php to flashhere is a sample of my script (some parts where already removed to make script smaller)

lvOut = new LoadVars();
lvIn = new LoadVars();
lvIn.onLoad = function (su

[code].......

View 6 Replies

Actionscript 3.0 :: XML Loaded And Tween - Loading Images Into A Movie Clip Consecutively

Jul 20, 2009

I am loading images into a movie clip consecutively - the code has flash read through the XML nodes one by one and load in the images one after the other. I need flash to recognize when all the images have been loaded, and at that stage I want it to tween the movieClip containing the images. I have it all working, except I am getting this weird glitch where the movie clip jerks from left to right while the image are loading (at least i think its when the images are loading!) - it then settles down and runs normally. the code is below, so can see what i mean by 'jerks from left to right' if you check out the site: [URL]

[Code]....

View 1 Replies

ActionScript 2.0 :: Targetting A Movie Clip - Loaded Into A Container Clip From Main Timeline

Nov 24, 2005

I am targeting a a movie clip. The problem is that all the syntax I have found for targetting clips looks like this: _root.sample_mc.sample2.mc. etc. The problem is, my target clip is in an swf that I've loaded into a container clip from my main timeline. So, essentially, I have a home.swf that loads menu.swf into a container called 'location'. In menu.swf, I have an MC called center, which contains the MC I am targetting called 'target'.

View 2 Replies

ActionScript 2.0 :: Loading Data Into A Dynamic Textbox Thats Nested In A Loaded Movie Clip

Jul 25, 2010

Well this is the problem right here. In my flash movie, I made it so a member from my PunBB Forum can login using their login information from the forum, This is using the LoadVars and it loads the variables into flash and displays the username. In the php script i made it so it will display profile information that user has on the forum, this is where the problem comes in.. I can trace the data perfectly fine in the output panel when you are successfully logged into flash.

I can also display the data in Dynamic text boxes IF they are on the main stage.. I need to be able to load the data of the user inside of a movie clip.. that is loaded when you click "User Profile" on the menu, Once the movie is loaded, no data is displayed. Yes i have all the instance names and paths correct, but no matter what i do I cannot load the data into this movie clip. So me thinking it just wouldnt work, I tried making a profile page on a different keyframe in the timeline, That also did not load the data onto another frame.

View 5 Replies

ActionScript 1/2 :: Addressing Movie Clips Inside A Movie Clip That Has Been Loaded Into A ScrollPane

Jul 6, 2009

I'm trying to use the scroll pane component for the first time, and I've spent most of the day getting nowhere. Based on my experience with other components and with loading content into movie clips, I expected that I would point my scroll pane to its content and be off and running, but that hasn't happened.

[Code]...

View 4 Replies

ActionScript 2.0 :: Assigning A Level For The External Movie(reseller_locations.swf) Loaded To A Movie Clip(clipHolder)?

Jul 25, 2006

assigning a level for the external movie(reseller_locations.swf) loaded to a moivie clip(clipHolder)

code

loadMovie("reseller_locations.swf", this._parent.clipHolder);

View 1 Replies

ActionScript 1/2 :: Targeting A Movie Clip Inside A Movie Clip Inside Another Movie Clip With A Twist?

May 9, 2010

Im able to link to a movieclip inside a movieclipUnfortunately one of the movieclips now are a scrollbar and scroll. Now the actionscript isnt working?cal.onPress = function() {gotoAndPlay(2);message1.contentMain.message.total = unit1;

View 17 Replies

ActionScript 3.0 :: Flash - Movie Clip To Play Unless The Person's Mouse Curser Is On The Movie Clip For More Than A Second

Jun 24, 2010

I am pretty new to ActionScript 3 and Flash. I don't want my movie clip to play unless the person's mouse curser is on the movie clip for more than a second. If the person just runs their curser over the movie clips really quickly, then it should do nothing. It must be more than a second. How do I code that?

[Code]...

View 17 Replies

ActionScript 2.0 :: DropTest - Check And See If The Dragged Movie Clip Is Completely Within The Bounds Of Another Movie Clip

Jan 11, 2010

I'm creating a small drag & drop activity, and I want to be able to check and see if the dragged movie clip is completely within the bounds of another movie clip (or at least in the bounds of a certain x/y zone on the main stage. I can't use dropTest because it returns true if any tiny bit of the movie clip overlaps with the dropTest movie clip.

I also thought of something that just checks the x/y coordinates of the dragged movie clip, but I'd need this to reflect a range of values rather than one coordinate. For instance, I'd want to return true if the movie clip's x is between 50-60 AND the y is between 50-60. I'm attaching a small graphic to illustrate in case my explanation isn't clear enough [URL]

View 3 Replies

ActionScript 2.0 :: On Button Release Clear Current Movie Clip And Bring In New Movie Clip

Feb 21, 2010

I have created a flash website, each button is a movie clip with an invisible button over it containing the following script

on (rollOver) {
_root.mouse_over_profile_btn = true;
}
on (rollOut) {

[Code]....

each page is also a movie clip and on release of a button its played. the problem is that when i press another button to play another movie clip 'page' the old content is still there.

Is there a way of reversing the page transition i have used to bring out the movie clip and then bring in the next movie clip.

View 0 Replies

ActionScript 2.0 :: Collision Detection - Goto A Certain Scence When A Movie Clip Collides With Another Movie Clip

Jun 22, 2005

i am making a pacman game, and i need to know how to make it go to a certain scence when a movie clip collides with another movie clip.

View 2 Replies

ActionScript 3.0 :: MCs Classes - Can't Send An Event From The Eagle Movie Clip Or The T2D Movie Clip To Tell The Other To Fade Out

Nov 5, 2010

There is a bad gap in my knowledge with Event Dispatch and Event architecture, and this problem proves it. I've been getting nowhere on this problem for two days, I've posted everything to my Flash site. Go here, please: [URL] Click on "Flash Banners" The two thumbnails represent two different classes. Each class is identical. Both are "extends Movie Clip" classes. Tweeners of various types control the hover and click methods. URL Loaders load the thumnails which I then wrap in MC's and make them buttonMode = true, etc. Hover and click to load the Banners on the thumbnails.

I can't send an event from the Eagle movie clip or the T2D movie clip to tell the other to fade out. Both Banner classes are instantiated through a separate Base class. I'm sure this has to be an Event Dispatch from one MC to another and that it can't be done by the Base class. how I can send an Event or Event Dispatch and what the code structure is so one movie clip can in one class can tell the other movie clip in the other class to disappear while it's neighbour is playing. I'm happy to post code or explain / clarify anything that's not clear.

View 1 Replies

ActionScript 3.0 :: Movie Clip On Main Timeline Receiving Input From Nested Movie Clip

Feb 23, 2011

I've got a main timeline .swf file called "blank.swf" which contains nothing but two blank movie clips one called called "pproduct", the other called "ppalette". In the script frame of this main timeline I use the simple "Loader = new Loader();" method to load a URL of an .swf file into the "ppalette" movie clip. The "ppalette" movie clip contains several color chip buttons, each of which use the same Loader method above to load an external .swf into a clip. Here's what I want to do: let those color chip buttons, when the "blank.swf" file loads, be used to load an .swf movie into the "pproduct" clip on the main timeline. I'm wanting to be able to swap depths with various movie clips which will take out the movie which has the palette, but I want whatever that palette has loaded in the original "pproduct" clip to stay there.

[Code]...

View 3 Replies

ActionScript 1/2 :: Loading Multiple Movie Clips Inside Another Movie Clip?

Mar 11, 2010

I was wondering about the flexability of loading movies into a movie clip. Currently, I am well able to load one movie into a movie "loader" clip, but thought maybe there is a way to load additional movie clips into that same "loader" clip, as i am starting to accumulate several different graphics that i need to have be inside movie clips so that i can make them change colors on the same frame when needed.
 
i shot from the hip and tried this code, but didnt have any luck:
 
mc_LCD_loader.attachMovie("hilight", "g", 1), ("header", "X", 1); mc_LCD_loader.g._x = 0; mc_LCD_loader.g._y = 1000;
mc_LCD_loader.X._x = 0; mc_LCD_loader.X._y = 1000;

[Code]....

View 9 Replies

ActionScript 2.0 :: Set Height After Loading An External Movie Into A Movie Clip

Jul 2, 2006

I would like to set height after I load an external movie into a movie clip.

For example,

this.body_mc.loadMovie("body_about.swf");
_root._height = this.body_mc._height;

I always get height as 0, because body_mc is an empty movieClip.

how to access the body_about.swf height as soon as loaded the movie into the empty movie clip?

View 2 Replies

ActionScript 2.0 :: Get A Movie Clip To Slowly Move To The Coordinates Of Another Existing Movie Clip

Oct 23, 2010

it seems simple enough but i have no idea on how i could get a movie clip to slowly move to the coordinates of another existing movie clip

View 5 Replies

Professional :: Create A Smooth Transition From End Of A Movie Clip To Beginning Of A Movie Clip?

Apr 8, 2012

I created a movie clip which plays ok. But when it ends there is a slight jump, if you will, when it goes back to frame 1 to begin playing again. Does anyone know how to make the transition unnoticeable from the last frame of a movie clip to the first frame of a movie clip?

View 4 Replies

ActionScript 3.0 :: Make A Movie Clip Follows Anther Movie-clip That Could Be Moved By User?

Sep 7, 2010

iam tring to make a new project , i just wants to know how to make a movie clip ( constant speed ) follows anther movie clip <--- "which can be moved by the user "

<<<>>>> i believe that this idea is good , that i records the X and Y postion of the User's movie clip and just make the other movie clip points at this postion and move toward it ,

how to make the other Movie clip (( which is a car ! .. so it have acceleration , speed , steering , etc )) go to this position or let us say try to??

View 9 Replies

ActionScript 2.0 :: Find The X-y Coordinates Of The Attached Movie Clip Within The Created Movie Clip?

Mar 26, 2006

Q1) The registration point of a created clip is top left - my question is how can I dynamically change it's registration point - say to center center?

(I am trying to attach a movie clip to a created clip and I wanted it to be centered inside the container - a related sub-question, how can I find the x-y coordinates of the attached movie clip within the created movie clip?)

Q2)When I tried to create two different movie clips, I found I had to create them at different depths, else the first would load and the second would not. Why would that be so? I'm on MX 2004 Pro.

View 4 Replies

ActionScript 2.0 :: Actions On Movie Clip Inside Another Movie Clip (menu) Won't Work

May 15, 2009

I have a very simple problem but I can't find the very simple solution to it. I've create an animated menu with animated movie clips inside to work as buttons. All the main buttons work perfectely but I've got just on button with a sub-menu. On this sub-menu I've placed an invisible hitarea button in order to place some gotoAndStop action. The thing is, it seems to me like this submenu hitarea are underneath something else (even though is the seccond layers right about the actions layers). I've placed a simple trace action whenever the mouse rolls over this area but I get nothing... Am I doing something really wrong? I'm losing all my hair already.

View 2 Replies

ActionScript 3.0 :: Resizing Parent Movie Clip Affects Child Movie Clip?

May 27, 2009

i am trying to use the Tween class to change the size of movie clip to certain height.the code works for me but when resizing the parent, it effects the child.i tried the height and scaleY property for the thum, but does not work.

ActionScript Code:
import fl.transitions.Tween;
import fl.transitions.easing.*;
import fl.transitions.TweenEvent;

[code]....

View 6 Replies

ActionScript 3.0 :: Text To Go Below The Movie Clip Simultaneously With The Voice In Movie Clip

May 15, 2009

I've imported 9 .mov files in my flash presentation. Each lasts for about a minute, and the language is english. I have translation of each video clip in Serbian language as .txt files. And now i need that text to go below the movie clip simultaneosly with the voice in movie clip. And for example when i press pause,the text stops,and when i resume it,the text goes again.

View 1 Replies

Stop A Movie Clip From Looping And Move To Another Frame/movie Clip?

Jun 30, 2009

it isn't such a big problem bur for a beginner like me it is.I have a movie clip called "Lion_beginning_mc", inside of it I have 3 Key Frames and Inside each and one of them I have different shapes.For example:Key Frame number 01 - DogKey Frame number 02 - CatKey Frame number 03 - MouseI want to move this movie clip "Lion Beginning_mc" form Key frame number 1 to Key frame number 20.I want the Dog,Cat and a mouse to change between each other only once while moving from Key Frame number 1 to 20.And then when the movie clip "Lion Beginning_mc" reaches his goal another movie clip or a frame (with a shape) will start.

View 5 Replies

ActionScript 2.0 :: HitTest Movie Clip Hitting Another Inside In A Movie Clip?

Mar 25, 2011

I have in my root:

1 Movie Clip instancied as a "cursor" 1 Movie Clip instancied as a "Mc_Obstacles" with others 5 Movie Clipsand the 5 Movie Clips inside the "Mc_Obstacles" are instancied as "Obstacle" , all with the same instance...I want this: when the mc "cursor" hit one of mcs "obstacles" gotoandstop to frame X then i did in frame with actions in another layer:

cursor.onEnterFrame=function(){
this._x=this.x+10;
if(this.hitTest(Mc_Obstacles.Obstacle)){
gotoAndStop(4);
}
}

View 1 Replies

ActionScript 3.0 :: Affect Both A Movie Clip And Its Child Movie Clip In The Same Function?

Dec 19, 2009

I really have two questions: How do I affect both a movie clip and its child movie clip in the same function? and how do I pull info from one component into a function for another? My basic setup is a movie clip of font choices, one on each frame: "bodyText_mc." Each of these frames has a child clip "bodyText_mc.bodyText" with alignment choices for the font. For instance, the user picks "Script" in the first ComboBox and then picks "Align Right" in the second. (All of this text is static because I need more design control that I can get with dynamic text.)

First of all, I have a combobox "cbBodyFont" that I use to go from frame to frame on movieclip "bodyText_mc." This works nicely:

[Code]...

View 8 Replies

Professional :: Duplicating Movie Clip Or Inserting New Movie Clip With Effect

Jun 5, 2010

CS3 Flash - Complete newbie to Flash and I'm trying to change an existing flash piece.It consists of 4 different text statements that appear on a Black background - the first appears and stays on-screen for 10 secs, then it starts to blur and fade away in about a sec, and then the next statement appears, etc, etc., and the whole lot loops.The 4 statements appear as Video Clips (Symbols?) in the library.I need to add a new statement, which means there will be 5 statements. I duplicated one of the library items and renamed it, which seems to have worked fine... but I cannot then work out how I insert that video clip into the Timeline and still have the same visual effects and timing as the existing ones? I can insert a blank frame, but then I can only drop the new video clip text onto that one frame.I've tried copying and pasting a whole set of frames, and then go in and change the text. Which I thought had worked, but then discovered that it also changed the original frames.... now understand that's because they are just instances and any change will affect the master Video Clip!

So can anyone advise if I can insert my newly added and renamed video clip into the timeframe and create the same effect as the others?Please keep any advice as idiot-proof as possible as this is my first venture into Flash... not finding it as intuitive as I hoped, spent 6hrs to date just trying trial and error without any real success.

View 1 Replies

Professional :: Control The Movie Clip Mc_allPages From Within The Movie Clip Mc_buttonMenu?

Aug 20, 2010

I am making a web site in flash in which I have multiple movie clips.I have mc_buttonMenu on the main timeline.Inside of mc_buttonMenu, I have 3 buttons that are all button symbols.From the main timeline, I have a movie clip called mc_allPages.In this movie clip, I have a few layers.I have the content layer.This layer controls how my pages display.I have another layer called labels.I labeled frames 1 to 10 as 'home' and layers 11 to 20 as 'contactUs'.I have another layer in mc_allPages called actions.I put a stop(); on frame 10 and frame 20 on this layer.I want to be able to control the movie clip mc_allPages from within the movie clip mc_buttonMenu.I put some action script in various places, but it never worked.I tried this action script:
 
_root.btn_home.onPress()
{
Gotoandplay("home");[code]...........
 
I tried placing that code on the main timeline, inside mc_allPages, inside mc_buttonMenu and split up into both buttons appropriately for btn_home and btn_contactUs.Sometimes the animation would stop on frame 10 and sometimes it would just play through to frame 20 and ignore the stop(); I put on frame 10 inside the mc_allPages movie clip.However, whenever I pressed the button ( btn_contactUs ), it never went to the frame labeled "contactUs" in the allPages movie clip.

View 11 Replies







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