How to change background of your window in code using adobe flex builder in actionscript?
The following code helps you to do this. It uses the “setStyle” property of the window to change it’s background style. The following code changes the background color of the window to black on a button click. Just copy and paste the following code. Call this function on the click of a button This code changes the background… Read More »
How to add infinite backgrounds in Cocos2D, iphone?
You often may need scrolling backgrounds in your game or any other application. The following code helps you to add continuous backgrounds. Each sprite is added to the right of the current sprite which make them continuos. //Add more stripes, flip them, and position them next to their neighbour stripe. for (int i = 0; i < numStripes;… Read More »
How to dynamically change image in a sprite in cocos2D iphone?
How to use CCRibbon in Cocos2D in iphone?
How to use CCBitmapFontAtlas in iPhone cocos2D?
Working with files in Objective C
Basic file operations Assumes the existence of a file called “testfile” in the current working directory #import #import #import #import #import int main (int argc, char *argv[]) { NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init]; NSString *fName = @”testfile”; NSFileManager *fm; NSDictionary *attr; // Need to create an instance of the file manager fm = [NSFileManager defaultManager]; //… Read More »
How to use picker in iphone, A simple example.
#import “ViewController.h” @implementation ViewController @synthesize mlabel; – (void)viewDidLoad { [super viewDidLoad]; arrayNo = [[NSMutableArray alloc] init]; [arrayNo addObject:@” Hello “]; [arrayNo addObject:@” Hai “]; [arrayNo addObject:@” Picker “]; [arrayNo addObject:@” Simple “]; [arrayNo addObject:@” example “]; [pickerView selectRow:1 inComponent:0 animated:NO]; mlabel.text= [arrayNo objectAtIndex:[pickerView selectedRowInComponent:0]]; } – (NSInteger)numberOfComponentsInPickerView:(UIPickerView *)pickerView; { return 1; } – (void)pickerView:(UIPickerView *)pickerView didSelectRow:(NSInteger)row inComponent:(NSInteger)component {… Read More »
Minimise all windows Shortcut in Windows.
PC Optimization – Clearing Temp files from your PC
The temp folder found in C:WindowsTemp often contains files that have no reason to exist any longer. You can use the ‘Disk Cleanup Wizard’ that comes with windows to sort out your temp folder by clicking on the Start menu -> Programs -> Accessories -> System Tools -> Disk Cleanup. Select the drive you wish to clean (usually… Read More »
Repeat animations in Cocos2D in iphone.
Reset Windows XP password
— First thing you need to do is to start command prompt or CMD. There is two ways: Press F8 when Windows XP start up (before windows xp logo – progress bar for loading) and choose “Save Mode Command prompt” option If you are logged in: click on start -> Run, type “cmd” and press ENTER. — In… Read More »
How to set ringtone in android programmatically?
what is XPath?
How to capture audio in an android application?
what is the difference between CSS and XSL?
CSS = Style Sheets for HTML HTML uses predefined tags, and the meaning of each tag is well understood. The table tag in HTML defines a table – and a browser knows how to display it. XSL = Style Sheets for XML XML does not use predefined tags (we can use any tag-names we like), and therefore the… Read More »