package com.test{
import flash.display.Sprite;
import flash.display.MovieClip;
import com.greensock.*;
import com.greensock.easing.*;
import com.test.CreateRoundRectButton;
import flash.events.*;
import flash.net.*;
public class DetailView extends MovieClip {
private var detailPanel:MovieClip=new Mov...
Hey all,
I'm trying to make an mp3 player that passes javascript events to a flash file. I'm not very saavy in flash so this may be a simple question.. but how do you make a "movie-less" flash file? Is it possible to just embed an actionscript file? Because that is really all I need to run. Side note: What is the easiest (and fastest) w...
HI i have a main class
//main.as
package {
public class main {
public var testGlobal:string = "testValue";
}
}
//pop.as
package {
public class pop {
function pop():void {
trace("testGloabl from main.as" + testGlobal);
}
}
}
How can i get the testGlobal value on pop.as width out using a main cl...
How to get value from match in ActionScript?
What would an example be?
...
Hi all i want to know what is dispatchEvent in AS3.
I didn't get any idea while Googling it. :(
So please help me
Edit 1:
public static const SET_VOLUME:String = "setVolume";
private function onclick(evt:MouseEvent):void {
soundClip.scaleX = 0;
dispatchEvent(new Event(SET_VOLUME));
}
what does this means?? (
...
I want to create a HBox component name for example HLBox that behaves exactly like an HBox but ha s as default width and height 100%.
How can I do that?
...
HI all, i have a class file named Main.as and
another class calledr icon.as
package {
import icon;
public class main {
public var _time:String;
function main() {
_time="01:10";
iconObj=new icon(this);
}
function timerFunction() {
_time=newTime;
}
}
}
package {
public class...
I have a flash game embedded on Facebook but need access to the flashvars facebook passes to all embedded games. However I am using the mochiads preloader meaning that _root.fb_sig_user is always undefined?
How do I get to the variables?
stage.loaderInfo.parameters.fb_sig_user
Was my best guess and it doesn't seem to have worked.
...
I have done this same thing in ActionScript 3, but am not familiar with ActionScript 2, which I am forced to use for this project. I am loading products into a SWF via XML and attempting to add a click event to each dynamically-created movieclip. Simply tracing the text from a node in XML will do for now. I'd like to assign a property ca...
Hi all ,
how to copy one xml object values from one xml object to another empty xml object.
I have one xml object from the xml array and need to copy that to another xml object.
How can i copy xml from one object to another
if am parsing the XML object with for loop and i get the nodes
var myXML:xml = new xml();
for(...)
if(xmlObj.pro...
Hi all,
It is my first time to code an actionscript for flash. I want to write a flash clip which works as a parent of another flash clip. I want to write a function in the parent flash, and call that function in the child flash clip. For example I wanna create an actionscript which sends game score to "submitscore.php". The parent is ju...
how can i convert my main.asc's code( server side of video conference with flash media server) to application.java (server side of video conference with Red5) ?
...
suppose I want to make a small SWF app, basically a couple of buttons, textboxes and event handlers. Something like this in C# or Java would be a single easily readable source code file that can be compiled with a freely available compiler and run. Now, I may be a clueless newbie here, but so far, from what I can see, the only way to mak...
I'm working on some ActionScript code that needs to juggle a bunch of similar-but-not-interchangeable types (eg, position-in-pixels, internal-position, row-and-column-position) and I'm trying to come up with a naming scheme to minimize the complexity.
Additionally, I don't yet know what the best format for the "internal position" is – u...
Hi guys,
I'm using Adobe Flash CS 4 and would like to know are there any profiler or memory analysis tools available for it ? (actionscript 3). I know there are available tools for Flex, but are there for Flash CS 4 instead? Thanks.
...
This question if a bit off topic, I just wanted feedback from most ActionScript/Flex developers out there.
So would you use a Vector. rather than an Array when you're expecting a collection of the same "type" of objects (and publishing for fp10)
Let me clear that out :
I'm defining a method in a class that expects one parameter of ty...
Some issues with the Flash Bone Tool are described very well in this YouTube tutorial video (as well as his claim that there is an Actionscript solution). If you don't want to watch the entire 10 minute video, then at least watch the important part from 1:39 to 3:05.
In essence, one of the main issues with the current Flash Bone Tool i...
I need to program an interactive app running on Flash Media Interactive Server, which only supports Actionscript 1.0.
This particular app needs to read remote data from a remote webservice. Is there any way to load remotely generated XML in Actionscript 1.0? The only closest solution I've found on the net uses the LoadVar class, which do...
Hallo,
I have my own sound class that is derived from the Flash Sound class. I would very much like to add a Copy function to my extended class. I had it working for a while by using the following code:
var newSoundClass : Class = Class(getDeninitionByName(soundName));
var newInstance = new newSoundClass();
I have tried registering t...
I want to do something like this in Actionscript 3:
if(variable is Object) ...;
else ...;
Where variable could be a String(), Number(), Array(), Object()...
Currently the above check returns true for all of these types, which makes sense. I only want it to return true for objects made with new Object(), however.
Any help would be mu...