ActionScript 2.0 :: Target A Frame On A MC?

Jul 9, 2007

my frame label contains a movie clip... when the playhead goes to the frame label "corporate", i want it to play the movie clip sitting on the frame label, but starting at frame 20 of the movie clip... have the following code but doesn't work and i can't understand why... i attached an example of what i have made...

Button Code
Code:
on (release) {

[code].....

View 3 Replies


Similar Posts:


ActionScript 2.0 :: Get This Function To Target MyClip_mc And Movethe Frame Head To Another Frame Label

Aug 30, 2007

I'm trying to get this function to target myClip_mc and movethe frame head to another frame label.

var counter:Number = 1;
//textBeGone
invisible_btn.onRelease = function(){
counter++;
if(counter % 2 = true) {

[code].....

View 2 Replies

ActionScript 2.0 :: Target Path - Go To Frame 2 When Click On Button On 1st Frame

May 25, 2009

there is a button on 1st frame. there is a movie clip on frame 2. I named the movie clip as "ball_mc" I want to go to frame 2 when I click on button on 1st frame. I know that the code "gotoAndPlay(2);" on button will work. But for some reasons, i want to try another way.... i tried several codes:

1. this.ball_mc.gotoAndPlay();
2. _level.ball_mc.gotoAndPlay();
3. _global.ball_mc.gotoAndPlay();
4. _root.ball_mc.gotoandPlay();

However these codes dun work. Is there other way to resolve this besides this code "gotoAndPlay(2)"?

View 1 Replies

Professional :: Target Mc On A Certain Frame Within Another Mc?

Jun 14, 2010

I have a movie clip on my stage that has its own timeline with 7 frames, each a keyframe with different content. How would I target a movie clip that appears only on one of these frames within the parent clip?

I'm used to using dot syntax to target clips within clips (eg. parentClip.myClip.onRelease = function(){...), but when I try this with a clip that only appears on one of the frames in the parent clip it doesn't work. Do I need to address that frame specifically? How would I do this? I'm using AS2 in CS3 on a Mac.

View 2 Replies

Target Inline Frame Using GetURL?

Aug 31, 2009

I am using a flash template with a _urls.txt file. I would like to change the code so I can display a target html page in an inline frame. My goal is to change the page content when a when a nav item is choosen without reloading the swf.I have tried several methods with no luck. What should I do to accomplish my goal?Here is the original code in the template.

on (rollOver) {
gotoAndPlay("s1");
}

[code].....

View 1 Replies

ActionScript 3.0 :: Target Labeled Frame From Xml?

Jan 26, 2010

How do I target the labeled frame in my main timeline.[code]...

View 1 Replies

ActionScript 3.0 :: Target Frame Send To URL?

Sep 20, 2009

I am using this code to send to URL instead of sending to a frame , is not working , is ther anything wrong with it ?

try { navigateToURL(new URLRequest(items[selectedIndex].targetFrame), _blank); } catch (e:Error) {}

View 1 Replies

ActionScript 2.0 :: Loadmovie And Target A Frame

Jul 17, 2009

I want to load a movie and have it start on a specific frame within that movie instead of starting on frame one. The code I have now is this:

stop();
loadMovieNum("mc2.swf", 2);

I want it to start on the frame label in the movie called "in" instead of on frame one. How the hell do I do this, I looked everywhere

View 1 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 3.0 :: AddEventListener - Different Buttons - Same Target Frame

Nov 3, 2009

I am trying to make an animation with addEventListener, different buttons, same target frame. My problem is that the animation keeps changing automatically from one frame to another. Here's my zipped fla file.

[Code]...

View 4 Replies

ActionScript 3.0 :: Impoting Swf, Target Specific Frame?

May 14, 2010

this code retrieves my swf file ("home"), but can I send it to a specific frame (or label)?

[Code]...

View 4 Replies

ActionScript 2.0 :: Target Specific Frame From External Swf?

Oct 21, 2004

What is the best way to target a specific frame from an exterally loaded swf?

View 3 Replies

ActionScript 2.0 :: Target A Frame In Movie Clip?

Mar 10, 2005

How do i target a frame in a movie Clip. I'm using the loadmovie command and want an alternative pathway through the site. That is, when user cliks button they go to frame 15 instead of frame 1.

View 2 Replies

ActionScript 2.0 :: Target Frame In Movie That Has Been Loaded?

Aug 8, 2002

is it possiable to target/query a specific frame in a movie that i am loading into an empty MC...?

eg:

on (release){
if (loadedMoviePath._currentframe == 10);
loadedMoviePath.MC1.play();
}
loadedMoviePath - what would the path to the MC in the movie that has been loaded be?
whatGoesHere.MC1

View 2 Replies

IDE :: Target A Flash Frame Number From Html?

Jun 17, 2009

Is it possible to create a link on an html page that when clicked will load a new page, which has a flash movie on it, but make the flash file jump to, say frame 50, or a frame label?

View 2 Replies

ActionScript 3.0 :: Get A Button To Target A Frame Label?

Jul 27, 2010

I am having trouble trying to get a button to target a frame label. Right now I have the button inside a movie clip and my idea was to have the click event target a frame label that is outside of the button movie clip. The frame label actually lives within the parent movie clip of the movie clip holding the button. I am using Action Script 3.0 so I am not sure what to do. And not sure if I should have the actionscript inside the nested movie clip or in the parent. Here is what I have so far...

/*
The parent movie clip is called "services_mc"
The nested movie clip holding the button is called "brandID_mc"
The button is called "goback_btn"

[code]...

View 2 Replies

ActionScript 2.0 :: Target Specific Frame From External SWF

Oct 21, 2004

What is the best way to target a specific frame from an exterally loaded swf?

View 3 Replies

ActionScript 2.0 :: Target A Frame In A Movie Clip?

Mar 10, 2005

How do i target a frame in a movie Clip. I'm using the loadmovie command and want an alternative pathway through the site. That is, when user cliks button they go to frame 15 instead of frame 1.

View 2 Replies

ActionScript 3.0 :: Path Or Target Frame Inside Of MovieClip?

Mar 8, 2009

I'm trying to reference a specific frame inside a MC in my .swf file from an .as file. What I want is to capture the current frame of the movie clip for the .as file. It's for the purpose of points when you shoot each plane. It's an easy trick of frame 1's plane would be worth 100 points, frame 2's plane 200 points, etc. I thought I'd write a line like this in my collision detection section of my .as file.

Code:
planePoints = currentFrame * 100;

The only problem is, of course, it grabs the current frame of the main .swf timeline that my flash file uses, and not the movieclip that's being called to produce the planes. So I thought I'd be able to specify a path to the movie clip (in this case it's called Airplane in the MC's linkage properties).

Code:
planePoints = Airplane.currentFrame * 100;
Then, of course, it freaks out and says that 'access of possibly undefined property currentFrame through a reference with static type Class.'

I still get confused with AS3 and the way items are handled vs AS2. I've lost track of how many times I type _root. Am I getting something basic mucked up here or should I be importing something in the package to get it to recognize the class?

View 1 Replies

Display A Target Html Page In An Inline Frame?

Aug 31, 2009

I am using a flash template with a _urls.txt file. I would like to change the code so I can display a target html page in an inline frame. My goal is to change the page content when a nav item is choosen without reloading the swf.Here is the original code in the template.

on (rollOver) {
gotoAndPlay("s1");
}
on (rollOut, releaseOutside) {

[code]...

View 1 Replies

Professional :: 2nd Scene Not Working If Landing Target Is Other Than 1st Frame

Apr 19, 2010

Ok... I have 2 scenes.... 1st scene is an intro menu with several movie clip symbols (let's call them buttons for all intents and purposes) that gotoAndPlay various sections of the 2nd scene when clicked ... The various buttons on this intro screen point to different frame numbers in the 2nd scene... button1 goes to frame 1 of scene 2... button 2 goes to frame 10 of scene 2.... button 3 goes to frame 20 of scene 2 and so on....

when I click  the 1st button, it takes me to the 2nd scene at frame 1 and correctly shows me that page ... (all 2nd scene pages have a navigation bar at the top to access the other 2nd scene pages) ... when I click on a navigation button it takes me to the next page within the 2nd scene that I am looking for and each progresive page works correctly.

[Code]....

View 6 Replies

Flash :: Play Forwards/backwards To Target Frame?

Feb 10, 2012

I need to play forwards/backwards to target frame(or second) on my videoPlayer when I push a button. How would I do this?

Not sure how to tween the seek() property. I have TweenLite, which normally works great! But just not sure how to do it here..

View 1 Replies

ActionScript 2.0 :: Target Mc In Specific Frame Of Main Stage?

Dec 9, 2003

I have two movie clips on the main stage: mcNav and mcContent1 (mcContent1 is located in the 2nd frame).

When I click btn1 which is a movie clip within mcNav, I want to go to the 2nd frame on the main stage where mcContent1 is located.

And then go to frame 10 within mcContent1 and stop.

Here's what I have:

btn1.onRelease = function() {
_root.gotoFrame(2).mcContent1.stop(frame 10);

View 2 Replies

ActionScript 2.0 :: Target A _root Frame Label From Inside MC?

May 28, 2007

Just wondering how this is done within an "if then" statement. I need a code like

if (_root.frame = "home") then {
this.quickHome.onPress = function () {
_root.gotoAndPlay ("homeToContact");
}
}

I know the first line isn't going to work, but just wondering if someone knew of a code that would?

View 2 Replies

ActionScript 3.0 :: EventListener / Target - Goto A Different Frame According To Which Question Is Clicked

Mar 30, 2010

I am trying to create a jeopardy like game for my classroom. I have each of the questions on the stage with an eventListener on each one. This eventListener listener calls a function. My problem is trying to have the function go to a different frame according to which question is clicked.

[Code]....

View 9 Replies

ActionScript 2.0 :: Use Flash To Target A Certain Frame In HTML Doesn't Work Any More

Oct 9, 2006

Kirupa's tutorial on how to use Flash to target a certain frame in HTML doesn't work any more. The page opens up in a new window instead of in the targetted frame. This is the code that is used: on (release)

[Code]...

View 1 Replies

ActionScript 2.0 :: Target A Particular Frame In A Webpage As Can The LoadVars.send()-function?

Dec 6, 2006

Im wondering if the LoadVars.SendAndLoad()-function can target a particular frame in a webpage as can the LoadVars.send()-function?

View 2 Replies

ActionScript 2.0 :: Target Html Frame From Flash GetURL Flash8

Mar 18, 2007

Note: I rarely join forums or post threads, however, given the living hell i went through to figure this problem out I thought i would go ahead and post this for all others having my problem (in hope that you find this link and it solves your problem). Aim: using frames, I want to create a flash menu in the left frame, the buttons in the left frame should open up the target page into the (main) right frame. [in other words a normal frame based website that has a flash menu as the navigation for the site] Problem: When using getURL to open the page in the frame i.e. on (release) {

[Code]...

View 2 Replies

ActionScript 2.0 :: Target A Movie Clip On A Different Frame From The Scripted Button?

Dec 22, 2007

I started working actionscript 2 yesterday for a uni project. I was wondering if I can target a movie clip on a different frame from the scripted button. For instance would:

//
_root.my_mc._width
//

return defined if my_mc was on a different frame?

View 2 Replies

ActionScript 3.0 :: Controlling MovieClip With Frame Label - Target Path

Oct 5, 2009

I'm trying to control a movie clip called "nosotrosmc" with a frame label inside called "historia" but does not work
Code:
menu.nosotros.addEventListener(MouseEvent.CLICK, subSeccion);
function subSeccion(e:MouseEvent){
trace(""+e.target.name+"boton clicked");
this.nosotrosmc.gotoAndStop("historia");
}

The output window show this:
nosotrosboton clicked
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at HomeSonny_fla::MainTimeline/subSeccion()
I need to made a simple navigation, I'm a designer, not a programmer.

View 6 Replies







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