ActionScript 2.0 :: Refreshing The Value Of Variable From A LocalConnection Received Value?

Dec 5, 2009

I�m trying change the value of a main timeline variable, properly a string variable, the new value is being sent from another flash file through LocalConnection, the receiver main timeline code is:

Code:
stop();
var menuactivo:String;
fscommand("allowscale", "false");

[code]....

So, as you see in the code, I need to refresh the value of the menuactivo variable using the value received at the LocalConnection onRecibir method, how do I do this?? am using a couple of dynamic texts in order to display the value received and to see if the value of menuactivo changes when my_str is received, but I just can�t refresh the value of menuactivo?

View 0 Replies


Similar Posts:


Flash :: LocalConnection Between Swf Sending Delay & LocalConnection Sniffer Tool

May 6, 2011

The first one (FLEX application) sends a message on a dedicated LocalConnection to a second one (Flash application). The Flash then answers by sending a message on another dedicated LocalConnection. This message is not directly received by the FLEX and the delay is at least 30s, up to 1 or 2 minutes! It seems the issue only occurs with Flash Player >= 10 and it never occurs with Chrome.

I didn't find anything on the web concerning a similar issue nor something in Flash Player release notes. Did someone already have this kind of problem?

By the way, is there any tool that can be used to sniffer LocalConnection communications?

Additional information:

swf are located in different frames swf are embed with swfobject I tried to delay the Flash sending, I tried to create another LocalConnection dedicated to this call but I always had same result: for all calls, the FLEX method is called after the same delay. I also put a timer in FLEX to periodically log to see if there is no background process delaying the method processing but everything seems fine

View 1 Replies

ActionScript 3.0 :: Why Isn't Event Received

Apr 1, 2009

Main class:

[Code]...

View 3 Replies

ActionScript 3 :: Custom Event Not Being Received

Oct 20, 2010

ActionScript 3, just learning AS3 but know a handful of other languages. What would cause an event that the listen call executes without throwing an error and was successfully dispatched, to not be listened to?

