ActionScript 2.0 :: Button On Main Timeline - Trace Shows No Output

Dec 10, 2010

I have a button on the main timeline that works fine, part of the code in the button:
for (b=1; b< dpth; b++) {
var lineMovedx = _root["Line"+b]._x;
_root["Line"+b]._x = lineMovedx-9000
trace(_root["Line"+b]);

It basically moves stuff a person draws off the screen when the button is pushed, there is another button that brings it back. But when I put that same button in a movieclip on the main timeline and change the code to this:
for (b=1; b< dpth; b++) {
var lineMovedx = _root._root["Line"+b]._x;
_root._root["Line"+b]._x = lineMovedx-9000
trace(_root._root["Line"+b]);

It no longer works and the trace shows no output, it basically loses it completely, I can't figure out why it does not work, it seems so simple.

View 1 Replies


Similar Posts:


Flash :: Mixing AS2 And AS3 - Trace Out The Current Label In Movie's Main Timeline

Feb 23, 2010

For the life of me I can't figure out how to trace out the current label in my movie's main timeline. This is in AS3. I have a button on stage that spans the timeline of the movie. It detects keypresses. I want to trace the current frame label that the play head is on.

[Code].....

I get "_level0" for this...and undefined for the rest. What am I doing wrong here?

View 1 Replies

Media Server :: Test My Movie - When I Press The Stop Button The Output Window Shows Me An Error Of "#1009 ?

Jul 17, 2011

I'm running FMS 4 Dev on my win XP SP3 machine, also running flash cs5 professional on same machine. I get the server admin screen to come up and it says it's running. I'm using a tut book on FMS and trying to run the first script in the book. It's long but I'll add the script at the bottom so you can see what i'm doing. In the server app folder I placed another folder called vid2 with nothing in it just like the book told me to do. I wrote the script line for line out of the book. When I test my movie it lays out my video window and buttons. It diplays my ugly mug on the screen. when I press the record button it does nothing. when i press the stop button the output window shows me an error of "#1009 can't access properties or methods of a null object". I assume that this is telling me I do not have a net connection.
 
when I types in the example it had an IP address in the code.How do I know the correct IP addy to my dev server? If I'm doing development and testing on the same machine do I even need to know this?  2) How will what I'm doing now differ from leasing space from an FMS provider?

the script:
 
package{        import fl.controls.Button;    import fl.controls.TextInput;    import flash.display.Sprite;    import flash.net.NetConnection;    import flash.net.NetStream;    import flash.events.NetStatusEvent;    import flash.events.MouseEvent; [code].....

View 2 Replies

ActionScript 2.0 :: Modifiy The Global Trace Function To Output The Current Time Of A Trace Action

Nov 9, 2011

I've been playing with prototype a bit and I've noticed that either it isn't as static as it should be or that some functions are protected from altering, or that in some cases the prototype actually extends a function. For example, I was trying to modifiy the global trace function to output the current time of a trace action, something like this :

Code:trace("lulu"); // output 12:48:17.286 lulu I DID achieve something close to it, but it seems that I haven't actually modified the global trace function, but rather it's "_root" counterpart,

[Code]...

View 3 Replies

ActionScript 3.0 :: Trace Doesn't Output Anything In The Output Window Anymore?

Nov 20, 2009

I'm quite new to AS3 (coming from php/c#) and like it very much. My problem: trace doesn't output anything in the Output window anymore?!

View 2 Replies

ActionScript 3.0 :: Trace Doesn't Output Anything In Output Window Anymore

Nov 20, 2009

I'm quite new to AS3 (coming from php/c#) and like it very much.My problem: trace doesn't output anything in the Output window anymore?!

View 3 Replies

ActionScript 2.0 :: Link Input Text To A Variable And Output That Text To The Output Window Using Trace

Jul 22, 2005

I'm teaching myself ActionScript and the book I'm reading just got into input text capabilities. The book shows me how to link input text to a variable and output that text to the output window using trace. My question is: how can I display the text that the user input onto the actual movie. For example... if I wanted the visitor to type their name into the input text box and click Submit and then a phrase shows up with their name such as "Hold on Name, my site will be done soon." How do I reference that variable and have it actually display in my movie?

View 5 Replies

ActionScript 2.0 :: Link A Button Thats Embedded In Frame 2 (music Page Timeline) To A Frame In The Main Timeline?

Nov 22, 2011

How do I link a button thats embedded in frame 2 (music page timeline) to a frame in the main timeline ( frame 3= biography page)? Both pages are on the same scene with link buttons embedded in each page independent timeline.

View 1 Replies

IDE :: Output Window Shows Access To Undefined Property Root?

Mar 25, 2009

I created a new slideshow in flash CS3 - AS3 but my code that I had for xml caching is barking at me and I am not sure what to do. The output window shows access to undefined property root.


[code]...

View 2 Replies

ActionScript 3.0 :: Trace Can Not Output Anything

Sep 17, 2011

I'm new to flash but I have over 15 years in software and 20 in IT.In everything I have worked with so far in Flash I've used trace( message ) to put a message in the output window. Then it just stopped.

View 4 Replies

ActionScript 3.0 :: No Trace In Output Panel?

Jul 27, 2010

I've never had this happen before and it's stumped me...yesterday the output panel stopped outputting traces ie. 'trace("hello"); is not working! The Omit Traces in teh Publish Settings is not ticked...I'm wondering whether i have accidentally pushed a short cut key which stops this functioning?

View 1 Replies

ActionScript 3.0 :: How To Trace Output Of One Value In XML File

Mar 12, 2011

I'm trying to trace the output of one value in my XML file:
Code:
<advertList>
<ad>
<name>AD0</name>
<picture>ad0.jpg</picture>
<caption>This is Ad0</caption>
[Code] .....

It's giving me the Error
TypeError: Error #1010: A term is undefined and has no properties.
at Function/<anonymous>()
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at flash.net::URLLoader/onComplete()

View 4 Replies

ActionScript 3.0 :: Starting The Main Timeline With A Button?

Feb 17, 2009

I am just about to give up on this whole as3 thing altogether. It is so complex that it is becoming prohibitive for designers, event technical ones ike me (I program easily in perl/php/javascript/sql). All I am trying to do start the main timeline from a button. The button's "up" state is also a movie clip.

Here's the process I am looking for:

1) the main timeline progresses until a certain point where I have inserted a stop();

2) I then display a "continue" button (which is an animated movie clip).

3) the user will "click" the button and the main timeline continues.

