Flex :: Method Doesn't Work When Being Called On ParentDocument?

May 8, 2010

I wonder is anyone can look at this code and tell me why calling the removeSelectedChild works when called from the same document, but returns the following error when called from the child document/component.

"ArgumentError: Error #2025: The supplied DisplayObject must be a child of the caller."

<?xml version="1.0" encoding="utf-8"?>

[Code]...

View 3 Replies


Similar Posts:


ActionScript 2.0 :: Function Called By SetInterval, But Doesn't Work?

Dec 14, 2009

I have a function ("advance_slideshow()") that ticks a slide show up by one, then it loops back at the end. It works when called from the key listener I set up for debugging. However it does not work when called from setInterval. I added a trace to the function to confirm that it was being called, which it is; it just doesn't work when called via the interval

Code:
//////////////////////////
/* IMPORTS AND INCLUDES */

[code].......

View 1 Replies

ActionScript 2.0 :: Hittest Nor Other Method Doesn't Work

Aug 20, 2010

So I'm doing this project for school and all, and I'm trying to do a htitest on an object. For some reason, it doesn't work. So I tried writing out my own method... Which halff worked, but wasn't as exact as it should've been.

Heres my code (Though I'm pretty sure somethings wrong with my MC, so i'll upload the main .fla file)

Code:
right = true;
left = false;
itemX;
itemY;

[Code].....

View 1 Replies

ActionScript 2.0 :: Random Method Doesn't Work In Firefox?

May 19, 2010

This movie is supposed to start on a random frame, but the code seems to get ignored in Firefox. I also have some weird behavior when i test it locally, but it works fine in IE8, Safari, and Chrome: [URL]

Here is the code:

i = Math.floor(Math.random()*3385);
gotoAndPlay(i);
//trace("Current Frame: "+this._currentframe);

The .fla can be downloaded here: [URL]

View 3 Replies

ActionScript 3.0 :: Calling A Method From Outside An Object Doesn't Work?

Oct 14, 2011

I am using the below package to play back a wav file. In my main file I create several of these objects, put them in an array, and then try to call
playBack().

Unfortunately it doesn't work. However, I can call playBack() from within the object, for example by having this object create a button.

Code:
package
import flash.display.Sprite;
import flash.net.URLLoader;

[Code]....

View 2 Replies

Flex :: Method That Gets Called Just Before Object Destroyed

Nov 19, 2009

Is there method that gets called just before object destroyed? So I can override it.

Like

protected override function beforeDestuction():void
{
trace("This object is about to be destroyed!");
}

View 4 Replies

ActionScript 3.0 :: Flash Cannot Access A Property Or Method - Tweening Doesn't Work

Aug 12, 2010

I've got on main timeline (on frame 10) buttons, when I click one of them it goes to its currentLabel"". On curerntLabel at frame20 "racerButton" where I've got some tweening. At currentLabel "boardButton" at frame30 I load external swf. The problem I've got is when I press any button everything works fine. But when I first press button "boardButton" at frame30 the ext.swf shows up fine, but when next I click the button "racerButton" at frame20 the tweening doesn't work there and it gives me error

[Code]....

View 1 Replies

Flex :: What Happens When The AddChild, Or RemoveChild Method Is Called On A DisplayObjectContainer

Jan 27, 2011

I would like to know the internals of that method, in other words what exactly happens when I call that method. If someone can explian it with a list 1,2,3... would be great. including events..

and the addElement method too, if is possible.

View 1 Replies

ActionScript 3.0 :: Drag And Drop Game - Splice Method Doesn't Work On Array

Jul 21, 2011

I have a drag and drop game. You listen to a sound for exampl "bread" You proceed to drag that mc to a box. If it is the right object I want to remove that mc and splice the array so it doesn't choose that object anymore. However I have notices two things.

When I splice(0) a specific element - then nothing works. When I splice the cuurent indexed element ie: the last element to get right - it doesn't actually remove it from the array. I have highlighted the key code parts.

[Code]....

View 3 Replies

Flex :: Cannot Access Constant Through ItemRenderer Using ParentDocument?

Jan 18, 2011

I have an itemRenderer inside a dataGrid, and I am able to access variables on the mxml file (in a *.as script file referenced from the mxml) using parentDocument. However, I am unable to access a constant in the same script file. If I change the constant to a regular var, I can access it. I created a getter function for the constant and it works, but why can't the constant be accessed directly?

View 1 Replies

Flex :: Know Difference B/w This.parent; This.parentApplication; This.parentDocument?

Jan 25, 2012

What is the difference between these three:

