Error #1010 on dynamic array of Labels?
I am attempting to create an array of words as dynamically-created Labels that act like buttons (ie. they are plain text but are clickable and will highlight on mouseover). This method works (using names like "word1", "word2"..."wordN" as the array index) for inserting the word labels into a BorderContainer... so the array seems to be okay. However, when I go to mouseover, I get TypeError: Error #1010: A term is undefined and has no properties.
Pretty cryptic. What term is undefined and has no properties? I was assuming I could self-reference the event-triggering element using "this"... is that the problem? Not sure why the label can be added as a child element okay, but when I try to access one of the labels in the array, it gives "term undefined and has no properties"...
private function mouseoverWord(event:Event):void {
// Event handler for what happens when a mouse is moved over a word
clickableArray[this.id].setStyle("color", "blue");
private function mouseclickWord(event:Event):void {
// Event handler for when word is clicked
private function createTextWord(word:String, num:int):void {
var wordLabel:spark.components.Label = new spark.components.Label;
wordLabel.text = word;
wordLabel.buttonMode = true;
wordLabel.addEventListener(MouseEvent.MOUSE_OVER, mouseoverWord);
wordLabel.addEventListener(MouseEvent.CLICK, mouseclickWord);
wordLabel.id = "word"+num.toString();
clickableArray[wordLabel.id] = wordLabel;
> I was assuming I could self-reference the event-triggering element using "this"... is that the problem?
Possibly. If this code is in MyApp.mxml (and not within a <Component> or <Definition>, then 'this' is a reference to the instance of MyApp. The object which dispatched the event is event.target.
Gordon Smith
Adobe Flex SDK Team
Similar Messages
-
Error 1010 when vertically scrolling dynamically populated datagrid
http://www.mail-archive.com/[email protected]/msg49767.html
Here's an example of what I'm running into (and the code is
much neater). For some reason, as soon as I try to scroll
vertically, I get:
TypeError: Error #1010: A term is undefined and has no
properties.
at
mx.controls.listClasses::ListBase/mx.controls.listClasses:ListBase::scrollVertically()
at
mx.controls::DataGrid/mx.controls:DataGrid::scrollVertically()
at mx.controls.listClasses::ListBase/set
verticalScrollPosition()
at
mx.controls::DataGrid/mx.controls:DataGrid::scrollHandler()
at
flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at mx.core::UIComponent/dispatchEvent()
at mx.controls.scrollClasses::ScrollBar/
http://www.adobe.com/2006/flex/mx/internal::dispatchScrollEvent()
at
mx.controls.scrollClasses::ScrollThumb/::mouseMoveHandler()
Does anyone know the fix to this?I have the same issue, I am adding columns dynmacially, the
grid columns are updated with user actions (add and remove)
Michael , I looked in Flex Coders and could find link for
possible solution
it seems from the posting that It would be solved if I call
validateDisplayList on the grid after.
can you point me to more information, ( and call this method
after what),
I appreciate response for this, this is crazy issue
Thanks -
Populating a dynamic array with objects and managing it in runtime.
So I'm another stuck firstyear. I'll try and make my question compact. I'm using Flash CS6 and have drawn an animated character on the stage that consists of separate parts that are animated and its head is a separate class/symbol entirely because it has not only animation, but a state switch timeline as well. This said Head extends the Main that is the character MovieClip.
I am using a dynamic array to store and .push and .splice objects of another class that would collide with this said Head.
I also discovered the super() function that is implicitly called as the constructor of the parent in any child class that extends the parent, in this case Head extends Main. The issue is that my collidable object array is populated within the main, within the function that spawns every next collidable object with a TimerEvent. This said function then gets called twice due to the super() call.
I have tried putting this super() call into an impossible statement in my child class, but it doesn't change a thing, and it was said that this method is unsafe so I don't even know if it should be working.
However what confuses me the most is when I trace() the .length of my collidable object array at the end of that function. As I said earlier, the original function both spawns an object after a period of Timer(1000) and adds it to the stage as well as adds the object onto the object array, but the super() constructor only duplicates the length call and a creates a copy of the object on the stage, but it does not add the second copy of the object onto the array. The trace() output goes on like so:
1
1
2
2
3
3
4
4
etc.
I wonder why and I'm really stumped by this.
Here is the code in question:
public class Main extends MovieClip {
public var nicesnowflake: fallingsnow;
var nicesnowflakespawntimer: Timer = new Timer(1000);
public var nicesnowflakearray: Array = new Array();
public function Main() {
nicesnowflakespawntimer.addEventListener(TimerEvent.TIMER, nicesnowflakespawn);
nicesnowflakespawntimer.start();
public function nicesnowflakespawn(event:TimerEvent) : void {
nicesnowflake = new fallingsnow;
nicesnowflake.x = Math.random()* stage.stageWidth;
nicesnowflake.y = - stage.stageHeight + 100;
nicesnowflakearray.push(nicesnowflake);
stage.addChild(nicesnowflake);
trace(nicesnowflakearray.length);
for (var i:Number = 0; i < nicesnowflakearray.length; i++){
nicesnowflakearray[i].addEventListener(Event.ENTER_FRAME, snowhit);
public function snowhit(event:Event) : void {
if (nicesnowflakearray[0].y >= 460){
if (nicesnowflakearray[0].y == stage.stageHeight) {
nicesnowflakearray.splice(nicesnowflakearray.indexOf(nicesnowflake), 1);
//if (this.hitTestObject(nicesnowflake)){
//trace("hit");
I am also fiddling with the collision, but I believe that it would sort itself out when I deal with the array pop and depop properly. However I'm pasting it anyway in case the issue is subtly hidden somewhere I'm not looking for it. And here is the child class:
public class Head extends Main {
public function Head(){
if (false){
super();
this.stop();
So like what happens at the moment is that the array gets populated by the first object that spawns, but there is two objects on the stage, then when the objects reach stage.460y mark the array splices() the one object away and displays an error:
"#1010: A term is undefined and has no properties.
at Main/snowhit()"
then when the next object spawns, it repeats the process. Why does it trace the array.length as "1, 1, 2, 2, 3, 3, 4, 4, 5, 5, etc" until the despawn point and then goes on to display an error and then starts from 1 again, because if the array length is more than one object at the time when the first object of the array gets spliced away, shouldn't it go on as usual, since there are other objects in the array?
Thank you very much to whomever will read this through.There are multiple problems:
1. You should add eventlisteners for your objects only once, but you add eventlisteners every time your timer runs to all of your snowflakes, again and again:
for (var i:Number = 0; i < nicesnowflakearray.length; i++){
nicesnowflakearray[i].addEventListener(Event.ENTER_FRAME, snowhit);
change it to
nicesnowflake.addEventListener(Event.ENTER_FRAME, snowhit);
I don`t see why its even necessary to employ this snowflakearray, it would be much straight forward if you simply let the snowflakes take care of themselves.
2. Then you have to change your enterframe function accordingly
public function snowhit(event:Event) : void {
if (e.currentTarget.y >= 460){
if (e.currentTarget.y == stage.stageHeight) {
e.currentTarget.removeEventlistener(Event.ENTER_FRAME, snowhit);
removeChild(e.currentTarget);
3.
//if (this.hitTestObject(nicesnowflake)){
//trace("hit");
since "this" is a reference to the Main class (root) it surely won`t function as you intend it to.
if (false){
super();
makes no sense to use a condition that can never be true -
Error #1010 on drag n drop game. Please Help
Hello everyone,
I am having been building a drag n drop flash game where you need to drag pictures of organisms into their position on a food web. The code was working when it was a simple food chain with each animals only have one position on the chain. I have no decided to make it a more complex and have things such as plants, having a couple of different positions in the chain. I have decided to try this using an array for each of the sets of pictures. At the moment the pictures can be picked up and moved around the screen, but not placed on any of the targets that I have put on the screen. My other problem is that the following error keeps coming up whenever I go to the frame.
TypeError: Error #1010: A term is undefined and has no properties.
at foodweb_fla::MainTimeline/activateDraggables()
at foodweb_fla::MainTimeline/frame6()
I have been trying for a couple of days now to work out whats going on withoutmuch luck due to my very average flash skills. The coding that I have done so far is below:
[CODE]
stop();
var startX2:Number;
var startY2:Number;
var counter2:Number=0;
score_txt.text=score;
var dropTargetss = new Array();
dropTargetss[0]=targetsun2_mc1;
dropTargetss[1]=targetsun2_mc2;
dropTargetss[2]=targetsun2_mc3;
dropTargetss[3]=targetsun2_mc4;
var dropTargetsp = new Array();
dropTargetsp[0]=targetplant2_mc1;
dropTargetsp[1]=targetplant2_mc2;
dropTargetsp[2]=targetplant2_mc3;
var dropTargetsi = new Array();
dropTargetsi[0]=targetinsect2_mc1;
dropTargetsi[1]=targetinsect2_mc2;
var draggableObjectss = new Array();
draggableObjectss[0]=sun2_mc1;
draggableObjectss[1]=sun2_mc2;
draggableObjectss[2]=sun2_mc3;
draggableObjectss[3]=sun2_mc4;
var draggableObjectsp = new Array();
draggableObjectsp[0]=plant2_mc1;
draggableObjectsp[1]=plant2_mc2;
draggableObjectsp[2]=plant2_mc3;
var draggableObjectsi = new Array();
draggableObjectsi[0]=insect2_mc1;
draggableObjectsi[1]=insect2_mc2;
Next3_b.addEventListener(MouseEvent.CLICK, onGuessClick3);
SA3_b.addEventListener(MouseEvent.CLICK, onSAClick3);
bird2_mc.addEventListener(MouseEvent.MOUSE_DOWN, pickUp5);
snake2_mc.addEventListener(MouseEvent.MOUSE_UP, dropIt5);
bird2_mc.buttonMode=true;
snake2_mc.addEventListener(MouseEvent.MOUSE_DOWN, pickUp5);
bird2_mc.addEventListener(MouseEvent.MOUSE_UP, dropIt5);
snake2_mc.buttonMode=true;
//BUTTON FUNCTIONS
function onGuessClick3(event:MouseEvent) {
//if(counter2 == 11){
gotoAndPlay(7);
//} else {
//reply2_txt.text = "You need to complete this food chain before moving forward!";
function onSAClick3(event:MouseEvent) {
gotoAndStop(1);
//PICKUP AND DROP FUNCTIONS
function activateDraggables():void {
for (var i:int = 0; i < draggableObjectss.length; i++) {
draggableObjectss[i].buttonMode=true;
draggableObjectss[i].addEventListener(MouseEvent.MOUSE_DOWN, pickUp2);
for (var j:int = 0; j < draggableObjectsp.length; j++) {
draggableObjectsp[j].buttonMode=true;
draggableObjectsp[j].addEventListener(MouseEvent.MOUSE_DOWN, pickUp3);
for (var k:int = 0; k < draggableObjectss.length; k++) {
draggableObjectsi[k].buttonMode=true;
draggableObjectsi[k].addEventListener(MouseEvent.MOUSE_DOWN, pickUp4);
activateDraggables();
function pickUp2(event:MouseEvent):void {
// add listener to stage to prevent stickiness
stage.addEventListener(MouseEvent.MOUSE_UP, dropIt2);
event.target.startDrag();
reply2_txt.text="Now put the tile in the correct position of the food chain.";
startX=event.target.x;
startY=event.target.y;
function dropIt2(event:MouseEvent):void {
event.target.stopDrag();
stage.removeEventListener(MouseEvent.MOUSE_UP, dropIt2);
if (event.target.dropTarget&&dropTargetss.indexOf(event.target.dropTarget)>-1) {
reply2_txt.text="Good Job";
event.target.x=event.target.dropTarget.x;
event.target.removeEventListener(MouseEvent.MOUSE_DOWN, pickUp2);
event.target.buttonMode=false;
} else {
reply2_txt.text="Try Again!";
event.target.x=startX;
event.target.y=startY;
function pickUp3(event:MouseEvent):void {
// add listener to stage to prevent stickiness
stage.addEventListener(MouseEvent.MOUSE_UP, dropIt3);
event.target.startDrag();
reply2_txt.text="Now put the tile in the correct position of the food chain.";
startX=event.target.x;
startY=event.target.y;
function dropIt3(event:MouseEvent):void {
event.target.stopDrag();
stage.removeEventListener(MouseEvent.MOUSE_UP, dropIt3);
if (event.target.dropTarget&&dropTargetsp.indexOf(event.target.dropTarget)>-1) {
reply2_txt.text="Good Job";
event.target.x=event.target.dropTarget.x;
event.target.removeEventListener(MouseEvent.MOUSE_DOWN, pickUp2);
event.target.buttonMode=false;
} else {
reply2_txt.text="Try Again!";
event.target.x=startX;
event.target.y=startY;
function pickUp4(event:MouseEvent):void {
// add listener to stage to prevent stickiness
stage.addEventListener(MouseEvent.MOUSE_UP, dropIt4);
event.target.startDrag();
reply2_txt.text="Now put the tile in the correct position of the food chain.";
startX=event.target.x;
startY=event.target.y;
function dropIt4(event:MouseEvent):void {
event.target.stopDrag();
stage.removeEventListener(MouseEvent.MOUSE_UP, dropIt4);
if (event.target.dropTarget&&dropTargetsi.indexOf(event.target.dropTarget)>-1) {
reply2_txt.text="Good Job";
event.target.x=event.target.dropTarget.x;
event.target.removeEventListener(MouseEvent.MOUSE_DOWN, pickUp2);
event.target.buttonMode=false;
} else {
reply2_txt.text="Try Again!";
event.target.x=startX;
event.target.y=startY;
function pickUp5(event:MouseEvent):void {
event.target.startDrag(true);
reply2_txt.text="Now put the tile in the correct position of the food chain.";
event.target.parent.addChild(event.target);
startX=event.target.x;
startY=event.target.y;
function dropIt5(event:MouseEvent):void {
event.target.stopDrag();
var myTargetName:String="target"+event.target.name;
var myTarget:DisplayObject=getChildByName(myTargetName);
if (event.target.dropTarget!=null&&event.target.dropTarget.parent==myTarget) {
reply2_txt.text="Good Work!";
event.target.removeEventListener(MouseEvent.MOUSE_DOWN, pickUp5);
event.target.removeEventListener(MouseEvent.MOUSE_UP, dropIt5);
event.target.buttonMode=false;
event.target.x=myTarget.x;
event.target.y=myTarget.y;
counter2++;
} else {
reply2_txt.text="That tile doesn't go there!";
event.target.x=startX2;
event.target.y=startY2;
if (counter2==11) {
reply2_txt.text="Congratulations you have completed the forest ecosystem!";
score++;
score++;
score++;
score++;
score++;
score++;
score_txt.text=score;
[/CODE]
Any help will be much appreciated. Thankyou in advanceclick file/publish settings/flash and tick "permit debugging". retest and using the line number in the error message fix your problem or post the line with the error.
-
AreaSeries on chart -- Error 1010 triggered
After reassigning the dataProvider array of my area chart, I
get the following error:
TypeError: Error #1010: A term is undefined and has no
properties.
at mx.charts.chartClasses::GraphicsUtilities$/drawPolyLine()
at
mx.charts.renderers::AreaRenderer/mx.charts.renderers:AreaRenderer::updateDisplayList()
at mx.skins::ProgrammaticSkin/validateDisplayList()
at mx.managers::LayoutManager/::validateDisplayList()
at mx.managers::LayoutManager/::doPhasedInstantiation()
at mx.managers::LayoutManager/validateNow()
at mx.controls::ComboBox/::displayDropdown()
at
mx.controls::ComboBox/mx.controls:ComboBox::downArrowButton_buttonDownHandler()
at
flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at mx.core::UIComponent/dispatchEvent()
at mx.controls::Button/
http://www.adobe.com/2006/flex/mx/internal::buttonPressed()
at mx.controls::Button/mx.controls:Button::mouseDownHandler()
at
flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at mx.core::UIComponent/dispatchEvent()
at mx.controls::ComboBase/::textInput_mouseEventHandler()
The strange thing is that the new array has 6 items! I check
its length (length greater than 2) before I assign it. However,
when the debugger breaks in drawPolyLine, the "pts" matrix has only
1 item. I don't know how the array goes from having 6 items to only
1. The stacktrace does not trace back to my code, so I am having
trouble debugging this.
I thought that setting the series' filterData property to
true would prevent this from occurring, but it didn't work.
Any ideas on how I can figure this out?
Thank you,
-Crelaxatraja:
Using permit debugging definitely helped me nail down the issue. No more 1010's. This is a great feature.
A couple more questions if I may - the site still experiences slow response when clicking from one song to another. Presently I have the .mp3 files for all of the seven CDs in one folder.
Will I increase response time between song choices if I create individual folders for each CD rather than one large folder?
Will I increase response time by reducing .mp3 file sound quality, therefore increasing loading speed - (this one seemsan obvious yes - and sound quality is already reasonably small)?
Is it possibly due to the first song choice (which has fast responee time) having to fully complete loading before a subsequent song choice can start to load - and if this is the case - can I script in a stop load function when a new choice is made ?
mememellowcore -
Thanks for reply.
I want to create a dynamic array and for this I used ArrayList Collection and Vector Class. I am using JDK 1.4.1 . But , I have a problem in that. In ArrayList, I used the following code:
ArrayList al = new ArrayList();
while(rs.next())
al.add(rs.getString("Enter_Year"));
al.add(rs.getString("UG_Production_Mi_Te"));
al.add(rs.getString("OC_Production_Mi_Te"));
al.add(rs.getString("Total_Production_Mi_Te"));
al.add(rs.getString("OBR_MM3"));
al.add(rs.getString("OMS_Te"));
al.add(rs.getString("Coal_Offtake_Mi_Te"));
al.add(rs.getString("Supply_to_Steel_Plant_Th_Te"));
al.add(rs.getString("Royalty_SalesTax_MP_Crs"));
al.add(rs.getString("Royalty_SalesTax_CG_Crs"));
al.add(rs.getString("Total_ManPower"));
al.add(rs.getString("Fatality_Rate_per_Mi_Te_Output"));
al.add(rs.getString("Total_Wellfare_Expenditure_Crs"));
String rpt[][] = new String[al.size()][];
rpt = al.toArray(rpt); // ArrayStoreExecption error
String colheads[] = {"...........My Table's Column names are here....."};
JTable table = new JTable(rpt,colheads);
JScrollPane jsp = new JScrollPane(table);
add(jsp);
At the statement having comment line I received the error ArrayStoreException. The JTable accepts the 2 D array for storing the info and I think the toArray() method is not working there and can't convert the ArrayList elements into an Array. Similarily, Vector Class is also not converting the elements into an array object and showing the same error only.
Please help me to convert it into an array object so that I can pass it into the JTable argument.That isn't a jdbc problem but rather a collection problem.
You certainly can't convert a one dimensional collection into a two dimensional array automatically. And that is what you are creating with the while loop.
Since you know the column names you also know the inner array size so you can start by creating a statically sized string array (not collection) in the loop and add that to the outer collection. That might solve the problem. -
Error occurred when modifying array
I have recently built a new machine with the stuff listed in my profile. I have trawled these formums but have not found any with the specific problem- given that i have not read every thing written perhaps some one can shed some light onto this problem.
I have a single Seagate Barracuda 120GB SATA drive that is recognised by the Promise BIOS after you press F6 (you get a "no Array defined" error and F6 to setup array or ESC to continue boot.
Once in the Bios you are offered (correctly) the performance option and all the seagates parameters are recognised correctly. This is true in option 1 auto and 3 define array. So you select Ctrl Y to build your array and get
"Error occurred when modifying array. System is going to Reboot ! press any key to reboot"
I don't know where to begin on this. the machine has no OS on it as I hoped to install XP onto this drive and have Mandrake on the 4GB.
Any ideas anyone.
P.S.
I have lots of cooling and a 400W PSU. :]hi
400w psu does not say ANYTHING.
for example an enermax 350w has MUCH more power than a q-tec 550w.
post amps on the 3.3v 5v and 12v rails on the psu.
should be written on a label on the psu.
k7n2 is VERY picky about memory and i dont think your memory is approved nforce2 memory.
there is a thread about memory at the top of this forum.
try other memory if you have it.
could also try http://www.memtest86.org
its a mem test program.
try to remove zip.
have seen alot of people having strange problem due to a zip drive.
bye -
I'm trying to finish this code for a class project, and I keep getting this "
TypeError: Error #1010: A term is undefined and has no properties.
at ViolaMobileGameStudentsVersion_fla::MainTimeline/gameLoop()"
I've debugged it and it's said that the issue is at frame 86, which is
"menuScreen.level_txt.text = String(level);"
Here's the whole code, it's kind of long but I can't figure anything out. All the texts have their proper names.
Any suggestions are appreciated, I have to have this turned in by saturday..
import fl.transitions.Tween;
import fl.transitions.easing.*;
import fl.transitions.TweenEvent;
import flash.events.Event;
import flash.events.KeyboardEvent;
import flash.media.Sound;
import flash.net.SharedObject;
import flash.events.MouseEvent;
/**************VARIABLES**************/
var STATE_INIT_GAME:String = "STATE_INIT_GAME";
var STATE_START_PLAYER:String = "STATE_START_PLAYER";
var STATE_PLAY_GAME:String = "STATE_PLAY_GAME";
var STATE_END_GAME:String = "STATE_END_GAME";
var gameState:String;
var player:MovieClip;
var enemies:Array;
var level:Number;
var score:Number;
var lives:Number;
var Bullet:Array;
//var bulletTimer:Timer = new Timer(200); // do not add this line
var explosions:Array;
var spaceKey:Boolean = false;
var rightKey:Boolean = false;
var leftKey:Boolean = false;
var upKey:Boolean = false;
var downKey:Boolean = false;
var accel:Accelerometer;
var hiddenOptions:Boolean = true;
/**************SETUP**************/
gameOverScreen.visible = false;
optionsMenu.visible = false;
stage.addEventListener(KeyboardEvent.KEY_DOWN, watchKeys);
stage.addEventListener(KeyboardEvent.KEY_UP, resetKey);
stage.addEventListener(KeyboardEvent.KEY_UP, optionsKey);
/**************INTRO SCREEN**************/
titleScreen.play_btn.addEventListener(MouseEvent.CLICK, clickAway);
function clickAway(event:MouseEvent):void
moveScreenOff(titleScreen);
//Gesture Swipe
Multitouch.inputMode = MultitouchInputMode.GESTURE;
titleScreen.addEventListener(TransformGestureEvent.GESTURE_SWIPE, swipeAway);
function swipeAway(event:TransformGestureEvent):void
//Swipe Left
if (event.offsetX == -1)
moveScreenOff(titleScreen);
function moveScreenOff(screen:MovieClip):void
var introTween = new Tween(screen,"x",Strong.easeInOut,screen.x,(screen.width)*-1,1,true);
introTween.addEventListener(TweenEvent.MOTION_FINISH, tweenFinish);
function tweenFinish(e:TweenEvent):void
gameState = STATE_INIT_GAME;
addEventListener(Event.ENTER_FRAME, gameLoop);
we stopped here
/**************GAME STATES**************/
function gameLoop(e:Event):void
menuScreen.level_txt.text = String(level);
menuScreen.score_txt.text = String(score);
menuScreen.lives_txt.text = String(lives);
switch (gameState)
case STATE_INIT_GAME :
initGame();
break;
case STATE_START_PLAYER :
startPlayer();
break;
case STATE_PLAY_GAME :
playGame();
break;
case STATE_END_GAME :
endGame();
break;
/**************STATE_INIT_GAME**************/
function initGame():void
player = new Player();
enemies = new Array();
Bullet = new Array();
explosions = new Array();
level = 1;
score = 0;
lives = 3;
fire_btn.visible = true;
gameState = STATE_START_PLAYER;
/**************STATE_START_PLAYER**************/
function startPlayer():void
player.x = stage.stageWidth / 2;
player.y = stage.stageHeight - player.height;
player.cacheAsBitmap = true;
addChild(player);
accel = new Accelerometer();
if (Accelerometer.isSupported)
accel.addEventListener(AccelerometerEvent.UPDATE, accelMove);
else
//If there is no accelerometer support...
addEventListener(Event.ENTER_FRAME, movePlayer);
gameState = STATE_PLAY_GAME;
function accelMove(event:AccelerometerEvent):void
player.x -= event.accelerationX * 100;
player.y += event.accelerationY * 80;
if (player.x < 0)
player.x = 0;
else if (player.x > (stage.stageWidth - player.width) )
player.x = stage.stageWidth - player.width;
if (player.y < 50)
player.y = 50;
else if (player.y > stage.stageHeight - player.height)
player.y = stage.stageHeight - player.height;
addEventListener(MouseEvent.CLICK,fire);
function fire(evt:MouseEvent):void
createBullet();
function movePlayer(Evt:Event):void
if (rightKey)
player.x += 10;
else if (leftKey)
player.x -= 10;
if (upKey)
player.y -= 4;
else if (downKey)
player.y += 4;
if (spaceKey)
createBullet();
if (player.x < 0)
player.x = 0;
else if (player.x > stage.stageWidth - player.width)
player.x = stage.stageWidth - player.width;
if (player.y < 50)
player.y = 50;
else if (player.y > stage.stageHeight - player.height)
player.y = stage.stageHeight - player.height;
function createBullet():void
var tempBullet:MovieClip = new Bullets();
tempBullet.x = player.x;
tempBullet.y = player.y;
tempBullet.cacheAsBitmap = true;
tempBullet.speed = 15;
addChild(tempBullet);
Bullet.push(tempBullet);
function moveBullet():void
var tempBullet:MovieClip;
for (var i=Bullet.length-1; i>=0; i--)
tempBullet = Bullet[i];
tempBullet.y -= tempBullet.speed;
if (tempBullet.y < 0)
removeBullet(i);
var tempExplosion:MovieClip;
for (i=explosions.length-1; i>=0; i--)
tempExplosion = explosions[i];
if (tempExplosion.currentFrame >= tempExplosion.totalFrames)
removeExplosion(i);
/**************STATE_PLAY_GAME**************/
function playGame():void
makeEnemies();
moveEnemies();
moveBullet();
testForEnd();
function makeEnemies():void
var chance:Number = Math.floor(Math.random() * 60);
var whichEnemy:Number = Math.round(Math.random() * 2 + 1);
if (chance <= 1 + level)
var tempEnemy:MovieClip;
tempEnemy = new Enemy();
tempEnemy.gotoAndStop(whichEnemy);
tempEnemy.speed = 3;
tempEnemy.x = Math.round((Math.random() * 800) + 20);
tempEnemy.cacheAsBitmap = true;
addChild(tempEnemy);
enemies.push(tempEnemy);
setChildIndex(menuScreen,numChildren-1);
function moveEnemies():void
var tempEnemy:MovieClip;
for (var i:int =enemies.length-1; i>=0; i--)
tempEnemy = enemies[i];
tempEnemy.y += tempEnemy.speed;
if (tempEnemy.y > stage.stageHeight)
removeEnemy(i);
lives--;
else if (tempEnemy.hitTestObject(player))
makeExplosion(tempEnemy.x, tempEnemy.y);
removeEnemy(i);
lives--;
var tempBullet:MovieClip;
//tempEnemy = enemies[i];
for (var j:int=Bullet.length-1; j>=0; j--)
tempBullet = Bullet[j];
if (tempEnemy.hitTestObject(tempBullet))
makeExplosion(tempEnemy.x, tempEnemy.y);
removeEnemy(i);
removeBullet(j);
score += 5;
function makeExplosion(ex:Number, ey:Number):void
var tempExplosion:MovieClip;
tempExplosion = new Explosion();
tempExplosion.x = ex;
tempExplosion.y = ey;
addChild(tempExplosion);
explosions.push(tempExplosion);
//var sound:Sound = new Explode();
//sound.play();
function testForEnd():void
if (score > level * 100)
level++;
if (lives == 0)
gameState = STATE_END_GAME;
function removeEnemy(idx:int)
removeChild(enemies[idx]);
enemies.splice(idx,1);
function removeBullet(idx:int)
removeChild(Bullet[idx]);
Bullet.splice(idx,1);
function removeExplosion(idx:int)
removeChild(explosions[idx]);
explosions.splice(idx,1);
/*********** KEY PRESS ***********/
function watchKeys(evt:KeyboardEvent):void
if (evt.keyCode == Keyboard.SPACE)
spaceKey = true;
if (evt.keyCode == Keyboard.RIGHT)
rightKey = true;
if (evt.keyCode == Keyboard.LEFT)
leftKey = true;
if (evt.keyCode == Keyboard.UP)
upKey = true;
if (evt.keyCode == Keyboard.DOWN)
downKey = true;
function resetKey(evt:KeyboardEvent):void
if (evt.keyCode == Keyboard.SPACE)
spaceKey = false;
if (evt.keyCode == Keyboard.RIGHT)
rightKey = false;
if (evt.keyCode == Keyboard.LEFT)
leftKey = false;
if (evt.keyCode == Keyboard.UP)
upKey = false;
if (evt.keyCode == Keyboard.DOWN)
downKey = false;
/**************END SCREEN**************/
function endGame():void
accel.removeEventListener(AccelerometerEvent.UPDATE, accelMove);
removeEventListener(Event.ENTER_FRAME, gameLoop);
stage.removeEventListener(KeyboardEvent.KEY_DOWN, watchKeys);
stage.removeEventListener(KeyboardEvent.KEY_UP, resetKey);
fire_btn.enabled = false;
fire_btn.visible = false;
removeEventListener(MouseEvent.CLICK,fire);
removeGame();
gameOverScreen.visible = true;
gameOverScreen.x = 0;
showResults();
/**************REMOVE GAME**************/
function removeGame():void
for (var i:int = enemies.length-1; i >=0; i--)
removeEnemy(i);
for (var j:int = Bullet.length-1; j >=0; j--)
removeBullet(j);
for (var k:int = explosions.length-1; k >=0; k--)
removeExplosion(k);
removeChild(player);
function showResults():void
gameOverScreen.enter_btn.visible = false;
gameOverScreen.nameField_txt.visible = false;
var so:SharedObject = SharedObject.getLocal("alltimeHighScore");
if (so.data.score == undefined || score > so.data.score)
gameOverScreen.highScore_txt.text = "You made it to level " + level + " with a high score of " + score + ". \n Enter your name below.";
gameOverScreen.enter_btn.visible = true;
gameOverScreen.nameField_txt.visible = true;
else
gameOverScreen.highScore_txt.text = "Your score of " + score + " \n does not beat " + so.data.score + " \n by " + so.data.name;
gameOverScreen.quit_btn.addEventListener(MouseEvent.CLICK, exitApp);
gameOverScreen.enter_btn.addEventListener(MouseEvent.CLICK, clickEnter);
function clickEnter(event:MouseEvent):void
gameOverScreen.highScore_txt.text = "Great job, " + gameOverScreen.nameField_txt.text + "! \n You made it to level " + level + " \n with a score of " + score + "!";
so.data.score = score;
so.data.level = level;
so.data.name = gameOverScreen.nameField_txt.text;
so.flush();
gameOverScreen.enter_btn.visible = false;
gameOverScreen.nameField_txt.visible = false;
//Enables the play button
gameOverScreen.playAgain_btn.addEventListener(MouseEvent.CLICK, clickFinalAway);
function clickFinalAway(event:MouseEvent):void
moveScreenOff(gameOverScreen);
/**************OPTIONS MENU**************/
function optionsKey(event:KeyboardEvent):void
//Options menu, use 16777234 or Keyboard.MENU
if (event.keyCode == 16777234)
if (hiddenOptions)
setChildIndex(optionsMenu,numChildren-1);
optionsMenu.visible = true;
optionsMenu.addEventListener(MouseEvent.CLICK, exitApp);
pauseGame();
else
optionsMenu.visible = false;
optionsMenu.removeEventListener(MouseEvent.CLICK, exitApp);
resumeGame();
hiddenOptions = ! hiddenOptions;
function exitApp(event:MouseEvent):void
//NativeApplication.nativeApplication.exit(0);
//Keep screen awake if you are using the Accelerometer etc.
//NativeApplication.nativeApplication.systemIdleMode = SystemIdleMode.KEEP_AWAKE;
stage.addEventListener(Event.DEACTIVATE, Deactivate);
function Deactivate(event:Event):void
pauseGame();
stage.addEventListener(Event.ACTIVATE, Activate);
function Activate(event:Event):void
resumeGame();
function pauseGame():void
//Remove any listener events, timers etc.
if (gameState == STATE_PLAY_GAME)
removeEventListener(Event.ENTER_FRAME, gameLoop);
accel.removeEventListener(AccelerometerEvent.UPDATE, accelMove);
removeEventListener(MouseEvent.CLICK,fire);
function resumeGame():void
//Activate any listener events, timers etc.
if (gameState == STATE_PLAY_GAME)
addEventListener(Event.ENTER_FRAME, gameLoop);
accel.addEventListener(AccelerometerEvent.UPDATE, accelMove);
addEventListener(MouseEvent.CLICK,fire);I don't see where menuScreen is intialized... It's also long after this was due, hope you figured it out.
-
Error #1010: a term is undefined
Error #1010: Een term is ongedefinieerd ....
TypeError: Error #1010: a term is undefined and has no properties.
at portfolio_fla::guestbook_MC_113/serverScoreFeedback()
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at flash.net::URLLoader/onComplete()
Hi, i have this fully working fla, wich sends and gets info out of a database
its a frame and a actionframe
when i put these in a mc on the mainstage of another fla, its not working anymore
ive been searching like hell, but cant find the error
probably something thats not imported in the maintimeline.as????
this is the code
maintimeline.as
ActionScript 3 Code:
package portfolio_fla
import flash.display.*;
import flash.events.*;
import flash.net.*;
import flash.text.*;
dynamic public class MainTimeline extends MovieClip
public var knop_cv:SimpleButton;
public var knop_about:SimpleButton;
public var knop_webdesign:SimpleButton;
public var knop_photography:SimpleButton;
public var knop_contact:SimpleButton;
public var diafragma:MovieClip;
public var geklikt:String;
public var knop_home:SimpleButton;
public var knop_guestbook:SimpleButton;
public var home_text:TextField;
public var about_text:TextField;
public var contactform:MovieClip;
public var guestbookform:MovieClip;
var txtFile:String = "home.txt";
var urlRequest:URLRequest = new URLRequest (txtFile);
var loader:URLLoader = new URLLoader();
var txtFile2:String = "about.txt";
var urlRequest2:URLRequest = new URLRequest (txtFile2);
var loader2:URLLoader = new URLLoader();
function loadHandler(e:Event):void
var loader:URLLoader = URLLoader(e.target);
home_text.text = loader.data;
contactform.visible = false;
guestbookform.visible = false;
about_text.visible = false;
function loadHandler2(e:Event):void
var loader2:URLLoader = URLLoader(e.target);
about_text.text = loader2.data;
public function MainTimeline()
loader.addEventListener(Event.COMPLETE, loadHandler);
loader.load(urlRequest);
loader2.addEventListener(Event.COMPLETE, loadHandler2);
loader2.load(urlRequest2);
addFrameScript(0, frame1, 19, frame20);
return;
}// end function
function frame1()
knop_home.addEventListener(MouseEvent.CLICK, home);
knop_about.addEventListener(MouseEvent.CLICK, about);
knop_cv.addEventListener(MouseEvent.CLICK, cv);
knop_webdesign.addEventListener(MouseEvent.CLICK, webdesign);
knop_photography.addEventListener(MouseEvent.CLICK, photography);
knop_guestbook.addEventListener(MouseEvent.CLICK, guestbook);
knop_contact.addEventListener(MouseEvent.CLICK, contact);
stop();
return;
}// end function
function frame20()
stop();
return;
}// end function
function frame40()
stop();
return;
}// end function
function frame60()
stop();
return;
}// end function
function frame80()
stop();
return;
}// end function
function frame100()
stop();
return;
}// end function
function frame120()
stop();
return;
}// end function
function frame140()
stop();
return;
}// end function
public function contact(event:MouseEvent)
geklikt = "Contact";
this.diafragma.lamel1.gotoAndPlay(2);
this.diafragma.lamel2.gotoAndPlay(2);
this.diafragma.lamel3.gotoAndPlay(2);
this.diafragma.lamel4.gotoAndPlay(2);
this.diafragma.lamel5.gotoAndPlay(2);
this.diafragma.lamel6.gotoAndPlay(2);
this.diafragma.lamel7.gotoAndPlay(2);
this.diafragma.lamel8.gotoAndPlay(2);
this.diafragma.lamel9.gotoAndPlay(2);
this.diafragma.lamel10.gotoAndPlay(2);
return;
}// end function
public function guestbook(event:MouseEvent)
geklikt = "Guestbook";
this.diafragma.lamel1.gotoAndPlay(2);
this.diafragma.lamel2.gotoAndPlay(2);
this.diafragma.lamel3.gotoAndPlay(2);
this.diafragma.lamel4.gotoAndPlay(2);
this.diafragma.lamel5.gotoAndPlay(2);
this.diafragma.lamel6.gotoAndPlay(2);
this.diafragma.lamel7.gotoAndPlay(2);
this.diafragma.lamel8.gotoAndPlay(2);
this.diafragma.lamel9.gotoAndPlay(2);
this.diafragma.lamel10.gotoAndPlay(2);
return;
}// end function
public function photography(event:MouseEvent)
geklikt = "Photography";
this.diafragma.lamel1.gotoAndPlay(2);
this.diafragma.lamel2.gotoAndPlay(2);
this.diafragma.lamel3.gotoAndPlay(2);
this.diafragma.lamel4.gotoAndPlay(2);
this.diafragma.lamel5.gotoAndPlay(2);
this.diafragma.lamel6.gotoAndPlay(2);
this.diafragma.lamel7.gotoAndPlay(2);
this.diafragma.lamel8.gotoAndPlay(2);
this.diafragma.lamel9.gotoAndPlay(2);
this.diafragma.lamel10.gotoAndPlay(2);
return;
}// end function
public function webdesign(event:MouseEvent)
geklikt = "Webdesign";
this.diafragma.lamel1.gotoAndPlay(2);
this.diafragma.lamel2.gotoAndPlay(2);
this.diafragma.lamel3.gotoAndPlay(2);
this.diafragma.lamel4.gotoAndPlay(2);
this.diafragma.lamel5.gotoAndPlay(2);
this.diafragma.lamel6.gotoAndPlay(2);
this.diafragma.lamel7.gotoAndPlay(2);
this.diafragma.lamel8.gotoAndPlay(2);
this.diafragma.lamel9.gotoAndPlay(2);
this.diafragma.lamel10.gotoAndPlay(2);
return;
}// end function
public function cv(event:MouseEvent)
geklikt = "Cv";
this.diafragma.lamel1.gotoAndPlay(2);
this.diafragma.lamel2.gotoAndPlay(2);
this.diafragma.lamel3.gotoAndPlay(2);
this.diafragma.lamel4.gotoAndPlay(2);
this.diafragma.lamel5.gotoAndPlay(2);
this.diafragma.lamel6.gotoAndPlay(2);
this.diafragma.lamel7.gotoAndPlay(2);
this.diafragma.lamel8.gotoAndPlay(2);
this.diafragma.lamel9.gotoAndPlay(2);
this.diafragma.lamel10.gotoAndPlay(2);
return;
}// end function
public function about(event:MouseEvent)
geklikt = "About";
this.diafragma.lamel1.gotoAndPlay(2);
this.diafragma.lamel2.gotoAndPlay(2);
this.diafragma.lamel3.gotoAndPlay(2);
this.diafragma.lamel4.gotoAndPlay(2);
this.diafragma.lamel5.gotoAndPlay(2);
this.diafragma.lamel6.gotoAndPlay(2);
this.diafragma.lamel7.gotoAndPlay(2);
this.diafragma.lamel8.gotoAndPlay(2);
this.diafragma.lamel9.gotoAndPlay(2);
this.diafragma.lamel10.well, ive tried on putting the frames not in the MC, but on the mainstage
and the actionscript i put it into my other maintimeline.as
all works good, untill i paste the piece of
name_txt.text = "";
score_txt.text = "";
feedback_txt.text = "";
then i get
ReferenceError: Error #1065: Variabele name_txt is not defined
at portfolio_fla::MainTimeline$cinit()
at global$init()
why is this?
the code works on its own, then i didnt need to define name_txt
this is how maintimeline.as looks like now
package portfolio_fla
import flash.display.*;
import flash.events.*;
import flash.net.*;
import flash.text.*;
dynamic public class MainTimeline extends MovieClip
public var knop_cv:SimpleButton;
public var knop_about:SimpleButton;
public var knop_webdesign:SimpleButton;
public var knop_photography:SimpleButton;
public var knop_contact:SimpleButton;
public var diafragma:MovieClip;
public var geklikt:String;
public var knop_home:SimpleButton;
public var knop_guestbook:SimpleButton;
public var home_text:TextField;
public var about_text:TextField;
public var contactform:MovieClip;
public var guestbookform:MovieClip;
var txtFile:String = "home.txt";
var urlRequest:URLRequest = new URLRequest (txtFile);
var loader:URLLoader = new URLLoader();
var txtFile2:String = "about.txt";
var urlRequest2:URLRequest = new URLRequest (txtFile2);
var loader2:URLLoader = new URLLoader();
const SERVER_FILE:String = "http://localhost/portfolio/highscore_board.php";
const SENT_SUCCESS:String = "Successful";
const SENT_FAILED:String = "Unsuccessful";
const NUM_OF_SCORES:int = 8;
function submitScoreToServer(evt:MouseEvent):void {
var passChecks:Boolean = true;
if(score_txt.text.length < 1) {
feedback_txt.text = "Please fill in a score.";
passChecks = false;
if(name_txt.text.length < 1) {
feedback_txt.text = "Please fill in a name.";
passChecks = false;
if(passChecks) {
submit_btn.enabled = false;
feedback_txt.text = "Submitting score...";
var urlVars:URLVariables = new URLVariables();
var urlReq:URLRequest = new URLRequest(SERVER_FILE);
var ldr:URLLoader = new URLLoader();
urlVars.todo = "insert";
urlVars.name = name_txt.text;
urlVars.score = score_txt.text;
urlReq.data = urlVars;
urlReq.method = URLRequestMethod.POST;
ldr.addEventListener(Event.COMPLETE, serverInsertFeedback);
ldr.load(urlReq);
function serverInsertFeedback(evt:Event):void {
var ldr:URLLoader = evt.target as URLLoader;
var urlVars:URLVariables = new URLVariables(ldr.data);
if(urlVars.result == SENT_SUCCESS) {
feedback_txt.text = "Score sent successfully.";
getScoreFromServer();
} else if(urlVars.result == SENT_FAILED) {
feedback_txt.text = "Problem submitting score to server.";
submit_btn.enabled = true;
function serverScoreFeedback(evt:Event):void {
var ldr:URLLoader = evt.target as URLLoader;
var urlVars:URLVariables = new URLVariables(ldr.data);
if(urlVars.result == SENT_SUCCESS) {
for(var i:int = 1; i <= NUM_OF_SCORES; i++) {
root["boardName0" + i + "_txt"].text = "Unoccupied";
root["boardScore0" + i + "_txt"].text = "-";
if(urlVars["name0" + i] != null) {
root["boardName0" + i + "_txt"].text = urlVars["name0" + i];
root["boardScore0" + i + "_txt"].text = urlVars["score0" + i];
feedback_txt.text = "Score board has been updated.";
} else if(urlVars.result == SENT_FAILED) {
feedback_txt.text = "There was a problem retrieving the scores.";
function getScoreFromServer():void {
feedback_txt.text = "Retrieving scores...";
var urlVars:URLVariables = new URLVariables();
var urlReq:URLRequest = new URLRequest(SERVER_FILE);
var ldr:URLLoader = new URLLoader();
urlVars.todo = "score";
urlReq.data = urlVars;
urlReq.method = URLRequestMethod.POST;
ldr.addEventListener(Event.COMPLETE, serverScoreFeedback);
ldr.load(urlReq);
name_txt.text = "";
score_txt.text = "";
feedback_txt.text = "";
submit_btn.addEventListener(MouseEvent.CLICK, submitScoreToServer);
getScoreFromServer();
function loadHandler(e:Event):void
var loader:URLLoader = URLLoader(e.target);
home_text.text = loader.data;
contactform.visible = false;
about_text.visible = false;
function loadHandler2(e:Event):void
var loader2:URLLoader = URLLoader(e.target);
about_text.text = loader2.data;
public function MainTimeline()
loader.addEventListener(Event.COMPLETE, loadHandler);
loader.load(urlRequest);
loader2.addEventListener(Event.COMPLETE, loadHandler2);
loader2.load(urlRequest2);
addFrameScript(0, frame1, 19, frame20);
return;
}// end function
function frame1()
knop_home.addEventListener(MouseEvent.CLICK, home);
knop_about.addEventListener(MouseEvent.CLICK, about);
knop_cv.addEventListener(MouseEvent.CLICK, cv);
knop_webdesign.addEventListener(MouseEvent.CLICK, webdesign);
knop_photography.addEventListener(MouseEvent.CLICK, photography);
knop_guestbook.addEventListener(MouseEvent.CLICK, guestbook);
knop_contact.addEventListener(MouseEvent.CLICK, contact);
stop();
return;
}// end function
function frame20()
stop();
return;
}// end function
function frame40()
stop();
return;
}// end function
function frame60()
stop();
return;
}// end function
function frame80()
stop();
return;
}// end function
function frame100()
stop();
return;
}// end function
function frame120()
stop();
return;
}// end function
function frame140()
stop();
return;
}// end function
public function contact(event:MouseEvent)
geklikt = "Contact";
this.diafragma.lamel1.gotoAndPlay(2);
this.diafragma.lamel2.gotoAndPlay(2);
this.diafragma.lamel3.gotoAndPlay(2);
this.diafragma.lamel4.gotoAndPlay(2);
this.diafragma.lamel5.gotoAndPlay(2);
this.diafragma.lamel6.gotoAndPlay(2);
this.diafragma.lamel7.gotoAndPlay(2);
this.diafragma.lamel8.gotoAndPlay(2);
this.diafragma.lamel9.gotoAndPlay(2);
this.diafragma.lamel10.gotoAndPlay(2);
return;
}// end function
public function guestbook(event:MouseEvent)
geklikt = "Guestbook";
this.diafragma.lamel1.gotoAndPlay(2);
this.diafragma.lamel2.gotoAndPlay(2);
this.diafragma.lamel3.gotoAndPlay(2);
this.diafragma.lamel4.gotoAndPlay(2);
this.diafragma.lamel5.gotoAndPlay(2);
this.diafragma.lamel6.gotoAndPlay(2);
this.diafragma.lamel7.gotoAndPlay(2);
this.diafragma.lamel8.gotoAndPlay(2);
this.diafragma.lamel9.gotoAndPlay(2);
this.diafragma.lamel10.gotoAndPlay(2);
return;
}// end function
public function photography(event:MouseEvent)
geklikt = "Photography";
this.diafragma.lamel1.gotoAndPlay(2);
this.diafragma.lamel2.gotoAndPlay(2);
this.diafragma.lamel3.gotoAndPlay(2);
this.diafragma.lamel4.gotoAndPlay(2);
this.diafragma.lamel5.gotoAndPlay(2);
this.diafragma.lamel6.gotoAndPlay(2);
this.diafragma.lamel7.gotoAndPlay(2);
this.diafragma.lamel8.gotoAndPlay(2);
this.diafragma.lamel9.gotoAndPlay(2);
this.diafragma.lamel10.gotoAndPlay(2);
return;
}// end function
public function webdesign(event:MouseEvent)
geklikt = "Webdesign";
this.diafragma.lamel1.gotoAndPlay(2);
this.diafragma.lamel2.gotoAndPlay(2);
this.diafragma.lamel3.gotoAndPlay(2);
this.diafragma.lamel4.gotoAndPlay(2);
this.diafragma.lamel5.gotoAndPlay(2);
this.diafragma.lamel6.gotoAndPlay(2);
this.diafragma.lamel7.gotoAndPlay(2);
this.diafragma.lamel8.gotoAndPlay(2);
this.diafragma.lamel9.gotoAndPlay(2);
this.diafragma.lamel10.gotoAndPlay(2);
return;
}// end function
public function cv(event:MouseEvent)
geklikt = "Cv";
this.diafragma.lamel1.gotoAndPlay(2);
this.diafragma.lamel2.gotoAndPlay(2);
this.diafragma.lamel3.gotoAndPlay(2);
this.diafragma.lamel4.gotoAndPlay(2);
this.diafragma.lamel5.gotoAndPlay(2);
this.diafragma.lamel6.gotoAndPlay(2);
this.diafragma.lamel7.gotoAndPlay(2);
this.diafragma.lamel8.gotoAndPlay(2);
this.diafragma.lamel9.gotoAndPlay(2);
this.diafragma.lamel10.gotoAndPlay(2);
return;
}// end function
public function about(event:MouseEvent)
geklikt = "About";
this.diafragma.lamel1.gotoAndPlay(2);
this.diafragma.lamel2.gotoAndPlay(2);
this.diafragma.lamel3.gotoAndPlay(2);
this.diafragma.lamel4.gotoAndPlay(2);
this.diafragma.lamel5.gotoAndPlay(2);
this.diafragma.lamel6.gotoAndPlay(2);
this.diafragma.lamel7.gotoAndPlay(2);
this.diafragma.lamel8.gotoAndPlay(2);
this.diafragma.lamel9.gotoAndPlay(2);
this.diafragma.lamel10.gotoAndPlay(2);
return;
}// end function
public function home(event:MouseEvent)
geklikt = "Home";
this.diafragma.lamel1.gotoAndPlay(2);
this.diafragma.lamel2.gotoAndPlay(2);
this.diafragma.lamel3.gotoAndPlay(2);
this.diafragma.lamel4.gotoAndPlay(2);
this.diafragma.lamel5.gotoAndPlay(2);
this.diafragma.lamel6.gotoAndPlay(2);
this.diafragma.lamel7.gotoAndPlay(2);
this.diafragma.lamel8.gotoAndPlay(2);
this.diafragma.lamel9.gotoAndPlay(2);
this.diafragma.lamel10.gotoAndPlay(2);
return;
}// end function -
TypeError: Error #1010 on code that doesn't exist.
Hello all,
I have a drop down menu with 7 options. The menu is a movie clip with a mask that reveals each of the buttons when a person mouse_overs the menu button. Each menu option does the same thing, it will call a function based on the button clicked. The function for each button does the same thing:
function INDEX_Safety (e:MouseEvent):void
play();
INDEX_SAFETY=true;
Sound_Stopper ();
Each of the functions will change the value of its respecive boolean variable. One for each button. Sound Stopper is a function that stops any FLV Sound that is currently playing.
When it goes through play() it will come to a particular frame that has:
Index_Jumper ();
this function determines which boolean has been set to true, and does a gotoAndPlay("Label Name") based on the boolean that has been set to true. Then sets the boolean back to false.
function Index_Jumper ():void
if (INDEX_SAFETY==true){gotoAndPlay("Safety"); INDEX_SAFETY=false;}
if (INDEX_TOOLS==true){gotoAndPlay("Tools and Positions"); INDEX_TOOLS=false;}
if (INDEX_METHODS==true){gotoAndPlay("The Methods"); INDEX_METHODS=false;}
if (INDEX_METHOD1==true){gotoAndPlay("Method 1"); INDEX_METHOD1=false;}
if (INDEX_METHOD2==true){gotoAndPlay("Method 2"); INDEX_METHOD2=false;}
if (INDEX_TDBL==true){gotoAndPlay("Installing TDBL"); INDEX_TDBL=false;}
if (INDEX_RAISING==true){gotoAndPlay("Raising the Stand"); INDEX_RAISING=false;}
The issue i am having: When i click on the 6th option, TDBL, i get the error:
TypeError: Error #1010: A term is undefined and has no properties.
at RaisingtheOperatorsPlatform_fla::MainTimeline/frame147()[RaisingtheOperatorsPlatform_fla. MainTimeline::frame147:10]
It says frame 147:10
From my understanding this means the 10th line on Frame 147.
This is my frame 147:
1. stop ();
2. Caption ();
3. IndexMC.Safety_Menu_Button.addEventListener(MouseEvent.CLICK, INDEX_Safety);
4. IndexMC.Tools_Menu_Button.addEventListener(MouseEvent.CLICK, INDEX_Tools);
5. IndexMC.Methods_Menu_Button.addEventListener(MouseEvent.CLICK, INDEX_Methods);
6. IndexMC.Method1_Menu_Button.addEventListener(MouseEvent.CLICK, INDEX_Method1);
7. IndexMC.Method2_Menu_Button.addEventListener(MouseEvent.CLICK, INDEX_Method2);
8. IndexMC.TBDL_Menu_Button.addEventListener(MouseEvent.CLICK, INDEX_Tdbl);
9. IndexMC.Raising_Menu_Button.addEventListener(MouseEvent.CLICK, INDEX_Raising);
I dont have a 10th line.
also, when i click the 7th option, nothing happens. However, options 1 - 5 on the drop down menu work just fine.
Thanks for any insight.Right after posting that, I got an idea to try adding the following to frame 1:
addEventListener(Event.ENTER_FRAME, Frame_147);
function Frame_147 (event:Event):void
if (currentFrame==147)
stop ();
Caption ();
IndexMC.Safety_Menu_Button.addEventListener(MouseEvent.CLICK, INDEX_Safety);
IndexMC.Tools_Menu_Button.addEventListener(MouseEvent.CLICK, INDEX_Tools);
IndexMC.Methods_Menu_Button.addEventListener(MouseEvent.CLICK, INDEX_Methods);
IndexMC.Method1_Menu_Button.addEventListener(MouseEvent.CLICK, INDEX_Method1);
IndexMC.Method2_Menu_Button.addEventListener(MouseEvent.CLICK, INDEX_Method2);
IndexMC.TDBL_Menu_Button.addEventListener(MouseEvent.CLICK, INDEX_Tdbl);
IndexMC.Raising_Menu_Button.addEventListener(MouseEvent.CLICK, INDEX_Raising);
I then commented-out frame 147.
the error i got pointed to line 36 of frame 1, which is:
IndexMC.TDBL_Menu_Button.addEventListener(MouseEvent.CLICK, INDEX_Tdbl);
Being able to focus on this, i see that i have IndexMC.TBDL instead of IndexMC.TDBL, i think this was one of those "been looking at this thing for too long" errors. Thank you for looking into this, the problem is now solved. As for the error pointing to a line that doesn't exist:
I still have no idea why it would say the issue was frame 147:10 -
Error 1010: term is undefined.... ?
i am running into the error: "#1010: A term in undefined and has no properties."
this is refering to the line:
trace ("btnLMain.langBoxS.name: " + btnLMain.langBoxS.name);
but i dont understand how this could be as i have each of the above defined as shown here:
var langBox:Shape = new Shape();
langBox.graphics.beginFill(0x000000, .75)
langBox.graphics.drawRect(0, 0, bxW, bxH); //i have bxW and bxH defined earlier in my code
langBox.graphics.endFill();
var langBoxS:MovieClip = new MovieClip();
langBoxS.name "da Box";
langBoxS.addChild(langBox);
var btnLMain:MovieClip = new MovieClip();
btnLMain.addChild(langBoxS);
btnLMain.x = 800;
btnLMain.x = 800;
addChild(btnLMain);
trace ("btnLMain.langBoxS.name: " + btnLMain.langBoxS.name);
do you know what's possibly wrong?You cannot use dot notation to target dynamically added children... While it will work for manually defined objects, as Andrei showed, you will need to use the getChild... methods if you want to try to target thru parent objects. But you do not need to target thru parent objects at all since you already have a direct reference to the intended target since it was declared independently...
trace ("btnLMain.langBoxS.name: " + langBoxS.name); -
Store int values into dynamic array
Hello all,
I'm a newbie in JAVA whose want to store int values (coming from a resultset) into an dynamic array. I know that normally to create a "dynamic array" you'd better use a Vector, but it seems that I don't know how to use it correctly (throws me a exception as : Incompatible type for method. Can't convert int[] to java.lang.Object[]).
Thanks in advance
STFI want to use the copyInto method of the vector, but it throw me an exception as ')' expected
I include a snip of my code below ;
Vector v= new Vector();
Vector vv=new Vector();
String[] labels=new String[v.size()];
Integer[] values=new Integer[vv.size()];
cont=rs.getInt("COUNT(CASE_ID_)");
vv.add(j,new Integer(cont));
log=rs.getString("ORIG_SUBMITTER");
v.add(j,new String(log));
v.copyInto(String[] labels);
vv.copyInto(Integer[] values); -
My main concern is worrying about having a memory leak due to a program crashing before it has the chance to reach the line of code in which technically releases its memory. What I do not understand is, if the program does crashes before it can release the memory of any dynamic arrays, wouldn't the memory leak still exist the next time you run the program and causing the leak to get worse each time?
for example, if I had something like this...
int main()
int *a = new int[10];
bool game = true;
// then for some reason the program crashes somewhere along these lines...
while(game) {
do some code in which some reason cause the program to crash
delete [] a;
return 0;
here in the example, if the program had crashed inside the while loop, wouldn't I have a memory leak which exist forever?BnTheMan wrote:
The first instance is I wanted to know after reading some topics on the internet, I have heard that is is not a good Idea to set a pointer to know inside of a constructer class like this...
should you do this, or does it depend on the compiler that you use, and what about if you are using XCode?
Did you mean to type "not a good Idea to set a pointer to NULL"? That is what you code seems to say.
They key part is memory management. People have been screwing that up for decades. You should initialize pointers to NULL or 0 (same thing) before using them. Then, when you are done with them, if they aren't NULL, you must release them. Even if you haven't allocated a pointer, you can always release it if it is NULL using free(), delete, or release - depending on what language you are using.
If you allocate a pointer, then release its memory, you should re-set it back to NULL immediately if there is any chance that some other bit of code could try to release the memory. If you try to free a pointer twice, your app will crash.
All this is true in any environment that doesn't have garbage collection. Don't think that garbage collection is the panacea it is made out to be. It is better to be able to manage your own memory when you need to. Plus, there are more system resources than just memory.
2. The next thing I noticed was that it did not have any memory releasing code for when there is a problem with reading the file, such as if the file could not be opened. So I am wondering if something was to happen when opening the second MD2 file, in that it could not open the file because it was currupted, and I did something like this...
MD2_Object::loadObject() {
ifstream inFile;
char buffer[64];
inFile.open(myFile, istream::binary);
if(!inFile) {
... the code I need to my question
How can I tell the program that there was an error and that it needs to release the memory from the first dynamic array variable?
(I added some { code } statements to format your code nicely. Reply to this post to see how I did it.)
That is a good question, with several caveats. In your example, you are actually using static variables, not dynamic. All of your data is allocated on the stack. You didn't use any sort of malloc(), new, alloc, etc. Therefore, memory management is easy. When the current scope ends (usually the code between braces) anything allocated on the stack automatically goes away cleanly. Plus, since the stack is much more low level than dynamic memory, you can do stack allocations much more quickly.
But, had used dynamic allocation, this would be an issue. It is a significant problem that is rarely handled correctly. If there is an error, you need to release any resources (such as memory) that you have allocated. There are a number of ways to handle this, depending on your language and how you want to do it.
The first solution is to exploit the fact that, in C++, you can declare your variables anywhere you want. They don't have to be at the beginning of the scope. The best thing to do is don't allocate resources unless you know you can use them. If you fail halfway through, you would have to release all resources that you had allocated up to that point.
Some other ideas are to use exceptions and wrap allocations in classes such as auto_ptr. Then, when you encounter an error, you throw and exception and you use the stack scoping rules, though static wrapper variables, to release dynamic data underneath.
Yeah, it gets complicated. Maybe most more code that precisely shows what you are concerned with. Wrap your code between two lines of
{ code }
{ code }
without the spaces and it will print out nicely. So far, it looks like you are doing everything correctly. Sometimes, instead of asking how to do something, you'll get better responses by just posting how you do it and, if there are any problems, people will pick it apart Harsh, but effective. -
Error in using Dynamic View Object
Hi
I am doing a experiment to create dynamic VO and using it.
Experiment details:
I want to create dynamic VO and dynamic message choice and associate the dynamic VO to dynamicaly cretaed message choice.
code scriplet
In AM
public void dynamicVO()
OADBTransactionImpl txn =(OADBTransactionImpl) this.getTransaction();
OAViewDef viewDef = txn.createViewDef();
// viewDef.addEntityDerivedAttrDef();
viewDef.setSql("select EmpEO.EMPNO, EmpEO.ENAME, EmpEO.JOB, EmpEO.DEPTNO from EMP EmpEO");
viewDef.setExpertMode(true);
viewDef.addEntityUsage("EmpEO","va.oracle.apps.fnd.experiment.server.EmpEO",false);
viewDef.setViewObjectClass("oracle.apps.fnd.framework.server.OAViewObjectImpl");
viewDef.setViewRowClass("oracle.apps.fnd.framework.server.OAViewRowImpl");
viewDef.addPersistentAttrDef("Empno", "EmpEO", "Empno", true, AttributeDef.UPDATEABLE);
viewDef.addPersistentAttrDef("Ename", "EmpEO", "Ename", true, AttributeDef.UPDATEABLE);
viewDef.addPersistentAttrDef("Job", "EmpEO", "Job", true, AttributeDef.UPDATEABLE);
viewDef.addPersistentAttrDef("Deptno", "EmpEO", "Deptno", true, AttributeDef.UPDATEABLE);
// OAViewObject
// ViewObject
ViewObject vo = createViewObject("MyEmpVO", viewDef);
In Controller
public void processRequest(OAPageContext pageContext, OAWebBean webBean)
super.processRequest(pageContext, webBean);
OAApplicationModule am = pageContext.getApplicationModule(webBean);
am.invokeMethod("dynamicVO");
System.out.println("am.invokeMethod dynamicVO");
OAMessageChoiceBean popList = (OAMessageChoiceBean)this.createWebBean(pageContext,OAMessageChoiceBean.MESSAGE_CHOICE_BEAN);
//popList.setListViewObject(pageContext,MyEmpVO);
popList.setPickListViewUsageName("MyEmpVO");
popList.setListDisplayAttribute("Job");
popList.setListValueAttribute("Job");
webBean.addIndexedChild(popList);// when i comment out this a blank page runs otherwise following error appears
Error stack
oracle.apps.fnd.framework.OAException: oracle.jbo.SQLStmtException: JBO-27122: SQL error during statement preparation. Statement: select EmpEO.EMPNO, EmpEO.ENAME, EmpEO.JOB, EmpEO.DEPTNO from EMP EmpEO
at oracle.apps.fnd.framework.OAException.wrapperException(OAException.java:888)
at oracle.apps.fnd.framework.webui.OAPageErrorHandler.prepareException(OAPageErrorHandler.java:1145)
at oracle.apps.fnd.framework.webui.OAPageBean.renderDocument(OAPageBean.java:2898)
at oracle.apps.fnd.framework.webui.OAPageBean.renderDocument(OAPageBean.java:2700)
at OA.jspService(OA.jsp:48)
at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317)
at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465)
at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:727)
at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306)
at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:767)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:259)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:106)
at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:803)
at java.lang.Thread.run(Thread.java:534)
## Detail 0 ##
java.sql.SQLException: ORA-01003: no statement parsed
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134)
at oracle.jdbc.ttc7.TTIoer.processError(TTIoer.java:289)
at oracle.jdbc.ttc7.Oall7.receive(Oall7.java:583)
at oracle.jdbc.ttc7.TTC7Protocol.doOall7(TTC7Protocol.java:1983)
at oracle.jdbc.ttc7.TTC7Protocol.executeFetch(TTC7Protocol.java:1002)
at oracle.jdbc.dbaccess.DBAccess.executeFetchNeedDefines(DBAccess.java:283)
at oracle.jdbc.driver.OracleStatement.doExecuteQuery(OracleStatement.java:2604)
at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:2854)
at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java:622)
at oracle.jdbc.driver.OraclePreparedStatement.executeQuery(OraclePreparedStatement.java:550)
at oracle.jbo.server.QueryCollection.buildResultSet(QueryCollection.java:627)
at oracle.jbo.server.QueryCollection.executeQuery(QueryCollection.java:515)
at oracle.jbo.server.ViewObjectImpl.executeQueryForCollection(ViewObjectImpl.java:3347)
at oracle.jbo.server.OAJboViewObjectImpl.executeQueryForCollection(OAJboViewObjectImpl.java:825)
at oracle.apps.fnd.framework.server.OAViewObjectImpl.executeQueryForCollection(OAViewObjectImpl.java:4465)
at oracle.jbo.server.ViewRowSetImpl.execute(ViewRowSetImpl.java:574)
at oracle.jbo.server.ViewRowSetImpl.execute(ViewRowSetImpl.java:544)
at oracle.jbo.server.ViewRowSetImpl.executeDetailQuery(ViewRowSetImpl.java:619)
at oracle.jbo.server.ViewObjectImpl.executeDetailQuery(ViewObjectImpl.java:3311)
at oracle.jbo.server.ViewObjectImpl.executeQuery(ViewObjectImpl.java:3298)
at oracle.apps.fnd.framework.server.OAViewObjectImpl.executeQuery(OAViewObjectImpl.java:439)
at oracle.apps.fnd.framework.webui.OAWebBeanPickListHelper.createListDataObject(OAWebBeanPickListHelper.java:973)
at oracle.apps.fnd.framework.webui.OAWebBeanPickListHelper.getListDataObject(OAWebBeanPickListHelper.java:818)
at oracle.apps.fnd.framework.webui.OAWebBeanPickListHelper.getList(OAWebBeanPickListHelper.java:446)
at oracle.apps.fnd.framework.webui.OAWebBeanPickListHelper.getList(OAWebBeanPickListHelper.java:403)
at oracle.apps.fnd.framework.webui.beans.message.OAMessageChoiceBean.getList(OAMessageChoiceBean.java:762)
at oracle.apps.fnd.framework.webui.OADataBoundValuePickListData.getValue(OADataBoundValuePickListData.java:86)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.getAttributeValueImpl(OAWebBeanHelper.java:1760)
at oracle.apps.fnd.framework.webui.beans.message.OAMessageChoiceBean.getAttributeValueImpl(OAMessageChoiceBean.java:369)
at oracle.cabo.ui.BaseUINode.getAttributeValue(Unknown Source)
at oracle.apps.fnd.framework.webui.OADataBoundValuePickListSelectionIndex.getValue(OADataBoundValuePickListSelectionIndex.java:61)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.getAttributeValueImpl(OAWebBeanHelper.java:1760)
at oracle.apps.fnd.framework.webui.beans.message.OAMessageChoiceBean.getAttributeValueImpl(OAMessageChoiceBean.java:369)
at oracle.cabo.ui.BaseUINode.getAttributeValue(Unknown Source)
at oracle.cabo.ui.collection.UINodeAttributeMap.getAttribute(Unknown Source)
at oracle.cabo.ui.collection.AttributeMapProxy.getAttribute(Unknown Source)
at oracle.cabo.ui.BaseUINode.getAttributeValueImpl(Unknown Source)
at oracle.cabo.ui.BaseUINode.getAttributeValue(Unknown Source)
at oracle.cabo.ui.collection.UINodeAttributeMap.getAttribute(Unknown Source)
at oracle.cabo.ui.BaseUINode.getAttributeValueImpl(Unknown Source)
at oracle.cabo.ui.BaseUINode.getAttributeValue(Unknown Source)
at oracle.cabo.ui.laf.base.BaseLafUtils.getLocalAttribute(Unknown Source)
at oracle.cabo.ui.laf.base.xhtml.OptionContainerRenderer.getSelectedIndex(Unknown Source)
at oracle.cabo.ui.laf.base.xhtml.OptionContainerRenderer.populateOptionInfo(Unknown Source)
at oracle.cabo.ui.laf.base.xhtml.OptionContainerRenderer.createOptionInfo(Unknown Source)
at oracle.cabo.ui.laf.base.xhtml.OptionContainerRenderer.prerender(Unknown Source)
at oracle.cabo.ui.laf.base.xhtml.ChoiceRenderer.prerender(Unknown Source)
at oracle.cabo.ui.BaseRenderer.render(Unknown Source)
at oracle.cabo.ui.laf.base.xhtml.XhtmlLafRenderer.render(Unknown Source)
at oracle.cabo.ui.laf.base.xhtml.FormElementRenderer.render(Unknown Source)
at oracle.cabo.ui.BaseUINode.render(Unknown Source)
at oracle.cabo.ui.BaseUINode.render(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderChild(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderNamedChild(Unknown Source)
at oracle.cabo.ui.laf.base.SwitcherRenderer._renderCase(Unknown Source)
at oracle.cabo.ui.laf.base.SwitcherRenderer.renderContent(Unknown Source)
at oracle.cabo.ui.BaseRenderer.render(Unknown Source)
at oracle.cabo.ui.BaseUINode.render(Unknown Source)
at oracle.cabo.ui.BaseUINode.render(Unknown Source)
at oracle.cabo.ui.composite.UINodeRenderer.renderWithNode(Unknown Source)
at oracle.cabo.ui.composite.UINodeRenderer.render(Unknown Source)
at oracle.cabo.ui.BaseUINode.render(Unknown Source)
at oracle.cabo.ui.BaseUINode.render(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderChild(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderContent(Unknown Source)
at oracle.cabo.ui.BaseRenderer.render(Unknown Source)
at oracle.cabo.ui.laf.base.xhtml.XhtmlLafRenderer.render(Unknown Source)
at oracle.cabo.ui.BaseUINode.render(Unknown Source)
at oracle.cabo.ui.BaseUINode.render(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderChild(Unknown Source)
at oracle.cabo.ui.laf.base.xhtml.RowLayoutRenderer.renderChild(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderContent(Unknown Source)
at oracle.cabo.ui.BaseRenderer.render(Unknown Source)
at oracle.cabo.ui.laf.base.xhtml.XhtmlLafRenderer.render(Unknown Source)
at oracle.cabo.ui.BaseUINode.render(Unknown Source)
at oracle.cabo.ui.BaseUINode.render(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderChild(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderContent(Unknown Source)
at oracle.cabo.ui.BaseRenderer.render(Unknown Source)
at oracle.cabo.ui.laf.base.xhtml.XhtmlLafRenderer.render(Unknown Source)
at oracle.cabo.ui.BaseUINode.render(Unknown Source)
at oracle.cabo.ui.BaseUINode.render(Unknown Source)
at oracle.cabo.ui.composite.UINodeRenderer.renderWithNode(Unknown Source)
at oracle.cabo.ui.laf.base.xhtml.InlineMessageRenderer.render(Unknown Source)
at oracle.cabo.ui.BaseUINode.render(Unknown Source)
at oracle.cabo.ui.BaseUINode.render(Unknown Source)
at oracle.cabo.ui.composite.ContextPoppingUINode$ContextPoppingRenderer.render(Unknown Source)
at oracle.cabo.ui.BaseUINode.render(Unknown Source)
at oracle.cabo.ui.BaseUINode.render(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderChild(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderContent(Unknown Source)
at oracle.cabo.ui.BaseRenderer.render(Unknown Source)
at oracle.cabo.ui.laf.base.xhtml.XhtmlLafRenderer.render(Unknown Source)
at oracle.cabo.ui.BaseUINode.render(Unknown Source)
at oracle.cabo.ui.BaseUINode.render(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderChild(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderContent(Unknown Source)
at oracle.cabo.ui.laf.oracle.desktop.HeaderRenderer.renderContent(Unknown Source)
at oracle.cabo.ui.BaseRenderer.render(Unknown Source)
at oracle.cabo.ui.laf.base.xhtml.XhtmlLafRenderer.render(Unknown Source)
at oracle.cabo.ui.BaseUINode.render(Unknown Source)
at oracle.cabo.ui.BaseUINode.render(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderChild(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderContent(Unknown Source)
at oracle.cabo.ui.laf.base.xhtml.BorderLayoutRenderer.renderIndexedChildren(Unknown Source)
at oracle.cabo.ui.laf.base.xhtml.BorderLayoutRenderer.renderContent(Unknown Source)
at oracle.cabo.ui.BaseRenderer.render(Unknown Source)
at oracle.cabo.ui.laf.base.xhtml.XhtmlLafRenderer.render(Unknown Source)
at oracle.cabo.ui.BaseUINode.render(Unknown Source)
at oracle.cabo.ui.BaseUINode.render(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderChild(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderContent(Unknown Source)
at oracle.cabo.ui.BaseRenderer.render(Unknown Source)
at oracle.cabo.ui.laf.base.xhtml.XhtmlLafRenderer.render(Unknown Source)
at oracle.cabo.ui.BaseUINode.render(Unknown Source)
at oracle.cabo.ui.BaseUINode.render(Unknown Source)
at oracle.cabo.ui.composite.UINodeRenderer.renderWithNode(Unknown Source)
at oracle.cabo.ui.composite.UINodeRenderer.render(Unknown Source)
at oracle.cabo.ui.laf.oracle.desktop.PageLayoutRenderer.render(Unknown Source)
at oracle.cabo.ui.BaseUINode.render(Unknown Source)
at oracle.cabo.ui.BaseUINode.render(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderChild(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderContent(Unknown Source)
at oracle.cabo.ui.BaseRenderer.render(Unknown Source)
at oracle.cabo.ui.laf.base.xhtml.XhtmlLafRenderer.render(Unknown Source)
at oracle.cabo.ui.BaseUINode.render(Unknown Source)
at oracle.cabo.ui.BaseUINode.render(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderChild(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderContent(Unknown Source)
at oracle.cabo.ui.laf.base.xhtml.BodyRenderer.renderContent(Unknown Source)
at oracle.cabo.ui.BaseRenderer.render(Unknown Source)
at oracle.cabo.ui.BaseUINode.render(Unknown Source)
at oracle.apps.fnd.framework.webui.beans.OABodyBean.render(OABodyBean.java:398)
at oracle.cabo.ui.BaseUINode.render(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderChild(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderContent(Unknown Source)
at oracle.cabo.ui.laf.base.xhtml.DocumentRenderer.renderContent(Unknown Source)
at oracle.cabo.ui.BaseRenderer.render(Unknown Source)
at oracle.cabo.ui.laf.base.xhtml.DocumentRenderer.render(Unknown Source)
at oracle.cabo.ui.BaseUINode.render(Unknown Source)
at oracle.cabo.ui.BaseUINode.render(Unknown Source)
at oracle.cabo.ui.partial.PartialPageUtils.renderPartialPage(Unknown Source)
at oracle.apps.fnd.framework.webui.OAPageBean.render(OAPageBean.java:3209)
at oracle.apps.fnd.framework.webui.OAPageBean.renderDocument(OAPageBean.java:2888)
at oracle.apps.fnd.framework.webui.OAPageBean.renderDocument(OAPageBean.java:2700)
at OA.jspService(OA.jsp:48)
at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317)
at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465)
at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:727)
at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306)
at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:767)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:259)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:106)
at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:803)
at java.lang.Thread.run(Thread.java:534)
java.sql.SQLException: ORA-01003: no statement parsed
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134)
at oracle.jdbc.ttc7.TTIoer.processError(TTIoer.java:289)
at oracle.jdbc.ttc7.Oall7.receive(Oall7.java:583)
at oracle.jdbc.ttc7.TTC7Protocol.doOall7(TTC7Protocol.java:1983)
at oracle.jdbc.ttc7.TTC7Protocol.executeFetch(TTC7Protocol.java:1002)
at oracle.jdbc.dbaccess.DBAccess.executeFetchNeedDefines(DBAccess.java:283)
at oracle.jdbc.driver.OracleStatement.doExecuteQuery(OracleStatement.java:2604)
at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:2854)
at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java:622)
at oracle.jdbc.driver.OraclePreparedStatement.executeQuery(OraclePreparedStatement.java:550)
at oracle.jbo.server.QueryCollection.buildResultSet(QueryCollection.java:627)
at oracle.jbo.server.QueryCollection.executeQuery(QueryCollection.java:515)
at oracle.jbo.server.ViewObjectImpl.executeQueryForCollection(ViewObjectImpl.java:3347)
at oracle.jbo.server.OAJboViewObjectImpl.executeQueryForCollection(OAJboViewObjectImpl.java:825)
at oracle.apps.fnd.framework.server.OAViewObjectImpl.executeQueryForCollection(OAViewObjectImpl.java:4465)
at oracle.jbo.server.ViewRowSetImpl.execute(ViewRowSetImpl.java:574)
at oracle.jbo.server.ViewRowSetImpl.execute(ViewRowSetImpl.java:544)
at oracle.jbo.server.ViewRowSetImpl.executeDetailQuery(ViewRowSetImpl.java:619)
at oracle.jbo.server.ViewObjectImpl.executeDetailQuery(ViewObjectImpl.java:3311)
at oracle.jbo.server.ViewObjectImpl.executeQuery(ViewObjectImpl.java:3298)
at oracle.apps.fnd.framework.server.OAViewObjectImpl.executeQuery(OAViewObjectImpl.java:439)
at oracle.apps.fnd.framework.webui.OAWebBeanPickListHelper.createListDataObject(OAWebBeanPickListHelper.java:973)
at oracle.apps.fnd.framework.webui.OAWebBeanPickListHelper.getListDataObject(OAWebBeanPickListHelper.java:818)
at oracle.apps.fnd.framework.webui.OAWebBeanPickListHelper.getList(OAWebBeanPickListHelper.java:446)
at oracle.apps.fnd.framework.webui.OAWebBeanPickListHelper.getList(OAWebBeanPickListHelper.java:403)
at oracle.apps.fnd.framework.webui.beans.message.OAMessageChoiceBean.getList(OAMessageChoiceBean.java:762)
at oracle.apps.fnd.framework.webui.OADataBoundValuePickListData.getValue(OADataBoundValuePickListData.java:86)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.getAttributeValueImpl(OAWebBeanHelper.java:1760)
at oracle.apps.fnd.framework.webui.beans.message.OAMessageChoiceBean.getAttributeValueImpl(OAMessageChoiceBean.java:369)
at oracle.cabo.ui.BaseUINode.getAttributeValue(Unknown Source)
at oracle.apps.fnd.framework.webui.OADataBoundValuePickListSelectionIndex.getValue(OADataBoundValuePickListSelectionIndex.java:61)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.getAttributeValueImpl(OAWebBeanHelper.java:1760)
at oracle.apps.fnd.framework.webui.beans.message.OAMessageChoiceBean.getAttributeValueImpl(OAMessageChoiceBean.java:369)
at oracle.cabo.ui.BaseUINode.getAttributeValue(Unknown Source)
at oracle.cabo.ui.collection.UINodeAttributeMap.getAttribute(Unknown Source)
at oracle.cabo.ui.collection.AttributeMapProxy.getAttribute(Unknown Source)
at oracle.cabo.ui.BaseUINode.getAttributeValueImpl(Unknown Source)
at oracle.cabo.ui.BaseUINode.getAttributeValue(Unknown Source)
at oracle.cabo.ui.collection.UINodeAttributeMap.getAttribute(Unknown Source)
at oracle.cabo.ui.BaseUINode.getAttributeValueImpl(Unknown Source)
at oracle.cabo.ui.BaseUINode.getAttributeValue(Unknown Source)
at oracle.cabo.ui.laf.base.BaseLafUtils.getLocalAttribute(Unknown Source)
at oracle.cabo.ui.laf.base.xhtml.OptionContainerRenderer.getSelectedIndex(Unknown Source)
at oracle.cabo.ui.laf.base.xhtml.OptionContainerRenderer.populateOptionInfo(Unknown Source)
at oracle.cabo.ui.laf.base.xhtml.OptionContainerRenderer.createOptionInfo(Unknown Source)
at oracle.cabo.ui.laf.base.xhtml.OptionContainerRenderer.prerender(Unknown Source)
at oracle.cabo.ui.laf.base.xhtml.ChoiceRenderer.prerender(Unknown Source)
at oracle.cabo.ui.BaseRenderer.render(Unknown Source)
at oracle.cabo.ui.laf.base.xhtml.XhtmlLafRenderer.render(Unknown Source)
at oracle.cabo.ui.laf.base.xhtml.FormElementRenderer.render(Unknown Source)
at oracle.cabo.ui.BaseUINode.render(Unknown Source)
at oracle.cabo.ui.BaseUINode.render(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderChild(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderNamedChild(Unknown Source)
at oracle.cabo.ui.laf.base.SwitcherRenderer._renderCase(Unknown Source)
at oracle.cabo.ui.laf.base.SwitcherRenderer.renderContent(Unknown Source)
at oracle.cabo.ui.BaseRenderer.render(Unknown Source)
at oracle.cabo.ui.BaseUINode.render(Unknown Source)
at oracle.cabo.ui.BaseUINode.render(Unknown Source)
at oracle.cabo.ui.composite.UINodeRenderer.renderWithNode(Unknown Source)
at oracle.cabo.ui.composite.UINodeRenderer.render(Unknown Source)
at oracle.cabo.ui.BaseUINode.render(Unknown Source)
at oracle.cabo.ui.BaseUINode.render(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderChild(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderContent(Unknown Source)
at oracle.cabo.ui.BaseRenderer.render(Unknown Source)
at oracle.cabo.ui.laf.base.xhtml.XhtmlLafRenderer.render(Unknown Source)
at oracle.cabo.ui.BaseUINode.render(Unknown Source)
at oracle.cabo.ui.BaseUINode.render(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderChild(Unknown Source)
at oracle.cabo.ui.laf.base.xhtml.RowLayoutRenderer.renderChild(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderContent(Unknown Source)
at oracle.cabo.ui.BaseRenderer.render(Unknown Source)
at oracle.cabo.ui.laf.base.xhtml.XhtmlLafRenderer.render(Unknown Source)
at oracle.cabo.ui.BaseUINode.render(Unknown Source)
at oracle.cabo.ui.BaseUINode.render(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderChild(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderContent(Unknown Source)
at oracle.cabo.ui.BaseRenderer.render(Unknown Source)
at oracle.cabo.ui.laf.base.xhtml.XhtmlLafRenderer.render(Unknown Source)
at oracle.cabo.ui.BaseUINode.render(Unknown Source)
at oracle.cabo.ui.BaseUINode.render(Unknown Source)
at oracle.cabo.ui.composite.UINodeRenderer.renderWithNode(Unknown Source)
at oracle.cabo.ui.laf.base.xhtml.InlineMessageRenderer.render(Unknown Source)
at oracle.cabo.ui.BaseUINode.render(Unknown Source)
at oracle.cabo.ui.BaseUINode.render(Unknown Source)
at oracle.cabo.ui.composite.ContextPoppingUINode$ContextPoppingRenderer.render(Unknown Source)
at oracle.cabo.ui.BaseUINode.render(Unknown Source)
at oracle.cabo.ui.BaseUINode.render(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderChild(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderContent(Unknown Source)
at oracle.cabo.ui.BaseRenderer.render(Unknown Source)
at oracle.cabo.ui.laf.base.xhtml.XhtmlLafRenderer.render(Unknown Source)
at oracle.cabo.ui.BaseUINode.render(Unknown Source)
at oracle.cabo.ui.BaseUINode.render(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderChild(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderContent(Unknown Source)
at oracle.cabo.ui.laf.oracle.desktop.HeaderRenderer.renderContent(Unknown Source)
at oracle.cabo.ui.BaseRenderer.render(Unknown Source)
at oracle.cabo.ui.laf.base.xhtml.XhtmlLafRenderer.render(Unknown Source)
at oracle.cabo.ui.BaseUINode.render(Unknown Source)
at oracle.cabo.ui.BaseUINode.render(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderChild(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderContent(Unknown Source)
at oracle.cabo.ui.laf.base.xhtml.BorderLayoutRenderer.renderIndexedChildren(Unknown Source)
at oracle.cabo.ui.laf.base.xhtml.BorderLayoutRenderer.renderContent(Unknown Source)
at oracle.cabo.ui.BaseRenderer.render(Unknown Source)
at oracle.cabo.ui.laf.base.xhtml.XhtmlLafRenderer.render(Unknown Source)
at oracle.cabo.ui.BaseUINode.render(Unknown Source)
at oracle.cabo.ui.BaseUINode.render(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderChild(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderContent(Unknown Source)
at oracle.cabo.ui.BaseRenderer.render(Unknown Source)
at oracle.cabo.ui.laf.base.xhtml.XhtmlLafRenderer.render(Unknown Source)
at oracle.cabo.ui.BaseUINode.render(Unknown Source)
at oracle.cabo.ui.BaseUINode.render(Unknown Source)
at oracle.cabo.ui.composite.UINodeRenderer.renderWithNode(Unknown Source)
at oracle.cabo.ui.composite.UINodeRenderer.render(Unknown Source)
at oracle.cabo.ui.laf.oracle.desktop.PageLayoutRenderer.render(Unknown Source)
at oracle.cabo.ui.BaseUINode.render(Unknown Source)
at oracle.cabo.ui.BaseUINode.render(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderChild(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderContent(Unknown Source)
at oracle.cabo.ui.BaseRenderer.render(Unknown Source)
at oracle.cabo.ui.laf.base.xhtml.XhtmlLafRenderer.render(Unknown Source)
at oracle.cabo.ui.BaseUINode.render(Unknown Source)
at oracle.cabo.ui.BaseUINode.render(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderChild(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderContent(Unknown Source)
at oracle.cabo.ui.laf.base.xhtml.BodyRenderer.renderContent(Unknown Source)
at oracle.cabo.ui.BaseRenderer.render(Unknown Source)
at oracle.cabo.ui.BaseUINode.render(Unknown Source)
at oracle.apps.fnd.framework.webui.beans.OABodyBean.render(OABodyBean.java:398)
at oracle.cabo.ui.BaseUINode.render(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderChild(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderContent(Unknown Source)
at oracle.cabo.ui.laf.base.xhtml.DocumentRenderer.renderContent(Unknown Source)
at oracle.cabo.ui.BaseRenderer.render(Unknown Source)
at oracle.cabo.ui.laf.base.xhtml.DocumentRenderer.render(Unknown Source)
at oracle.cabo.ui.BaseUINode.render(Unknown Source)
at oracle.cabo.ui.BaseUINode.render(Unknown Source)
at oracle.cabo.ui.partial.PartialPageUtils.renderPartialPage(Unknown Source)
at oracle.apps.fnd.framework.webui.OAPageBean.render(OAPageBean.java:3209)
at oracle.apps.fnd.framework.webui.OAPageBean.renderDocument(OAPageBean.java:2888)
at oracle.apps.fnd.framework.webui.OAPageBean.renderDocument(OAPageBean.java:2700)
at OA.jspService(OA.jsp:48)
at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317)
at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465)
at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:727)
at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306)
at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:767)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:259)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:106)
at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:803)
at java.lang.Thread.run(Thread.java:534)
MithunMithun,
Don't repost the issues. Follow the original on Re: Error in using Dynamic view object
--Shiv -
Error #1010 While trying to link a button to a PDF
Hi all, I am completely new to AS3 and Flash in general, but because of a project here at work I decided to venture in creating a site. I imported a Photoshop file into the stage and created buttons from some headings. I need to link the headings to PDF files when they are clicked, but when I wrote the code (actually in various different formats) I keep getting the following error (while permitting to debug):
TypeError: Error #1010: A term is undefined and has no properties.
at extras3_fla::MainTimeline/frame1()[extras3_fla.MainTimeline::frame1:9]
My simple code is
var pdfURL:URLRequest = new URLRequest("images\Other\LetterHansen.pdf");
//PDF Link
function pdfLink(event:MouseEvent):void {
navigateToURL(pdfURL,"_blank");
Text.daniels_btn.addEventListener(MouseEvent.CLICK, pdfLink);
Any suggestions? I'm sure it's something simply, but I figured I'd ask for help instead of banging my head against the wall
Thanks!Whichever line is line 9 of your code has a problem. If it is the last line, chances are you have not named your daniels_btn inside the Text object, or it is not named in the first frame within Text.
Maybe you are looking for
-
JCO-Java application unable to open a Frontend GUI session
Hello, <P> I am having a problem opening a GUI session on a client PC through the JCo java call. It works on some PC's when I am logged in, but not on my PC. But other persons who login on my PC do not have a problem with the application opening a GU
-
HP Deskjet 3050 All-in-One Printer series - J6
HP Deskjet 3050 All-in-One Printer series - J6? what a load 0f rubbish,only one place for this the bin! Purchased less than a year ago countless problems with wireless reinstaled more times than I can think and now paper jams so off to the bin, never
-
What drive to choose, MacBook Pro Retina 15"
Hi, I'm considering buying a new MacBook Pro (15" 2,7 GHz quad-core, NVIDIA GeForce GT 650M / 1GB). But could you give me advice on the following. Since this MacBook has flashmemory, I wonder if it's still necessary to work with a external harddrive
-
What's the best way to transfer footage from a Sony miniDVD camcorder?
What's the best way to transfer footage from a Sony miniDVD camcorder?
-
I have a simple SELECT statement in a Stored Proc that queries 2 tables in SQL Server 2000 using a join. My problem is I want to return values based on the outcome of the query eg. if a row is returned then return 1, or return 2 if no rows are found.