ActionScript 2.0 :: Scroller Not Working Deeper Than Root Timeline

Jun 27, 2007

I have a scroller, that is perfect. Except I need it 2 movies deep from the root, i.e. root.movieclip.movieclip2.whereiwantthescroller. When I put it there , it stops working. Can someone look at the attached file and show me what I am doing wrong?

View 1 Replies


Similar Posts:


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

Flex :: Scaling An Image In A Scroller Resizes The Scroller When Relative Dimension Are Set To The Scroller?

Mar 9, 2010

I would like to position relatively a scroller in my application like below.When I scale the image, I resize the scroller...

<s:Scroller width="50%" height="50%" >
<s:Group>
<mx:Image

[code].....

View 2 Replies

ActionScript 2.0 :: Using Custom Scroller To Control Timeline?

Nov 6, 2009

I've created a simple scrolling thumbnails movieclip, with movement based on interacting with the timeline of the MC rather than its position based on the mouse position.

Although the timeline is activated when one moves their mouse to either end of the thumbnail panel, I wanted to include a scroll bar to show how far up or down the user had scrolled.

Now, I wanted to know whether I could make that scroll bar interactive, and drag to change the frame number. The scroller is a motion tween that moves from the top to the bottom of the scroll bar in sync with the thumbnails. Can I make the bar dragable, and tell it to move through the frames as it is dragged up and down?

Here is my site again:

[URL]

View 0 Replies

ActionScript 1/2 :: Dynamic Scroller Mc To Work In Main Timeline?

Mar 9, 2010

I have a dynamic image scroller that scrolls right or left following where the mouse is.  When you hover over the images, a pop-up box also appears with information. This scroller works perfectly fine within the mc scene, but once i drag the mc into the main timeline the mc doesn't smoothly scroll right or left.  It's jumpy and the infobox doesn't work at all. How can I get it to work smoothly on the main timeline?

View 39 Replies

ActionScript 2.0 :: Referencing Root Timeline From Within A Mc

Aug 20, 2006

I have a root timeline in which contains a movie clip on a certain frame. Inside that movieclip, on it's second frame, there is a button. I would like to use this button, when clicked, to move take the user to a frame on the root timeline.

View 5 Replies

ActionScript 3.0 :: Navigate To Root Timeline?

Jun 29, 2010

So im new to AS3 im trying to do some basic things that i knew in as2 but they arent working in AS3.Im basically trying to do this.this.gotoAndStop("1");basically i just want my main timeline to jump back to the beginning the main time line

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 2.0 :: Check To See If The Root Timeline Is At A Certain Frame?

Jul 7, 2009

I am using Flash CS4 and Actionscript 2.0, and I want to be able to run a certain command for a time I am making only on certain frames...

[Code]...

This doesn't work. The reason I am trying to do this, is because every time I complete a level the timer is still going at the 'congratulations screen' and then when I go to level 2 the timer would start up again, and the seconds would go twice as fast.

View 1 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 An MC On Root Timeline From Inside Another MC?

Apr 12, 2010

how can I call an MC on root timeline from a button inside another MC?

View 1 Replies

Actionscript :: Can't Access The Variable From Root Timeline

Mar 11, 2011

I created a movieclip called holder in my Stage and I name it, inside them i put a variable called

name = "whatever"

Now I can't access the variable from root timeline, I try this:

trace(holder.name);

The result gives me undefined! what mean this?

View 1 Replies

AS3 :: Call Function In Root Timeline From Class?

Dec 8, 2011

I want to call a function that is inside the root timeline of Flash from an external class.

This code is from the class:

private function loadImage(event:Event):void
{
addToContainer()
}

[Code].....

View 3 Replies

ActionScript 3.0 :: Accessing Variables On The Root Timeline?

Feb 18, 2008

I have some variables declared on the root timeline that I need to access from some MovieClips. In AS2 I would do something like this _parent.myVar from within my MovieClip. I intend on getting fully up to speed with AS3 but right now I need a quick fix.on the root timeline I have a variable : var myHitTest:Boolean = false;My MovieClip needs to access this var so I tried it several ways listed here. I've had no success.

parent.myHitTest:Boolean
root.myHitTest:Boolean
Stage.myHitTest:Boolean

[code].....

View 6 Replies

ActionScript 2.0 :: Referencing Functions In Root Timeline

Jun 30, 2009

