I'm trying to embed a flash file from my site, but for some reason it looks like the entire swf file (often up to 1mb in size) is downloaded before anything is displayed. In the mean time a white box is displayed for anything up to 20 seconds.
The same swf file on other websites shows the first frame of the swf file almost instantly the...
Is there a way to vertical scroll a textfield in actionscript 2 by pixels instead of line by line?
...
I want to implement Google authentication in Flash (actionscript 2) in Google appengine. After pressing the login button it will redirect to the Google login page and will come back to the site after successful authentication. Also, it can logout in same way.
I am not good with actionscript and used "loadvers()" for action handling "on...
I have a Flash app that loads a list of youtube video ids. It loads a grid of thumbnails and a chromeless player into each of these thumbnail then calls cueVideoById() on each player so I now have a grid of youtube videos with the play button and youtube logo... so far so good.
What I cant work out is why when I call playVideo on these...
I'm using Flash actionscript2.0 and I'm using this code to show a custom cursor.
onEnterFrame = function()
{
Mouse.hide();
myCursor._x = _xmouse;
myCursor._y = _ymouse;
}
But this results in disappearing mouse cursor when viewing right click context menu.
Is there a way to show the standard mouse cursor when viewing the c...
For some reason when I use LoadVars in actionscript 2 to load cbsnews.com, I sometimes properly get the html for the page and other times I get GIF89a. I'm not sure what this means, so any help or suggestions would be appreciated. Here is some sample code to test it yourself.
var foo:LoadVars = new LoadVars();
foo.onData = function(bar)...
I have a function (FunctionA) that is being called by another function (FunctionB). The problem is, I'm not sure which function "FunctionB" is.
I have this snippet of code:
function FunctionA():void {
trace("This function was called by " + ???);
}
I need to figure out what to put for "???" so FunctionA's trace statement looks like ...
I know this is a simple question, but I haven't worked much with ActionScript...
I know how to create a text input field with Flash. I can create it on the stage and give it an instance name.
What is the code to capture the value of a text input field and display that value in a dynamic text field? How does this process differ between ...
I've got several input text fields, and my design requirement is to have gold text on a black background that, when highlighted, is black text on a gold background; however, Flash's default selected text highlight color scheme is white text on a black background and there is no way to change this.
Does anyone have any workarounds that a...
I added a standard Flash ComboBox component to my CS3 (AS2) project. It is part of one of my library symbols, not created on the stage.
I did not make any changes to the skinning, source code, etc. of the ComboBox.
When the user clicks on the ComboBox, the list drops down, the user uses the mouse to select an item, and that item is pas...
I have an issue with an Actionscript 2 piece of code. I'm trying to load a song and start playing it at the 50th second until the end.
var song:Sound = new Sound();
song.setVolume(100);
song.loadSound(songToPlay,true); // songToPlay is a valid path
song.start(50);
This loads and play the Sound, but at the begining and not at 50 second...
for an XML file, I want to create an array in actionscript where I can reference a particular value with a key I set rather than 0, 1, 2 etc
buildings = myParsedObjectFromXML;
var aBuildings = new Array();
for ( building in buildings ) {
var currentBuilding = buildings[building][0];
var key:String = currentBuilding.buildingCod...
Flaah CS4, AS2
I am making an interactive tour. On the main timeline I have two movieclip, "ABOUT" and "RENTALS".
I would like a button, "btnFLRcafe" in the "ABOUT" movieclip to connect to "RENTALS" and start playing on the timeline at a frame named "CAFE".
This is the code that I have on "btnFLRcafe":
on(release){
_root.gotoAndStop(...
ingredients:
- one vector map
- one masked viewing area
- one slider taking the map from 100% to 600%
- map is draggable
- map movieclip center is the top left of the movieclip
Let's say you zoom in, you drag the map so that the bottom right quadrant is in the viewing area, then you zoom out.
The problem:
Because the "center" of the ...
I have a function that works great in Actionscript 2, except it can only replace one character. I need it to behave more like str_replace in PHP and replace an array of characters.
Here is the code I have now, it simply replaces a space ( ) with a hyphen (-) in a String.
function str_replace(str){
return str.split(" ").join("-");
}...
I've got a flex-based swf, which is loading an AS 2-based swf and then, negotiating further activity via a LocalConnection.
From time to time, the AS 2-swf can request that the flex-based swf load a movie.
I've arranged this via on(release){} functions.
The AS 2-swf, I'm making in Swish Max. In Swish, when i set the on (release) on a ...
I'm trying to load a local SWF then catch a few events that are fired but I can't see why this isn't working.
Here's the code
Parent.swf
_mcl = new MovieClipLoader();
_mcl.addListener(this);
_mcl.loadClip("Child.swf", rotator_mc);
function onLoadComplete(clip) {
clip.addEventListener("initAsLoaded", function() {trace("childLoaded...
Is there a way to through an event when some other program makes my movieclip visible? I am using actionscript 2.
...
I'm using a localconnection to allow communication between an actionscript 2 swf and an actionscript 3 swf.
Localconnection objects share a global namespace across a user's pc.
So, this means, a user can fire up my flash app in one browser, and submit commands, back and forth, which is what i want. But the user can also fire up another ...
I have several sound objects in flash, I would like to mix different points in these sound files to create a single masterpiece and save it as an mp3.
I've seen various "mixer" applications online and would like to know what area(s) to look at to be able to do this myself.
...