ActionScript 2.0 :: Wont Able To Duplicate My Movieclip(thumbnail) On To Root?

Feb 8, 2006

i am working on project where i hv to create image gallery. Then i can drag any image from this gallery to some other containers. The image gallery parts prototype is completed and its working fine.bt i am facing the problem of dragging the image. The .as and .fla files are included. In the fla file please fill the array with as much imagesname as you can to check hw it works.Nw the Problem is that i wont able to duplicate my movieclip(thumbnail) on to root?

View 1 Replies


Similar Posts:


ActionScript 2.0 :: FMX Attachmovie - Duplicate A Movieclip Into The Root??

Dec 29, 2002

what i want to do is to duplicate a movieclip into the root, but the movieclip i want to duplicate, isn't in the root, instead it is in another movieclip.get it? i hope thats clear...so i heard that the duplicateMovieClip function only works if both movieclips are in 'this', and so i'm guessing i use the attachmovie function. But it doesn't seem to work, how to use this function the way i want it to? i've looked at the flash help thing but its not exactly what i want...

View 2 Replies

IDE :: Click A Thumbnail To Open A File In The Root Directory?

May 25, 2010

iam using a template, i designed everything alright but need to know how to click a thumbnail to open a file in the root directory.The XML file for the thumbnails looks like this currently and everything in the flash movie work and the explorer window opens to he link:

<?xml version="1.0" encoding="utf-8"?>
<thumbnails>
<thumbnail filename="ms.jpg" url="http://www.myspace.com/XXXX" [code]...

but instead of a URL I want a file to be opened (a mp3 or wmv or swf or exe) in its own window or default player...What is the code i would use? A similar flash template would be this http:[url]....but when you click each of the thumbnails, i want 1 to open a mp3, one ar flash movie etc

View 1 Replies

ActionScript 2.0 :: Duplicate A Textbox And Still Have It In The Root?

Jul 20, 2004

I want to duplicate a textbox and still have it in the root, thats why I don't use duplicateMovieClip.. can anyone tell me a cool method on how to duplicate or make input boxes, that actually have seperate var names?

I was thinking making a loop, and the set var name would be "ord" + i... anyone follow? Sorry for being so point

View 1 Replies

ActionScript 2.0 :: When Click The Letter Movieclip It Does Create The Duplicate As It Should And It Starts To Drag The Duplicate Mc

Mar 20, 2010

My problem is that when I click the letter movieclip it does create the duplicate as it should and it starts to drag the duplicate mc. However, when I release the clip it doesn't stop dragging? I realized that if I put onMouseUP event instead of onRelease it actually does stop dragging when I release the mouse. I would, however not like to use the onMouseUP event if possible.

[Code]...

View 2 Replies

ActionScript 2.0 :: Duplicate A Nested Movie Clip And Then Placing It On Top / Root Level?

Feb 12, 2009

I'm sorry if this post breaks forum conventions, but I searched and didn't find a solution in past posts.

I'm writing a function that highlights components of the animation I've created.

It does this by creating a white box on top of the entire stage, tweening it's alpha value from 0 to 80, and creating a new instance of the movie clip to be highlighted on top of that white box.

I run into a problem when I need to highlight components that are movie clips nested within ones on the top/root level.

When I duplicate instances of nested movie clips, they just exist within the movie they were nested in.

I want to pull those duplicated, nested movie clips into the root area so it rests on top of that white box I just mentioned. How do I take a nested movie clip and pull it out of it's parent onto the top/root level?

View 1 Replies

Flash - Tell The Root Timeline To Root.gotoAndStop(2); From The Timeline Of A MovieClip Added Using AddChild?

Nov 7, 2011

How do you tell the root timeline to root.gotoAndStop(2); from the timeline of a movieClip added using addChild?In the maintime line I have

addChild(fade_eng);

and in fade_eng I have the following on frame 20

root.gotoAndStop(2);
this.gotoAndStop(1);