I have a 13 movieclips within another movieclip which in turn is placed on the root timeline. I have written a function in the actions layer of the main timeline:
function illboxClear(){
_root.illpre.ill1.gotoAndStop(1);
_root.illpre.ill2.gotoAndStop(1);
_root.illpre.ill3.gotoAndStop(1);
_root.illpre.ill4.gotoAndStop(1);
[Code] .....

It sends the animation in each of those described movieclips back to frame one as you can see. When I try to call the function from actions on a button which itself within a separate movieclip placed on the stage:
on (rollOver) {
illboxClear();
_root.illpre.ill2.play()
} on (rollOut) {
_root.illpre.ill2.play()
} on (release) {getURL("boxer.html","_blank");
}
It doesn't work! Can I not call functions from button objects or have I made some other elementary error?

View 7 Replies

ActionScript 2.0 :: Accessing Root Function From Timeline?

Aug 17, 2009

im attempting to keep it as portable as possible so its easier to edit later, and i dont have to go around copying/pasting too much code. - i'll cut to the chase..

On my main timeline, i load all the image-file names, as variables.. using loadvars into thumbnails, which ive given instancenames Loader_1 to Loader_20, inside these thumbnails is the Loader component Thumb_1. Here is the code on the main timeline, to load these variables.

Code:
BigLoader._visible = false;
var my_lv:LoadVars = new LoadVars();
// load variable function

[Code]....

how i could make this more portable without -completely- changing the format its in [so i can still understand it]

View 9 Replies

Movie Clips - Layers On Root Timeline?

Feb 28, 2010

I have only been using FLASH CS3 for a little under a month. I have messed about with it to create some basic stuff. However recently I started on a bit of a larger project. I 'm by no means an expert in FLASH CS3 or AS3.My problem -I created a .FLA file that has seven movie clips on the main timeline, each in its own layer. These are listed below in the order they appear within the main time line.

layer ------------ movie clip
ON -------------- on_mc
RIM ------------- rim_mc
NAV-------------- coverbase_mc
PLAYER---------- player_mc
MAIN------------- main_mc
NAMEBOX------- shellname_mc
BASE------------ Base_mc

The art work for these was all imported from adobe photoshop. They all only have one frame on the main timeline. Each movie clip though has its own internal time line and some have further nested movie clips within them.The issue occurs within the NAV layer/coverbase_mc. I placed a movie clip(to act as a button) within coverbase_mc. This movie clip is called navbut_mc.Now, I already have a couple of similar movie clips, that act as buttons, in on_mc and rim_mc these work as I intended them to. However navbut_mc does not work at all in its current position. I get no errors at all on testing the movie but the action that I want it to do does not work even buttonmode = true; will not work on it.

However, if I use the same movie clip in the rim.mc, but obviously give it a seperate instance name (start_mc), then it works as intended. I have looked at various diffrent things but have to admit i'm stummped. Its almost as if when its in coverbase_mc its being hidden by the clips above it, if thats possible.The reasons I need it to work in coverbase_mc are for a) the overall look of the project b)I have some other buttons in that location that need to work from there.

View 1 Replies

ActionScript 2.0 :: Controlling MovieClip On Root Timeline?

Aug 19, 2008

My stage is empty except for an MC with a simple animation and an AS 2 layer. There is not a button or user interaction that engages the MC. I want the MC to play when the timeline reaches the frame with the AS. My MC has an instance name of 'blueMC' and here's the AS I've tried:

blueMC.play();
_root.blueMC.gotoAndPlay("2");
on(load){
blueMC.play();
} onClipEvent(load) {
blueMC.gotoAndPlay("2");
}
Shouldn't it just be this?:
MCinstanceNmae.gotoAndPlay("Frame# or label");

View 1 Replies

ActionScript 2.0 :: Passing Variable From Root Timeline Into MC?

Aug 15, 2009

I'm guessing this is pretty simple, I just can't find the solution through my google searches.

Bascially I created a variable and gave it a value in the first frame of my main timeline.

Now I just want to pass that variable into a MovieClip. When I trace the value of the variable within the movieClip I get undefined.

Is there something else I have to do to make it recognize the root timeline's variable?

View 1 Replies

ActionScript 3.0 :: Reference A Root Timeline From Loaded Swf

Dec 12, 2009

I'm loading a lightbox as an image gallery, but I'm working on changing it to full flash. My site is structured with external swfs. I ran into a barrier, because I'll need to load the images (and reference the stage size) in the root timeline, but I don't know how. MovieClip(root) only references the smaller loaded swf's main timeline.

View 1 Replies

ActionScript 3.0 :: Get A SWF To Load Behind Other Layers In The Root Timeline?

Apr 7, 2010

I am trying to get a SWF to load behind other layers in the root timeline - right now it loads over everything - that is on the top most layer. Is there a way to make it load to a specifc layer on the root timeline?

View 2 Replies

ActionScript 3.0 :: Controlling Root Timeline From Movie Clip?

Nov 18, 2008

I'm trying to control the root timeline from a movie clip. On the last frame of the movie clip, I have:

MovieClip(root).gotoAndPlay (10);

which successfully brings me back to frame 10 on the main timeline. However, from here, none of the ActionScript that is on Frame 1 seems to work... the rollovers aren't working, except on those embedded in a separate movie clip.

View 2 Replies

ActionScript 1/2 :: Refering To A Class Imported On The Root Timeline?

May 22, 2009

This is probably ueber basic, but I don't know how to do it. I am importing tweenlite on the root timeline like this: import gs.TweenLite;

I now want animate things in other MCs. I tried something like this, but it did not seem to work.parent.TweenLite.to(text1, 3, {_alpha:100, overwrite:0});

View 5 Replies

Professional :: Loading External Swf Then Going To Frame In Root Timeline?

May 10, 2011

when a button is clicked, I want an external swf to load and play, then I want to go back to a particular frame in the original timeline.

View 2 Replies

Flash :: CurrentFrame Of Root Timeline From Inside Object?

Jun 15, 2011

Is it possible to pull the currentFrame of the root timeline from inside an object class? Normally a currentFrame call only checks the frame of the movieclip it's attached to within an object class, so how would you go about checking the frame of the entire project from within the object class file?

edit: Nevermind, I found what I was looking for. All you have to do is use MovieClip(root).currentFrame and it works just fine. Consider the question answered.

View 1 Replies

ActionScript 3.0 :: Control Root Timeline From A Movie Clip

Oct 1, 2007

In Flash CS3 using Action Script 3, how can I tell the main timeline to gotoAndStop(); a certain frame from within a movie clip.

I have a menu (which is a movie clip) with various buttons. Each button corresponds to a certain frame in the main movie. So if a user click on Button1, it should gotoAndStop(1); and Button2 should gotoAndStop(2); and so on.

In Action Script 2, I could use _root.gotoAndPlay(2); from what I understand, but that does not work in Action Script 3.

View 9 Replies

ActionScript 2.0 :: Controlling Buttons Inside MC's From Root Timeline?

May 8, 2008

I have a Nav Bar on my _root timeline. Inside of which I have buttons and MC's. I want to have all the code for my buttons on the _root timeline. So, I can adjust from there.

Below is an example of what I'm trying to do from the _root timeline Actions Layer:

Code:
// ------ NAV BAR ON MAIN STAGE -----------------------------------
// ------ Instance Name = NavBar ------------------------------------
// ------ Button inside of "NavBar" = MyButton ----------------------

[Code].....

View 8 Replies

Actionscript 3.0 :: Access The Root Timeline From A Movie Clip?

Jun 9, 2009

What the best way to access the root timeline from in a movie clip?

View 3 Replies

ActionScript 2.0 :: Use SetInterval To Start And Stop The Root Timeline?

Jan 9, 2006

How can I use setInterval to start and stop the root timeline? I would like to use it in this little fade function wherein the setInterval would kick into effect once the alpha is 100%. You can see where I think it needs to go. Here's the code.

Code:
stop();
variable = x+5;
title_mc._alpha = 0;
function fade() {
var nFadeSpeed = 4;

[Code]...

View 6 Replies

AS2.0 :: IDE - Get The Sub Menu Movies To Load The New Swfs Onto The Root Timeline?

Mar 2, 2009

I have created a menu that loads external swf files using this code:

[Code]....

Check out [URL] to see its operation. I am now testing a sub menu within one of these menu movie clips. When the mouse hovers over the movie clip, the sub menu movie clips appear. The sub menu movie clips have this same code (with the intention of the user being able to click on the sub menu movie clips and the new swf file kicks the current swf out of level 30 and loads the new one) however the swf file fails to load to level 30.

[Code]....

View 1 Replies







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