prosoxi.com | Archive | Flash

Archive | Flash

Flash Tweener : Tweening Parameters

onComplete

Availability

AS2 and AS3.

Usage

... onComplete:value, ...

Parameters

value:Function — A function that is called immediately after a tweening is completed. It is called once regardless of the number of properties involved on the tweening. The function scope (in which the event is executed) is the target object itself, unless specified by the onCompleteScope parameter.

Examples

// Fades a movieclip out, then automatically makes it invisible (AS2)
hideWay = function() {
	this._visible = false
};
myMovieClip._visible = true;
myMovieClip._alpha = 100;
Tweener.addTween(myMovieClip, {_alpha:0, time:1, delay:4, onComplete:hideAway});
// Similarly, with an anonymous function
myMovieClip._visible = true;
myMovieClip._alpha = 100;
Tweener.addTween(myMovieClip, {_alpha:0, time:1, delay:4, onComplete:function() { this._visible = false; }});

Notes

The reference passed to this property is a reference to the function only. This roughly means you do not use any kind of parenthesis or parameters when passing the function you wish to call – you need to use theonCompleteParams parameter for that. See the onStart method notes for more information and examples.

See also

onStartonUpdateonCompleteParamsonCompleteScopeonOverwrite

Posted in Flash0 Comments

Flash full screen browser scrollbars

As 3pepe3 stated you can use the CSS overflow property in your css:

overflow:visible
overflow:hidden
overflow:scroll
overflow:auto

http://www.w3schools.com/css/pr_pos_overflow.asp

Here are some other solutions that your probably talking about however when it comes to flash sites:

1.) Stop making Flash scrollbars
http://hossgifford.com/resizer/
Download link.

2.) swfforcesize – Size limiting for full window flash
http://blog.pixelbreaker.com/flash/swfforcesize/

3.) Fullscreen Flash With Browser Scrollbars
http://blog.hy-brid.com/flash/20/ful…ml-scrollbars/

4.) Elastic Flash with scrollbars
http://f6design.com/journal/2006/12/…th-scrollbars/

5.) FitFlash/swffit – Smart Flash Resize Script
http://fitflash.millermedeiros.com/
FitFlash is now swffit
http://swffit.millermedeiros.com/

6.) swfIN is a javascript toolkit for flash developers (actually like SWFobject)
http://code.google.com/p/swfin/

Posted in Flash0 Comments

Flash 8 Active Blur – Blur Behind a Transparent Object – Source Available

Flash 8 Active Blur – Blur Behind a Transparent Object – Source Available


**UPDATE: New Version here.
Continue Reading

Posted in Flash0 Comments

You Tube Flash AS3 / AS2 Data & Player API

Recently I have been working on something involving the use of video content from You Tube. With the lack of a good API out there I created my own. Below is a simple example of this working with sample code to download further below.

Continue Reading

Posted in Flash0 Comments

Control Flash from Javascript

Receiving data from a Flash movie:
- Enter some text in the Flash movie’s Data field, then press Receive Data.  The data from the Flash movie is then transferred to the html form. Continue Reading

Posted in Flash, JavaScript - Ajax0 Comments

Flash AS2 XML to Array

var xmlDoc:XML = new XML();
System.useCodepage = true;
xmlDoc.ignoreWhite = true;

xmlDoc.onLoad = function(ok:Boolean) {
if (ok) {
doMenu(this);
} else {
trace(“XML did not load”);
}
};

xmlDoc.load(“myImages.xml”);

function doMenu(xml:XML) {
var num:Number = xml.firstChild.childNodes.length;
pics = new Array();
for (var i = 0; i < num; i++) {
pics[i] = xml.firstChild.childNodes[i].attributes.image;
}
trace(pics);
}

Continue Reading

Posted in Flash1 Comment

Tweener and “256 levels of recursion were exceeded in one action list”

Tweeners’ great, but I came across one little problem the other day: when I tried to remove an externally loaded swf from the stage while it was mid-animation, Tweener could bring the whole Flash movie to a halt with the error ‘256 levels of recursion were exceeded in one action list’.

Obviously that’s bad – because this particular error completely stops the flash player with no warning to the end user.  And the fact that external content – which I have no control over – can cause this is doubly bad.

All is not lost however, because Tweener has a useful little function:Tweener.removeAllTweens(); ok, so it can interfere with everything on your flash movie as well, but at least it’s stopping the recursion errors.

So, if you try to remove a loaded swf file with .removeMovieClip(), you might find that it’s using Tweener.  And if so, call Tweener.removeAllTweens() before you call .removeMovieClip() and you’ll be fine.  Phew! case closed.

http://hosted.zeh.com.br/tweener/docs/en-us/

Resources;

thanks http://www.psyked.co.uk/actionscript/tweener-and-256-levels-of-recursion-were-exceeded-in-one-action-list.htm

Posted in Flash0 Comments

Preloading External Images in Flash Using the MovieClipLoader Class

Preloading External Images in Flash Using the MovieClipLoader Class

The MovieClipLoader class is an ActionScript tool for loading external content such as images and Flash movies into another Flash movie. Other ways for doing this same thing is the Loader Component and the old .loadMovie() method. The MovieClipLoader class is better than those other two methods because of its flexibility and advanced options for tracking the progress of your downloaded objects. This tutorial will teach you the basics on how to use the MovieClipLoader class to load an external image in Flash at run time. You are assumed to have a beginner knowledge of ActionScript in order to follow this tutorial. Continue Reading

Posted in Flash0 Comments

AS2 tween – tweener how to intercept when the tween is finished

Sometimes, it is needed to know when the tween animation that we have applied to a MovieClip is finished.
This way, we can call other functions and carry out other codes in our Flash project.
To intercept the event that is initiated by Tweener at the end of the animation, we need to pass a parameter named onComplete to the method addTween the following way:

Code:
import caurina.transitions.Tweener;

Tweener.addTween(clip_mc,{x:500,time:1,transition:"easeOutBounce",onComplete:ItsDone});

Together with onComplete, I pass the name of the function that I want to be carried out at the end of the tween (in this case, I named it ItsDone).

Continue Reading

Posted in Flash0 Comments

fscommand(“quit”) in AS3

function clickHandler(event:MouseEvent):void {
fscommand(“quit”);
}

Posted in Flash0 Comments

Domain Finder

Domain Finder Tool by Truste.gr

read more for domains

Advertisers

Wedstar all about wedding - gamos - γαμος
Κατασκευή ιστοσελίδων
Domain Names | Hosting

Adds