But I am getting 1061: Call to a possibly undefined method gotoAndStop through a reference with static type flash.display:Stage.

View 1 Replies

Actionscript 3 :: Calling MovieClip(root) From A Dynamic MovieClip Instance Produces Error 1034

Jan 14, 2012

For some reason, the same code works now, without any problem at all. I don't know what happened, or why, but I no longer have this problem Here's the original post: To put simply, I created a MovieClip, put it with addChild() to stage, and when I tried to call this piece of code:

[Code]...

View 2 Replies

Actionscript 3 :: Aligning Movieclip With Root/stage Movieclip?

Apr 23, 2010

How do you align a dynamic movie clip position with another movie clip which is in the root stage? I tried to get the mc in root x,y position, but the starting point of the class that loads the dynamic MC does not seems to be accurate. (Meaning at the root stage, the x,y is 0,0 but at the dynamic class, its somewhere like 100,20 for the browser area (and it actually vary base on the browser size))

**the other classes I used to run the custom classes below, I have it added this MC to stage

var blocker:stageBlocker=new stageBlocker();
this.stage.addChild(blocker);

Below is the dynamic MC. Should I not add it to its own "stage"?

public class stageBlocker extends MovieClip {
private var blocker:MovieClip= new MovieClip();
public function stageBlocker():void {

[Code].....

View 1 Replies

ActionScript 2.0 :: Duplicate Movieclip Inside Another Movieclip?

May 11, 2006

Is it possible to use duplicateMovieClip to copy a movieClip into another movieclip, or is it only possible to duplicate it inside one and the same containermovieclip?

View 1 Replies

ActionScript 2.0 :: MovieClip Within Another One And Back To Thumbnail

Oct 11, 2011

The scenario (photo gallery): I have the stage. Then I have a movie clip with thumbnails on it. Click a thumbnail and it opens another movie clip that I have attempted to make look like a modal window-drk grey transparent, you can see through to the thumbnails it is sitting over, and the large pic appears on this. So click thumb, and go into movie clip with the rectangle background and large pic. User can scroll through large pics, and then click button on right that will "close" back to the thumbnails movie clip. The "close" button isn't working with or without the actionscript I have tried so far. And I don't know the correct actionscript that would close this movie clip back to the thumbnail movie clip.

View 7 Replies

IDE :: Putting Thumbnail Gallery In A Movieclip?

Nov 23, 2008

Anywho im trying to add thumnails to a gallery of mine. Everything works fine untill i put all the symbols in a movieclip. When i do that the scroller stops working but everything else works fine!

The tutorial im working from is: [URL]

And the part of code that is relevant is:

function thumbNailScroller() {
this.createEmptyMovieClip("tscroller", 1000);
scroll_speed = 10;

[code]......

View 2 Replies

ActionScript 3.0 :: Add A Movieclip To The Root?

Mar 24, 2009

I have a .fla file that has VerticalMenu.as as the documentclass. In that class, it calls another class called MenuItem.as.Within MenuItem.as, I want to be able to add buttons to the themain timeline (the root), but when I do addChild, it'll just add itto the menuItem object. How do I reference the root fromMenuItem.as to add the child there

View 1 Replies

ActionScript 2.0 :: Thumbnail Loop - Middle Thumbnail Represents The Photo In Target_mc?

Nov 28, 2007

I have made a image-viewer. I've this AS for the viewer:

Code:
import mx.transitions.Tween;
import mx.transitions.easing.*;
function loadXML(loaded) {[code].....

Now i would like to make a loop for the thumbnails so they don't have a beginning or end(Now when i scroll to the right the thumbnails stop at the last thumbnail, i want it to begin at the first thumb again).I'm also trying to make that the middle thumbnail represents the photo in target_mc.

View 1 Replies

ActionScript 2.0 :: Thumbnail MovieClip Scroller On Rollover

Oct 11, 2006

I have read the tutorial: [URL], and I based my flash file off the code given there. I would like to, instead of letting the thumbnail_mc's scroll when you rollover them, have buttons on either side that scroll (slow when mouseover and fast when pressed) the mc's instead. Here is what I have, which doesn't seem to work:

Code:
previous_btn.onRollOver = function(){
thumbNailScroller(30);
};
next_btn.onRollOver = function(){
thumbNailScroller(30);
[Code] .....

View 1 Replies

ActionScript 2.0 :: OnRelease - Cannot Scroll Thumbnail Until Roll Off The Click Thumbnail

Jul 10, 2007

I am making a gallery, which you can view here:[URL]ok, firstly, when you click a thumbnail, you cannot scroll them until you roll off the click thumbnail, and I'm not sure why. is it just a movieclip thing? or can I put some code in to re-get focus of something? ok, now for the two general questions:

1. When you roll over the thumbs, they go up, sometimes they flick back down though, even though you are rolled over them still. is this just because they are moving?

2. Does anyone know why when I add this:

[Code]...

View 1 Replies

ActionScript 3.0 :: Use A Button Within A Movieclip To Go To The Root?

Dec 4, 2008

I made a script for the file that i am working with that hasbuttons located within 2 movieclips. I want that button to load andimage into a UILoader (problemLoader_mc) that I placed on the stageon the main timeline (the timeline that contains WeekBar_mc). Theproblem is that I don't know how to get to the root of the file tostart a new directory to tell my function to load the image i want.I have tried multiple approaches including:

MovieClip(root).problemLoader_mc.source = problemArray[0]
MovieClip(parent).problemLoader_mc.source = problemArray[0]
root.problemLoader_mc.source = problemArray[0]

[code]......

View 5 Replies

ActionScript 1/2 :: Refer To A Movieclip Within The Root?

Jul 15, 2010

I am using the load movie from my main file (main.swf) as:
 
mc_zoom.loadMovie("detail.swf");
  
I then have a loader as a movieclip with the detail.swf
 
when the movie (detail.swf) is loaded the preloader I am trying to make/set the play to go:
 
_root.gotoAndStop(2);
 
But this does not work - it works locally but when used with the main file (main.swf)

View 5 Replies

ActionScript 3.0 :: How To Define Root For MovieClip

May 23, 2011

The below code is working fine when I place my button on main time line... when i place my button inside of any MovieClip, it never work and never attach circle from the library???can any one tell me please what should i need to change, when my Button is inside of MovieClip. Image is loading fine but my loading circle is not visible....

btn_About.addEventListener(MouseEvent.CLICK, Loading_AboutImage);
function Loading_AboutImage(event:MouseEvent):void
{

[code]......

View 7 Replies

ActionScript 3.0 :: Reference The Root From A Movieclip?

Feb 24, 2009

I want to control the playback of the root from within a movie-clip.

neither this.gotoAndPlay(n), nor root.gotoAndPlay(n) work.

View 2 Replies

ActionScript 2.0 :: Control A Different Movieclip On Root?

Oct 23, 2004

here is the AS i am having trouble with

[AS]
onClipEvent (enterFrame) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
_root.this.nextFrame();

[code]....

I want to make it so when i roll over my movie clip (that i attach this AS to), a different movieclip is controlled. This AS

[AS]
onClipEvent (enterFrame) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
this.nextFrame();

[code]....

Works great, when using 'this' for the prev and next frame control but i cant figuire out how to control a different movieclip on root.

View 1 Replies

ActionScript 3.0 :: Access To MovieClip From Root?

Dec 9, 2009

PHP Code:var Root:MovieClipvar container=MovieClip;function menuPress() {trace("trace");}function doIT(parameters,WIDTH,HEIGHT) {container=MovieClip(parent.parent.parent);trace(container.name)//HELP Root=MovieClip(parent.parent.parent.parent); 

[Code]...

View 2 Replies

ActionScript 2.0 :: Play A Keyframe In The Root From A Movieclip?

Feb 16, 2009

I made a button within a movieclip.The movieclip name = OurKlips-mainThe scene name = oneWhen I hit this button, it changes two frames in the html part (This works)Also, I want this button to play frame 30 from the root scene, titled "one"on (release) {getURL("content-ourklips.html", "content-txt");_root.gotoAndPlay(30);}

View 2 Replies

ActionScript 3.0 :: Can't Access A MovieClip On The Root Timeline?

Mar 26, 2009

What I'm trying to do is very very basic however its flat out not working. I'm trying to add a event listener to a button located within a movieclip thats on the root time line.Here's the code:

Code:
function main_init():void
{

[code].....

View 2 Replies

ActionScript 3.0 :: Go To A Framename In The Root Scene From A Movieclip?

Jan 28, 2010

I have created a Flash movie in AS3.It has 1 scene so far titled "wmain"On the first keyframe I have a movieclip: "licence_mc"Nested within this movieclip is a button that does a little fade in/fade out animation over a range of keyframes when you hold the mouse on it.This buttons Instance name is: "license_bu"Right on the keyframe of this button (so within the mc "license_mc") I placed the following code:

Code:
license_bu.addEventListener(MouseEvent.MOUSE_OVER, onOver);
license_bu.addEventListener(MouseEvent.MOUSE_OUT, onOut);

[code].....

View 4 Replies

ActionScript 3.0 :: Can't Access The Root Timeline From A Movieclip

Feb 24, 2010

I have a movielclip, nav_mc, inside which contains my navigation buttons. Lets say I want to effect the time timeline. Before in AS 2.0 I could simply go

jan1_mc.onRelease = function() {
_root.january_mc.gotoAndStop(2);
}

Now in AS 3.0, nothing works.

button_mc.addEventListener(MouseEvent.MOUSE_UP, doIt);

function doIt(evt:MouseEvent):void {
_root.january.gotoAndStop(2);
}

That doesn't work. Returns this in errors:

Warning: 1058: Migration issue: The property _root is no longer supported. This property has been removed. The closest equivalent is the Stage, which serves as the root of the ActionScript 3.0 display list..

Neither does

root.january.gotoAndStop(2)

or

stage.january.gotoAndStop(2)
(1119: Access of possibly undefined property ball_mc through a reference with static type flash.display:Stage.)

or

_stage.january.gotoAndStop(2)

or anything!

How do we do this very simple thing now in AS 3.0

TLDR;

How do I reference the _root timeline in AS 3.0 since _root. no longer works in 3.0

View 3 Replies

ActionScript 3.0 :: Calling Function In Root Movieclip?

Apr 27, 2010

I've got a movieclip on the root of the stage called "bgImg", in that clip I've made this function:

Actionscript Code:[code]..........When you click a button in the nav it loads a movieclip to the stage from the library, inside this movieclip I have a row of buttons,when you click one of these I want to call the function in the movieclip on the root (ie. the function inside "bgImg" .

View 3 Replies

ActionScript 3.0 :: Buttons In Movieclip That Need To Have 2 Functions In The Root

Sep 10, 2008

Even though i know not much of actionscripting, i like to make sites that are flash-based, so i keep on challanging myself with that. But now i stumbled into something, and i just cant find a solition! here is my problem: I have made dropdownmenu's in a movieclip and the mc works with hittest like this:

[Code]...

View 1 Replies

ActionScript 1/2 :: Movieclip Cannot Access Root Object

Jul 6, 2009

I am making another game, and I'm having a problem with the level loader.[code]...

View 9 Replies

ActionScript 2.0 :: Accessing Text Box In A Movieclip From Root

Mar 23, 2007

I'm trying to change the text on a textbox called "text1" that is part of a movieclip called "menulist" using actionscript. How can I access text1 with actionscript?[code]

View 6 Replies







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