ActionScript 2.0 :: Access A MC On A Specific Frame?

Jan 6, 2004

I have a several frames on which I have several MCs. logical. On some frames, I have MCs that have the same name that on other frames. Right now, I access the frames by a gotoAndStop() and then access the MCs of the frame in the very frame.

What I want to do : I want to be able to access the MCs of all the frames from the first one to initiate them (loading purpose). But since I have MCs with the same name, I can't juste do "MCName.whatever()" because as wouldn't know which one to chose.

is there a way to use the object-like syntax to prefix the MC Name by it's frame ?

ie : frame is "Frame2"
mc is "myMC"
=> do Frame2.myMC.whatever()

View 6 Replies


Similar Posts:


ActionScript 2.0 :: Access A MC On A Specific Frame

Jan 6, 2004

Here is the thing : I have a several frames on which I have several MCs. logical.
On some frames, I have MCs that have the same name that on other frames. Right now, I access the frames by a gotoAndStop() and then access the MCs of the frame in the very frame. What I want to do : I want to be able to access the MCs of all the frames from the first one to initiate them (loading purpose). But since I have MCs with the same name, I can't juste do "MCName.whatever()" because as wouldn't know which one to chose. So here's my question : is there a way to use the object-like syntax to prefix the MC Name by it's frame ? ie : frame is "Frame2"

[Code]...

View 6 Replies

Professional :: Access An Object (movieclip) At A Specific Frame?

Apr 29, 2010

How can i access an object (movieclip) at a specific frame   which is located inside another movieclip. It's something like this : first movieclip - and inside it,  on frame 10 i have the second movieclip. I want to access that second movieclip ont that 10th frame.

View 1 Replies

ActionScript 3.0 :: Access A Text From Specific Frame Of MovieClip?

Jun 20, 2011

I have a text (textbox1) in the 3rd frame of a MovieClip (movieclip1).

How can I access that textbox1 from the main timeline, when the MovieClip is not at its 3rd frame?

For example to change it to "Hello!"?

View 2 Replies

ActionScript 2.0 :: Change The Colour Of A Graphic In A Specific Movie In A Specific Frame

Mar 31, 2006

i need to change the colour of a graphic in a specific movie in a specific frame. if i have a movie clip instance-named "sidetext" thats 15 frames long, and i want a graphic in the movie, called "letterp" to change to one of four colours that i want it to randomly at frame 10 and stay that colour uintil frame 15, how can i do this?

View 2 Replies

Flash 10 :: Export Specific Frames Not All Frame - Specific Timeline

Sep 15, 2010

how do i export specific frames not all frame. ex: if flash has 1 to 200 frames. here i want to export 51 to 150 frames as a movie. if there is any command or plugin to export movie like this.

View 0 Replies

Target A Specific Frame In Specific Movie Clip?

Dec 3, 2009

I have been doing really well figuring everything out up until now.[code]How it stands, what is this link pointing to? Can I make it target a specific frame in a specific movie clip?And if someone would be so kind and explain what this is saying in 3rd grader terms.

View 3 Replies

ActionScript 3.0 :: Load Specific SWF At Specific Frame By Default?

Sep 21, 2009

Basically once my animation loads I want to pull in an external SWF at a specific frame, basically like the "home page" swf that will display first. Underneath that I will have "About Us, Contact, etc..." and those will each load an external SWF into my movie clip. My movieclip right now is called mcHolder. Here is the code I am currently using for the buttons:

