RSS
Home Archive for category "actionscript" (Page 3)
formats

Trying to get variables into flash from the browser!

Ever wondered how to get variables from an html page to a flash element? Well, it’s quite easy using the following actionscript 2 example: I use javascript to embed my flash elements: <embed src=”somefilename.swf?varname=varvalue&vartwo=var2value” width=”550″ height=”400″></embed> Now in Flash I can just call: _root.varname and it will give us `varvalue` _root.vartwo will give us `var2value`

Read More…

 
 Share on Facebook Share on Twitter Share on Reddit Share on LinkedIn
No Comments  comments 
formats

Flash Tweening

tween is an actionscript class and can be used after importing the core files. import mx.transitions.Tween; import mx.transitions.easing.*; //Tween( obj:Object, prop:String, func:Function, begin:Number, finish:Number, duration:Number, useSeconds:Boolean); e.g. var myRot:Tween = new Tween(myText,     "_rotation", Elastic.easeOut,   0, 360,         3, true);

 
 Share on Facebook Share on Twitter Share on Reddit Share on LinkedIn
No Comments  comments 
formats

Animate with Actionscript [part1]

// Created by Andrew Odendaal // // :: DESCRIPTION :: // Animate a ball moving to the top // of the screen/stage and back again // // :: HOW TO USE :: // create a circle shape, convert to a movieclip(mc) and // place the registration point at the bottom center. // give the circle

Read More…

 
 Share on Facebook Share on Twitter Share on Reddit Share on LinkedIn
No Comments  comments 
formats

how to load xml into flash using actionscript 2

Create an xml object: var myXmlObject = new XML(); Perform action when xml file has been loaded: myXmlObject.onLoad = function(success) {        if (success) trace("XML File has been read."); } Load the xml file into the object: myXmlObject.load("myXmlFile.xml");

 
 Share on Facebook Share on Twitter Share on Reddit Share on LinkedIn
No Comments  comments 
formats

Uppercase text in Actionscript

var lowerCase:String = "sample text"; var upperCase:String = lowerCase.toUpperCase();

 
 Share on Facebook Share on Twitter Share on Reddit Share on LinkedIn
No Comments  comments 
formats

Actionscript 3 equivalent of PHP's print_r

A brilliant version of print_r for actionscript: http://dev.base86.com/solo/47/actionscript_3_equivalent_of_phps_printr.html

 
 Share on Facebook Share on Twitter Share on Reddit Share on LinkedIn
No Comments  comments 
formats

Global variables and functions in Actionscript 2

In order to reuse a variable from a different timeline within the same fla file you will need to register the inital variable or function as a _global. Todo this as a variable: _global.myString:String = "Andz"; Todo this as a function: _global.myFunction = function() {}

 
 Share on Facebook Share on Twitter Share on Reddit Share on LinkedIn
No Comments  comments 
formats

Actionscript conflicting class name

I had a problem today where I got a flash source file from one of my developers’ and I couldnt compile it because it said that there was a conflicting class name, however, it turned out to just be a timestamp issue. Read here for more information http://www.epresenterplus.com/blog/archives/000030.html

 
 Share on Facebook Share on Twitter Share on Reddit Share on LinkedIn
No Comments  comments 

This is the official blog of HSMoore Ltd.

© Site by HSMoore Ltd