this.parent;
this.parentApplication;
this.parentDocument;

[code].....

View 2 Replies

ActionScript 3.0 :: Flex Doesn't Work The Way It Should?

Jan 28, 2010

I have 3 files. 2 actionscript files and a html file.I want the image to show up at the 0 X coordinate.It shows up at a non-zero position in the browser (firefox 3.*) after I compile everything with flex SDK and run the html file. BUG with flex? The embedded png image is 1019 pixels wide.

package
{
// first file.
import flash.display.Sprite;[code].....

View 2 Replies

Flex :: Flex S:datagrid Sorting Doesn't Seem To Work?

Feb 18, 2012

I'm using Flashbuilder 4.6 and can't get sorting of columns in my s:DataGrid to work, clicking on the columns does nothing. Can anyone suggest what is wrong?

[Code]...

View 1 Replies

ActionScript 3.0 :: Flash Publish & SWFAddress - Include The Swf With The Flash Method Swfaddress Doesn't Work?

Jul 27, 2010

I'm having a problem with the flash publish method and swfaddres.I've included the javascript of the flash pubblication in a new javascript file with the swfaddress in the same page.If i use swfobject for including my flash file in the swf, swfaddress works ok...if i include the swf with the flash method swfaddress doesn't work.Here the link: http:[url]......

View 0 Replies

Binding - Flex ChangeWatcher Doesn't Work?

Jul 9, 2010

I'm trying to implement a binding between some custom-built models and just beginning to dabble with the whole mx.binding.* collection. I tried this simple, stripped down example, but can't get the binding working correctly. Can somebody tell me where I'm going wrong?

[Code]...

View 3 Replies

Flex :: DropDownList Doesn't Work In New Window

Oct 29, 2010

In this code I'm creating a new window when I click the button. In the new window are TextInput and DropDownList components. When the new window opens, clicking the DropDownList does nothing - you have to click it a second time round to get it to open. However, click into the TextInput field first and then try opening the DropDownList works no problem.

Below is the code, or download the FXP file here.

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

[code]....

View 1 Replies

Flex - Httpservice Doesn't Work On Localhost?

Nov 7, 2010

I am making a very simple httpservice request w/ a php file that is on my remote server:

<?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"
xmlns:mx="library://ns.adobe.com/flex/mx"
xmlns:halo="library://ns.adobe.com/flex/halo"
>

[Code]...

When I run the resultant flash file on my remote server, it works 100% and test.text gets populated to "successful". However, when I run it on localhost test.text is still blank. If I check my network monitor in Flex, the httpservice was successful, so crossdomain.xml seems to be set right ...what am I doing wrong? I've been spinning my wheels for some time w/out a clue.

View 1 Replies

Flex :: Why Flash Firebug Doesn't Work

Nov 12, 2010

Why Flash Firebug doesn't work with flex 4.5?

UPDATE:

I have Flex 4.5 and in the main application, in the script tag I write:

import ominds.Firebug;

I use flash player WIN 10,1,85,3 Debug enabled. I export swf as 10.1.85 version.

And when I open the flashFirebug I get this: "No SWF files with the O-Minds package found, you should import the O-Minds package into your flash files. For more information visit: o-minds.com/products/flashfirebug"

View 3 Replies

Flex :: Image SmoothBitmapContent Doesn't Work?

May 10, 2011

recently I got a jagged image problem when scaling. I set my image components smoothBitmapContent true, and it works properly the first time, but if I reset the source, the images return jagged. It seems like the smoothBitmapContent property has been changed to false, but it doesn't work even if I set it to true in run time.Here's is my code:

<custom1:SmoothImage id="MJCard_3_36" x="286.5" y="56.65" scaleX="0.66" scaleY="0.83" smoothBitmapContent="true"/>
MJCard_3_36.source = seabedPicArr[index1-1][index2-1][index3-1];

I simply use a custom Image-extended class and switch smoothBitmapContent on, and I set the image's source in run time.

View 1 Replies

Flex :: RichText Doesn't Work With Bullets?

Jul 25, 2011

See the simple application created below. I have a RichTextEditor and a RichText component.The idea is to display whatever typed in the RichTextEditor in the RichText component. Everything else (I think) works except for Bullets! The conversion works as if bullets doesn't exists!

<?xml version="1.0" encoding="utf-8"?>
<s:Application width="100%"
height="100%"

[code]......

View 1 Replies

Flex :: TextArea Scroll Down Doesn't Work

Sep 1, 2011

I have a TextArea that shows the conversation from selected chat room. For valueCommit event I use: verticalScrollPosition = maxVerticalScrollPosition; And it works fine scrolling text to the bottom. However in one case it doesn't work as expected. There's verylittle text, so TextArea has no scrollbar and then I put a lot of text and a scrollbar is necessary. The text is scrolled almost to the bottom (still a few lines need to be scrolled down). I am pretty sure it gets maxVerticalScrollPosition as if there was no scrollbar. So the question is how can I wait with updating verticalScrollPosition with respect to TextArea's new size (that is now with a scrollbar). I tried calling validateSize and other methods that start with 'validate' but unfortunately with no luck. I also tried the old trick of putting caret at the end of text. So the TextArea's scrollbar makes a difference when getting maxVerticalScrollPosition and I need to update verticalScrollPosition once all measurements are done. I forgot to mention. I use htmlText.

View 2 Replies

Asp.net - C# WebServices And Flex RPC Session Doesn't Work?

Oct 10, 2011

look im facing a problem. I have .NET + Flex application. I have a component in Flex who uploads a .XLS file to the server. This component has a Progress Barand it updates its bar and the Label with the

[Code]...

View 1 Replies

Flex :: 4 - Component Move Event Doesn't Work

Apr 6, 2010

I have a CustomTextInput component based on TextInput (Spark) component. The instance of this class is placed on a popup window (TitleWindow). How can I capture the popup move (dragging the title) event inside CustomTextInput implementation?

MoveEvent.MOVE event of the CustomTextInput itself doesn't work. Of course, I can't access the parent popup window inside the component implementation, because it's a common component that can be used not only on the popup windows.

View 1 Replies

ActionScript 3.0 :: Web Service/Web Method Not Being Called

Jan 31, 2011

I am having some trouble with my flash application not calling a web service when displaying through a web server.

When I open the html page that embeds the flash file in my browser directly from the hard drive i.e the absolute path to the file. The flash file loads up calls the web service and displays the value returned from the web service.

However, when I open the html page through the web server i.e through localhost the flash file also loads up, but it breaks when calling the web service...it is as if the web method isn't being called.

Is this a problem with flash or maybe the web server configuration? I have changed my flash global security settings and everything to include my testing folder.

View 2 Replies

Flex :: Chrome: Flash Video Player Doesn't Work?

May 9, 2010

why my flash video player doesn't work in Chrome while it perfectly works in other browsers ? (Firefox and IE)

View 1 Replies

Actionscript 3 :: Flex Tree Itemclick Event Doesn't Work

Oct 19, 2010

i'm creating a reusable flex tree component. And i would like to stick in the itemclick funtion. So that when a user clicks anywhere on one of the tree's Branches. the branch expands.My problem is that i don't know how i can get the listener function to fire.What i would like to do is create the tree completely in as3. (no mxml). Normaly i set the itemClick on tree in the mxml. but i want to do this in as3. My component has alot more functions in it but i have deleted them so that it becomes easier to read. I Thought if i override the createChilderen function and add the eventlistener in there, that i would work. But no luck.

this is my code;

package
{
import mx.controls.Tree;
import mx.controls.listClasses.IListItemRenderer;

[code]...

View 1 Replies

Flex :: ButtonMode And UseHandCursor Property In DataGrid Doesn't Work?

Oct 28, 2010

If I set the properties of "buttonMode" and "useHandCursor" to true in DataGrid, it does not work as I expect. Only if I move the cursor to the edge between two rows, the hand cursor displayes.

What I expect is that no matter where the cursor is moved, it should always show hand cursor.

The following the itemRenderer:

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

[Code]....

View 3 Replies

Flex :: Autocompletion In FlashDevelop Doesn't Work In Included Files

Jan 18, 2011

Why doesn't autocompletion work for function's local variables in included *.as files? For example:

[Code]....

View 1 Replies

Flash :: Flex 4.5 IOS Mobile Project: SharedObject Doesn't Seem To Work

Oct 27, 2011

I'm trying to use a SharedObject in a Flex 4.5 mobile project. The SDK I'm using is 4.5.1, and the AIR version is 2.6.0. I'm trying to locally store user credentials for my application using this piece of code:

[Code]...

View 2 Replies

ActionScript 3.0 :: Flex Removing Duplicates From An Array Doesn't Work?

Sep 11, 2010

I've been trying to remove duplicates from an array for a while, or even preventing them, and I'm having nothing but trouble.There's a lot of code to go through.I'm creating an array with objects inside it like so...

Code:
private function getJsonResult(event:Event):void {
//ta.text+=http.lastResult;

[code].....

View 2 Replies







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