Dispatch call (this runs ):
private function HandleMouseClick( e:Event ):void{
if ( m_MouseState == MOUSE_STATE_SELECTED )
m_MouseState = MOUSE_STATE_NONE;
else {
m_MouseState = MOUSE_STATE_SELECTED;
[Code] .....

The "Squares" are childed to a checkerboard that is childed to my main app ( which extends sprite ). the checkerboard displays and has all the behaviour I want, but when I click a square, the click event fires and dispatches the custom event, but the custom event is never received. That should be all code needed, the rest of the code is just to create a grid and put random numbers in the squares, which works fine. According to every website that has a "custom event tutorial" it would appear that i have everything needed to listen to the event, its just not happening.

View 1 Replies

ActionScript 2.0 :: Breaking A Received String From PHP?

Jul 23, 2006

I have written a php code to echo a string of all the fields' contents of a table (select * from x) now I want flash to display the table in a flash move. website where I can find a tutorial on how to receive and parse such string?

View 2 Replies

ActionScript 3.0 :: PHP Response Not Received Back By Flash?

May 11, 2009

I have this really weird problem. I'm making several calls to different php files (located on another server with crossdomain.xml changed so that it is allowed) and need to receive some response back in flash and work with the data received.The first call is done by the following code:
 
ActionScript Code:var urlRequest:URLRequest = new URLRequest("http://otherserver.com/assign.php");
var loader2:URLLoader = new URLLoader();

[code].....

View 2 Replies

Professional :: Mouse Over Or Roll Over Be Received By MCs Beneath Another MC?

Dec 30, 2010

I'm guessing the answer to my question is no, and the solution lies in the hitTest method.  But just to be sure . . . if I create a new movie clip and then drag that movie clip over other movie clips that have MOUSE_OVER listeners is there anyway that those clips will get the mouse over?

View 3 Replies

ActionScript 3.0 :: Formatting Received Data From DataProvider

Nov 28, 2011

I have got question,after extracting data from datagrid i want it to form into xml, and trace it in output window, in a shape like this:

[Code]...

View 1 Replies

Flex :: File - Saving A Bytearray With Php Received From Air App?

Apr 5, 2011

I have an Air application with remote service in codeigniter.I'm trying to save a bytearray that I received from the Air app but when I save the data I get empty files with the correct filename.So there must be something wrong with my bytearray or the way I save the data.Does anyone have an idea what I'm doing wrong?I've debugged the Arraycollection I sent and the bytearray is definitely in there.

public function uploadImage($image)
{
foreach($image as $img)

[code].....

View 1 Replies

ActionScript 3.0 :: Event Just Doesn't Seem To Be Either Triggering Or Received

Nov 25, 2009

I'm attempting to use a custom event and cant figure out what I'm doing wrong.The event just doesn't seem to be either triggering or received.I borrowed the code from the internet, but I only know enough about custom events to sort of figure out what the code is doing.I have a movieclip inside of another movieclip.I need to close the child movieclip when a button on the child mc is pressed.I'm attempting to listen for a custom "close button clicked" event on the parent mc.[code]again...the event just never happens.I never see the output of the trace in the parent movieclip.I do see the output of the trace "OK button pressed" from the child movieclip though.

View 1 Replies

ActionScript 3.0 :: PHP Response Not Received Back By Flash

May 11, 2009

I'm making several calls to different php files (located on another server with crossdomain.xml changed so that it is allowed) and need to receive some response back in flash and work with the data received.

The first call is done by the following code:

PHP Code:

var urlRequest:URLRequest = new URLRequest("http://otherserver.com/assign.php");
var loader2:URLLoader = new URLLoader();
function selectHandler(event:Event):void

[Code]....

After the button is pressed and the php call is made, the completeHandler function is never called. But when I test it in Firefox (I have Firebug installed), it shows me that the call is made i.e:

[URL]

View 1 Replies

Actionscript :: Observers Has Received Notification And Finished Work?

May 31, 2011

In PureMVC / ActionScript, after sending out notifications using send Notification or notify-observers, how do I make sure all the observers has received the notification and finished the work?On the other words, is sendNotification in synchronized way.

View 1 Replies

Actionscript :: Error: Asynchronous Event Received Out Of Order

Sep 8, 2011

I am writing test cases to test function with flexunit 4. I am using aysnc method.
But when I add two or more asyncHandlers to the instance. I meet the problem: Error: Asynchronous Event Received out of Order.

Code snippets:

[Test(order=1, async, description="synchronize content on line")]
public function testSynchronizeContentOnline():void
{
var passThroughData:Object = new Object();

[Code].....

View 2 Replies

Actionscript 3 :: AIR ReadObject() From Socket - Check All Data Has Been Received?

Sep 8, 2011

If you write a simple object to a socket:

var o:Object = new Object();
o.type = e.type;
o.params = e.params;
_socket.writeObject(o);
_socket.flush();

Then on the client do you simply use:

private function onData(e:ProgressEvent):void
{
var o:Object = _clientSocket.readObject();
}

Or do you have to implement some way of checking all of the data has been received recieved before calling .readObject()

View 4 Replies

ActionScript 2.0 :: Submitted Form Is Not Received To The Specified Email Address?

Sep 28, 2004

I'm creating a website for a friend which it's being made using Dynamic Texts (he wants different switchable languages).Problems come when submitting the Form... I've used the same Form model (formmail) for other websites which did not use any Dynamic Text and they worked without problems.

The exact problem is that the submitted Form is not received (don't think it's even sent) to the specified email address. However, if the same website does not contain any dynamic text, then the form works properly and the query is received at my mailbox.

View 3 Replies

ActionScript 2.0 :: Allow An Object To Be Manipulated By The Sound Received In The Microphone?

Mar 18, 2007

i have the actionscript to allow an object to be manipulated by the sound received in the microphone:

m = Microphone.get();
attachAudio(m);
m.setUseEchoSuppression(false);
onEnterFrame = function () {
circle._xscale = circle._yscale = m.activityLevel+50;
};

but i need the script to allow the function that when sound is made it triggers a jump to a different frame.

View 5 Replies

ActionScript 3.0 :: Datagrid To Display Data Received From An AMFPHP Function?

Oct 5, 2009

I'm using a datagrid to display data received from an AMFPHP function. Here is a pared down version of this:

[Code]...

View 3 Replies

Media Server :: Exactly To Work With A ByteArray Object Received By FMS From A Client?

Jun 8, 2010

It's a bit vague - the whole thing with AMF. On one hand we have a client capable of serializing and sending everything from integers to XML documents and ByteArray streams, but on the other hand we have the FMS with a JavaScript host. Where is the bridge? :-) I mean how does one work with the objects, in particular, a ByteArray, received through the [generic] wire? It's easy with numbers and strings, but no word on more complex objects.

View 2 Replies

Actionscript 3 :: Error 1026 Received In Even With The Constructor Being An Instance Method

Mar 5, 2011

I have got a problem with my actionscript class. This is my code:

package {
import flash.display.MovieClip;
public class Main extends MovieClip
{
public function Main()

[Code]...

View 1 Replies

Flex :: Webservice Response Received But Not Bound To Event.result?

Apr 2, 2011

I get the webservice(spring WebService) response properly ,but the event.result object is null.I can see the SOAP response body in the event.message.body variable.

## Soap Response ##
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
<SOAP-ENV:Header/><SOAP-ENV:Body><getUserUserTasksResponse xmlns="http://ws.burr.com/BurWS/9_0">
<foundTasks>

[code]...

View 1 Replies

Actionscript 3 :: Socket Data From Node.js Is Not Received In The Flash Client?

Dec 31, 2011

I'm having a problem to receive data from socket.io to Flash (actionscript).

I've tried:

Server (nodejs) socket.io :
var io = require('socket.io').listen(9000);
setInterval(function() {

[Code]....

Flash connects succesful to the server and trace "Connected to flash" but it cannot receive data.

View 2 Replies

ActionScript 2.0 :: XMLSocket Not Working - Get Data To Be Received By The Flash Application

Jul 14, 2009

I have a server written in C# (Visual C# .NET Framework), that I know for a fact works. When I run my Flash application, I am able to connect to the server (the server shows the message that a connection has been made), but I can't for the life of me get data to be received by the Flash application.

[Code]...

View 0 Replies

ActionScript 3.0 :: Pass The Metadata Information Received In The Following Code To Another Class?

Oct 27, 2009

Im trying to pass the metadata information received in the following code to another class. The below code generates a trace response of 162... so I am receiving the data I just need to be able to call the totalLength variable from another class with the same response of 162. I know this should be relatively easy...

package com.bit.net
{
import flash.events.Event;
import flash.events.EventDispatcher;

[code]....

View 1 Replies

ActionScript 3.0 :: Mask Mouse Events Only Received In Button Mode?

Jun 2, 2011

I have a display object that is set to mask another display object. I add a mouseEvent listener to the mask to listen to mouse events. It does not receive the mouseEvent unless I set its buttonMode property to true.

If the display object is not a mask, it receives mouseEvents with its buttonMode set to false.

Here is some fast example code. On the stage I have a circle that masks a square. if buttonMode of the mask is set to false, it won't receive mouseEvents.

Code:
circle.addEventListener(MouseEvent.CLICK, onClick);
square.mask = circle;
//if I set buttonMode = false, the mask (circle) won't respond to clicks.
circle.buttonMode = true;

[Code]....

View 3 Replies

Actionscript 3 :: Inherited A Class From EventDispatcher In Flash But Custom Event Not Received

Apr 7, 2011

I have a custom event that is dispatched when a slider is moved but I receive no event from inherited dispatcher class I created whereas I followed the same syntax as solution for My flash custom event doesn't trigger

[Code]...

View 4 Replies

Actionscript 3 :: Flash Builder Update Query - Channel Disconnected Before An Acknowledgement Was Received

Apr 1, 2010

I am trying to build my first CRUD application and cant get the update query to work. Here is the MXML and AS.

[Code]....

View 1 Replies

LocalConnection In Mac Browsers

Feb 21, 2008

I have a relatively simple localConnection between three swfs: one swf is an image gallery; another swf controls the playback of the image gallery; and the third displays xml-driven captions from the image gallery.Everything works flawlessly in a PC environment, on all browsers, using AS 2, flash player 9. But when I test in a mac environment, the captions will display on load, but it will no longer show if you refresh the page; only a cache clear and refresh will bring it back, but the same issue will happen again. The navigation doesn't work at all, ever (though the swf is loaded and visible).

View 4 Replies

Flash :: LocalConnection And DOM

Nov 29, 2009

I have a Flash object on my site, which has this code:

this.ld = new LocalConnection();
this.ld.allowDomain("*");
ExternalInterface.call("alert", this.ld.domain);

It alerts my domain successfully. However, what I want is to access the HTML DOM through this using LocalConnection and not ExternalInterface directly.

View 1 Replies

ActionScript 3.0 :: LocalConnection - Communicate From One SWF To Another

Apr 23, 2009

I'm having a little issue with LocalConnection - trying to communicate from one SWF to another. From my main SWF I've loaded an external SWF of same dimensions ( effectively replacing the main SWF). What I wanted was then to re-load the main SWF, but rather than have the main SWF play from the start, I wanted to go to a specific frame instead (I used a frame label called "myMarker"). Thought LocalConnection was the way to go to achieve this. Gave it a shot and it all works well locally BUT when uploaded to server it doesn't work, but throws the following error:-

[Code]..

View 1 Replies

ActionScript 3.0 :: LocalConnection Limitations?

Feb 12, 2009

limits to number of SWFs that can establish local connection on MAC? The architecture is: One Manager ("server") and N number of other SWFs that communicate with the manager.When I embed more than 8 SWFs (manager + more than 7 dependents) and attempt to establish connection between them - only first 7 dependent swfs are capable to communicate with the manager on MAC (both Safary and FF). The rest are ignored. It doesn't seem to be an issue on PC where I went up to 20 and it worked (with some quirks of course). Is it a native behavior on MAC?

I did not check if number of connections is at stake (as opposed to number of swfs). There are 14 connections all together when 7 dependents are involved.

View 1 Replies







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