My simple Code:

this.stop();
function closeIt(event:MouseEvent):void
{

[code]....

My problem: when the button is clicked it just starts the button over again.

View 5 Replies

ActionScript 2.0 :: Button In MC Load Swf In Main Timeline

Jul 30, 2010

I've a problem about AS2 on button within a MC.

In my working flash, there are 2 MCs

1. a MC called content, full size as the movie, act as a blank platform to load external swf

2. another MC button containing a button, click to loadMovie, placed on top of MC content

I'd like to click the button in button to load an external swf in content.

The script I added on button in MC2

Code:
on(release){
loadMovie("XXX.swf", this.content);
}

[Code]....

View 6 Replies

ActionScript 3.0 :: Button Refer To Main Timeline?

Dec 17, 2008

I have a movie Clip on my main timeline and with in that movie clip is a button. That button has a CLICK event that I want o go back and refer to a "frame" on the main time line. How would I go about doing that?

Here is what I thought I should do

import flash.events.MouseEvent;

WebSitesBtn.addEventListener(MouseEvent.CLICK,WebDesignBtnClick);
function WebDesignBtnClick(event:MouseEvent):void{
_parent:gotoAndStop("Web Design");
}

"Web Design" is the Frame Label which I want to refer too

what I am missing or how I can properly refer to the main time line?

View 1 Replies

Button In Mc To Display Image On Main Timeline

Nov 10, 2009

I have a movie clip (mc_menu) that sits on the main timeline. Inside mc_menu I have several buttons that display items inside the mc. I also need to display an image on the main timeline. I have converted the image to a movie clip (mc_01). I am using AS2.

View 2 Replies

Professional :: Link A Button To Main Timeline?

Jun 19, 2010

i want to link a submit button in a movie clip to the main timeline, any ideas of how to do it?

View 15 Replies

ActionScript 2.0 :: Code A Button In The Main Timeline?

Oct 6, 2009

i need to code a button in the main timeline and this is the code im using:

ActionScript Code:
stop();
stuff = 0;
day = 1;
money = 50000;

[code]....

There is an error with line 9- the one in bold. its a syntax error- but whats wrong with it!

View 9 Replies

ActionScript 3.0 :: Hide Button From Main Timeline In MC?

Jan 9, 2010

I'm pretty new to flash and i'm trying to figure out how to hide a button that is on the main time line in one part of my movie clip. I tried doing "btn_return.visible = false" on the mc but its coming back saying btn_return is undefined.

View 9 Replies

ActionScript 2.0 :: Button Control Over Main / Sub Timeline

Jul 1, 2004

I have 2 scene, using button to swap in between file. If the button is in maintime line i can swap in between but my button is inside a movieclip in scene_1. After I click it reload the scene_1 and my script on button is:
on (release) {
nextScene();
}
Is it using
_root or
this.(dot)
.

View 6 Replies

ActionScript 2.0 :: Move It From Button To Main-timeline?

Jul 21, 2008

I am so frustrated now - I'm trying to clean up my code, but I just don't understand this issue.

I understand that on(release)[code]...

- But there are two things I just don't manage to convert;

1) How do I move the following from the btn_volumeSlider to the main-timeline?[code]...

