Error Creating Property OnConnect Of The XMLSocket?

Jan 5, 2010

I'm trying to stabelish a connection using XMLSocket:

var socket = new XMLSocket();
socket.connect("dyn.obi-graphics.com", 9999);
socket.onConnect = function(success)

[code].....

View 1 Replies


Similar Posts:


Media Server :: Main.asc TypeError Trying To Set A Shared Object Property In Application.onConnect?

Sep 30, 2009

Basically trying to update a "userlist" shared object everytime someone connects.Administration console live log reads:"Sending error message: ...main.asc: line 12: TypeError: this.usersSO has no properties"

I'm connected ok.  Here's the server code  Doesn't like "usersSO.setProperty()" call:
application.onAppStart = function(){ this.uniqueID=1; this.users = new Object();  this.usersSo = SharedObject.get("userlist", false); }

[code].....

View 2 Replies

ActionScript 3.0 :: Get At A Specific Property On A Xmlsocket Data Response?

Sep 18, 2009

I just caunt figure out how to get out a specific property on a response..for example my listner is

Code:
socketConnection.socket.addEventListener(DataEvent.DATA, recievedHelloBack);
my function is

[code].......

View 1 Replies

ActionScript 3.0 :: Creating Scrollbar - Error #1009: Cannot Access A Property Or Method Of A Null Object Reference"

Feb 8, 2009

I had created a loader which can load an array of images. However, when there are more images, the images actually got hidden as the size of the application is too small to accommodate all the images. I would need to create a scroll bar. I tried creating a
scroll bar but there were errors faced saying that "TypeError: Error #1009: Cannot access a property or method of a null object reference.". I am not really sure on how to do it,

View 3 Replies

ActionScript 3.0 :: XMLSocket Error #2048?

Aug 6, 2009

Im looking for a solution for the Error #2048 from Flash. I have a server program developed in Java using the class xSocket and it works fine. It manage the clients from Flash. Well, once i installed the server app in my domain "97.225.158.110" and running the client developed in Flash from my PC within Flash environment, it connects to the server with no problem. But, if i upload the flash to the domain and load it in a web explorer, it doesnt work. Well, i have been seeing many web pages mentioning the policy file and i will show you how i have done it: In the the Java App i have a event handler for incomming data where i idetify the incomming string:

Code:
if(data.equalsIgnoreCase("<policy-file-request/>")) {
Main.Log.append("Enviando archivo Politica Seguridad");
nbc.write("<cross-domain-policy><allow-access-from domain="*" to-ports="8090"/></cross-domain-policy>�");[code].............

Well, the java server app receive the string policy request and it should answer with the quoted file but the Flash never receive it and in a minute the Error 2048 appear.

View 2 Replies

IDE :: XMLSocket - "Error #2048: Security Sandbox Violation"

May 16, 2009

I'm attempting to create an XMLSocket that connects to a PHP-written socket server.I think my code is pretty sound. I used to receive an IOError, but now that is solved and I keep receiving "Error #2048: Security sandbox violation". My .swf, socket server, and crossdomain files are all in the same directory.

My ActionScript:

Code:
package
{
import flash.display.MovieClip;
import flash.events.IOErrorEvent;

[code].....

View 11 Replies

Media Server :: FLVPlayback To FMS OnConnect() Custom Parameters

Sep 16, 2010

FLVPlayback custom params
 
How do I pass custom parameters to FMS using a FLVPlayback just likeI can with NetConnection.onConnect()? e.g. Normally I pass custom params to FMS like this:netConnection.connect("rtmp://mydomain.com...", param1, param2, ... .etc); How do I pass param1... etc. to FMS if I'm using an FLVPlayback component?

View 2 Replies

Media Server :: Pass Objects (not Strings) To Application.onConnect()?

Sep 30, 2009

The documentation on parameters for application.onConnect() is below.  It can take a Client "object" but is ambiguous about the optional parameters (strings vs objects).  I'm guessing just strings?
 
I have a user value object with a few pieces of info in it that I pass around client side and would like the server to add it to its list of users (usersSO).  I'm guessing I'll have to send it up in pieces and recreate it somehow on the server?
 
ParametersclientObjA Client object. This object contains information about the client that is connecting to the application.p1 ..., pNOptional parameters passed to the application.onConnect() handler from the client-side NetConnection.connect()

View 5 Replies

Professional :: Error - TypeError: Error #1009: Cannot Access A Property Or Method Of A Null

Feb 28, 2010

Starting new thread for this topic as suggested by forum. I have a website which tweens movieclip pages (named home, bio, music, video and contact). Love the effect and trying to keep it.  Main timeline contains the main buttons (home_btn, bio_btn, music btn, video_btn, contact_btn).  Music page has a XML mp3 player contained in it with button control.  Video page has an encoded video with no code. 
 
I need the following:

1 - Music and video to shut off as those pages/movieclips tween off the stage.  Gets annoying with them playing especially at the same time

2 - Music player to play correctly.  It is not with the new code.
 
I have the following code.  The "Tween Code" is on frame 1 of the main timeline of the movie.  The "MP3 code" is on frame 1 of the music movie clip. I am getting the following ERROR message when running my movie.  I ran the Debugger as I publish and it points to music.my_channel.stop(); in below code.  My thought process on this was that it would reach out to the music movieclip, find my_channel and stop it.

[Code]...

View 9 Replies

ActionScript 3.0 :: Error: Error #1009: Cannot Access A Property Or Method Of A Null Object Refer

May 4, 2010

I added a flv into my Scene 1 then i added a new Scene.I just wanted to after finishing the .flv flash go to next scene.but when i added a new scene,and I test my movie,the .flv didnt show and i recieved these errors

[Code]...

View 5 Replies

ActionScript 3.0 :: Error TypeError: Error #1009: Cannot Access A Property Or Method Of A Null Object Reference.

Mar 10, 2009

This is my code,

stop();
button3.addEventListener(MouseEvent.CLICK, playClick3);
function playClick3(Event:MouseEvent):void {
gotoAndStop(422);
}

On frame 422 there is no code at the moment. I keep getting the error TypeError: Error #1009: Cannot access a property or method of a null object reference.

View 2 Replies

ActionScript 3.0 :: Use The Scroll Pane Component - Getting An Error Error #1009: Cannot Access A Property Or Method Of A Null Object Reference?

Oct 1, 2007

I am trying to use the scroll pane component and I am having a few teething troubles. I have a scroll pane as a child object of a movie clip which is essentially a 'page', if I display this page it works fine and the scroll pane does too. If I then remove this page from the display list, go to another page and come back by readding it to the display list, I get the following error, even though nothing else has changed:

TypeError: Error #1009: Cannot access a property or method of a null object reference.at fl.containers::ScrollPane/fl.containers:ScrollPane::endDrag()

The scroll pane is still visible and works correctly, but ideally I'd like to stop this error.

View 3 Replies

Flex :: Error In Using "removechild" Error #1009 : Cannot Access A Property Or Method Of A Null Object Reference?

Mar 11, 2010

Below is my code, and the question is explained after it.

<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
xmlns:cal="cal.*"
layout="absolute"[code]...

This is exact error message I get: TypeError: Error #1009: Cannot access a property or method of a null object reference.

View 2 Replies

ActionScript 3.0 :: Error #1009 - TypeError: Error #1009: Cannot Access A Property Or Method Of A Null Object Reference

Mar 26, 2009

TypeError: Error #1009: Cannot access a property or method of a null object reference. at MethodInfo-11() where is methodInfo-11?

[Code]....

View 4 Replies

Flash :: "TypeError: Error #1009: Cannot Access A Property Or Method Of A Null Object Reference." Error On AIR Project For Using A Button

Dec 29, 2010

So my problem here is, I'm working on my Adobe Air project, so I decided to code some buttons to be able to navigate. The problem here is that I get a error for trying to do so. Here is my code.

[Code]...

I do not see what is wrong actually, I tried this on a blank non-AIR file, and it worked well.

View 2 Replies

Error #1009 Error #1009: Cannot Access A Property Or Method Of A Null Object Reference

Aug 9, 2010

Error #1009: Cannot access a property or method of a null object reference.

This is the error I cannot seem to understand. On the stage I have a movie clip, mcTree. It's keyframe is in frame 3143. There is no tween or anything. In frame 3144, I have the following actionscript:

mcTree.gotoAndStop(2);

I publish the movie and I get to frame 3144 then BAM TypeError: Error #1009: Cannot access a property or method of a null object reference.

at 2file_fla::MainTimeline/frame3144()

As you can tell, I'm more than 3000 frames into my animation here and have made it this far using this method, and it has worked.

View 4 Replies

Flex :: AS3 - Creating Dynamic Property And Then Binding Control To It

May 5, 2010

I am trying to:
1) create a dynamic property
2) bind that property to a label
This works great for "sealed properties", but for dynamic properties there doesn't appear to be any event triggered. Are dynamic properties implicityly not bindable?

var myObj:MyType = new MyType(); // MyType is dynamic
myObj["myDynamicPropertyName"] = "initialized";
BindingUtils.bindProperty(myLabel, "data", myObj, repeatedLabel.name);
// myLabel now displays "initialized"
myObj["myDynamicPropertyName"] = "changed";
// myLabel still displays "initialized", it should say "changed" !!!

View 3 Replies

ActionScript 3.0 :: Getting "error 1056:Error #1056: Cannot Create Property Login On?

Aug 28, 2011

why I'm getting "error 1056:Error #1056: Cannot create property login on lash.net.SharedObject." when i try running this code (client-side):Username is a input text box.Password is a input text box.debug is a text area.the enlarged text is the code that is failing.

Code:
import flash.net.NetConnection;
import flash.net.SharedObject;

[code]....

View 1 Replies

ActionScript 2.0 :: Creating A Movie Clip Dynamically And Set The Property _focusrect To True

