I'm pretty unexperienced with Action Script but searched the forums extensively to try and find a solution to this simple problem.
I'm creating several copies of a MovieClip but I need them to have different names.
// this array gets several cities
var cities:Array = new Array(
{ nome:"london", pos_x:20, pos_y:10 },
{ nome:"nyc", pos_x...
Hi all!
how can I do in c# to read and write some tag of an .avi file??
thanks
...
Hi All,
I was creating a drap and drop simple game, dragging and dropping an item from within a movie clip. All was working fine, but then I had to add more items so I created a ScrollPane and referenced the movie clip through that, now I need to rework how I pull reference that movieclip again.
The movieclip is exported so the scrollp...
I'm making a drawing interface and using the Graffiti Canvas Library, on my stage I have a bezier point drawing tool, which is drawing graphics to a movieclip/sprite (I've tried both) and in using the drawToCanvas method which just passes data to the.draw() interface, the graphics immediately disappear. Any body have any ideas??
...
Can you add a movieclip to the stage from a child class? My setup is as follows:
DocumentClass
->SubFolder
--->ChildClass1
--->ChildClass2
DocumentClass calls ChildClass1 and creates an instance of it.
ChildClass1 has in it's constructor a call for ChildClass2 and creates an instance of it.
What is the cleanest way to have ChildClas...
It's my understanding that MPMoviePlayerController movies must play in landscape orientation because the "setOrientation:" function is private API. Well, it occurred to me that if I were to rotate the video 90 degrees in Final Cut and then re-render, the video would APPEAR to be playing in portrait orientation even though it was technica...
I need to make an item draggable (dragable?) Sorry if my terminology is not right!
I have a class where I will store variable and do calculations:
package Classes
{
import flash.display.*;
import flash.events.*;
import flash.net.*;
public class PrintItem extends MovieClip
{
public var imageLoader:Loade...
I have this base class
package sevengames.miranda.front.res {
import flash.display.MovieClip;
import flash.text.TextField;
public class MenuButtonBase extends MovieClip {
protected var text:TextField;
protected var bt:String = null;
public function MenuButtonBase() {
stop();
...
Here is my full code
import fl.controls.*;
var test:MovieClip = new MovieClip();
var btn:Button;
for(var i:int = 1; i<=7; i++){
btn = new Button();
btn.name = "btn" + i;
btn.x = i * 100;
test.addChild(btn);
btn.addEventListener(MouseEvent.CLICK, function(evt:MouseEvent) { nothing(i); });
}
addChild(test);
functio...
I've got this 1 minute long movie that I want to compile into an AS3 project. The movie started out in MOV format, so I used FFMpeg to convert it to FLV, then again with FFMpeg from FLV to SWF.
I'm embedding this movie into the AS3 binary by using Embed metadata:
[Embed(source="1.swf")]
private var _Vid:Class;
I've got a container ...
Hey all, i have a movieclip with an onRelease event. Is there anyway i can trigger this event in code? without clicking the movie clip?
...
There are multiple MovieClips that will be dynamically placed on stage. These MovieClips are coded to be buttons. I'm trying to figure out--when a user clicks on the MovieClip...figure out which object on the flash stage the user clicked on.
Inside function toggleClick I put the trace statement:
trace("movieClip Instance Name = " + e....
Using targetCurrent -- I am able to get the name of the MovieClip a user clicks on.
On function toggleClick
there is a trace statement that says:
trace("movieClip Instance Name = " + e.currentTarget);
OUTPUT Window:
movieClip Instance Name = [object Comp]
Based on what a user clicks on -- there will be a value associated to the Mo...
I have multiple toggle buttons on my flash stage. These toggle buttons are MovieClips. If a user clicks on one of the MovieClips, I want to be able to find a way to go through the Object below--get the appropriate value based on what the User clicked--and store that value in a new value called var powerData which will then be passed to a...
I'm trying to name the instances of MovieClips that I dynamically load.
I tried doing this:
comp = new Comp();
// and also tried doing this--> var comp:MovieClip = new Comp();
comp.name = "comp"; // comp is the name I want the instance to be
BUT in the OUTPUT Window:
ReferenceError: Error #1056: Cannot create prop...
I have 8 flash movies, each with 3 scenes within each one.
What is the most effective way (by which I mean, takes the least amount of time to implement and produces a file without each and every object used in the library) to combine these 24 scenes into a single flash file so that they play consecutively and can be exported as a singl...
Here is my code:
var menu = new Menu ();
menu.x = 0;
menu.y = 0;
addChild (menu);
menu.alpha = 0;
TweenLite.to (menu, 10, (alpha: 1));
This works, but transparency varies for each element MovieClip separately, but I would like that would have changed the whole MovieClip transparency as a single image.
Menu(); is generated from XML.
...
I have a movieclip which has in the actions for frame 1
this["myCustomVar"] = "bla";
I then do this:
var mc:MovieClip = new MyMovieClip();
trace(mc.hasOwnProperty("myCustomVar")); // is false
Why does the movieclip not have myCustomVar, or to put it more generally:
When are frame scripts in movie clips executed exactly?
...
I'm trying to dynamically place instances of MovieClip on the stage.
Receiving an error:
TypeError: Error #2007: Parameter child must be non-null.
at flash.display::DisplayObjectContainer/addChild()
ActionScript:
// properties in class ----------
var circle_ary:Array = new Array;
var circ_num:int;//...
Trying to do hitTestObject on instances that are dynamically placed on the stage.
Receiving an error:
TypeError: Error #2007: Parameter hitTestObject must be non-null.
at flash.display::DisplayObject/_hitTest()
at flash.display::DisplayObject/hitTestObject()
at eatCircle()
ActionScript:
var circ;
var circle_ary...