ActionScript 3.0 :: Target A MC Being Loaded Into Empty Container?

Oct 1, 2010

I'm trying to somehow target a MC being loaded into an empty container MC. I've tried everything I could think of.

Basically, I'm making a movie editor. Right now clips are added to the stage on initial load, then when they are clicked on they are added to the "reel" and they can be previewed in the order that they are added. Now, I'm trying to get it so that when they are on the "reel" they can be click and dragged and rearranged.

Here's how the clips are added to the stage in a function called loadClips():

ActionScript Code:
addChild(clip1);
clip1.name = "1";

Here's how they are being added to the "reel" in addClips():

ActionScript Code:
if (currentTarget.name == "1")
{
clipCopy = new Clip1();

[Code]....

Now, I just want the clips that are on the reel to be click and drag-able (along the X axis but I'll worry about that later). I realize now they're all being added as clipCopy. That's going to be an issue huh? Is there a way that I can target the container and make that mobile?

View 2 Replies


Similar Posts:


ActionScript 3.0 :: Why Won't Container Empty

May 21, 2011

i open a box which has selecable text init and when that is clicked it closes the first box and opens the next. but the container will not empty when the close button is clicked. i use the same method on about 6 other items and all work fin. the 1st box closes fine but the 2nd wont any 1 no y. here code

[Code]....

View 9 Replies

ActionScript 2.0 :: Checking To See If A Mc Container Is Empty

Jun 17, 2009

I'm working with a window scroller component, where the dynamically loaded scrolling content has buttons that load attach mc's to a clip holder in front of the window scroller. To do this I use this bit of code, which works fine:

Code:
calendarPagesBtn_mc.onRelease = function(){
_level0.slideHolder_mc.attachMovie("calendarPages", "calendarPages", _level0.slideHolder_mc.getNextHighestDepth());
this.enabled = false;
};

The "this.enabled=false" is to deactivate the button in the scroll content, otherwise it will still be active in the background. So far so good.

What I need to do, once the "close" button on the attached mc is clicked, is re-enable the button. I'm thinking the way is to check if the attached mc has been unloaded, which I'm trying to do with this:

Code:
if (!_level0.slideHolder_mc.content)
this.calendarPagesBtn_mc.enabled = true;

View 0 Replies

ActionScript 3.0 :: Dynamically Adding Empty MCs To A Container?

Jun 19, 2009

Rather than typing out each child to add to a container mc, I wish to use a for loop to do so. However, in AS2, when adding an instance of an object, I could specify a unique name based on the current number of the loop. In AS3, I dont know how to even give the same object a unique name if multiple versions a re being pulled from the library to the Stage!

See this step of basic code:: and perhaps someone may have an obvious point to make about the differences of standard procedures, moving from AS2 to AS3::�

Code:
var container:MovieClip = new MovieClip();
var wing:MovieClip = new MovieClip();
addChild(container);

[Code]....

View 1 Replies

ActionScript 3.0 :: Empty A Display Object Container?

Oct 21, 2009

Is there a simple way to completely empty a display object container regardless of what it contains, including if it's already empty? In other words, without determining its children and using removeChild on each?

View 2 Replies

ActionScript 2.0 :: Button Needs Load Movie Into Empty Container Once?

Jan 6, 2009

I have a main SWF with an empty MC holder and all of the main navigation button on actions. When the buttons are clicked it then loads an external SWF into the empty MC. I am having trouble telling the button to load the movie once and then stop loading if someone clicks on the link again. I want to prevent someone from double clicking to cause the animation to blink. *rapidly click on "home" to see what I mean.

[URL]

All of my button actions look like:

home_btn.onRelease = function(){
loadMovie("images/6661_home.swf", _root.dropzone);
}

I have read numerous threads but for some reason can't find a fix for this.

View 5 Replies

ActionScript 3.0 :: Flash Check Container And AddChild If Empty

Apr 7, 2011

I have a button on stage which has a child menu movieclip and that movieclip has three submenu button children.On each of these 3rd level buttons an event listener draws a new container on the stage and adds a new movieClip holding various info.This all works nicely, but I cannot work out a way to get an eventListener on the menu buttons to check if the container already exists so I can then stop the button repeating the add container function. So, at the moment you can repeatedly hit any of these menu buttons and they will just continue to add info movieClip children.I've tried some nice Boolean commands that should work, but I think it's the nesting of the children/relationships that are not allowing me to get this to work.So, basically for arguments sake, let's say I only have one of each item... here's the nesting of children:[code]

View 14 Replies

Professional :: Can Target The Second Key Frame Of An Empty Movieclip

Apr 24, 2010

Can i target the second key frame of an empty movieclip which is created by actionscript.as for example:this.createEmptyMovieClip("target_mc",1);I want to write some script on the second keyframe on the target_mc movie clip. Is that possible.

View 1 Replies

ActionScript 2.0 :: Target A Movie Calling In ASP To An Empty Movieclip?

Dec 6, 2002

I came across a problem last week, I haven't looked at again. But I thought I would post the question here first before messing around with the code to save myself some heartache.

Is it possible to target a movie calling in ASP to an empty movieclip. When I was playing around with it at the weekend, it didn't seem to work it just hung when the movie tried to return the ASP.

Is this because when using ASP + Flash, the movie needs to be at level0?

View 1 Replies

ActionScript 2.0 :: UnloadMovie Command - Load In An Empty Container The Swf's Of The Main Navigation

Feb 26, 2005

i have a little problem with the unloadMovie command. i have a button which is mc2_about here is the code

[Code]...

where i want to unload level1 which is a scrollbar with a text and load the portfolio section in an empty container... my structure i want to load in an empty container the swf's of the main navigation (home- portfolio,etc) and the sub-menus of it's categories[about me-print-web design) into levels. is there a simpliest way of doing that?

View 3 Replies

Target Container On Main Timeline?

May 19, 2009

I have 3 movieclips on the main stage.

btn1, 2, 3

I have this code in the maintime line, that when i click a button, the btn the stays static (like its on), when i click another btn, it switches on the next button and loads an external swf.

Each button's instance name is button1, 2, 3..and more buttons I add the stage I would increase the button number, so for 3 buttons on stage I have up (var buttonNum:Number = 3

code//
var buttonNum:Number = 1;
for (i=1; i<=buttonNum; i++) {
this["button"+i].onRollOver = function() {

[Code].....

This all works fine.

I have built a scroller with thumbnails as movieclips and would like to add this code to movieclips.

The thumbnails are indivdual moviclips and are inside a movieclip (productscroll), as the dragbar i am using targets the clip (productscroll) to scroll the thumbnails.

I basically need the same actions as the buttons. When I click a thumbnail I need to load an external swf.

View 3 Replies

ActionScript 2.0 :: Placing MC Into A CONTAINER MC, Target?

Jul 8, 2004

I'm using an effect I found on the net which moves clips around randomly, works really nicely, however, Im having a problem with it when it's put inside another MC.I have a site setup that uses a navigation section which loads the separate sections into a container MC on the stage. When the section is loaded that contains this special effect, it doesn't work. I guess this is a target issue in the action script somewhere, but I'm not good enough with code to see it.he special effect file and a "container" file for it to simulate my problem are attached.[URL]

View 3 Replies

Flash :: Professional - Drop Target Not Working In Container?

Mar 3, 2010

I have produced a Flash movieclip, containing a fair few layers, including masked layers, actionscript etc. One of the things it does is allows the user to click and drag a number of movieclips and drop them anywhere within the mc, but if they drop them on specific drop targets then some actionscript (AS2) kicks in, stops the drag object from being draggable again and advances through its frames to basically 'enlarge' the drag object and play a sound to show the user they've hit the right mark. This all works perfectly on its own, or in a browser window etc.

The problem I have is when I try to insert the Flash movie into an Adobe Captivate 4 e-learning package. Things work ok apart from when you drop the dragged object onto a drop target, nothing happens. The actionscript doesn't execute. Would the fact that the movieclip is (probably) sitting within a container (the Captivate e-learning package) be causing the problem? If so, how do I get around this issue?

View 5 Replies

ActionScript 3.0 :: Target The Parent Container Of Whichever Object Receives An Event?

Sep 28, 2010

how I can target the parent container of whichever object receives an event?

Code:
Parent1.btnA.addEventListener(MouseEvent.CLICK, doSomething);
Parent2.btnA.addEventListener(MouseEvent.CLICK, doSomething);
Parent3.btnA.addEventListener(MouseEvent.CLICK, doSomething);

[Code].....

View 1 Replies

ActionScript 2.0 :: Buttons And Transitions - Load In External Swf Files Into An Empty Movie Clip On The Main Stage Called Container

Jan 11, 2004

I have a problem with buttons and transitions and it is similar to a problem I had a couple of days ago that I posted and that was sorted out. I have two buttons onstage (they're inside a movie clip) inside the movie, on the button one I have the following

[Code]....

I have similar code on button two and this does indeed make the buttons move into place as required. My problem is this, I need to load in external swf files into an empty movie clip on the main stage called container. These External SWF files have transitions and this is where my problem is. If I place a normal button on the stage it works but not if the button is inside a movie clip and has actions applied as above. The code next is what I have believe should also be placed on the button to make swf transition one load in.

[Code]....

View 4 Replies

ActionScript 2.0 :: Loaded Swf Via The Empty Mc Method

Nov 21, 2007

I have a loaded swf via the enpty mc method...the usual. this loaded swf has 3 frames - "off", "slow" and "fast" - so depending on whether the user is on the "presentation" page (lots of stuff going on and needs the external swf to be on the "slow" frame) ok, I have no problem controlling the swf....i can make it go to the frames ok. heres the problem, when the user is NOT on the presentation page, i need the the loaded swf to be on the "fast" frame. heres the code i used but doesn't work as i expected.

[Code]...

View 2 Replies

ActionScript 2.0 :: Swf Gets Shrunk When Loaded In Container?

Jan 22, 2010

scrolling TN that I purchased for $10. I want to create many different galleries (many swfs) using this XML gallery and then load them into a container inside a "master gallery swf" if that makes sense.The problem I am having is that the swfs are getting re-sized smaller when loaded in the container (maybe 70% of the original size) even though the container and swfs have the same dimensions.I've actually had this problem before where a swf displays smaller, even if it's just inserted into an HTML page. I'm wondering if there is a simple solution

View 0 Replies

ActionScript 3.0 :: Communication Between Loaded And Container SWF

Jul 18, 2011

I need to communicate from loaded swf to the container swf in AS 3.0. This is the code for document class of loaded swf followed by code for source swf document class. How I can call the method xyz() from the external swf?

ActionScript Code:
package com.scottgmorgan {
import flash.display.Sprite;
public class ExternalMovie extends Sprite {
public function ExternalMovie():void {
Code] .....

View 1 Replies

IDE :: Guestbook Flash & Php Loaded Into Container?

Mar 24, 2009

I used guestbook form here:[URL] and when I load it into a container in the flash website the guestbook doesn't read the data from txt file. It works ok when it's alone.

View 1 Replies

ActionScript 2.0 :: Swf Doesn't Function Properly / When Loaded Into Empty Movie Clip

Nov 18, 2009

I have a swf that loads into another flash file through an empty movie clip. For some reason, the swf isn't working properly. It works fine on it's own, but once it's brought into the other flash file via empty mc some elements of the swf do not show up or function properly.

View 2 Replies

ActionScript 2.0 :: Way To Preload External Jpegs (with % Loaded) Into Empty Movie Clip

Jun 25, 2006

I'm creating an image gallery and looking for a simple way to preload external jpegs (with % loaded) into an empty movie clip.I'm using thumbnails- there are no "next" or previous "buttons".[code]I've been googling/ searching all day.

View 1 Replies

ActionScript 2.0 :: Guestbook Doesn't Work When Loaded Into Empty Movie Clip?

Jan 20, 2004

I have made a simple site with some simple transitions. each button on my site loads in an external swf file into an empty movie clip.

One of these swf files is a guestbook which works when i dont load it into the empty clip and test it alone on my server (sending in the guestbook swf, html, php, and empty text file)

Now then, when i load in the guestbook into the main swf, nothing happens on the server when I test it - I am lost and now come to you people for advice. It obviously has something to do with being loaded into an empty movie clip that is causing conflict.

View 14 Replies

Professional :: Detect The End Of An External Swf Loaded Into A Container

Oct 14, 2010

I have a main swf that will load external swfs into a container. I need to detect the end of the loaded external swf in order to start to load and play a new one into the same container. The problem is that i do not know what the length of the external swfs will be, and will have no control over the development of them, so i cannot place a variable at the end of their animation which would allow me to detect from the main movie its end. I also cannot rely on the _totalFrames property because the loaded swf might not have all the animation inside its main timeline.

View 5 Replies

ActionScript 3.0 :: Check If A Swf Is Standalone Or Loaded By A Container Swf?

Sep 16, 2009

I need a fairly foolproof way to check from a child swf whether it is loaded into a container swf through a loader object or if it is just loaded through html. I would like to do this without requiring a flashvar or any kind of function call from the parent swf that may be there. Any quick and simple solutions? I looked for something with loaderinfo but came up empty.

View 4 Replies

ActionScript 3.0 :: Container Scales Loaded Swf File?

Jul 5, 2010

I have a container on the stage in which a swf is to be loaded when you click a button. This works fine when the content of the .swf being loaded into the container does not have content floating outside of its stage, this is a problem for me because the .swf being loaded in has content that exceeds the width of its stage, but is masked. The masked content on that page will be made visible when the user mouses over the masks. So its essential that the .swf being loaded in exceed the dimensions of its stage.

Initially, when I click a button that is a child to the menu_mc, the swf loads into the container correctly, but when I MOUSE_OUT of the menu_mc the content within the swf scales to reflect any content that exceeds the width of its stage. I'm not sure if this is the result of the way I am the loaded swf. The swf is designed to scale up and down when the user MOUSE_OUT or MOUSE_OVER of the menu. The menu is designed to be hidden when not in use.Here's my code:

ActionScript Code:
import caurina.transitions.*;
import caurina.transitions.properties.DisplayShortcuts;[code].....

Additionally, I ran into a problem when I moused over the buttons that are children to the menu_mc. Whenever I rolled over them the content in the menu would hide itself off stage. So I came up with a solution that may not have been the appropriate course of action, but worked. In the MOUSE_OVER function of the buttons, I provided y coordinates for the other movie clips to prevent them from moving off stage. For the sake of better coding practices, would there have been a much more appropriate coarse of action.

View 0 Replies

ActionScript 3.0 :: How To Target Sub-MC Of Loaded .swf

Jul 10, 2007

Short version: I'm trying to load an external .swf from a URL and add event handlers to the movie clips (or it's movie clips sub-MCs) on its stage. I can't find a THING online on how to do this.Details:I've been tasked by my employer to build a simple control interface in flash, with just a few buttons to do things like display some info or images or maybe an associated MP3. I've written little test apps to do all of these individual things & managed to fake my way through.But the sticking point is that I'm now trying to place all the UI controls into an external .swf, which I then load into the canvas by a URL. The goal is to be able to load it into a variable named, say, 'private _ui:MovieClip' and then add event handlers to mivie clips within that bynamelike:_ui.someButton1.addEventListener(MouseEvent.MOUSE_ UP,handlerFunction1);_ui.controlStrip.someButton2.addEventListener(Mous eEvent.MOUSE_UP,handlerFunction2);The goal is that if we want to swap out the UI for a particular client, we just export a new .swf with all the correctly named MC instances & use the new URL to load the UI.I seem to be able to load the .swf OK and trace the movie clips "Main Timeline" like so:

_ui2.contentLoaderInfo.addEventListener(Event.COMP LETE , uiDidLoad);
function uiDidLoad(evt:Event){
trace("UI2 LOADED");

[code].....

View 14 Replies

ActionScript 2.0 :: Load An External Swf In An Empty Movieclip And Then Manipulate This Loaded Swf From Main Movie

Jul 29, 2007

i just recently started programming in flash and so far I have learned a lot, but new questions keep coming up

My problem is that I want to load an external swf in an empty movieclip and then manipulate this loaded swf from my main movie. For example tell it to go to a certain frame. Is such a thing possible?

View 1 Replies

ActionScript 2.0 :: Resize Stage To Dynamically Match External Movieclip Loaded Into Empty?

Nov 15, 2004

Does anyone know how I can resize the stage to match the size of an external graphic/movieclip which is loaded into an empty movieclip

View 3 Replies

Loaded Child Movie Controlling Container Parent

May 14, 2009

i'm a designer trying to step up my flash skills and have a scripting problem that's causing me trouble. essentially i have a child swf loaded into a container in a parent swf and want the child to be able to instruct the parent. to explain in full, the child contains an flv with bespoke video player components. it's container sits in one frame of the parent. when the flv finishes playing, i need the parent swf to move onto another frame.
as it's a controllable flv, it isnt possible to predict the exact length of time the child will need to be present, so it literally needs to tell the parent it's finished playing at that very point.

[Code]...

View 9 Replies

Actionscript 3.0 :: Bitmaps Loaded Into A MovieClip Container Are Blurry?

Sep 2, 2009

Running into an issue where the if I add a Bitmap image into a movieclip the bitmap will appear slightly Blurry.When I add the Bitmap directly to the scene it appears normal. Is their a property for a movieclip that would explain this behavior? or is their some other solution to keep bitmaps from becoming blurred?

View 2 Replies







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