Search:
Type: Posts; User: Michael Chen
Search:
Search took 0.07 seconds.
-
You can try setting a buffer.
For example...
// 10 second buffer
var req:URLRequest = new URLRequest("http://www.fileden.com/files/2009/1/29/2292018/tykke.mp3");
var...
-
Have a look at Senocular's TransformTool class...
http://www.senocular.com/demo/TransformToolAS3/TransformTool.html
-
Since you've got a SoundChannel controller monitoring the sound you can assign a soundComplete event to the controller. The event will dispatch when a sound has finished playing.
So using that...
-
Try changing...
var rn1=Math.floor(Math.random()*(5-10))+10;
var rn2=Math.floor(Math.random()*(5-10))+10;
to...
var rn1=Math.round(Math.random()*-10)+5;
var rn2=Math.round(Math.random()*-10)+5;
-
Are you using embedded fonts?
-
rn2=Math.floor(Math.random()*(5-10))+10;
is basically...
rn2=Math.floor(Math.random()*-5)+10;
It's moving downwards because...
// rn2 will always be a positive number....
-
Have a look at these links...
http://www.actionscript.org/forums/showpost.php3?p=750911&postcount=5
http://www.campjohn.dk/wp/?p=114
-
Try this...
objName.onPress = function() {
this.startDrag();
this.prevXPos = this._x;
this.prevYPos = this._y;
}
-
Try this...
mcName._name = "newName";
-
From my understanding you can run the .exe file on Windows without the Flash Player. However you'll need the Flash Player to run .swf files.
-
Works for me.
When I click the enter forums button it redirects me to http://www.letsgolakers.com/index.php
-
#include is used to include ActionScript code.
For example #include "fileName.as"
-
Are you getting an error?
Does the browser open?
-
This is how you load images dynamically using AS2...
this.createEmptyMovieClip("image",1);
image.loadMovie("fileName.jpg");
-
Try this...
function clickHandler(event:MouseEvent):void {
var newURL:URLRequest = new URLRequest("http://www.letsgolakers.com/index.php");
navigateToURL(newURL,"_self");
}...
-
This is a simple rotation script...
// mcName is the name of the movie clip.
mcName.onEnterFrame = function() {
this._rotation += 2;
}
Note: 2 is the speed of rotation, however fps can...
-
Try this...
var menu:Array = new Array(home, about, contact);
var content:Array = new Array("home.swf", "about.swf", "contact.swf");
for(var i:Number = 0; i < menu.length; i++) {...
-
http://www.kirupa.com/developer/mx2004/fullscreen.htm
-
First, check if the List Component supports html tags.
Second, I would recommend using CDATA tags in the XML.
-
1.Create a rectangle without any stroke. It can be any colour.
2.Convert the rectangle to a "Movie Clip" symbol.
3.Make sure the registration point is on the top left.
4.You can give the...
-
Try this...
Stage.scaleMode = "noScale";
Stage.align = "TL";
// You need a moveiclip on the stage called "mc".
var stageListener:Object = new Object();
stageListener.onResize = function...
-
Try this...
// There is a movieclip called "mcName".
// Inside "mcName" contains 6 hotspots named "hs01", "hs02", ... "hs06".
for(var a:Number = 1; a < 7; a++) {
mcName["hs0"+a].onPress =...
-
What you could do is have a movieclip as the background. Then just fade the colour of that movieclip from black to white.
You may also need to resize the movie clip as your browser resizes.
-
Not sure if this is what you're after...
Under help doc search for "Using the Tween class", near the bottom there is an example for "onMotionFinished"
-
Try this...
import flash.display.*;
import flash.net.URLRequest;
import flash.events.MouseEvent;
var arrImgs:Array = new Array("USA 1.jpg","USA 2.jpg","USA 3.jpg","USA 4.jpg");
var...
|
Click Here to Expand Forum to Full Width
|