10 Mb web hosting 200.00 Rs
20 Mb web hosting 350.00 Rs
50 Mb web Hosting 550.00 Rs
1 Gb Windows Hosting 1000.00 Rs
Unlimited windows Hosting 2500.00 Rs
Unlimited Linux Hosting 2500.00 Rs
Unlimited Email Hosting 1500.00 Rs
for more details call 09746010990
Or visit www.keralawebhosting.biz
Labels: kerala web hosting
Any one interested to study actionscript 2.0,3.0 server side actionscript Contact Me at 9746010990
Labels: Actionscript Training
Hello friends,
If any one of you need web hosting for free . please contact me at 9746010990. Only personal and noncommercial web sites will get this offer. commercial hosting available for a small fee.interested peoples can contact.Only verified people can get this offer.People from cochin or kerala only call.
Labels: web hosting
how to access maintimeline functions and variables from a nested movieclip in as3
Posted by LonelypxThis is the biggest problem for actionscript coders those who migrate from actionscript 2.0 and actionscript 1.0 to actionscript 3.0. In as1,as2 we can access the main timeline functions and variables from a nested movieclips just using _root.varName or _root.functionName, But in as3 we cant access the maintimline variables and functions this way.following is a sample code to access the maintimeline variable and functions from a nested movieclip.
MovieClip(root).functionName();
Or
MovieClip(root).varName
here is a simple class that help global vars in actionscript 3.0
package {
public class globals {
public static var vals:Object = new Object();
}
}
now you can access the globals.vals any where from your movie.
globals.vals.red = 0xFF0000;
trace(glo.bal.red);
this is a simple example of new feature in flash cs4 FileReference.save(). in this example i just create an html file using the rich text editor from http://mobilewish.com/applications/as3texteditor/. and save it using FileReference.save() to local file system . download rich text editor
Source File:http://anilmathew.info/flash/filerefer_example.fla
code sample
import flash.net.FileReference;
tt.input_txt=abc;
tt.scroller=scroller;
abc.addEventListener(MouseEvent.MOUSE_UP, tt.handleClick);
generate_btn.addEventListener( MouseEvent.CLICK, generateTEXT );
function generateTEXT( e:MouseEvent ) {
var texT:String=abc.htmlText;
var file:FileReference = new FileReference();
file.save(texT,"myfile.html");
}
here is an example for saving PDF file from flash 10 player(cs4) usning alivepdf And FileReference.Save();
Code
import org.alivepdf.pdf.PDF;
import org.alivepdf.layout.Orientation;
import org.alivepdf.layout.Size;
import org.alivepdf.layout.Unit;
import org.alivepdf.display.Display;
import org.alivepdf.saving.Method;
import org.alivepdf.fonts.FontFamily;
import org.alivepdf.fonts.Style;
import org.alivepdf.colors.RGBColor;
import flash.net.FileReference;
// we create the PDF
var myPDF:PDF = new PDF( Orientation.LANDSCAPE, Unit.MM, Size.A4 );
// we set the zoom to 100%
myPDF.setDisplayMode ( Display.REAL );
// we add a page
myPDF.addPage();
// set the line style color
myPDF.lineStyle ( new RGBColor ( 0x990000 ) );
// we draw a circle
//myPDF.drawCircle ( 20, 20, 20 );
myPDF.addImage(clip,0,0);
// we add our second page
myPDF.addPage();
// we set font and size
myPDF.setFont ( FontFamily.HELVETICA, Style.NORMAL );
myPDF.setFontSize ( 16 );
// we add some text
myPDF.addMultiCell ( 80, 8, "Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Ut posuere, felis volutpat hendrerit ullamcorper, purus sem vehicula augue, ac volutpat sapien dui non metus." );
// we generate the PDF when the button is clicked
generate_btn.addEventListener( MouseEvent.CLICK, generatePDF );
function generatePDF ( e:MouseEvent )
{
// to save the PDF your specificy the path to the create.php script
// alivepdf takes care of the rest, if you are using AIR and want to save the PDF locally just use Method.LOCAL
// and save the returned bytes on the disk through the FileStream class
var bytes:ByteArray = myPDF.save(Method.LOCAL);
var file:FileReference = new FileReference();
file.save(bytes,"myfile.pdf");
}