Jul 31, 2009

I am creating a movie clip dynamically and set the property _focusrect to true

ActionScript Code:
for(var i:Number=0; i<5;i++)
{
var pImage:MovieClip =

[Code].....

I am not able to see the focus rect when i use the navigation keys

View 4 Replies

ActionScript 3.0 :: Cannot Create Property - Error #1056: "Cannot Create Property _ld0 On Tsl"

Jan 28, 2009

[Code]...

I get "Error #1056: Cannot create property _ld0 on tsl." error.

View 4 Replies

ActionScript 2.0 :: Error-There Is No Property With The Name

Jul 9, 2006

**Error** Scene=Scene 1, layer=BOUNDING BOX, frame=1:Line 671: There is no property with the name 'sharedObject'.

Code:
mCache.sharedObject = SharedObject.getLocal("folder", "/");

I supposed I need to set the property sharedObject with AS2.

View 1 Replies

ActionScript 2.0 :: Error-There Is No Property With The Name?

Jun 27, 2007

**Error** Scene=Scene 1, layer=BOUNDING BOX, frame=1:Line 671: There is no property with the name 'sharedObject'.Code:mCache.sharedObject = SharedObject.getLocal("folder", "/");I supposed I need to set the property sharedObject with AS2.

View 5 Replies

ActionScript 2.0 :: Error - There Is No Property With The Name 'super'

Apr 13, 2007

There is no property with the name 'super'.

more specifically

Code:
**Error** C:Documents and SettingsMetjuDesktop\_GENERAL FLASHflashcommetjuphysicsVector.as: Line 41: There is no method with the name 'super'.
super ( x, y );

[code]...

I tried clearing the ASO files a thousand times, restart flash, resave the Vector.as file and still nothing.

View 5 Replies

ActionScript 2.0 :: OnEnterFrame Is Not A Property Error

Apr 22, 2005

I have just started scripting in flash, and i have created my first class, but the error:

There is no property with the name 'onEnterFrame'.this.onEnterFrame = function (){

keeps on occurring when i de bug, i though this was how you assigned a onenterframe to a function. Please could someone have a look and le me know why the error occurs

[Code]...

View 2 Replies

ActionScript 3.0 :: Error 1120: Undefined Property

Jun 4, 2009

I am not able to figure this one out, it seems quite obvious, but I have checked all my instance names, and they are correct. I am just trying to make a button play its open animation when the hit state is moused over, and i keep being told that my button is not defined...
 
btn_aboutH.addEventListener (MouseEvent.MOUSE_OVER, aboutOver);function aboutOver (e:MouseEvent):void{    btn_about.gotoAndPlay ("aboutOver");}

View 9 Replies

ActionScript 3.0 :: Class Property Error #1013

May 8, 2010

I'm customizing a floating panel that I found on gotoAndLearn.

View 2 Replies

Error #1009: Cannot Access A Property Or Method?

Jan 24, 2011

Here is my class file: package com

[code]...

I keep getting this error when I click a button: Error #1009: Cannot access a property or method of a null object reference.

View 4 Replies

Php :: Error Using PHP Class <b>Notice</b>: Undefined Property?

Mar 30, 2011

I have a flash file that passes some variables to a php script and creates a zip file of a group of jpg files. When I had all of the code in one php file everything worked fine. Now I wanted to separate out the script into two files. One php file that gets the variables and a class that would actually do the work of creating the file. However I am getting this error when I run it.

<br />
<b>Notice</b>: Undefined property: ZipTestClass::$FileName.zip in <b>F:Web Page mcwphoto43TestZipArrayipTestClass.php</b> on line <b>15</b><br />[code]...............

View 3 Replies

Actionscript 3 :: Error 1009 Cannot Access A Property----again?

Apr 22, 2011

I'm stuck on this one which is trying to show a game level on the game and getting an output error 1009. I'm doing something wrong but can't figure. Here is the code:

if ( levelNumber ==1) {
var level:Number = 1;
showLevel.text=level.toString();

[code].....

View 1 Replies

ActionScript 3.0 :: Error Accessing Property Of Loaded Swf?

Oct 11, 2010

I am getting the following error when I importmy swf onto my main stage: TypeError: Error #1009: Cannot access a property or method of a null object reference.

at FtScrollBar/set useMouseWheel()
at ButtonsMenu_fla::buttonsScrollingMenu_1/ButtonsMenu_fla::__setProp_sb1_buttonsScrollingMen u_ScrollBarComponent_1()
at ButtonsMenu_fla::buttonsScrollingMenu_1$iinit()[code].....

On it's own the carousel works fine, it's only when I import it that it throws an error, all of the components within the carousel work fine (the images are highlighted on mouse over, the onclick code for the thumbs runs the right functions) it's just the scrolling that doesn't work.I've tried removing the references to stage from the loaded swf but I still get the same errors.I'm fairly new to flash but I'm finding the error messages to be fairly unhelpful at the best of times, I've attached the swf I'm trying to load in in a zip

View 1 Replies







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