ActionScript 3.0 :: Cant Get Mc To Play On Root?

Sep 13, 2009

I have a movie mc that contains buttons called menuMovie.I also have another movie clip called "myMovie". There is an instance of menuMovie on the main timeline in keyframe1 called "_menuMovie_mc".There is also an instance of myMovie on keyframe1 called "_myMovie_mc" .I want to have one of the buttons in menuMovie play myMovie.mc which has a label called _here". My understanding is:

root._myMovie_mc.gotoAndStop("_here");

View 2 Replies


Similar Posts:


ActionScript 2.0 :: Getting Root To Play In External SWF's?

Sep 6, 2004

I am making a website and there is an empty SWF that is the base for my site. It loads up an external page called the Home page, in that home page are movie clips that are told to .play() with a _root command. What i wanted to know, was how do i get those buttons to play those movie clips inside of itself.

MAIN EMPTY SWF __
|
HOME PAGE SWF (which is loaded into an empty movie clip in MAIN)
|
|__ Fading movie clip (which is inside of HOME PAGE, given a _root.fadewhite.play() by a button inside of HOME PAGE SWF

In short, how do i refer to the movie clip to play that is inside of HOME PAGE SWF which was loaded into an empty movie clip inside of MAIN EMPTY SWF?

View 1 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 2.0 :: Conditional On Scale Mc - Trigger Another Mc To Play On The Root?

May 17, 2003

I can usually find what I need by searching. Not this time.I'm scaling an mc with a script.This is on the timeline of the parent:

stop();
MovieClip.prototype.easeScale = function (finalWidth, finalHeight, speed) {
this.onEnterFrame =function () { [code]...

I want to trigger another mc to play on the root once mask_mc reaches its finalHeight.I've tried if statements, but nothing really works.

View 14 Replies

ActionScript 3.0 :: Button To Play Fade Out Of Page Then Root To Framelabel?

Jul 14, 2009

I am creating a flash site, and inside my frame label for lets say "pageA" the movie clip begins In pageA, fades up shows the content and stops(); alowing for the page content to be read.

After reading, the viewer clicks on the button inside the nav bar, to take them to say "pageB" i now want "Page A" to fade out and then root to "pageB

my thinking is that i insert a stop on the time line of the movieclip, then when the button is pressed it plays, lets say, the remaining 10 frames in the clip (the fade out), and then roots to pageB.

i just need a simple actionscript to do that, if there is an easier way, any one who could point that out and end my misery is a god/godess respectfully!

View 2 Replies

ActionScript 2.0 :: Passing Variable To Root To Play After Embedded Movie

Jan 5, 2012

I have a movie embedded and I am passing a variable to the root movie for it to play when the embedded movie is complete. I know the variable is getting passed because I am displaying the value in as dynamic text but the parent movie will not play. This is what I have:

stop();
row = 0;
if (row == 1) {
this.gotoAndPlay(2);
}

Row is being passed from the embedded movie as
_root.row = 1;

I know there is a way to tell the parent movie to play from the embedded movie by using TellTarget but I would like to find out why this doesn't work.

View 1 Replies

ActionScript 2.0 :: Stop On Anoter Frame On My Root Timeline And Then Play?

Nov 9, 2007

Im trying to tell my movie to goto and stop on anoter frame on my root timeline and then play a movie clip on the new frame... This is probs really simple but it is early.

[Code]...

View 11 Replies

ActionScript 3.0 :: Flash Play Stop Root Timeline Sound?

Aug 15, 2010

I have added some three sound clips, play pause buttons, on the root timeline in a movie with corresponding callouts. I am able to stop all sounds on the main timeline by below

stop_btn.addEventListener(MouseEvent.CLICK, stopSound);
function stopSound(event:MouseEvent) {
SoundMixer.stopAll();
}

But now how do I resume all the sound to play. In sort, mute unmute root sounds in AS3.

View 1 Replies

ActionScript 3.0 :: Crossdomain Policy File On Root Level Cannot Be Deployed On Root Level? 

Jan 14, 2009

Situation:

- We have a Flash application located on a SAP EP (let's say ep.x.com)

- We have a SAP ABAP Application (Webservices) on a SAP WebAS
server (abap.x.com)

- Clarification: This is not about Flash islands / but a normal Flash application communicating with WebAS ABAP via WebServices

Problem: Due to the changed security policy in Flash 10 this scenario does no longer work.

- A crossdomain policy file on root level cannot be deployed on root level

- The WebServices http/s headers cannot be modified, since the WebServices are generated by the WebAS IDE.

Comment: Technically there is a way to patch a WebAS ABAP,but this is not a practical / acceptable way in a normal SAP WebAS infrastructure.

Conclusion:- The above scenario (Flash from EP content / WebAS ABAP as backend) is a quite normal scenario in the SAP world.

- SAP / Adobe always features the close relationship between their technologies.

Question:- What could we do?

- How does the Visual Composer works around that problem?

View 1 Replies

Actionscript 3 :: Position Loaded Object Based On Root Stage Instead Of MC That Is Loaded From Root

Mar 22, 2010

I have a root stage, and a MC that is called from the root stage.Now from that MC, i will called in another MC2, and I wanted to placed the MC in the center of the stage. The reason I could not use normal ADDED_TO_STAGE at MC and define the center is because MC is not place in the exact position of the root stage (as in x, y=0). So if I would target MC2 at MC stage center, it would not be the exact center of the root stage/screen.How can I called the root stage properties rather than adding MC2 into the stage?

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

CS3 :: Swf Link To Root?

Mar 24, 2009

I have a button in my main file (Interiors-02.swf) in Scene 1. When I click it it loads an outside swf (buttons.swf) into a blank movie. This movie has 10 buttons. What I want is for when I click one of those buttons to go to Scene 2 or 3 in the main file (Interiors-02.swf) Can I do this and what would the code be for the button?

View 1 Replies

Referencing Varible In Root From MC?

Mar 28, 2009

I have a varible in my root

Code:
place = "1";
i want to refence it in one of my MCs so that i can run a statement like this:

[code]....

View 2 Replies

From External As File To Root?

Sep 16, 2010

I have my main fla and then I have a actionscript named bullet.as in the bullet.as I create a bullet using "this" throughout the script now how would I call the bullet on my main timeline?

View 1 Replies

Does Flv Have To Be In Same Root Folder As Swf File

Jul 27, 2009

i have uploaded a simple 1 page website with the flash video sitting outside of the root folder of the site itself. i have pointed the flv playback components to the video and published it and uploaded it but the video does not appear on the pages.

View 1 Replies

ActionScript 3.0 :: Getting A Root Var In A MC Class?

Sep 3, 2009

I have a variable on the root timeline that I would like to check for in a class of one of my movieclips. The movieclip get added to the display list via addChild. If I check for the var, I get this error message:1120: Access of undefined property myVar How can I be able to see that var?

View 7 Replies

ActionScript 3.0 :: What Is Stage And Root

Jun 29, 2010

Okay, I did a search on stage and got a lot of forum threads going in different directions about static and global variables. _root to my understanding no longer means the main timeline, it's the root of...what? and how does this relate to the stage? Is the stage there or does that need and addChild() as well? Like, overall I guess my main question is, "What is the proper way of incorporating stage and root in document class structure?" I built my entire site using the structure, but I learned halfway through that I had to use addChild() to make it a display object. I'm trying to get this down so next time I get it right.

View 3 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

Access Levels And Root?

Oct 8, 2010

I cant believe how the simpliest things are more complex to do in AS3.I tried to target a movieclip from inside another movieclip called bat_mc and these dont work!root.ball_mc.gotoAndPlay(2);orlevel0.ball_mc.gotoAndPlay(2);

View 1 Replies

Flex :: Access Root In AS3?

Feb 24, 2010

Say I have code in my main mxml and in a function like this:

this.addChild(someContainer);

and now I want to refactor code and move this to it's own class and method in a separate file. How could I access root now, since this obviously now points to the new class I created.

View 1 Replies

Asp.net :: Getting Root Path To Flex?

Feb 21, 2011

I am working on a project that is primarily ASP.NET based. The main project is meant to be deployed to multiple locations for different clients, so one client might be located at website.com/client1 and another at website.com/client2. Within the application, we regularly use the application root operator ~ to get the path to a resource.

We also have a bunch of Flex applications that get deployed in there, and many rely on web services within the ASP.NET application. What I'm after is a way to reference the services relative to the application root. Here's an example of the location of some files for two client deployments:

[URL]

FlexApplication and webService are both exactly the same, so what I want to do is something like this in the Flex code:

var myService:CustomService = new CustomService(~/services/webService.asmx);
myService.callMethod("Test");

I would like to avoid using relative paths for the usual reasons. Is there a good way to do this or a good way to pass the root url to the flex application from ASP.NET?

View 3 Replies

Actionscript 3 :: Getting The XML Root Node Name

May 19, 2011

I have 2 xml files and one function to parse them. The function has to know how to parse them according to the xml document root node name.

How can I get the root name?

View 3 Replies

ActionScript 3.0 :: Get Vars From The Root Swf?

Jan 30, 2009

i have two swf files, a preloader witch loads main.swf

in preloader on the maintimeline i set this var

var lang:String = "de";

but i cant trace it in my main.swf

trace(root.lang);

how do i get this var?

View 7 Replies

Actionscript 3.0 :: Go To The Next Frame Of The Root SWF?

Oct 1, 2009

Im loading an external SWF in to the main SWF at frame 1.

When that animation is done I want it to go to the next frame of the root SWF .

In AS2 this might be done like this:

_parent.nextFrame();

or

_root.nextFrame();

or

_level0.nextFrame();

How would I do the same in AS3 ?

View 1 Replies

AS2 :: IDE - Thumbnails Linking To The Root

Mar 5, 2009

I'm working in a photogallery inside a mc (ex. movie>menu>gallery). There are 6 thumbnails in this gallery and I would need this: clicking on a tb i would open the bigger image in a mc in the root with alpha effect (fade in). I started using this code:

[Code]....

View 4 Replies

ActionScript 3.0 :: What Is A Stage And Root

Mar 26, 2009

What is a stage and root? What is a frame and timeline?

View 5 Replies

ActionScript 3.0 :: How To Access Root

Mar 27, 2009

I'm currently learning AS3.0 and I'm wondering how to access the root like example in AS2.0 you use the following to access the root.[code]

View 2 Replies

ActionScript 3.0 :: Replacing The Root?

Jul 6, 2009

In AS2 I sometimes like to be able to just wipe everything off in one clean swoop and replace it with a new SWF.Which is of course uber simple, simply "_root.loadMovie("new_world.swf");"

View 4 Replies

AS2 :: IDE : Dynamically Referencing ROOT?

Aug 3, 2009

I am having trouble dynamically changing the reference to root in my movies. Here's what I'm trying to do: I have a main movie(_level0.mainMovie) that I am loading external .swfs into. However, I want to be able to test the child movie clips without having to load them into the mainMovie(for testing purposes). In such a case, the child clip would be at _level0 or _root. I would like to add some code to the child clips to test whether they are the _level0 clip, if not, then I want to change their reference to _root. Here's what I've come up with, which doesn't seem to work:

Code:
function testLevel(){
//This code goes into each child clip to see if it has been loaded into another clip
trace(this);
if(this == _level0){ //If this is the _level0 clip

[code]....

View 4 Replies

IDE :: Changing Root To Another Level?

Aug 1, 2010

I am trying to use parts of a template for a flash site in my own site.On one of my sites pages I am trying to use a set of buttons and pages. My problem is that the flash buttons & pages from the template are set to the ROOT of the template, but I am putting them on 1 or 2 levels difference on my site.Here is the code for the `release` of the button:

on (release) {
if (_root.link<>num and _root.animation == 0) {
_root.animation = 0;

[code].....

View 2 Replies







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