ActionScript 2.0 :: News_selector.selectedIndex Bit Is Showing As Undefined In The Debug Window?

Jul 23, 2004

I've got a combo box in my movie (called news_selector), whenever the selection of the combo box changes, I want to do something. Here's my code for the combobox so far...

Code:

on(change)
{
trace("News feed changed to: " +news_selector.selectedIndex);[code].....

The problem is that the news_selector.selectedIndex bit is showing as undefined in the debug window, and thusly the if/else statements are ignored completely.

View 1 Replies


Similar Posts:


ActionScript 3.0 :: The Debug Window Suddenly Stopped Showing Up?

Nov 28, 2009

I've been using Flash cs3 for several weeks successfully and tonight the debug window suddenly stopped showing up.

View 1 Replies

Flex :: Unable To Bind The SelectedIndex Of A DropDownList To The SelectedIndex Member Of A Bindable Class

Feb 8, 2012

I am unable to bind the selectedIndex public property of a spark DropDownList to it's original source in the view's presentation model.

For the purposes of replicating this issue with as few lines as possible I have two views, and one presentation model. The code follows.

Main.mxml
<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"

[code]...

Debugging the application I find that selectedIndex in the presentation model always remains at the default value assigned regardless of which item I selected from the DropDownList. For the sample code above this is -1.How can I bind the selectedIndex in the presentation model such that it is updated appropriately when the selected item DropDownList changes?

View 1 Replies

Actionscript 3 :: Flash Is Not Showing Errors/Stacktraces In Debug Player

Jul 29, 2011

I am trying to debug application which fails on me silently online. I am a 100% certain that I am running the flash debug player. To even make sure I am not losing it, i throw an Error ON PURPOSE. But flash shows not a single stracktrace in the browsers. I am kind of close of losing it. Any clues ? I am trying this on chrome, and firefox. WTH? Compiling with FDT, debug mode, even set the compiler argument debug=true. This is normally not the case.

View 3 Replies

CS4 :: Flash Debug Window Can Not Show Anything

Jan 13, 2009

We have Flash CS3 and CS4.When I open a simple file with a trace it will show in CS3,but the output window in CS4 keeps empty.[code]...

"Adobe Flash Player 10 couldn't connect with debugmode or anlalyse" (translating it from Dutch)

View 1 Replies

Runtime Error Window Fails To Pop Up In Flash Player 10.3.181.34 Debug

Jul 6, 2011

I've installed the latest debug version of Flash player plugin for Mac OS X. Diagnostic page [URL] confirms that the version of Flash plugin detected is debugger one. I'am also able to debug applications using Flash-builder debugging tools. But no runtime error pop-ups are shown during browsing. Does anyone have the same problem? Does anyone know how to fix this strange behavior?

I've tried to uninstall the player using this application [URL] and reinstall Flash player again, but no luck.

UPD1: I've created additional user account and found out that error pop-ups are displayed successfully when switched to that account. So it's likely user-profile configuration issue.

View 1 Replies

Flex :: Flash Builder 4: Variable Not Displaying In Debug Window (Variables Tab)

Dec 15, 2011

In my flex 3.5 project, I have a class (MyItem) extending Canvas. In this I have declared a private variable named itemInfo which is type of ItemInfo (which is another subclass of Canvas).

I wrote code to hide/show the iteminfo when the mouse is over/out of MyItem. I am not getting any error but it is not showing the itemInfo as expected, when debugged the code, surprisingly the variables tab in debug window does not have the variable itemInfo at all.

I have declared a dummy:int variable and it is also not visible.

View 2 Replies

Runtime Error Window Fails To Popup In Flash Player 10.3.181.34 Debug?

Oct 27, 2011

I've installed the latest debug version of Flash player plugin for Mac OS X. Diagnostic page [URL]that the version of Flash plugin detected is debugger one. I'am also able to debug applications using Flash-builder debugging tools. But no runtime error pop-ups are shown during browsing.I've tried to uninstall the player using this application [URL] and reinstall Flash player again, but no luck.

UPD1: I've created additional user account and found out that error pop-ups are displayed successfully when switched to that account. So it's likely user-profile configuration issue.

View 5 Replies

ActionScript 2.0 :: XML Attribute Showing Up As 'undefined'

Oct 9, 2006

I am trying to access a file via XML in Flash 8, but I cannot even get it to show up in my output window. Below is the XML and the Flash code. Everytime I get an 'undefined' in the output window. I want the text 'audio1.wav' to display in the output window.

ACTIONSCRIPT BELOW
var templateXML:XML = new XML();
templateXML.ignoreWhite = true;
templateXML.load("template.xml");

[code]....

View 2 Replies

ActionScript 2.0 :: XML Attribute Showing Up As 'undefined'?

Dec 4, 2006

I am trying to access a file via XML in Flash 8, but I cannot even get it to show up in my output window. Below is the XML and the Flash code. Everytime I get an 'undefined' in the output window. I want the text 'audio1.wav' to display in the output window.

ACTIONSCRIPT BELOW
var templateXML:XML = new XML();
templateXML.ignoreWhite = true;

[code].....

View 2 Replies

Showing Content On 100% Browser Window?

May 10, 2009

I am building a portfolio site, and I want my content to occupy all the browser window.

Like this site:
http://********theglass.com/
[URL]

I know GAIA have the ability to do this but I don't know how to use it, and the more I look to it, the more I think it will be overkill to use on my project.

I want my background to occupy 100% of the browser window and have the content to be centered.

Is there a much simpler way to do that without having to do it in a framework?

View 15 Replies

ActionScript 3.0 :: Flash Could Not Connect To The Debug Player - Debug Session Will Terminate?

Apr 29, 2011

In CS5 I get the above message. I need to debug so it's very important. Anything I need to do?

View 2 Replies

IDE :: Showing Content On 100% Browser Window - Without Using GAIA?

May 11, 2009

I am building a portfolio site, and I want my content to occupy all the browser window. [URL] I know GAIA have the ability to do this but I don't know how to use it, and the more I look to it, the more I think it will be overkill to use on my project. I want my background to occupy 100% of the browser window and have the content to be centered. Is there a much simpler way to do that without having to do it in a framework?

View 2 Replies

IDE :: Debug Mode No Longer Providing Debug Info?

Dec 21, 2009

When I first downloaded Flash CS3 Professional, I was able to enter an exceedingly useful debug mode by compiling using ctrl+shift+enter instead of ctrl+enter. I could toggle break points, step in, step over and view values stored in variables at a whim.

I must have accidentally toggled some option somewhere, because this interface no longer shows up. Instead, the only extra interface I get is the output menu with the following text "Attemping to launch and connect to Player using URL <file path> [SWF] <file path> - 71984 bytes after decompression" and while the swf does halt if the as3 code reaches a break point, it doesn't tell me which break point nor give me any options to progress the flow (not even through the pull down menu I have to utilize in order to end the so called debug session).

View 2 Replies

ActionScript 3.0 :: Showing Trace From Output Window On Stage?

Mar 4, 2010

I am currently developing a flash application that would allow a user to control a movieclip on the stage using 2 keyboard inputs (like turning 2 knobs in order to align something).I have it set up that on the 2 keyboard inputs, the movieclip moves.What I am looking at doing is using trace statements that I use to track the position of the movieclip, which is just a simple black dot, and having the values of the trace statement show up on screen in 2 dynamic text fields, after being rounded to the nearest whole integer. The dot is in the movieclip entitled mCoordPlane.My script is below:

stop();
mAligned.visible=false;mNotAligned.visible=false;
var letterK:Boolean=false;var letterJ:Boolean=false;var letterD:Boolean=false;var letterF:Boolean=false;[code]......

View 6 Replies

Flex :: Adobe Title Window Showing Mirror Image Of Itself?

Jan 6, 2011

I have a flex 3 application with 2 titlewindows. When I compile it with the flex 4.1 sdk in flash builder, the titlewindows show up as mirror images of themselves with all text invisible (i.e alpha = 0).

View 1 Replies

Remove Built In Delay On Showing Flex Title Window?

Mar 30, 2011

The flex title window component is nice and all, but before it shows up it insists on blurring out the background of your window if it's set to modal. What if I want it to just show up immediately or at least speed it up so that the user doesn't have to wait around to enter data. Am I going to have to build a custom component based on TitleWindow to get this or not have it be modal? If I were to do that could I extend current TitleWindow or just copy out the source directly?

View 2 Replies

Flash :: Debug An Inner Swf That's Loaded From A Non-debug Outer Swf?

Apr 4, 2009

I have a swf that I need to attach the flex builder debugger to. I have full access to the source code, and can make a debug build of this swf.

However, this swf is being loaded by a non-debug build of another swf which I don't have source code to, and can't make a debug build with.

I've tried mocking this up with two very simple swfs, and while it works fine when both are debug builds, when the outer swf is a non-debug build, while I can get the debugger to connect, I don't get trace messages, breakpoints don't work, and it seems to lock up the flash app.

View 2 Replies

Change Flash Version From Non-debug To Debug?

Jan 3, 2012

I have flash installed on my mac 10.6.7 and it's version is 11.1.102.55 (Non-debug).How do i convert it into debug.

View 1 Replies

ActionScript 2.0 :: When The Link Is Clicked, It Pops Up A New Window - UNDEFINED At The End?

Jun 25, 2010

When the link is clicked, it pops up a new window with the path of the fla file in the address bar and an UNDEFINED at the end...

Code:
on (release) {
getURL(_root.clickTag, "_blank");
}

With this AS on the button the link does not pop up at all

Code:[code]...

I've used clickTag, clickTAG, ClickTag, and ClickTAG all with the same results... not that it should matter as long as the flash and html match.I've tried to add the clickTag in the html like this

HTML Code:[code].....

And none of that is working so maybe SWFobject would work?

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

Eclipse :: Eclipse - Compiling A Debug Version Without Opening The Debug Perspective?

Dec 27, 2011

I've migrated to FDT from flashdevelop and kind of have a hard time getting things to work the way I'm used to. In Flashdevelop, you could easily choose if the compiled swf was a release or debug version. In FDT however, it seems like there is no way to compile a version that has debugging information without it automatically opening up the debug perspective with a ton of debug windows, a profiler and actually entering debug mode.

As an extra plus, I keep getting a message saying "This feature is only available in FDT Max", although from what I know the debugger is included in the free version. Is there a way to do what I'm trying to do or should I just get used to this new way of working?

View 2 Replies

Flex :: Set SelectedIndex For DownDownList?

Sep 26, 2010

I have an Array Collection as follows

var myArr:ArrayCollection = new ArrayCollection([
{label: "label1", data: "data1"},
{label: "label2", data: "data2"}]);

[Code]....

How to set the selected item for myDDL based on an item id(myID)? I tried something like:

selectedIndex = {myArr.getItemIndex(myID)}

View 1 Replies

Flex :: Why Does TileList SelectedIndex Not Get Updated

Aug 14, 2009

In the code below, the presentedAlbumIndex is used to control the selectedIndex of the TileList. Item "five" is initially selected. Whenever the button is pressed the first item in the array is deleted, and the presentedAlbumIndex is decremented.

In theory, the selected index should stay with "five" every time the button is clicked (until "five" is itself deleted). It works this way for the first button press. However, on the 2nd button press the highlighting changes to "six" for some reason. Also, the TileList selectedIndex is always one behind.

I tried looking into ListBase and monitoring selectedIndex. It looks like the selectedIndex is updated initially to the correct index, but then it reverts back at some point to the correct index+1. I do not know why it's setting back.

It seems it's due to the fact that I am doing a data provider delete and index change in the same operation.

Is there some function in TileList I could override to keep selectedIndex up to date?

Steve

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
layout="absolute"

[Code]....

View 1 Replies

Flex :: Getting SelectedIndex For SkinnableDataContainer / List?

Apr 9, 2010

Is there something like selectedIndex for SkinnableDataContainer? It doesn't seem to be one of the available properties.

View 2 Replies

Flash :: Changing SelectedIndex From File?

Mar 11, 2011

I have a simple button function that changes the selectedIndex on a view stack without using the menu bar component. I call the function from the click property on the button and pass an int as the index I want to jump to. When I had the code on the application MXML file everything worked fine. After moving my actionscript to a separate file, I get access of undefined property errors:

protected function changeView(index:int):void
{
myViewStack.selectedIndex = index;

[code].....

View 2 Replies

Flash - Changing SelectedIndex From AS File?

Nov 26, 2004

I have a simple button function that changes the selectedIndex on a view stack without using the menu bar component. I call the function from the click property on the button and pass an int as the index I want to jump to. When I had the code on the application MXML file everything worked fine. After moving my actionscript to a separate file, I get access of undefined property errors:

protected function changeView(index:int):void
{
myViewStack.selectedIndex = index;
}

How do I get the .as file to recognize the myViewStack component? Do I need to reference Main.MXML somewhere in the .as file? Thanks.

Here is the rest of my code:

<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"

[code]....

And finally the .as files with the function in question:

import mx.containers.ViewStack;
protected function changeView(index:int, myViewStack:ViewStack):void
{
myViewStack.selectedIndex = index;
}

View 3 Replies

ActionScript 2.0 :: Error - Set The SelectedIndex - Cannot Change Property

Jun 30, 2004

I am having a real problem with one of my components. I have a list object and I need to set the selectedIndex. Now I would think this would be easy, but it appears that for just this instance the selectedIndex property is read only. I have set the property for other instances, and I can read the property for this instance, but I cannot change it.

View 1 Replies

Flex :: What's The SelectedIndex Value Of A Dropdownlist Control When A Prompt Text Is Set

Feb 3, 2011

When using a dropdownlist in flex I'd like to know the exact index value when the prompt is initialized in it.

View 1 Replies

Flash - Spark List SelectedIndex Doesn't Update?

Sep 8, 2011

when i use nextSlide() and prevSlide(), which are executed when i click on two buttons. SelectedIndex works when i click on the elements in the List. What am i doing wrong? do i have to dispatch some events? Are there any tricks to doing it with buttons?This is my playlist class

public class Playlist extends List
{
private var dispatcher:Dispatcher;

[code]......

View 2 Replies







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