Hi,
I am writing a small game in cocos2d. I am adding child
[ self addChild: sprite1];
Should I remove these before going to next scene by using
[self removeChild: sprite1 cleanup:YES];
Does it increase the performance in device ?
Thank You.
...
import flash.display.Sprite;
import flash.net.URLLoader;
var index:int = 0;
var constY = 291;
var constW = 2;
var constH = 40;
hydrogenBtn.label = "Hydrogen";
heliumBtn.label = "Helium";
lithiumBtn.label = "Lithium";
hydrogenBtn.addEventListener (MouseEvent.CLICK, loadHydrogen);
heliumBtn.addEventListener (MouseEvent.C...
Okay so here is the setup:
Within the main timeline I have a menu, which is a MovieClip. This menu is comprised of about 17 "buttons", each of which point to a different section of the site. When a "button" is clicked (2 examples: menu_bag_button, menu_trashbag_button), the menu will animate, moving left, and 2 library items (bag_contai...
This is the strangest problem I've faced in flash so far. I have no idea what's causing it. I can provide a .swf if someone wants to actually see it, but I'll describe it as best I can.
I'm creating bullets for a tank object to shoot. The tank is a child of the document class. The way I am creating the bullet is:
var bullet:Bullet ...
I thought I was being slick by having movieclips that I export for actionscript and then addChild later. I've made this one movieclip that loads html text through as, and it works fine when I drag it to the stage; but if I do
var trackListingBox:trackListingScreen = new trackListingScreen();
addChild(trackListingBox);
it either doesn'...
Hey,
I have been using .net for the past couple of years, and I like the way you can add controls at any point in the page from anywhere. For example, you can say Head.Controls.add(new LiteralControl("")) even if there is already a body.
Is it possible to do this kind of thing in php? My site is set up so that we have agents, customers...
Hi guys..
I am checking this guy's code...
http://www.codingcolor.com/as3/as3-youtube-chromless-api/
I have download the source code...but I couldn't figure out how he add the play, pause and stop button in the stage. I know in his VideoPlayerControl.as, he has
playbackControl = new PlayPauseButton();
playbackControl.addEventListene...
Hi guys...
My following code gave me
TypeError: Error #2007: Parameter child must be non-null runtime error.
not sure why...I would appreciate any help...
mySb = new ScrollBar();
mySb.x = cont.x; //+ cont.width;
mySb.y = cont.y;
mySb.height = contMask.height;
mySb.enabled = true;
add...
Hi,
Is it possible to create a new node using an existing JSimpleXMLElement instance? I am overriding a template for the main menu module, and I would like to create a new child on a certain element and fill the node with an element that's already created (an unordered list with several list items, in a variable $child). If I use addChi...
Hi guys..
I tried to built a project with AS3 only in Flex. When I run the project in flex, everything looks fine, but when I export the release build, the images that are supposed to be added are gone. I appreciate if someone can help me about it.
init();
public function init(loadedVideoCount:Number):void{
...
Hi Everyone,
For some reason, my addChild and addAttribute functions only seem to work when I enter in direct strings. They don't work when I enter in a variable string that I received from a html form POST.
Anyone know the reason why?
$question = "What is your name?";
$entry->addChild("Question")->addAttribute("text",$question);
...
Hello,
I'm new to C# but not to OOP.
I'd like to make a "canvas" panel on which a user can draw shapes by mouseClick-ing but also delete them (nothing fancy, fixed sizes and whatnot, plain old pen objects). Like I said, I want the user to be able to delete whatever objects he alt-clicks on.
I'm not sure how exactly could I go about do...