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


Similar Posts:


ActionScript 3.0 :: Placing Container Over Top Of Another To Specify Depths?

Jun 18, 2009

I have 3 containers on stage holding various buttons but these containers are created in seperate Class files....I want to place the 1 container over the top of another container similar to the way I use addChildAt to specify depths.....is there an easy way to do so?

View 4 Replies

ActionScript 2.0 :: Placing External Swf's Inside Container?

Sep 22, 2011

I'm creating a master movie that will load 4 external swf's. To do this, I made a container of sorts by having an animated screen that rises up. I created an empty movie clip and titled it empty_mc. I dragged it onto the "container screen" which I named movieScreenbut when I press any specific button to load one of the external swf's, they don't maintain the container size, they appear full screen on top of my master movie screen.So, how do I ensure when a button is pressed for a particular swf, that it stays within the confines of the container? To see what I'm trying to do, here is the site:URL...Some of the buttons aren't working yet. However, the Drag and Drop one does for sure...just way out of scale of the container.

I'm just experimenting with how to do this by this code by using loadMovie and loadMovieNum until someone helps me understand what I have to do. I believe I'm supposed to use loadMovie if I want it to be inside a container.[code]

View 0 Replies

ActionScript 3.0 :: Gallery - Loading Thumbs From An Xml File And Placing Them Into One Container (sprite)

Jan 31, 2009

I am loading thumbs from an xml file and placing them into one container (sprite), which i later use for scrolling based on mouse position with this formula:

[Code]...

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 :: Calling A Picture Into A Target In The Movie Without Placing The Picture Inside An Swf File?

Mar 22, 2003

I recently used the loadMovie action to load a .swf file to a target in the movie which it was being called from. Then I tried calling a picture to another target in the movie, but it did not load the picture as intended. I read about it on my book, but it didn't seem to work. Is there anyways on calling a picture into a target in the movie without placing the picture inside an swf file?

View 7 Replies

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

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

Flex :: Prevent Container In ItemRenderer From Exceeding Width Of List Container?

Jul 2, 2011

In a Flex Mobile project I have a simple itemRenderer where I'm trying to create an "bubble" texting effect, similar to ichat or iphone (just so you get what im going for). But if the text is longer than the screen it runs off, rather than just going down a line.

If I set Group thats holding the rectangle(to create the bubble effect) and the label to 100% it works and keeps it from exceeding the list containers bounds, BUT the group is always at 100% and looks bad, I'm trying to keep the "bubble" JUST AROUND the text.

Anyway so, at the top of my itemRenderer I tried specifying:

<s:ItemRenderer xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark" width="100%" height="100%">

And here's my layout I figured since msg_container has a width of 100% I was hoping bubble_lable_group would just not exceed that but...it doesnt...it just runs off. I tried setting a max width but that does not allow you to input percents. And just to say it 1 more time. I know if i set bubble_lable_group width to 100% it works, and keeps it from going off the edge, but then the rectangle "bubble" stretches all the way across and just looks bad.

<s:VGroup id="main_container" horizontalAlign="left" paddingBottom="10" paddingTop="10"
verticalAlign="top" width="100%">

[Code]....

View 1 Replies

Professional :: Run Project (main Container SWF And Child SWFs) Into Another Container File Which Place On A Website?

Jun 17, 2010

I am facing a issue in Flash container. I am having a project which has main container which call different SWFs into it. Now I call this main container file into another container, and their problem starts. Many option doesn't work properly which generally have _root, _parent etc...
 
If I want to run project (main container SWF and child SWFs) into another container file which place on a website. I want to show whole project from this container file so what I need to do?

View 1 Replies

Flex :: Dynamically Adding Container To A Dynamic Container

Sep 21, 2011

I have a loop that goes through data from a book and displays it. The book is not consistent in it's layout so I am trying to display it in two different ways. First way(works fine) is to load the text from that section in to a panel and display it. The second way is to create a new panel (panel creates fine) and then add collapsable panels(nested) to that panel. Here is the code from the else loop.

