Ajax :: Flex - POST To Servlet: Null Parameter

Jun 27, 2011

I'm working on a flex application and I need to call some data with a synchonous method. After some research, I've found a code from adobe that use ajax and external interface. That great. the code from adobe

When I send data with the GET method, the servlet read the parameters and print some infos (to check). But when I send data with the POST method, the servlet recieve the request, but the parameters disappeared.

[CODE]...

View 1 Replies


Similar Posts:


Ajax :: FBJS AJAX.post Is Not Working After Permissions Dialog?

Feb 21, 2011

I have problems with facebook application based on flash which communicate with PHP using FBJS-bridge.When someone use the application for the first time, he/she is asked for various permissions. After that, flash contact PHP with ajax but request is never sent. When you refresh page, everything is working without any problems.If you remove the application on privacy settings, refresh the page and try again -same bug happens.If you allow application, refresh page, in other tab remove application and start application in previous tab - user is asked for permissions but everything is working after allowing application.This is FBJS code

function openPermissions(){
Facebook.showPermissionDialog(/*permissions string*/, permissionOnDone);[code]......

openPermissions is called to display permission dialog, and on allow flash function allow() is called. In flash, allow() calls JS function ajaxCall(), which should make ajax request. But, ajax.post never sends request. I know that for sure, because flash function parseAjax was never called and also debugging tools in browsers are not showing any ajax requests. URL and parameters are same as when it is working. No flash or JS errors are detected...

View 1 Replies

ActionScript 3.0 :: FlashAir - Sending ByteArray Via POST To Servlet

May 9, 2009

The is my first attempt to build an air app, so the solution to my problem may hopefully be simple.

I need to send a byteArray to my servlet via a post request. In my original code, the byteArray is containing a png pic.

I'm running flash cs 4 demo...

When i'm running this code as an Air 1.1 file, i'm getting Error #2044: unhandled IoError:..text=Error #2032: Stream Error URL localhost

import flash.net.*;
import flash.events.*;
import flash.events.HTTPStatusEvent;

[Code].....

But if i'm running the same file as an as3 file flashplayer 10, everything is perfect, and no errors occurs...

View 1 Replies

Flex :: "TypeError: Error #2007: Parameter Child Must Be Non-null"

Aug 10, 2010

my following code gave me TypeError: Error #2007: Parameter child must be non-null runtime error.

[Code]...

View 1 Replies

Flash :: Parameter Url Must Be Non-null?

Nov 2, 2010

i am getting the Parameter url must be non-null error while trying to pass the path of an XML file to an Shockwave flash object.The javascript code is as follows

<script type="text/javascript">
var so = new SWFObject("preview.swf", "", "100%", "100%", "9", "#ffffff");
so.addParam("allowFullScreen", "true");

[code]......

View 1 Replies

ActionScript 3.0 :: Parameter Listener Must Be Non-null

Mar 26, 2009

I', trying to convert a code from as2 to as3 of the music game "Simon Says"(original source HERE)[code]

View 2 Replies

ActionScript 3.0 :: Parameter Listener Must Be Non-null?

Jun 15, 2009

Can't figure out why I'm getting this error:Error #2007: Parameter listener must be non-null. I have traced the xml, so I know the values are loading, so don't know why I"m getting a "non-null" error.The first value in the xml traces correctly, but then the error occurs.I only receive the error when I pass the popup argument to createImageHolders, and I don't know why... I"m a 3.0 newb.

Code:
import flash.events.MouseEvent;
import flash.events.Event;

[code].....

View 3 Replies

Flash :: Parameter SourceBitmapData Must Be Non-null?

Jan 9, 2010

I am trying to copy the pixels of a bitmap data. but I keep getting the following error

Parameter sourceBitmapData must be non-null.

it happens in the method drawImage. exact after my trace that says "got canvas data".

canvasData.copyPixels(image,tileRect,tilePoint);

Below is my code

package com.objects {
import flash.display.Sprite;
import flash.display.BitmapData;

[Code]....

View 1 Replies

ActionScript 3.0 :: Parameter Text Must Be Non-null?

Feb 17, 2011

[code]message when I run some code.I assume this error means it is in the newword() function?[code]

View 1 Replies

ActionScript 3.0 :: Function Gets Null When Put It On A Parameter?

Mar 26, 2012

I'm trying to program a race timer with OOP, and I've been adding more and morefunctionality to its class. Everything had been running well, until I had the idea to put a countdown() function, to make a cool countdown effect. Things got worse when I wanted to make the countdown function to call another function when the countdown effect has finished.The code runs well when I first pass a function parameter from the Main class to the Timer'scountdown() function. The problem begins when I want that function to be past again on other private function of the same class, because this time, the function becomes nullOn the Main class constructor, I 've written the following line:

ActionScript Code:
timer.countdown(5, false, myFunc);
ActionScript Code:

[code].....

View 3 Replies

ActionScript 3.0 :: Parameter Text Must Be Non-null

Mar 31, 2012

I would like to create a login page in flash. I have two input textboxes and one button. When I click the button, it should send the text of the input textboxes to a PHP code, which would invoke a mysql_query. Anyway, whenever I compile this AS code, I get this error:[code]

View 4 Replies

ActionScript 3.0 :: Parameter Child Must Be Non-null?

Aug 12, 2009

One of my menu item button functions has the following code:

Code:
if (DisplayObjectContainer(parent).contains(parent.getChildByName('newMC'))) {
parent.removeChild(newMC);

[code]......

View 2 Replies

ActionScript 3.0 :: #2007: Parameter Must Be Not Null

Aug 25, 2009

I have this source code. My problem is that i get the #2007: parameter must be not null error whene I add the _label1, _label2, _label3 childs. It is at the end of this source code.

Code:
package com.roytanck.photowidget
{
import flash.display.Sprite;
import flash.display.MovieClip;

[code]....

View 1 Replies

ActionScript 3.0 :: Parameter Child Must Be Non-null

Jan 16, 2011

i have an external class that creates an instance named mc. then mc.addEventListener(MouseEvent.MOUSE_DOWN, drag); in function drag, if i try: addChild(mc); it works fine but when i try: addChild(e.target as MovieClip); i get the error

View 4 Replies

Ajax :: In Terms Of HTTP Request Performance Pick AJAX Or Flash?

Jul 19, 2011

In terms of HTTP request performance should I pick AJAX or Flash? To be more specific, I'm more into Flash than AJAX and I'm currently working on a wide scale web project. I wanted to try AJAX out for once and now it's getting too messy for me. Before it gets more complicated I thought may be I can run Flash on the background for HTTP Requests and use it with javascript. I couldn't find any benchmark on the Internet, but I think AJAX is faster than Flash. So what's your personal experience? Is there too much difference between Flash and AJAX?

View 4 Replies

ActionScript 3.0 :: Error : Parameter Child Must Be Non-null?

May 11, 2009

I am building a shoppin cart in flash and I am having a problem getting the purchase items list to work. Each item which gets added to the cart gets put into a movie clip and added into a purchased items moveClip which is on the stage. Each child item has a remove button attached to it. So if the user wants to remove the item they can. The problem is when I remove some of the items on the list I get a "Error: Parameter child must be non-null." Here is the code aswell:

//The cart_array is where I want to store incoming items in.
var cart_array:Array = new Array();

//The items_array is where I want to store the "purchased_mc" MovieClips inside once they have been put on the stage.
var items_array:Array;[code]...........

View 2 Replies

ActionScript 3.0 :: #2007: Parameter Child Must Be Non-null?

Dec 20, 2010

am getting error, when i click input text field then only it goes to next scene, i want to use it without click input text... and also getting this error?rror i.e.TypeError: Error #2007: Parameter child must be non-null.at flash.display:isplayObjectContainer/addChild()

Quote:
myFormat.font = myFont.fontName;
//myFormat.align = TextFormatAlign.CENTER;

[code].....

View 3 Replies

ActionScript 3.0 :: Error #2007: Parameter Url Must Be Non-null

Nov 2, 2009

I'm receiving the following error:
 
TypeError: Error #2007: Parameter url must be non-null. 

[Code]...

View 4 Replies

Actionscript 3 - Flash Parameter Child Must Be Non-Null

Jun 8, 2011

I'm having this error in which I have a Main Menu scene, an Options scene, and a game scene. I have a external file which holds all the public variables that I need between scenes. In the game, there is a picture of water in the background which is purely decorative and doesn't do anything, the only time I use it in code is when I'm moving it to the back so other platforms can be positioned on top of it by using the code:[code]This used to work before I put the options scene in, and still does, provided I don't go to the options scene. Even if I don't touch anything on the options scene, simply going there causes this line to throw a "Parameter Child must be non-null" error. I tried to trace gfxWater right beforehand, but just got null. I simply dragged the water onto the screen to create it and gave it the instance name gfxWater. I don't understand how that could be null, its still there even when this line breaks, it's just on top of everything else.

In the options menu I am not doing anything with the water, I'm only changing variables such as whether or not to play music or sound effects, stuff like that. Nothing relative to the water. The only thing that I can think of that might be causing a problem is that I used a custom font in the options scene, so I had to create the text in AS3.[code]

View 2 Replies

ActionScript 3.0 :: Error: Parameter Child Must Be Non-null

Feb 2, 2010

I am trying to lay some items out on the stage using a timerEvent, out side of the "timerHandler" function the items lay out just fine. My question is...why am i getting this error when running the timer and the function. The code is below...

ActionScript Code:
//
dragDropItemNum = xmlData.dd_setup.dragItems.dragItem.length();
var tmr:Timer = new Timer(1000,dragDropItemNum);

[Code].....

View 2 Replies

ActionScript 3.0 :: Flash - Parameter Child Must Be Non-null?

Feb 14, 2011

I am getting this error, whenever i loaded an external SWF file. I had an Interface, in which a glossary icon is set. So, when clicked, the glossary swf file has to be loaded in to Interface. So, I made a loader and added to display hierarchy, but left empty. So, when glossary icon is clicked, i am loading this specific glossary SWF file in to that loader. But, as it is added, the following Error is thrown.

PHP Code:
TypeError: Error #2007:Parameter child must be non-null.at flash.display::DisplayObjectContainer/addChildAt() fl.controls::

[code]......

View 5 Replies

Use Servlet As My Backend Using A Flex Application?

May 8, 2011

I have developed a Flex application. I have also developed a Java servlet program for an Access database using Tomcat. How can I use that servlet backend for my Flex application using HTTPService ?

View 1 Replies

ActionScript 3.0 :: Parameter Child Must Be Non Null - Variable Scope?

May 5, 2009

I'm working on a sliding gallery like Hulu. Setting it up and the sliding slides in and out is working fine. However, I need to add and then remove a button to each slide as it comes in and goes out. (I initially tried including the button on each slide, a mc, but this proved problematic for the event listeners). So when the file loads up, I add a mc to the first slide of the group like so (features[] is an array of movie clips - my slides):
Code:
var goBtn:MovieClip = new FeatureButton();
features[0].addChild(goBtn);
goBtn.x = 350;
goBtn.y = 230;
So I add the button/mc to the first slide - works just fine.

So there are two handlers, next and previous. So I started with the next handler. The first thing I have to do is kill the button on the panel that is sliding out, so I do that like so:
Code:
features[featureCount].removeChild(goBtn);
goBtn = null;
(featureCount is a counter keeping track of the slides). This works fine. I click the next button, and the button on the slide disappears and we move to the next slide - perfect.

So then I add the following next - exactly like I did in the beginning:
Code:
var goBtn:MovieClip = new FeatureButton();
features[featureCount].addChild(goBtn);
goBtn.x = 350;
goBtn.y = 230;

This time adding it to the current slide coming in - but this generates the following error:
Code:
TypeError: Error #2007: Parameter child must be non-null.
at flash.display::DisplayObjectContainer/removeChild()
at featuregallery_fla::MainTimeline/nextFeature()
How I'm getting an error on the removeChild() when that is already gone. I assume "parameter child" means goBtn - yes it is null because it's been removed. But I'm not trying to do something with that. I can only guess this is a variable scoping issue with goBtn - but I'm not seeing how to resolve it. Flash file attached.

View 8 Replies

TypeError: Error #2007: Parameter Text Must Be Non-null?

Jul 10, 2009

This error comes up every single time I try to run a simple AS3 tutorial flash file on my website..Things I did:-server php support check was run. (success!)-using html to call php for a simple registration form.(success!)-ANY flash file to do a two way communication with a php file ( FAILS!)I tried maybe 10 different swf files and php files that go with them.

View 5 Replies

ActionScript 3.0 :: Getting Error 2007 Parameter Listener Must Be Non-null¯?

Aug 26, 2009

We are getting ready to start trying to convert our older content to AS3.To this end, I have been trying to develop what I though would be a relatively simple. It just an attempt at an adaptable mc button class that my animators and designers can kind of "plug and play" so I can spread out some of the workload.I keep getting "Error 2007 Parameter listener must be non-null". I understand why its throwing an error. simplified block:

Package{
import flash.display.MovieClip
import flash.events.[code].......

View 1 Replies

ActionScript 3.0 :: [Error #2007] Parameter Blendmode Must Be Not Null

Sep 24, 2009

i've a problem with a MC containing 3 3D nested animated MC. When i place this MC on the main TLine, it give me
 
error #2007 Parameter blendMode must be non-null.
 
The I tried to set the blendmode of the 3 nested MC in the nested timeline:
 
nestedMC.blendMode = BlendMode.NORMAL;
 
but it keep giving me error...

View 4 Replies

ActionScript 3.0 :: Error 2007 - Parameter Child Must Be Non-null

Jan 30, 2010

i have the following script , and its giving me this error...this occured after i wrote the last line... which will unload the about section  if home is pressed...
 
var imageRequest:URLRequest = new URLRequest("home.swf");var imageLoader:Loader = new Loader();imageLoader.load(imageRequest);addChild(imageLoader);
imageLoader.x = 0;imageLoader.y = 140;

[code]....

View 11 Replies

ActionScript 3.0 :: Error #2007: Parameter Listener Must Be Non-null

Mar 26, 2010

The slideshow its referring to is a something I purchased online and is embedded into my movie.Does it mean  I need to put and onComplete function on the page thats loading this?  Is it for the xml or the slideshow movie?
 
Error #2007: Parameter listener must be non-null.    at flash.events::EventDispatcher/addEventListener()    at slideshow_fla::TheWholeSlideshow_1/xmlLoaded()    at flash.events::EventDispatcher/dispatchEventFunction()    at flash.events::EventDispatcher/dispatchEvent()    at flash.net::URLLoader/onComplete()

View 16 Replies

ActionScript 3.0 :: TypeError: Error #2007: Parameter Url Must Be Non-null?

Jul 28, 2010

I'll try to be as thorough as possible so there isn't any question as to what is going on or what it is I'm trying to acheive. I've been asked to build a digital catalog for my company's products in Flash.The program is simply an organized way to view files that will be contained with in the same folder as the swf file. The program consists of one scene with five buttons that control the timeline, and each different part of the timeline has a movieclip containing the buttons that open the different files. There are only two of these types of buttons: one is bu_video and the other is bu_brochure. They both have several button instances differentiating between different products. For example: Product A has two buttons: bu_video (instance name videoA) and bu_brochure (instance name brochureA). Here is the code I'm using to get the desired effect.
 
mc_cutButtons.addEventListener(MouseEvent.MOUSE_DOWN, action, false, 0, true);mc_cutButtons.addEventListener(MouseEvent.MOUSE_OVER, action, false, 0, true);mc_cutButtons.addEventListener(MouseEvent.MOUSE_OUT, action, false, 0,

[code].....

View 6 Replies

ActionScript 3 :: Progress Bar Not Shown - Parameter Child Must Be Non Null

Mar 30, 2011

TypeError: Error #2007: Parameter child must be non-null.
at flash.display::DisplayObjectContainer/addChildAt()
at fl.controls::ProgressBar/drawTrack()
at fl.controls::ProgressBar/draw()
at fl.core::UIComponent/callLaterDispatcher()
Within cs5. The animation imports fine, but I am getting that error without the progress bar being shown.

import fl.controls.ProgressBar;
var swfRequest:URLRequest = new URLRequest("animation2.swf"); //load animation file
var swfLoader:Loader = new Loader();
var progressBarr:ProgressBar = new ProgressBar();
progressBarr.source = swfLoader.contentLoaderInfo;
[Code] .....

View 2 Replies







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