Error #2007 in Xcelsius
Hi,
I have imported the WebI report using Live Office into the Xcelsius. When I give the refresh options and preview the dashboard, then I am getting the error "Error #2007" .
I have not made any changes to the imported query. The structure of the query doesnot change.
How can I resolve this?
Thanks in Advance.
Hi Krishna,
I think you have an empty parameter in your query. Error 2007 means:
Parameter X must be non-null.
You will have to find that parameter and fill it out.
Hopes this helps.
Regards
Victor
Similar Messages
-
I am getting this back:
TypeError: Error #2007: Parameter text must be non-null.
at flash.text::TextField/set text()
at AS3_Flash_Poll_PHP_MySQL_fla::WholePoll_1/completeHandler()
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at flash.net::URLLoader/onComplete()
PHP code:
<?php
// ---------------------------------------- Section 1 -----------------------------------------------
// IMPORTANT!!!! Connect to MySQL database here(put your connection data here)
mysql_connect("ginaty05.fatcowmysql.com","fall2010","@regina") or die (mysql_error());
mysql_select_db("poll_2010") or die (mysql_error());
// When Flash requests the totals initially we run this code
if ($_POST['myRequest'] == "load_numbers") {
// Query the totals from the database
$sql1 = mysql_query("SELECT id FROM votingPoll WHERE choice='1'");
$choice1Count = mysql_num_rows($sql1);
$sql2 = mysql_query("SELECT id FROM votingPoll WHERE choice='2'");
$choice2Count = mysql_num_rows($sql2);
$sql3 = mysql_query("SELECT id FROM votingPoll WHERE choice='3'");
$choice3Count = mysql_num_rows($sql3);
echo "choice1Count=$choice1Count";
echo "&choice2Count=$choice2Count";
echo "&choice3Count=$choice3Count";
// ---------------------------------------- Section 2 -----------------------------------------------
// IF POSTING A USER'S CHOICE
if ($_POST['myRequest'] == "store_choice") {
//Obtain user IP address
$ip = $_SERVER['REMOTE_ADDR'];
// Create local variable from the Flash ActionScript posted variable
$userChoice = $_POST['userChoice'];
$sql = mysql_query("SELECT id FROM votingPoll WHERE ipaddress='$ip'");
$rowCount = mysql_num_rows($sql);
if ($rowCount == 1) {
$my_msg = "You have already voted in this poll.";
print "return_msg=$my_msg";
} else {
$sql_insert = mysql_query("INSERT INTO votingPoll (choice, ipaddress) VALUES('$userChoice','$ip')") or die (mysql_error());
$sql1 = mysql_query("SELECT * FROM votingPoll WHERE choice='1'");
$choice1Count = mysql_num_rows($sql1);
$sql2 = mysql_query("SELECT * FROM votingPoll WHERE choice='2'");
$choice2Count = mysql_num_rows($sql2);
$sql3 = mysql_query("SELECT * FROM votingPoll WHERE choice='3'");
$choice3Count = mysql_num_rows($sql3);
$my_msg = "Thanks for voting!";
echo "return_msg=$my_msg";
echo "&choice1Count=$choice1Count";
echo "&choice2Count=$choice2Count";
echo "&choice3Count=$choice3Count";
?>
AS3 code:
stop(); // Stop the timeline since it does not need to travel for this to run
// Assign a variable name for our URLVariables object
var variables1:URLVariables = new URLVariables();
// Build the varSend variable
var varSend1:URLRequest = new URLRequest("parse_my_poll.php");
varSend1.method = URLRequestMethod.POST;
varSend1.data = variables1;
// Build the varLoader variable
var varLoader1:URLLoader = new URLLoader;
varLoader1.dataFormat = URLLoaderDataFormat.VARIABLES;
varLoader1.addEventListener(Event.COMPLETE, completeHandler1);
// Set variable to send to PHP here for the varloader below
variables1.myRequest = "load_numbers";
// Send data to php file now, and wait for response using the COMPLETE event
varLoader1.load(varSend1);
function completeHandler1(event:Event):void{
count1_txt.text = "" + event.target.data.choice1Count;
count2_txt.text = "" + event.target.data.choice2Count;
count3_txt.text = "" + event.target.data.choice3Count;
// hide the little processing movieclip
processing_mc.visible = false;
// Initialize the choiceNum variable that we will use below
var choiceNum:Number = 0;
// Set text formatting colors for errors and success messages
var errorsFormat:TextFormat = new TextFormat();
errorsFormat.color = 0xFF0000; // bright red
var successFormat:TextFormat = new TextFormat();
successFormat.color = 0x00FF00; // bright green
// Button Click Functions
function btn1Click(event:MouseEvent):void{
choiceNum = 1;
choice_txt.text = choice1_txt.text;
function btn2Click(event:MouseEvent):void{
choiceNum = 2;
choice_txt.text = choice2_txt.text;
function btn3Click(event:MouseEvent):void{
choiceNum = 3;
choice_txt.text = choice3_txt.text;
// Button Click Listeners
btn1.addEventListener(MouseEvent.CLICK, btn1Click);
btn2.addEventListener(MouseEvent.CLICK, btn2Click);
btn3.addEventListener(MouseEvent.CLICK, btn3Click);
// Assign a variable name for our URLVariables object
var variables:URLVariables = new URLVariables();
// Build the varSend variable
var varSend:URLRequest = new URLRequest("parse_my_poll.php");
varSend.method = URLRequestMethod.POST;
varSend.data = variables;
// Build the varLoader variable
var varLoader:URLLoader = new URLLoader;
varLoader.dataFormat = URLLoaderDataFormat.VARIABLES;
varLoader.addEventListener(Event.COMPLETE, completeHandler);
// Handler for PHP script completion and return
function completeHandler(event:Event):void{
// remove processing movieclip
processing_mc.visible = false;
// Clear the form fields
choice_txt.text = "";
choiceNum = 0;
// Load the response from the PHP file
status_txt.text = event.target.data.return_msg;
status_txt.setTextFormat(errorsFormat);
if (event.target.data.return_msg == "Thanks for voting!") {
// Reload new values into the count texts only if we get a proper response and new values
status_txt.setTextFormat(successFormat);
count1_txt.text = "" + event.target.data.choice1Count;
count2_txt.text = "" + event.target.data.choice2Count;
count3_txt.text = "" + event.target.data.choice3Count;
// Add an event listener for the submit button and what function to run
vote_btn.addEventListener(MouseEvent.CLICK, ValidateAndSend);
// Validate form fields and send the variables when submit button is clicked
function ValidateAndSend(event:MouseEvent):void {
//validate form fields
if(!choice_txt.length) {
// if they forgot to choose before pressing the vote button
status_txt.text = "Please choose before you press vote.";
status_txt.setTextFormat(errorsFormat);
} else {
status_txt.text = "Sending...";
processing_mc.visible = true;
// Ready the variables for sending
variables.userChoice = choiceNum;
variables.myRequest = "store_choice";
// Send the data to the php file
varLoader.load(varSend);
} // close else after form validation
} // Close ValidateAndSend function ////////////////////////This error means that you are trying to set the text field but there is no data in the variable. As a first step, try to identify where this is happening, eg Is it the first call, or once you have submitted your data or only if you try to submit data second time?
Trace out the data that is returned for both completeHandlers to see if there is a missing var. Try this for "load_numbers" and "store_choice". Do it twice for "store_choice". Do you get back what you expected?
You could also try altering the php to return some fixed dummy variables, eg choice1Count=11&choice2Count=22&choice3Count=33, etc. If this works then you know that the error is in the PHP.
It looks to me like the issue is when you submit the data a second time and just get back the return_msg - the handler then tries to assign the choice1Count etc but doesn't have any count data back from the poll.php.
Test that there is data before assigning it, eg
if(event.target.data.choice1Count){
count1_txt.text = event.target.data.choice1Count;
count2_txt.text = event.target.data.choice2Count;
count3_txt.text = event.target.data.choice3Count; -
Hi - Still new to flash as3 and php -
it is a contact form page - user puts in information - i am to receive it in an email address their information
as well the variables get sent back from the php to the .swf file.
I am receiving these errors and not knowing how to fix them.
any help would be much appreciated. thank you in advance really.
below are the errors in flash - as3 code - and php code setup.
errors:
ActionScript 3 + PHP: TypeError: Error #2007: Parameter text must be non-null:
at flash.text::TextField/set text()
at kwangjaekim_fla::wholeform_16/completeHandler()
at flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at flash.net::URLLoader/flash.net:URLLoader::onComplete()
my as3 code is the following:
// build variable name for the URL Variables loader
var variables:URLVariables = new URLVariables();
//Build the varSend variable
var varSend:URLRequest = new URLRequest("contact_parse.php");
varSend.method = URLRequestMethod.POST;
varSend.data = variables;
//Build the varLoader variable
var varLoader:URLLoader = new URLLoader;
varLoader.dataFormat = URLLoaderDataFormat.VARIABLES;
varLoader.addEventListener(Event.COMPLETE, completeHandler);
//handler for the PHP script completion and return of status
function completeHandler(event:Event):void{
//value is cleared at ""
name_txt.text = "";
contact_txt.text = "";
msg_txt.text = "";
//Load the response PHP here
status_txt.text = event.target.data.return_msg;
//Add event listener for submit button click
submit_btn.addEventListener(MouseEvent.CLICK, ValidateAndSend);
//function ValidateAndSend
function ValidateAndSend(event:MouseEvent):void{
//validate fields
if(!name_txt.length){
status_txt.text = "Please Enter Your Name";
}else if(!contact_txt.length){
status_txt.text = "Please Enter Your Contact Detail";
}else if(!msg_txt.length){
status_txt.text = "Please Enter Your Message";
}else {
// ready the variables in form for sending
variables.userName = name_txt.text;
variables.userContact = contact_txt.text;
variables.userMsg = msg_txt.text;
// Send the data to PHP now
varLoader.load(varSend);
submit_btn.addEventListener(MouseEvent.CLICK, function(){MovieClip(parent).gotoAndPlay(151)});
} // Close else condition for error handling
} // Close validate and send function
my php code is the following:
<?php
// Create local PHP variables from the info the user gave in the Flash form
$senderName = $_POST['userName'];
$senderEmail = $_POST['userContact'];
$senderMessage = $_POST['userMsg'];
// Strip slashes on the Local variables
$senderName = stripslashes($senderName);
$senderContact = stripslashes($senderContact);
$senderMessage = stripslashes($senderMessage);
//!!!!!!!!!!!!!!!!!!!!!!!!! change this to my email address !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
$to = "put iny me email address";
// Place sender Email address here
$from = "$senderContact ";
$subject = "Contact from your site";
//Begin HTML Email Message
$message = <<<EOF
<html>
<body bgcolor="#FFFFFF">
<b>Name</b> = $senderName<br /><br />
<b>Contact</b> = <a href="mailto:$senderContact">$senderEmail</a><br /><br />
<b>Message</b> = $senderMessage<br />
</body>
</html>
EOF;
//end of message
$headers = "From: $from\r\n";
$headers .= "Content-type: text/html\r\n";
$to = "$to";
mail($to, $subject, $message, $headers);
exit();
?>
thank you once again
jaythank you Ned -
i put in the trace line as you mentioned -
and this is what i received -
returns: undefined
TypeError: Error #2007: Parameter text must be non-null
at flash.text::TextField/set text()
at kwangjaekim_fla::wholeform_16/completeHandler()
at flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at flash.net::URLLoader/flash.net:URLLoader::onComplete()
what does this mean exactly?
thank you for the help really -
Error while installing Xcelsius 2008
Hi,
We are getting error while installing Xcelsius 2008 version 5.3.....
"The upgrade patch cannot be installed by windows installer service because the program to be upgraded may be missing, or the upgrade patch may update a different version of the program. Verify that the program to be upgraded exists on your computer and that you have the correct upgrade patch"
Kindly suggest how to install the Xcelsius latest verion.
With Regards,
PearlHi Pearl,
Sorry if you've already done this, but have you installed Xcelsius 2008 SP3 first? It sounds like you are trying to install a fix pack without first installing Xcelsius 2008.
The downloads are all available from the [downloads service market place|http://www.sdn.sap.com/irj/boc/] (as per the stickied thread)
If you choose Service Pack as the software type it will allow for download of the SP3 full install.
OR
Could it be this issue [Xcelsius FP3.5 error installing Excel2010; with solution from F. Kooij if you are referring to the latest fix pack 3.5 with Office 2010?
Regards,
Paul
Edited by: zygorf on May 24, 2011 12:53 PM -
Hi guys,
I am trying to make my application use Flash components, but I have a problem with displaying them correctly. I've used Flash CS5 to export them into .SWC. In Flex it seems that their graphics doesn't load, and below is a screenshot how it looks with a Button and UILoader. I couldn't find any solution, as I've searched other forums.
And also I've selected all flash components to be included in the .SWC library, but almost half of them is missing when I include the file in Flex. Is maybe some catalog corrupted or is it an issue with Flash CS5? I hope somebody can help please!
I when I try to use the .SWC in in Flash I get this:
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at fl.containers::ScrollPane/drawBackground()
at fl.containers::ScrollPane/draw()
at fl.core::UIComponent/callLaterDispatcher()
TypeError: Error #2007: Parameter child must be non-null.
at flash.display::DisplayObjectContainer/addChildAt()
at fl.controls::BaseButton/drawBackground()
at fl.controls::BaseButton/draw()
at fl.core::UIComponent/drawNow()
at fl.controls::ScrollBar/draw()
at fl.core::UIComponent/callLaterDispatcher()Hi guys,
I am trying to make my application use Flash components, but I have a problem with displaying them correctly. I've used Flash CS5 to export them into .SWC. In Flex it seems that their graphics doesn't load, and below is a screenshot how it looks with a Button and UILoader. I couldn't find any solution, as I've searched other forums.
And also I've selected all flash components to be included in the .SWC library, but almost half of them is missing when I include the file in Flex. Is maybe some catalog corrupted or is it an issue with Flash CS5? I hope somebody can help please!
I when I try to use the .SWC in in Flash I get this:
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at fl.containers::ScrollPane/drawBackground()
at fl.containers::ScrollPane/draw()
at fl.core::UIComponent/callLaterDispatcher()
TypeError: Error #2007: Parameter child must be non-null.
at flash.display::DisplayObjectContainer/addChildAt()
at fl.controls::BaseButton/drawBackground()
at fl.controls::BaseButton/draw()
at fl.core::UIComponent/drawNow()
at fl.controls::ScrollBar/draw()
at fl.core::UIComponent/callLaterDispatcher() -
Error 2007 Some Actionscript error has occured
I have tried the converter on a couple of modules that I have been working. I have actually tried it on two differnet machines to make sure there wasn't something machine specific. I am getting Error 2007 - Seom Actionscript error has occured. Has anyone seen this? Any idea what is casuing it?
I have just begun my exploration of the converted and this is my first couple of attempts so I could be doing somethign really obvious.
This is a very basic simuation module with not much more than captions and click boxes.I've installed twice and always run as admin but same issue. If you hear anything else please let me know.
Kerry Kuehn | Senior Vice President of Learning
3333 East Camelback Road, Suite 212
Phoenix, AZ 85018
602.840.1000 office
816.695.3260 cell
602.957.3057 fax
[email protected]<mailto:[email protected] -
How to solve the error Type Error #2007: Parameter hitTestObject must be non-null.
When I combine the storytelling part(storytelling that run frame by frame) with platform game, this error appear:
TypeError: Error #2007: Parameter hitTestObject must be non-null.
at flash.display:: DisplayObject/_hitTest()
at flash.display:: DisplayObject/hitTestObject()
at SaveMyBaby4_fla::Background_27/frame1()
at flash.display::MovieClip/gotoAndPlay()
at SaveMyBaby4_fla::Mainmenu_20/clickStart()
How can i solve it? As i use this coding:
var leftDown:Boolean = false;
var rightDown:Boolean = false;
var upDown:Boolean = false;
var downDown:Boolean = false;
var leftBumping:Boolean = false;
var rightBumping:Boolean = false;
var upBumping:Boolean = false;
var downBumping:Boolean = false;
var leftBumpPoint:Point = new Point(0, 0);
var rightBumpPoint:Point = new Point(0, 0);
var upBumpPoint:Point = new Point(0, 0);
var downBumpPoint:Point = new Point(0, 0);
var scrollX:Number = 500;
var scrollY:Number = 0;
var xSpeed:Number = 0;
var ySpeed:Number = 0;
var speedConstant:Number = 2;
var frictionConstant:Number = 0.9;
var gravityConstant:Number = 1.5;
var jumpConstant:Number = -35;
var maxSpeedConstant:Number = 18;
var doubleJumpReady:Boolean = false;
var upReleasedInAir:Boolean = false;
var door:Boolean = false;
var currentLevel:int = 1;
var animationState:String="rest";
function loop(e:Event):void{
if(back.block.hitTestPoint(player.x + leftBumpPoint.x, player.y + leftBumpPoint.y, true)){
//trace("leftBumping");
leftBumping = true;
} else {
leftBumping = false;
if(back.block.hitTestPoint(player.x + rightBumpPoint.x, player.y + rightBumpPoint.y, true)){
//trace("rightBumping");
rightBumping = true;
} else {
rightBumping = false;
if(back.block.hitTestPoint(player.x + upBumpPoint.x, player.y + upBumpPoint.y, true)){
//trace("upBumping");
upBumping = true;
} else {
upBumping = false;
if(back.block.hitTestPoint(player.x + downBumpPoint.x, player.y + downBumpPoint.y, true)){
//trace("downBumping");
downBumping = true;
} else {
downBumping = false;
if(leftDown){
xSpeed -= speedConstant;
player.scaleX = -1;
} else if(rightDown){
xSpeed += speedConstant;
player.scaleX = 1;
/*if(upPressed){
ySpeed -= speedConstant;
} else if(downPressed){
ySpeed += speedConstant;
if(leftBumping){
if(xSpeed < 0){
xSpeed *= -0.5;
if(rightBumping){
if(xSpeed > 0){
xSpeed *= -0.5;
if(upBumping){
if(ySpeed < 0){
ySpeed *= -0.5;
if(downBumping){ //if we are touching the floor
if(ySpeed > 0){
ySpeed = 0; //set the y speed to zero
if(upDown){ //and if the up arrow is pressed
ySpeed = jumpConstant; //set the y speed to the jump constant
//DOUBLE JUMP
if(upReleasedInAir == true){
upReleasedInAir = false;
if(doubleJumpReady == false){
doubleJumpReady = true;
} else { //if we are not touching the floor
ySpeed += gravityConstant; //accelerate downwards
//DOUBLE JUMP
if(upDown == false && upReleasedInAir == false){
upReleasedInAir = true;
//trace("upReleasedInAir");
if(doubleJumpReady && upReleasedInAir){
if(upDown){ //and if the up arrow is pressed
//trace("doubleJump!");
doubleJumpReady = false;
ySpeed = jumpConstant; //set the y speed to the jump constant
if(door == false)
if(player.hitTestObject(back.door))
door = true;
if(xSpeed > maxSpeedConstant){ //moving right
xSpeed = maxSpeedConstant;
} else if(xSpeed < (maxSpeedConstant * -1)){ //moving left
xSpeed = (maxSpeedConstant * -1);
xSpeed *= frictionConstant;
ySpeed *= frictionConstant;
if(Math.abs(xSpeed) < 0.5){
xSpeed = 0;
scrollX -= xSpeed;
scrollY -= ySpeed;
back.x = scrollX;
back.y = scrollY;
sky.x = scrollX * 0.2;
sky.y = scrollY * 0.2;
if((leftDown||rightDown||xSpeed>speedConstant||xSp eed<speedConstant*-1)&&downBumping){
animationState="playerrun";
else if(downBumping){
animationState="rest";
else{
animationState="jump";
if(player.currentLable!=animationState){
player.gotoAndStop(animationState);
function nextLevel():void{
currentLevel++;
gotoAndPlay(4, "Scene 1");
door = false;
function keyDownHandler(e:KeyboardEvent):void
if(e.keyCode == Keyboard.LEFT)
leftDown = true;
else if(e.keyCode == Keyboard.RIGHT)
rightDown = true;
else if(e.keyCode == Keyboard.UP)
upDown = true;
else if(e.keyCode == Keyboard.DOWN)
downDown= true;
if(player.hitTestObject(back.door))
//proceed to the next level if the player is touching an open door
door = true;
gotoAndPlay(5, "Scene 1");
function keyUpHandler(e:KeyboardEvent):void{
if(e.keyCode == Keyboard.LEFT){
leftDown = false;
} else if(e.keyCode == Keyboard.RIGHT){
rightDown = false;
} else if(e.keyCode == Keyboard.UP){
upDown = false;
} else if(e.keyCode == Keyboard.DOWN){
downDown = false;The code I say to add is to troubleshoot the problem, it will not solve it, but it could help lead to solving it if the file is able to compile. Does the trace show up in your output panel? If so, what does it indicate?
You should also go into your Flash section of the Publish Settings and select the option to Permit Debugging... that can help by adding a line number to the error message.
What is the 'door' object that is associated with the 'back' object? Does it exist in a frame that is not present when you try to run the file? If so, check to make sure that it has its instance name assigned in every keyframe it occupies. -
Error While Installing Xcelsius Error 1327.Invalid Drive:E:\
Hi Team,
I am getting a error while installing Xcelsius, the error is Error 1327.Invalid Drive:E:\. Please suggest.
Thanks in Advance
Kind Regards
SreedharWhere are you trying to install it to? A Network Drive or Flash Drive?
-
I am exporting a game for IOS in Flash CS6.
I have isolated classes, except a framework for static utilities that do not clash, but I still get this message when exporting for IOS.
AIR for desktop, even with ApplicationDomain.currentDomain works and does not give any error. Same on android.
When I export the same exact project for IOS, it triggers that error randomly in different parts.
All related with a call to a method on superclass, the instantiation of an internal class, or of a Vector typed to a custom internal class.
TypeError: Error #2007: Parameter Possible symbol clash in multiple swfs, abcenv must be non-null.
The line that triggers the error:
return new RouletteChoserItemDev(num, data);
Any help is appreciated.
UPDATE
I have changed the code into:
var item:RouletteChoserItemDev;
var MyClass:Class = RouletteChoserItemDev;
item = new MyClass(num, data);
Now I get this funny error:
Error #1034: Type Coercion failed: cannot convert device.plugins.rouletteLobby::RouletteChoserItemDev@6284bc9 to .
Yes, cannot convert to ".", a dot!*FOUND A SOLUTION*
The way ApplicationDomain.sameDomain works on Android and Desktop, and on IOS, IS DIFFERENT!!!
I probably have to file this under AIR bugs.
Anyway:
- In loaded SWFs, classes which are not already stored in parent SWF CANNOT be instantiated.
I.E.
var c:MyClass = new MyClass(); // Will not work
var c = new MyClass(); // Will not work
var c:MyClass = getDefinitionByName("fullpackage.MyClass"); // Will not work
var c = getDefinitionByName("fullpackage.MyClass"); // WORKS!!!!!
var c:DisplayItem = getDefinitionByName("fullpackage.MyClass"); // WORKS!!!!!
So, it seems that classes stored in local loaded SWF will not be accessible directly. Even though tracing it trace(MyClass) works well, the class cannot be used in code in any place. Variables cannot be typed, and class can only be instantiated with getDefinitionByName();
All this, is true ONLY on IOS, same exact project and settings, will not trigger any error in AIR for Desktop or for Android.
But since obviously we use the same codebase for all devices, this IOS *feature* has to guide the way we code, even though we break a few important OOP best practices.
Hope I spared someone else the 3 days including an entire weekend I had to invest to find this out. -
Hello!
Could you please help me with the following code because I can't find the solution - I receive Error #2007: Parameter text must be non-null. (I know what the error means but I'm not experienced enough to handle it)
This is hit counter that uses AS3, PHP ("Counter.php") and text file ("hit_count.txt").
AS3:
var variables:URLVariables = new URLVariables();
var varSend:URLRequest = new URLRequest("Counter.php");
varSend.method = URLRequestMethod.POST;
varSend.data = variables;
var varLoader:URLLoader = new URLLoader;
varLoader.dataFormat = URLLoaderDataFormat.VARIABLES;
varLoader.addEventListener(Event.COMPLETE, completeHandler);
// this is the part that causes problem:
variables.requestCode = "homepage";
varLoader.load(varSend);
function completeHandler(event:Event):void {
var countVar = event.target.data.phpCountVar;
PHP ("Counter.php"):
<?php
if ($_POST['requestCode'] == "homepage") {
$txtDatabase = "hit_count.txt";
$currentNumber = file_get_contents($txtDatabase, true);
$fh = fopen($txtDatabase, 'w') or die ("cannot open file");
$newNumber = $currentNumber + 1;
$data = "$newNumber";
fwrite($fh, $data);
fclose($fh);
print "phpCountVar=$newNumber";
?>
text file ("hit_count.txt"):
0
Any ideas?click file/publish settings/flash and tick "permit debugging". retest. the problematic line number will be in your error message.
if that info doesn't allow to solve your problem, copy and paste the problematic line of code here. -
I have created a super-simple Flash Component, -just a Button and TextArea together. These are both placed in 'assets' layer frame 2, with avatar in Frame 1, etc, and tied this to an ActionScript3 class, TestComponent.
When I use this component, in say, Tester.fla, I get the following error,
TestComponent1 Constructor called
TypeError: Error #2007: Parameter child must be non-null.
at flash.display::DisplayObjectContainer/addChildAt()
at fl.controls::BaseButton/drawBackground()
at fl.controls::LabelButton/draw()
at fl.controls::Button/draw()
at fl.core::UIComponent/callLaterDispatcher()
If I include the 'Button' in Tester.fla library, the error goes away. But I don't have to do this for the TestArea.
It appears that 'Button' need special treatment in Flash. I have seen this question asked several times before in different ways, and never answered.
I would appreciate some explanation for this strange behavior, or if I designed my TestComponent incorrectly, then please advise on the correct design.
Thanks
Andrewclick file/publish settings/flash and tick "permit debugging". retest. if you're lucky the line number of the problematic line of code will be in your error message.
-
Win7 and now Server Error [2007]: "Database connection information not acce
I support a 8.3.x server with Insight plugin in use. This has worked for some time now with WinXP. The issue comes into play when the company is upgrading users to Win7 stations. First, the zero-admin (download and install setup launch) is failing. The Install window opens but doesn't seem to be able to complete. Then, when we do get the plugin installed via the manual download and install, we then reach a point where the bqy will not connect with the Server Error [2007]: "Database connection information not accessible. Processing is disabled." If we proceed from there, we'll get Server Error [6] PUB_NullArgument errors and empty "Show Values" limit boxes. So it's like the .oce information is not received on the Win7 platform - it still works fine on WinXP installations.
And, I know it can work, as the PC Support personnel were able to get this working on one PC.
Any suggestions?
Thanks,
KeithI assume that there has been no reply to this thread. The problem still persists, with intermittent success. I hope that someone can shed some light onto the Server Error [2007]: "Database connection information not accessible. Processing is disables." message.
Thanks again,
Keith -
CS3 All Buttons give error #2007: Parameter child must be non-null
Using CS3 actionscript all buttons give the following code. I
have tried it myself and used the examples with CS3 and on
livedocs.
Here is the button code:*************************
import fl.controls.Button;
var myButton:Button = new Button();
myButton.toggle = true;
myButton.move(10, 10);
myButton.addEventListener(Event.CHANGE, changeHandler);
addChild(myButton);
function changeHandler(event:Event):void {
trace("Button toggled (selected:" +
event.currentTarget.selected + ")");
**************Error ***************************
TypeError: Error #2007: Parameter child must be non-null.
at flash.display::DisplayObjectContainer/addChildAt()
at
fl.controls::BaseButton/fl.controls:BaseButton::drawBackground()
at fl.controls::LabelButton/fl.controls:LabelButton::draw()
at fl.controls::Button/fl.controls:Button::draw()
at fl.core::UIComponent/::callLaterDispatcher()
Button toggled (selected:true)
Can anyone help me with correcting this problem. I can't find
it by googling, searching livedocs, help, etc.Thanks that worked. I didn't add other components directly to
the library, just called them in the actionscript. Do you know why
the button would be different? -
TypeError: Error #2007: Parameter child must be non-null.
Hello,
I am new to actionscript 3.0, I have Adobe Flash Builder 4.7 installed and I am creating a ActionScript project (File -> New -> ActionScript Project) named as Test. As you know flash builder does not include fl.controls package by default. I have added this package to my project as source path or swc file so that I can use the default components (e.g. Buttons, RadioButtons, Checkboxes) and now I am writing the following code.
package
import flash.display.Sprite;
import fl.controls.Button;
[SWF(width = "640", height = "480", frameRate = "60", backgroundColor = "#FFFFFF")]
public class Test extends Sprite
private var btn:Button;
public function Test()
btn = new Button();
btn.label = "CLICK ME!";
btn.x = 100;
btn.y = 100;
addChild(btn);
I am creating a fl.controls.Button instance in Test class and trying to add it on stage. When I run the project, it always gives me the following error for the bold red line.
TypeError: Error #2007: Parameter child must be non-null.
at flash.display::DisplayObjectContainer/addChildAt()
at fl.controls::BaseButton/drawBackground()[C:\Program Files (x86)\Adobe\Adobe Flash CS5.5\Common\Configuration\Component Source\ActionScript 3.0\User Interface\fl\controls\BaseButton.as:615]
at fl.controls::LabelButton/draw()[C:\Program Files (x86)\Adobe\Adobe Flash CS5.5\Common\Configuration\Component Source\ActionScript 3.0\User Interface\fl\controls\LabelButton.as:724]
at fl.controls::Button/draw()[C:\Program Files (x86)\Adobe\Adobe Flash CS5.5\Common\Configuration\Component Source\ActionScript 3.0\User Interface\fl\controls\Button.as:191]
at fl.core::UIComponent/callLaterDispatcher()[C:\Program Files (x86)\Adobe\Adobe Flash CS5.5\Common\Configuration\Component Source\ActionScript 3.0\User Interface\fl\core\UIComponent.as:1511]
Pleae help me out to get rid of this problem. Thanks in advance.
Thanks,
momersaleemI know you are talking about Flash Builder but the same has to be true of Flash Builder as far as having the objects that go with the classes, especially if they are the objects that Flash Pro utilizes.
I do not use Flash Builder so I can't answer from experience how you go about getting the components into the library. What I normally do to find answers to desgn issues is to start looking thru Google.
If I search Google using the terms "Flash Builder use AS3 components" I get several results that might provide a solution. Here's one...
http://stackoverflow.com/questions/5602962/getting-flash-ui-components-into-builder
See if the answer for that one works for you, and if not, try some of the others in that search's results. -
Error to install Xcelsius 2008 on Windows vista. Error 1935.
I have a big problem, I need install Xcelsius 2008 on Windows vista, but when I install the software apper the nex message:
Error 1935 Error al instalar el ensamblado.
"Microsoft.VC80.ATL,type ="Win32",version= "8.0.50727.762",pubicKeyToken="1fc8b3b9a1e18e3b",processorArchitecture="x86"". Consulte Ayude y soporte tecnico para obtener mas informacion.From a brief Google search, I determined this error message is from Vista. It is not being produced by Xcelsius. You will need to do your own search and determine what is causing Vista to report this error. You can also try installing using instructions for Xcelsius installation on Vista posted elsewhere in these forums.
Maybe you are looking for
-
Issue with fetching data from AFRU
Hi All, We are trying to immitate the standard transaction COOIS but with some extra features to get a report. We have a particular select in the custom code which is timing out and taking an unusually long time(infact never finished the select) if r
-
Problem related to PO Pricing?
Hi All, i am creating a PO in which I am adding handling Charges which is adding in net value on which tax is being calculated, But I want handling Charges to be added without being tax calculated on handling charges. How Can I do That?
-
Define depreciation areas with different fiscal yr variant under 1 cod.
Hi FICO Gurus, I am a new student in FICO, here i have a question as following, ask for help, Does anyone know how to define depreciation areas with different fiscal year variant under one chart of depreciation? Such as: Book Keeping Fiscal Year Vari
-
Application hangs in STOPPING status - NW04s
Occassionally, when manually stopping an application from the deploy service inside of Visual Administrator, the application stays in a STOPPING status. The only way that we have been able to get it out of this STOPPING status is to restart the enti
-
Width Tool BUG! Come on people, nobody is flipping about this???
Hi there, I'm making an infographic and as I was working with the width tool I've noticed some strange thing: I set a couple of anchor width points precisely, but for some reason there's a thinner part all the time: From 30pt (wide green part) it sup