else if (newPanel == false){
// simpleData is just for the title bar of the new panel
// otherwise the panel has no content

[Code]....

The error I get is: ReferenceError: Error #1069: Property panel4.4 not found on components.readTest and there is no default value.

I have tried setting the "name" property instead of the "id" property.

View 1 Replies

Flex - Hide Container Of A Viewstack Container?

Dec 23, 2010

I have a viewstack container w/ 3 views: red, black, and blue. How can I completely hide the black & not include it?

[Code]...

View 2 Replies

Flex :: Drag Circle From One Container To Another Container?

Jan 13, 2012

I am creating an flex Air project,so mxml file will run. I have circles in one Big circle at one side and will be same on other side.

Now how to drag any circle from any Big circle to other side. Or it could be like any two container having circles, then how to drag and drop circle?

For one circle i am able to do drag and drop.But I want one Big circle on left hand side and one big circle on right hand side .And small circles with class names will be in these big circles.Now i want to drag and drop those small circles in big circles.Big cicles should not move. Even i have tried this code in actionscript

package
{
import flash.display.Sprite;
import flash.events.MouseEvent;

[Code].....

But in this i want big circles should not move and small circles should only be dragged.

View 1 Replies

ActionScript 3.0 :: Scale Container In Another Variable Container?

May 6, 2010

I need to place an image into a container. The problem is that I will not know the size of the image or the container beforehand, so it all has to be dynamic.this is how I started (have not gotten to stage(or container) changing size yet. No matter what I try, either all the images are the same width, or they are all the same height. If some images are portrait and other landscape, I don't want all the images to be X pixels high. In this variation of the code, all the images turn out the same height, regardless of portrait or landscape.

ActionScript Code:
var ratio:Number = container.width/container.height;//get the ratio, if width is bigger than height then ratio is greater than 1, else ratio is smaller than 1

[code]........

View 0 Replies

ActionScript 2.0 :: Stop Further Items Being Dragged Onto A Target When The Target Box Is Full?

Sep 29, 2003

On the attached exercise, is it possible to stop further items being dragged onto a target when the target box is full?

View 1 Replies

Flex4 :: Difference Between Target And Current Target

Nov 28, 2011

What is the difference between target and currenttarget in flex?What is the difference between Target and Current Target in Flex especially in mouse events.

View 2 Replies

Flex :: Moving Children Of A Container (defined In MXML) Inside An "inner Container"

Jan 27, 2010

I'm currently working on a custom component which extends Canvas (let's call it SuperCanvas) ; it's basically a container that let you zoom & pan its contents. It would be too long to explain why, but I can't use scrollRect, so I was forced to declare a Canvas object (called innerCanvas)... inside my SuperCanvas (I know, not very nice =/) I would like to know if there's a proper way to "redirect" the creation of my component's children in this canvas.

[Code]...

View 1 Replies

ActionScript 3.0 :: Target Movieclip With E.target?

Aug 30, 2010

qi have a movieclip which is added to the stage:

var profileholder:profileHolder=new profileHolder ;

inside of profileholder is another movieclip(infoBtn) that acts as a button.when the mouse is over profileholder i want to do something with infoBtn like:

//profOver is the over state of profileholder
function profOver(e:Event) {
e.target.infoBtn.alpha=1;
}

this doesn't work and brings up this error:ReferenceError: Error #1069: Property infoBtn not found on flash.display.Loader and there is no default value.
at main_fla::MainTimeline/profOver()

i also tried:
function profOver(e:Event) {
var item:profileHolder=e.target as profileHolder;
item.infoBtn.alpha=1;
}

and get this error:TypeError: Error #1009: Cannot access a property or method of a null object reference.

View 1 Replies

CS3 Placing Images In Flash?

Apr 6, 2010

I'm designing a website in flash & have imported my images into the library & have placed them on the stage, but when I go to "test movie" to preview my page, some of the images look like this [URL] the funny thing is, when I look at the images on the stage they look fine, it's only when I test my movie that they look cut off.

View 3 Replies

ActionScript 3.0 :: Placing Value In The Right Textbox?

Jul 1, 2010

I have a 6*6 table, and 2 dices generating random numbers. The 6*6 table have empty textboxes which will display the sum of two dices. I have the table and the instance ready but I do not know how to display them onto the right textbox. For example if red dice roll and one and white dice roll a two I hope selec12.text=3. The code I have done are as below

Code:
var row:int=7;
var colum:int=7;

[code]....

View 0 Replies

ActionScript 3.0 :: Placing An Object On Top Of All Others?

May 2, 2011

Basically I have this code...

ActionScript Code:
gameOverFinal = new gameOverMessage();
gameOverFinal.x = 265;
gameOverFinal.y = 400;
addChildAt(gameOverFinal, o);

It displays a game over message at a certain time. but if let's say the enemy that killed me is at the exact place where the game over message is the enemy will freeze over the message and obscure it. Is there a simple piece of code that will make it so the message is always on top?

View 9 Replies

ActionScript 2.0 :: Placing A Swf Movie?

Oct 29, 2003

i have an mc in which i want to load an external swf. how do i define its placing;

View 2 Replies

ActionScript 2.0 :: Error - Target Not Found: Target="whoweare" Base="_level0.instance20.instance48.instance49"

Mar 14, 2005

i don't know why this isn't working.i got a button. and when it's pressed, i need it to go and play a frame in a movie clip. i'll test it and then when i click on it, i get this:

Target not found: Target="whoweare" Base="_level0.instance20.instance48.instance49"

this is the code that i am using:

on (press) {
tellTarget ("whoweare") {
gotoAndPlay (51);
}
}

View 14 Replies

ActionScript 3.0 :: Placing A MC On Stage With AddChild

Jul 7, 2009

I am just starting out new with AS3 and I have a question about this block of code I have. i have checked this against I don't know how many examples and it looks fine, yet... when it's run, I get nothing. Traces on everything came out OK.

Code:
var sheep:mcsheep;
var xpos:int;
var ypos:int;

[Code].....

View 2 Replies

ActionScript 3.0 :: Placing The FLVPlaybackCaptioning Text Box?

Jan 5, 2012

I'm importing and playing an external FLV in my movie using the FLVPlayback component and providing captioning for it using the FLVPlaybackCaptioning component. It's working great. (CS5, AS3, Windows 7)

By default the captioning box plays directly on top of the FLVPlayback Component. I want to separate them, so for instance, i can put content (images and such) in between the Playback component and the caption box.

View 1 Replies

Placing Objects With The Mouse In Flash CS4?

Oct 3, 2009

I have played some more with Flash and come upon something that i would know more about.I tried to make:A scene. when I click the left mouse button on the stage an object(from the librery [graphic]) will be place exactly where the mouse is.I did not really know how to approach this, but tried anyways.
 
This is my code:

stage.addEventListener(MouseEvent.MOUSE_DOWN, addApple);
Function addApple(event:MouseEvent):void{
//I dont know what to put here to place an object(apple) from the libery
//onto the stage where the mouse is.
};

View 4 Replies

ActionScript 1/2 :: Array Values In First Second Third Placing?

Jun 10, 2010

Ive managed to create a for loop that finds the highest value in an array:

array[0]=max
for(e=0;e<array.length;e++){
if(array[e].value > max.value){
array[e]=max
}

 
but Im trying to create a for loop that places all the values in that array from lowest to highest

View 1 Replies

ActionScript 1/2 :: Placing Items In A Circle?

Jun 26, 2010

I'm intended to create a code where I have various arcs which can be dragged and dropped inside a blank circle. Once a arc is dropped and on dropping second arc it should get placed after 1st arc with-in that circle.

View 5 Replies

ActionScript 3.0 :: Placing A Variable Value Into A XML Object?

Jul 11, 2011

I am trying to figure out how I would get the value of a variable into an XML Object.
 
I have the variable
var dragonName:String = "Samuel";
var listing:XML = new XML();
listing = <thedragon>

[Code],,,,
 
However, the dragon name does not show up when I go trace(listing); How do I do it and should I have imported something as well or what?

View 7 Replies







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