How to use the Print job class
The new PrintJob class offers some kweel features
who are trying to print dynamic contents or different pages of
contents .You can put into use all ur programing skills to make the
content appear some wer on stage before the addPage() command takes it to
the printer spool.
A sample code will look like this
PrintObject.start() will return a boolean value,to check
for any error in printing.
print_btn.onRelease = function(){
my_pg= new PrintJob();
var myResult = my_pg.start();
if(myResult) {
// I am not writing a dynamic loop here,just to make your self understand
// how addPage() works .First of all make you self underStand that flash
//prints an area of the stage .So you should make any thing that you need
// to print shud be available some were on the stage.
// flash prints every thing as vector so you need to tell flash to print it
// as a bitmap.{printAsBitmap:true}
my_pg.addPage("print_mc",{xMin:0,xMax:468,yMin:0,yMax:485},{printAsBitmap:true},1);
print_mc.gotoAndStop(2);
my_pg.addPage("print_mc",{xMin:0,xMax:468,yMin:0,yMax:485},{printAsBitmap:true},2);
my_pg.send();
}
delete(my_pg);
}
//similarly you cod also print levels
// Starting 50 pixels to the right of 0,0 and 70 pixels down,
// print an area 500 pixels wide and 600 pixels high
// of frame 4 of level 5 in vector format
//(my_pj.addPage(5, {xMin:50,xMax:550,yMin:70,yMax:670},null, 4)
// applying the same logic you cod also print dynamic content in a text area//
//for that make sure that each time you add page you shud need to scroll the
//content up to the next position//
you can download the sample file "CLICK HERE"
Monday, August 23, 2004
Thursday, August 05, 2004
new brand of key words in AS2.0
With the introduction of AS2.0 Flash has
now become more powerful, and the key proteins
are provided by some new sets of key words
which are very essential for object oriented
programming in flash and they are
• class
• static
• public
• private
• get
• set
• dynamic
• intrinsic
• extends
• interface
• implements
• import
We can take a look at each of this in detail..
now become more powerful, and the key proteins
are provided by some new sets of key words
which are very essential for object oriented
programming in flash and they are
• class
• static
• public
• private
• get
• set
• dynamic
• intrinsic
• extends
• interface
• implements
• import
We can take a look at each of this in detail..
Wednesday, July 21, 2004
ADSL2+
We all know how fast we could surf the internet with a broadband connection,okey then ADSL is the technology that brings us broadband.Now its time for ADSL2+, an improvement in the orginal technology that may revolutionise the way we use the Internet.
The main bottle neck in providing broadband connection is the infrastructure,all those old copper wires running down under our cities may be celebrating its centenary soon.
Chris de Courcy-Bower, Lucent:
"Nowadays we are trying to squeeze 25 megabits per second down
a cable that was only designed to carry three kilohertz of traffic."
And this kind of cabling is knwn as POTS
"Plain Old Telephone System"
DSL is Digital Subscriber Line, and that refers to the connection between you and the exchange, and the A stands for Asymmetric, which means the you can download data faster than you can upload it.
The main bottle neck in providing broadband connection is the infrastructure,all those old copper wires running down under our cities may be celebrating its centenary soon.
Chris de Courcy-Bower, Lucent:
"Nowadays we are trying to squeeze 25 megabits per second down
a cable that was only designed to carry three kilohertz of traffic."
And this kind of cabling is knwn as POTS
"Plain Old Telephone System"
DSL is Digital Subscriber Line, and that refers to the connection between you and the exchange, and the A stands for Asymmetric, which means the you can download data faster than you can upload it.
Tuesday, July 20, 2004
ActionScript 2.0 is oop
Hi,Did you guys know that ActionScript(AS)2.0 is completly object oriented? ha ha.. Just joking..
But for guys who are new to AS2.0 keep in mind that AS 2.0 is Object Oriented and it gives you much much breathing space as a programmer.Reusability now will have more meaning,you reuse a class you created in AS2.0 by inheriting the functionality of that class in other classes, the fundamental metaphors of OOP mirrors closly the natural world which would realy help you in the design process .
The simplest way of making a class in AS2.0 is like this
take your fav: editor and type in
//---------------------------------------------------------//
class myColor{
public var myStatus:String;
// this is a public function and returns a String value::
public function checkStatus:String(){
myStatus = "cool";
return(myStatus);
}
}
//----------------------------------------------------------//
Now things that are new to AS 2.0::
All class files should be external .as files.
while naming ur as files keep the file name and the class name the same, might not be new if you were using JAVA.
keep the file along with your .fla or flash applications class folder.
so here the file name will be "myColor.as"
In your flash you write
//-----------------------------------------------------------//
var statusChk:myColor = new myColor();
trace(statusChk.checkStatus());
//-----------------------------------------------------------//
and thats it you are into the track :)
For more information tutorials and goodies clickActionScript Learning Guide from Macromedia
If thats not enough and to know more about AS2.0 Click here
But for guys who are new to AS2.0 keep in mind that AS 2.0 is Object Oriented and it gives you much much breathing space as a programmer.Reusability now will have more meaning,you reuse a class you created in AS2.0 by inheriting the functionality of that class in other classes, the fundamental metaphors of OOP mirrors closly the natural world which would realy help you in the design process .
The simplest way of making a class in AS2.0 is like this
take your fav: editor and type in
//---------------------------------------------------------//
class myColor{
public var myStatus:String;
// this is a public function and returns a String value::
public function checkStatus:String(){
myStatus = "cool";
return(myStatus);
}
}
//----------------------------------------------------------//
Now things that are new to AS 2.0::
All class files should be external .as files.
while naming ur as files keep the file name and the class name the same, might not be new if you were using JAVA.
keep the file along with your .fla or flash applications class folder.
so here the file name will be "myColor.as"
In your flash you write
//-----------------------------------------------------------//
var statusChk:myColor = new myColor();
trace(statusChk.checkStatus());
//-----------------------------------------------------------//
and thats it you are into the track :)
For more information tutorials and goodies clickActionScript Learning Guide from Macromedia
If thats not enough and to know more about AS2.0 Click here
Monday, July 19, 2004
New discussion forum
To all those Macromedia Director developers out there, here is a new discussion forum
I have'nt went in detail to find how deep is the rabit hole but it looks to hold a good amount of information happy surfing to
shocksites
I have'nt went in detail to find how deep is the rabit hole but it looks to hold a good amount of information happy surfing to
shocksites
Flash geting too smarter
As the Interface area become too smaller flash become too smarter
Its so very interesting how Macromedia Flash developed through the years. Now Flash is ever where and its catching up the interest of developers who works for the device market as well.
Keeping up with the latest trends in the market and PDA's and mobile phones happens to be another organ of our body,Flash fits in best when it comes to conveing the Information.Macromedia Flash enabled Televisions and set top boxes are next on the list.
Flash is the smart guy in town, every one seems to know him very well,Most of the webs sites uses Flash.Its realy very flexible yet incredibily powerful with which you could create rich graphics and complex interactions.Flash do go well with all kinds of input devices like touch screens, remote controls, key boards etc.The huge army of developers that the Flash community holds is its biggest asset.
For More Info and to get the development kit check out
development kits @ macromedia.com
Articles and Tutorials
Using Macromedia Flash with Sony CLIÉ
Creating a Macromedia Flash Portfolio for Mobile Devices
Its so very interesting how Macromedia Flash developed through the years. Now Flash is ever where and its catching up the interest of developers who works for the device market as well.
Keeping up with the latest trends in the market and PDA's and mobile phones happens to be another organ of our body,Flash fits in best when it comes to conveing the Information.Macromedia Flash enabled Televisions and set top boxes are next on the list.
Flash is the smart guy in town, every one seems to know him very well,Most of the webs sites uses Flash.Its realy very flexible yet incredibily powerful with which you could create rich graphics and complex interactions.Flash do go well with all kinds of input devices like touch screens, remote controls, key boards etc.The huge army of developers that the Flash community holds is its biggest asset.
For More Info and to get the development kit check out
development kits @ macromedia.com
Articles and Tutorials
Using Macromedia Flash with Sony CLIÉ
Creating a Macromedia Flash Portfolio for Mobile Devices
Wednesday, June 23, 2004
Creating XML based graphs
I was working on some kweel graphing mechanisams with flash MX
that included line graph , 3D bar graphs and some pie charts
This I did for some web sites with PHP to controll the server
side .I will be soon making a smart movie clip of the same to
get values from an xml file and creating the graphs.I will soon
update on the happenings.
that included line graph , 3D bar graphs and some pie charts
This I did for some web sites with PHP to controll the server
side .I will be soon making a smart movie clip of the same to
get values from an xml file and creating the graphs.I will soon
update on the happenings.
Wednesday, May 26, 2004
Welcome to the
Hi all welcome to my Blogg I will be updating this with
interesting facts about Flash MX and Director and wot ever I kno..
so happy Blogging
interesting facts about Flash MX and Director and wot ever I kno..
so happy Blogging
Subscribe to:
Posts (Atom)