View 3 Replies

ActionScript 2.0 :: Button Control Over Main/sub Timeline?

Jul 1, 2004

i hav 2 scene, using button to swap in between file.if the button is in maintime line i can swap in betweenbut my button is inside a movieclip in scene_1. After i click it reload the scene_1,and my script on button is

on (release) {
nextScene();
}

[code].....

View 5 Replies

ActionScript 3.0 :: Getting Output With Array Function And Trace?

Oct 12, 2011

I'm working through some tutorials from my instructor to eventually build a simple e-com website for a state park. Basically, I'm using the two as3 files shown below and trying to get "bob" in my output with an array function and trace. Load store function is intentionally coded out. When I test project, nothing comes up in output, and I have no errors.

Main012.as:
package {
import flash.display.MovieClip;
public class Main012 extends MovieClip {
public function Main012() {
[Code] .....

View 3 Replies

ActionScript 3.0 :: Trace Value And Capture Output Sent To TextFields?

Feb 28, 2012

I am not sure even what to call this but if I have set a text field value and other various values with functions in AS3 to where I can trace the values in the output panel. How do I then capture that data to be sent to fields in a shopping cart? Make sense?

View 4 Replies

Trace Statements Not Shown In Output Window

Sep 24, 2009

They are showing up in the flashlog, and eclipse LogWatcher, but not Flash CS4's OUTPUT window.

View 1 Replies

ActionScript 3.0 :: Trace Name Of Function To Output Panel?

Jan 10, 2010

I don't have any practical need for this but just for learning purposes, is it possible and how to trace the name of the function to the Output panel?

View 6 Replies

Linux :: Flash Trace Output In Firefox?

May 5, 2009

I'm developing an applications which I've got running on a server on my linux desktop. Due to the shortcomings of Flash on Linux (read: too hard) I'm developing the (small) flash portion of the app in Windows, which means there's a lot of frustrating back and forth. Now I'm trying to capture the output of the flash portion using flash tracer and that is proving very difficult also. Is there any other way I could monitor the output of trace on linux?

View 6 Replies

ActionScript 2.0 :: Load Xml - Trace The Correct Output

Aug 23, 2005

why this works

[Code]...

View 1 Replies

ActionScript 2.0 :: Type Of Variable In The Output With The Trace()?

Feb 12, 2008

i need to know the type of variable in the output with the trace(), so it could be something like so

[AS]var outputVar:String = new String();
outputVar = "this is a string";
trace (outputVar == String);[/AS]

well, i thought this was possible, but something must be wrong...

View 7 Replies

ActionScript 3.0 :: Trace Leaving Nothing In Output Window

Apr 13, 2011

I am extremely new to as3 and just have started coding in as3. I have the following code in a001.as file
Code:
package {
import flash.display.Sprite;
public class FirstCode extends Sprite {
public function FirstCode() {
trace("yes");
}}}
It seems extremely simple and I feel very positive that there is no error in this code.

And this line in a001.fla
Code:
import as3.a001;
The .as file is in as3 folder so I think the import should work fine. The one (and only) problem (that could arise) is that the trace leaves nothing in the output window. I tried various other codes instead of this but to no avail. None work. Its just a blank screen. By the way I have Flash CS4.

View 3 Replies







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