ActionScript 2.0 :: Targeting Attached Movieclip - Variable It Doesn't Recognize Its Path

May 6, 2004

i have a problem adressing or targetting a attached mc when i target de mc directly it works fine but when i try it trough a variable it doesnt recognise its path anymore??? hopefully a part of the code is gonna explain the situation a litle better... this piece works fine:

[Code]...

View 3 Replies


Similar Posts:


ActionScript 2.0 :: Targeting Attached Movieclip - Variable Doesn't Recognise Its Path Anymore

May 6, 2004

i have a problem adressing or targetting a attached mc when i target de mc directly it works fine but when i try it trough a variable it doesnt recognise its path anymore???

[Code]...

View 3 Replies

AS3 :: Professional - Doesn't Recognize A Button In A Movieclip

Dec 24, 2011

I'm new to flash and action scrip 3.0. I made a movie clip and in it two buttons. The first button is called designer_b The second button is called animator_b This is the code I made:

[Code]....

View 5 Replies

ActionScript 3.0 :: Pass A Variable From A Main Movie To An Attached Movieclip?

Mar 28, 2012

I have a Flash Professionl AS3 project I am working on.

I have this in a main movie:
 
but1b.addEventListener(MouseEvent.CLICK, fbut1b, false, 0, true);
function fbut1b(e:MouseEvent):void{
var mc:documentwindow_mc=new documentwindow_mc();
mc.x=450;

[Code].....

The issue I have is I need to do this 40 times.
 
Is there a way for me to use the same documentwindow_mc movie clip and pass a variable to change the "documents/print2flashdocument1a.swf", part?
 
How could I do this from the fbut1b function?

View 3 Replies

ActionScript 2.0 :: Targeting Attached Movie Clips

Dec 13, 2005

I'm having trouble figuring out how to target a series of movie clips i'm attaching to my movie.I'm loading some xml for a slideshow and i'm generating a series of dots at the bottom of the screen to indicate how many steps are in the slideshow and the circle is meant to highlight your current position as you step through the presentation.the MC for the dots is two keyframes with a different color and a stop action on each frame.
Here's the rundown of the code:

1. There's nothing weird here, i'm just bringing the xml in [code]

2. Here is the loadXML function i reference in the xml.Data.onLoad above:[code]Okay so now i have some dots with the instance names, step0, step1 etc. right? And at the end of my loadXML function you see the firstImage(); function. This is where my problem is, how do i target the first (step0) instance? I have no problem when I write "step0.gotoAndStop(2);" but I need to figure out how to use a variable to keep moving it along when i make my next and last functions for the slideshow.

3. Here is the firstImage function:[code]how do i target the step the same way i target the image? do i have to go back and do something in the loadXML for loop?[code]

View 2 Replies

ActionScript 2.0 :: Targeting All Dynamically Attached Clips

Aug 21, 2006

I want to target ALL the 20 clips attached as below, at the same time, when I press the button "blue". However, my code can target only ONE of the clips at any time. I have tried attaching the clips to a separate dynamic clip and then targeting it but problems with the registration point (0,0) of that clip means I cannot achieve the result I want:

Code:
for(i=0;i<20;i++){
mc = this.attachMovie("red","red2"+i,i);
var scaleFactor:Number = Math.random() * 80 + 20;
mc._x = Math.random()*500;
mc._y = Math.random()*400;
mc._xscale = scaleFactor;
mc._yscale = scaleFactor;
blue.onRelease = function(){
new Tween(mc,"_xscale",Strong.easeOut,mc._xscale,200,3,true);
new Tween(mc,"_yscale",Strong.easeOut,mc._yscale,200,3,true);
}}

View 2 Replies

ActionScript 2.0 :: Targeting With Multiple Attached Slideshows

Jun 15, 2007

My flash file creates multiple slideshow instances. These slideshow's are each controlled by some buttons and AS code that reside within the attached container clip. The code for buttons and slideshow nav is as follows (this resides on first frame of attached movie, not on _root):

[Code]...

The problem is that instead of just controlling the slideshow for which you are viewing, the keys control all other slideshows as well at the same time. Where the buttons, when you click them, control only the slideshow that they are contained in. I've tried writing an absolute path to the specific slideshow movie in question like:

[Code]...

View 3 Replies

ActionScript 3.0 :: Use A Movieclip Path From A Variable?

Oct 6, 2011

I have a variable that will change,

and i want to make it my movieclip path, example[code]...

View 7 Replies

ActionScript 3.0 :: Use A Variable In A Path To A MovieClip?

Apr 20, 2010

using a variable in a path to a MovieClip.

I have a menu with 4 tabs. When I click on one I want it to open and the previous one to close.

I'm storing the previous tab as a variable (_previousTab) but am having trouble adding the variable to the path to the MovieClip of the previous tab. The error Flash gives me is:

TypeError: Error #1010: A term is undefined and has no properties.
at MenuRun/menuOpen()

[Code]....

If I replace mainframe[_previousTab] with the name of the MovieClip it works fine. I'm thinking it's something to do with the variable being a String perhaps?

View 8 Replies

ActionScript 3.0 :: Targeting Attached Library Item Sub-elements?

Aug 13, 2009

I've created a movieclip in my library which has, among other things, a dynamic text field. This text field has an instance name of "txt".

I then attach this movieclip and want to set the txt instance, but I get an error:

Code:
1119: Access of possibly undefined property txt through a reference with static type flash.display:DisplayObject.

Here's my code:

Code:
var mcLoader:DisplayObject
public function MainClass() {
mcLoader = addChild(new MainLoad)

[Code]....

View 2 Replies

ActionScript 3.0 :: Insert A Variable In A Path To A MovieClip?

Apr 20, 2010

I'd like some help on using a variable in a path to a  MovieClip. I have a menu with 4 tabs. When I click on one I want  it to open and the previous one to close.
 
I'm storing the  previous tab as a variable (_previousTab) but am having trouble adding  the variable to the path to the MovieClip of the previous tab. The error  Flash gives me is:

[Code]...

If  I replace the variable _previousTab with the name of the MovieClip it  works fine. I'm thinking it's something to do with the variable being a  String perhaps?? Also, the trace statements return the desired MovieClip names. 

View 5 Replies

CS4 Doesn't Recognize Fonts?

Jul 30, 2009

I just installed Flash CS4 and brought ip a couple of fla's I get a box telling me I don't have some fonts on my system that I know I do have like Verdana and Ariel, etc.  Is there something I should configure?

View 1 Replies

Embedding SWF: Doesn't Recognize FP10

Jun 25, 2009

Flash files I embed have faulty plugin detection - it does not recognize FP10 as an upgrade from FP9. This is in the knowledgebase, but it does not suggest a solution. "Some websites will ask you to install or update Flash when you already have the Flash 10 plugin installed. This is not a problem with your Mozilla browser or your Flash plugin, but with certain websites that misidentify Flash 10 as Flash 1 due to a faulty detection scheme. Contact the website and ask them to correct the problem or, on Windows, you can try the site in Internet Explorer, since the Flash ActiveX detection may work even though the plugin detection does not."

View 4 Replies

ActionScript 2.0 :: Dynamically Targeting A Path From A MC?

Jun 23, 2009

I have a function and some textfields within a movieclip, and I need to reference those textfields dynamically. This worked when I'd had the TFs on the stage, but not since I've placed them in an MC.The TF naming convention works out to this:

Code:
t_t1c1r1
t_t1c2r1
t_t1c1r2

[code]....

So, to access them dynamically, I combine the letters with index numbers to be gotten through the function's arguments.

Code:
this['t_t1c'+i+'r'+ii].text;
Object(this)['t_t1c'+i+'r'+ii].text;

The numbers represented by "i" and "ii" are coming through fine in trace, but the path is still wrong. I've tried different combinations of _level0, etc., but it only works in my testing when I make an absolute reference to the field (e.g. Object(_level0.mc_instance)['t_t1c'+i+'r'+ii].text which is not a viable solution).

View 1 Replies

ActionScript 2.0 :: Where Functions Lay In Path Targeting

Aug 3, 2004

I am kinda puzzled as to where functions lay in path targeting. For example, I have this code on the first frame of a blank .fla:

Code:
function pathTest() {
trace("it runs...")
this.atextfield.text="test..."
} pathTest()

And then of course on the stage I have a text field with a instance named atextfield. The function runs but does not work. If I take off the "this" then it works. Why? I was reading something about private and public functions the other day, does this have anything to do with this?

View 2 Replies

ActionScript 2.0 :: Dynamically Targeting A Path From An MC

Jun 23, 2009

I have a function and some textfields within a movieclip, and I need to reference those textfields dynamically. This worked when I'd had the TFs on the stage, but not since I've placed them in an MC.The TF naming convention works out to this:[code]The numbers represented by "i" and "ii" are coming through fine in trace, but the path is still wrong. I've tried different combinations of _level0, etc., but it only works in my testing when I make an absolute reference to the field (e.g. Object(_level0.mc_instance)['t_t1c'+i+'r'+ii].text which is not a viable solution).

View 1 Replies

ActionScript 2.0 :: Attached MC's Follow Path?

Apr 22, 2008

how to click one point, then click another and have movieclips attach themselves along the path in AS2.

View 1 Replies

Flex :: ComboBox Selection Doesn't Recognize

Apr 19, 2011

My code snipet looks like :

[Code]...

Do you have idea about the reason for that error and how to prevent it? N.B. The code that triggers this error is as a result for click handler. If before encountering this error change the selection on my yearsCb, everithing is fine. EDIT: I forget to specify that this error is thrown when it is a selected item in my ComboBox. It seem that after container that holds the ComboBox loses the focus, it doesn't recognize it's ComboBox child as having a selected item anyway (this problem arise only after the modal popup close.).

View 2 Replies

Flex :: SequenceWaiter Doesn't Recognize Event?

Jul 7, 2011

I'm using this AsyncHelper. I would like to create basic test case where I would like to dispatch event from the test method (by Parsley MessageDispatcher), catch this event in any other method and dispatch it back (by flex EventDispatcher).

This is my test case:
package flexUnitTests {
import flash.events.ErrorEvent;

[code]......

View 1 Replies

ActionScript 3.0 :: Package Doesn't Recognize Stage.stageHeight?

Oct 4, 2009

how to make my package use stage.stageHeight so I can tell a ball to bounce when it reaches the bottom of the stage. I'm calling my ball to the stage from the library in a way I'm not used to and have never done so I'm assuming it has got to do with that. if you take a moment to look at it (pretty simple i've stripped out everything except for the physics that makes a ball drop and bounce) and let me know why I cant detect the stage.

particle.as file:

[Code]......

View 2 Replies

ActionScript 3.0 :: SelectionActivePosition Doesn't Recognize Carriage Returns?

Jun 4, 2010

I've got an app where I'm grabbing the currently highlighted text from the user in a RichEditableText block and I've noticed that when the user highlights a selection after a carriage return that selectionActivePosition and selectionAnchorPosition return values that don't count the carriage return, even though when I slice the corresponding text with the retrieved values, it does take the carriage return into account and therefore returns a value shifted one character to the left for each carriage return appearing earlier in the text.

View 1 Replies

ActionScript 3.0 :: Flash Doesn't Recognize Classes Upon Exporting?

Nov 29, 2011

I was asked to update some information on a certain project. The weird thing is that whenever I try to export the movie from Flash (I work with CS3 Professional), I get errors. Before even changing anything. All of them are reporting MovieClip not being recognized ("The class...... must subclass flash.display.MovieClip since it is linked to a library symbol of that type" (and a few SimpleButtons too). There is a total of 57 errors. All the classes import and extend MovieClip.

Now I'm pretty sure this doesn't have anything to do with the code itself, since this project was already published and tested working as it is. I tried adding Class paths in the preferences menu but this didn't seem to help.

View 8 Replies

ActionScript 2.0 :: String To _level (path) - Hide A MC Depending On The Path Variable?

Nov 24, 2004

Here's what i'm trying to do: Hide a MC depending on the path variable as:

[Code]...

Well that doesn't work, for some reason, i can't use a string as a multiple level path..

View 5 Replies

ActionScript 3.0 :: Image Gallery Doesn't Recognize Load Request?

Feb 5, 2010

I'm trying to create a five image gallery, and when I try to add the load request for the 3rd, 4th, and 5th images I get an error message that says it doesn't recognize that request: see code below:

stop();//turn on buttonMode for mc's so mouse changes to handone_mc.buttonMode=true;two_mc.buttonMode=true;three_mc.buttonMode=true;//four_mc.buttonMode=true;//five_mc.buttonMode=true;////--add button modes for 3-5 here////define

[code].....

View 1 Replies

ActionScript 3.0 :: AddChild Instances Doesn't Recognize Event.target.name?

Oct 15, 2011

I have a button that was added to stage using addChild when the page load, the button is suppose to be removed using removeChild and redirect into its specific page using event.target.name...somehow i got this error: Error #2044: Unhandled IOErrorEvent:. text=Error #2035: URL Not Found.

I have try replace this line, var newswf:URLRequest= new URLRequest("./swfs/"+ event.target.name +".swf"); with this, var newswf:URLRequest= new URLRequest("./swfs/about.swf"); and everything works fine, but i dont want that since I want it to load dynamically and uses less code..
 
my code as below:

var about:About = new About();
about.x = 300;
about.y = 200;

[Code]....

View 5 Replies

ActionScript 2.0 :: Custom Class Instance Doesn't Recognize Own Constructor

Aug 18, 2011

I'm having a problem with customized Actionscript objects not recognizing thier own constructor. This is the pertinant part of my script:

ActionScript Code:
//File: Line.as
class Line extends Object{
public function Line(args){

[Code].....

Clearly, the variable "testLine", is one of my custom "Line" objects. Clearly, it has been made with the "Line" constructor. So why won't flash acknowledge this?

View 3 Replies

ActionScript 2.0 :: GotoAndStop - Command Doesn't Recognize Labels Only Frames

Aug 7, 2006

I'm trying to target labeled frames using a simple gotoAndStop command but for some bizzare reason the code doesn't recognise labels only frames.

[Code]....

View 2 Replies

ActionScript 2.0 :: Set A Dynamic Field With The Var ImageNumero From XML File But The Loop Doesn't Recognize It?

Apr 29, 2009

I've created this loop to fill some data from a XML file...I can access the data but it doesn't work on my look.I have several movie clip on the stage such as thumb01, thumb03...then I whant to set a dynamic field called thumb01.numero.text with the var imageNumero myImage[i]. attributes.numero; attribute from my XML file but the loop doesn't recognize it...here is my code...

Code:
var xmlData=new XML();
xmlData.ignoreWhite=true;[code]....

View 2 Replies

Flex :: Tree Discloser Icon - Renderer Doesn't Recognize The Leaf Child?

Aug 31, 2010

i gave the tree an ArrayCollection as dataprovider that i pulled from the database, and it contains the children, but the discloser icon wont disappear on an object that doesn't have a child.i think the problem is that the renderer doesn't recognize the leaf child, wich contains a children array of length 0, or null......

View 2 Replies

ActionScript 2.0 :: Function Won't Recognize A Variable Parameter?

Oct 22, 2009

For the record I am running Flash CS4, but am using actionscript 2.0 (its just what I know, and I don't feel like learning 3.0)-So I'm making a contact list, and each of the names will be clickable to bring up more information. There's going to be a lot of names, so I'm trying to keep the actionscript concise. The code is shown below in a simplified form, but essentially I have created a variable for the hexadecimal color, and I have created a function which will change the text color of each of the name buttons. This works, I have tested it. But, I don't want to have to tell the function to run for every single name button

(eg. changeColor (option1 , testColor);
changeColor (option2 , testColor);
changeColor (option3 , testColor);
etc..)

[code]........

View 5 Replies







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