Author Archive

Animation in Photoshop

Here we can see how to create an animated GIF file, using Photoshop CS4.

1. Create a new Photoshop document.

2. Create a new Layers using the shortcut key Shift+Ctrl+N Or using the menu as shown below.

3. Use the text tool write “ForDevs” text on stage. Just like below or draw a symbol as per custom requirement.

4. Similarly write some other text. Now the Layer Panel contains two text layer and one background layer.

5. Change the Photoshop Workspace Mode From “ESSENTIALS” to “VIDEO”.

6. Animation Panel has been shown at the bottom.
Time Line Animation

Frame Animation

7. Based on Time Line Animation, by changing the Green Bar size we set the visible state of the layers at specific time line.

8. Based on Frame Animation, Set the Frame Seconds use the popup menu on each frame. For example set the Time as 0.17 sec.

9. Create a two new duplicate frame for each layer and set the time as 0.1 sec. In Animation Panel use the Top Right corner icon, select the “Tween…”

10. For second and fourth frame we set the Tween with “Next Frame” and “First Frame” respectively. Set the “Frame to Add” as 5. Now Click Ok button. Now the Tween Frames are created.

11. Now Change the “Once” option to “Forever” option for continues playing.

12. From File Menu, select the “Save for Web & Device…”

13. Change the GIF format and Save it.

14. The Final Output has shown like below.

Popularity: 4% [?]

How to Get the Base URL in Flash ActionScript 2 and ActionScript 3?

Step 1

Create a flash project and set the Publish Settings’ ActionScript version as 2.

Step 2

Create two dynamic texts, named as txtFullUrl and txtBaseUrl.

baseurl01

Step 3

Create another layer; in first frame of that layer write the following ActionScript code.

Action Script 2 Code

baseurl02

function GetTheBaseUrl() {
var RootFullUrl = _root._url;
txtFullUrl.text = RootFullUrl;
var lastSlashIndex:Number = RootFullUrl.lastIndexOf("/");
var DriveIndex:Number = RootFullUrl.indexOf("|");
 
if (DriveIndex>=0) {
baseUrl = RootFullUrl.substring(0, DriveIndex);
baseUrl += ":";
} else {
baseUrl = "";
}
baseUrl += RootFullUrl.substring(DriveIndex+1, lastSlashIndex+1);
txtBaseUrl.text = baseUrl;
return baseUrl;
}
 
var BaseURL:String= GetTheBaseUrl();

Action Script 3 Code

baseurl03

txtFullUrl.text = this.loaderInfo.url;
 
var FullUrl:String = this.root.loaderInfo.url;
var lastSlashIndex:Number = FullUrl.lastIndexOf("/");
var DriveSepIndex:Number = FullUrl.indexOf("|");
 
var baseUrl:String;
if (DriveSepIndex >= 0) {
baseUrl = FullUrl.substring(0, DriveSepIndex);
baseUrl += ":";
} else {
baseUrl = "";
}
baseUrl += FullUrl.substring(DriveSepIndex + 1, lastSlashIndex + 1);
txtBaseUrl.text = baseUrl;

Step 4

Press Ctrl + Enter to run the application.

Popularity: 27% [?]

Steps to Create Setup and Deployment Project in Dot Net VS 2008

Step 1
Create your own windows application. Create a new Windows application project in C# and named it as Sample.

d01

Step 2

Design your own application. Here we have a simple login form for example.

d02
Step 3
After completing the design and coding, build the solution of the project in release mode.

d03

Step 4
Check the Release folder for the file “ProjectName.exe”. Here in this example we have the project name as sample so we can find a file with the name Sample.exe. Double click the executable file and check the example.

d04

Step 5
Create a Deployment Project. Select the “Other Project Types” -> “Setup and Deployment” -> “Setup project”. Here we have the setup project for example as “SampleSetup”.

d05

Step 6
Add the Sample.exe project application file inside the “Application Folder”.

d06

Step 7

To make a shortcut for the project right click “File System on Target Machine” and create shortcut of the application. Here in this example the project shortcut is created in program files folder.

d07

Step 8
Create the shortcut of the application.

d08

Step 9
Rename the shortcut of the application.

d09

Step 10
Move the Shortcut file to specified target. Note if you need another shortcut for some other target also create use same steps.

d10

Step 11
Now build the solution in release mode.

d11

Step 12
The setup file created in release folder of the project specified path.

d12

Step 13
Run the setup, step the path to extract.

d13

d14

d15

Step 14
The SampleSetup project is extracted and shortcuts are created. Now run your application.

d16

Popularity: 100% [?]

Designed by: Business Web Hosting | Thanks to Buy Icons, travel tips and Used Cars