Code:
//About Us Button
function test2(evt:Event):void{

[code].....

View 1 Replies

ActionScript 1/2 :: Specific Frame On A Specific Movieclip?

Sep 1, 2010

I'm trying to get the following movieclip smallbutton to link to frame 5 on movieclip cont.The way the timeline is built is as so:content_mc > cont > (more mcs) > smallbuttonThis seems to be an issue from every answer I've tried so far since the movieclip "cont" is not being called in the main timeline; first there's content_mc and then comes cont.How would I go about getting the movieclip "smallbutton" to link to the 5th frame of movieclip "cont"?This is for AS 2.0So far I'm at:on (release) {  _root.gotoAndPlay("cont");  _root.smallbutton.gotoAndPlay(5);

View 7 Replies

ActionScript 3.0 :: Create A Frame Label On A Specific Frame?

Aug 6, 2009

if its possible, via AS3, to create a frame label in a movieclip on a specific frame.

Obviously I can do it by manually by setting up labels on the timeline within the target movieclip, but I would rather use an array so I can loop through it, creating a label name on a the specific frame each time?

so for example I would end up with:
myLabelOne on frame 10
myLabelTwo on frame 25
myLabelThree on frame 115
etc

View 3 Replies

ActionScript 2.0 :: Go To A Specific Frame Or Frame Label?

Nov 1, 2004

I am loading a swf into an empty MC with this code:

on(release) {
loadMovie("movie.swf", _root.container);
}

what I want to do is also go to a specific frame or frame label in that loaded movie. I thought I could do it by adding something like this:

_root.containter.gotoAndPlay("frame");

View 9 Replies

ActionScript 3.0 :: Get The Frame Label Of A Specific Frame?

Jun 3, 2011

Is there a way to get the frame label on a specific frame, without it being the current frame?

I've tried accessing it through:

this.scenes[0].labels but it doesn't allow me to check a specific point on the timeline.

View 2 Replies

ActionScript 3.0 :: Amatur - Access Variables In A Frame On The Stage With Code From A Frame Within A Movieclip?

May 16, 2009

how I access variables in a frame on the stage with code from a frame within a movieclip?(basically passing variables from a stage frame to a movieclip frame)

View 4 Replies

ActionScript 3.0 :: How To Access Specific Attribute In XML

Aug 2, 2010

Suppose I have an xml looking like this?

Code:
var emp:XML =
<employees>
<employee id="6401" code="231">
<lastName>Wu</lastName>
<firstName>Erin</firstName>
</employee>
<employee id="6402" code="232">
<lastName>Wu</lastName>
<firstName>Erin</firstName>
</employee>
<employee id="6403" code="233">
<lastName>Wu</lastName>
<firstName>Erin</firstName>
</employee>; </employees>

How would I access the specific attribute "6403"? I tried sth like this but did not work :
"emp.employee[2].@id"

View 0 Replies

ActionScript 3.0 :: Specific URL Blocking - Access Restricted

Mar 22, 2012

This is specific url blocking.
function pageDomainCheckInit(event:Event):void {
var url:String=stage.loaderInfo.url;
var urlBeginninng:Number=url.indexOf(://)+3;
var urlTermination:Number=url.indexOf(/,urlBeginninng);
var pageDomain:String=url.substring(urlBeginninng,urlTermination);
[Code] .....

View 9 Replies

Access Specific File In Flash With FileReference?

Jan 22, 2010

I need to make a flash applet that automatically grabs a specific file on a user's system (iTunes XML file) and auto uploads it to my server. So far I have only been able to accomplish this with a user selecting the file, how to upload a specific file without the user having to go and find it.

View 1 Replies

ActionScript 3.0 :: Access A Specific Array Depending On That Value?

Nov 9, 2010

I have 4 arrays named array1 to array4, is there any way to reference them dynamically? What I mean is if I have for example

var currentValue:int = 3;

and I want to be able to access a specific array depending on that value, is there an easy way to do that in AS3?In as2 you could do something along the lines of

("array" + currentValue);

but that doesnt work in AS3

View 2 Replies

Actionscript 3 :: Flex 4 - Access A Specific Cell By Index?

Sep 20, 2010

I would like to edit a cell by the row and column indexes so essentially do the following:

advDataGrid[2][3] = "Dogs"

so that I am setting the data grid row 2 and column 3 to Dogs. I cannot for the life of me figure out how to do this!

Side note: I need this because I am trying to allow the user to copy a section of an excel file to a section of an AdvancedDataGrid like Google Docs does. I am using this idea to do it: [URL]

View 3 Replies

Calling SWF To A Specific Frame

Sep 26, 2009

I have a button that uses the Load Graphic Behavior for bringing a SWF, but i want the SWF to come in a specific frame instead than starting at frame 1. For examplel; i click the button, the behavior of Load Graphic brings my SWF to stage but i want to start at frame 50, not at frame 1. How can i do that?After i use the Load Graphic Behavior i try using a gotostop frame, but doesn't work.

View 13 Replies

ActionScript 2.0 :: Get URL In A Specific Frame?

Jun 22, 2009

I have made a menu in flash . I have a frameset on my page . I want the button to open the link in a specific frame (my frames are bannerframe , leftmenu , rightmenu , bodyframe) . The menu is in the "leftmenu" frame. But whenever i use this :

ActionScript Code:
getURL ("xyz.html", "bodyframe")

the page opens in a new window .. ( i have tried in all browsers chrome firefox IE etc. ) ....

View 0 Replies

IDE :: GetURL In A Specific Frame?

Jun 22, 2009

I have made a menu in flash . I have a frameset on my page . I want the button to open the link in a specific frame (my frames are bannerframe , leftmenu , rightmenu , bodyframe) . The menu is in the "leftmenu" frame. But whenever i use this :

Code:
getURL ("xyz.html", "bodyframe")

the page opens in a new window .. ( i have tried in all browsers chrome firefox IE etc. ) ....

View 5 Replies

Jump To Specific Frame When Using Loader?

Apr 22, 2009

I want to jump to a specific frame in the swf I load using the Loader class. As it is now it goes directly to frame1 in the file, which I dont really want it to do. I'm using Flash CS4

View 2 Replies

Code A Button To Got To A Specific Frame In Another Mc?

Jun 3, 2009

im trying to code a btn to got to a specific frame in another mc

my code is
stop();
gfhtml.addEventListener(MouseEvent.CLICK,gfclick);

[code].....

View 4 Replies

ActionScript 3.0 :: Hyperlink To A Specific Frame?

Nov 8, 2009

I have a dynamic text box. I need to set up a hyperlink in my text file that will take the user to a specific frame on a page. I know how to set the hyperlink up to go to a specific page :

Code:
<a href="http://www.lasamigasseatpleasant.org/index.html">
Visit Our Site</a>

[code].....

View 1 Replies

ActionScript 3.0 :: Get An External Swf To Go To A Specific Frame?

Nov 9, 2009

I made a flash website and had one page load an external swf.

In this external .swf are thumbnails that link to another page (frame) all within the external swf. when you go to these pages there is a 'back' link which links back to the main external swf frame.

My problem is this: let's say i click a thumbnail in the external swf and it goes to the respective thumbnail page, and then i dont click the 'back' button but instead click another link of the main flash website - then i go back to the page that loads the external swf and instead of going to the main frame of the external swf it stays at the page i was previously on.

How do I get the link on the main flash website which loads the external .swf to always load on the first frame of the external swf?[code]...

View 2 Replies

Completely Stop At A Specific Frame

Jul 26, 2010

I am very new to Flash and I am making a little 30 second clip just to fool around with Flash.Now at the end of my film I just want everything to stop (if possible, once a specific frame is hit move to another frame.)I've heard that you could use ActionScript to perform this but I really have no clue

View 5 Replies

How To Play A Sound At Specific Frame

May 13, 2009

I have the loading audio file at frame one. However, I want to play the audio only at specific frame or frame lable. How do I do that? Below are my codes:

[Code]...

The above plays the sound as soon as the .swf file is loaded. But I want to play at certain point in time, say frame number or frame lable.

View 17 Replies

Loading A Specific Frame In An External SWF

Sep 13, 2009

I have two flash files, say a.swf and b.swf.a.swf is the main swf file, embedded in an HTML page for a webpage. There is a preloader in a.swf too. In b.swf, when I click a specific button I need to load a.swf, but not from the preloader, from the content. To be precise, the content starts from Frame 24 of a.swf (obviously Preloader ends in Frame 23). I believe, the frame 24 has to be loaded in a.swf when I click the button in b.swf.

View 2 Replies

ActionScript 1/2 :: Go To Specific Frame If XML Search Has Tag

Dec 14, 2009

I need to do 2 things: I have a rotator piece I'm working on where I need to be able to go to a specific named frame (promotions) if the XML I search for [URL] has the tag <promo>. I also need to be able to have a button on that frame link to a URL that is pulled from a tag in the same XML, called <promoURL>.

View 3 Replies

ActionScript 1/2 :: How To AttachMovie In A Specific Frame

Mar 10, 2010

I have 3 pages of a document converted to symbols (i.e. mc_pg1, mc_pg2, mc_pg3), each residing in its own frame (i.e. "pg1", "pg2", "pg3") inside mc_Pages.  Mc_pg1, mc_pg2, and mc_pg3 are inside a movieclip called mc_Pages.  On click of mc_Pages, I am attaching a blinking icon (mc_Target) to a specific page.  The problem I'm having is when I attach mc_Target to a specific mc in its frame, navigate to another frame, and then return to the initial frame, mc_Target is no longer attached.  Yet, I have not clicked anywhere else other than the buttons that allow me to navigate from one frame to another.  So, my code is:
 
mc_Pages.onPress = function():Void
{
if(varPg1 == true) //this checks to see if I'm on "pg1" frame where mc_pg1 is located
{

[code]....
 
Everything is working as it should, i.e. on press of the mouse button, the mc_Target is attached to the frame/mc within mc_Pages that I'm in (I have a btn_Next and btn_Previous on the same timeline as mc_Pages that navigates to the specific frames inside mc_Pages), except that upon returning to a frame/mc which previously had mc_Target attached, mc_Target is no longer there.

View 5 Replies







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