I'm trying to use Vector. in a Flash Professional Project, Person being a custom class. Eclipse keep saying it cannot find the type in brackets, even if I try with basic types like int or String:
public interface IRenderer
{
function init(persons : Vector.<int>) : void;
function render() : void;
}
Type 1046: Type was not fo...
I want to add an event listener that listens for whenever the text field goes blank (IE all text is deleted). Thank you :)
...
What's the best way to draw cubic bezier curves programmatically in AS3? The Graphics class only seems to support quadratic curves. :( I want to be able to do something like:
var startPoint:Point = new Point(0, 0);
var endPoint:Point = new Point(5, 5);
var control1:Point = new Point(5, 0);
var control2:Point = new Point(0, 5);
var myBe...
I wonder if the flash.utils.getDefinitionByName(name:String):Class works with custom classes? Is there a problem if the class has a constructor that takes arguments? I tell this because i have a class in a package of the form packageA.packageB and when i input the name of the class into the above function as packageA.packageB.ClassName d...
How can i update multiple cells of the same row changing the value of a single cell of the same row ??
Example: id, height, weight, fat percentage, corporal mass. When i change one of the values in a row (except id of course) the corporal mass cell value must change using a formula like: (height/weight2)*fat percentage*100. Is this pos...
My code is:
package com.companyName.softwareName {
import flash.display.Sprite;
public class SoftwareName extends Sprite {
public function SoftwareName() {
trace("Testing!");
}
}
and it is located in C:/dev/com/companyName/SoftwareName as SoftwareName.as
Taking the package name out lets it co...
I am not sure exactly is happening here but did figure out that URLLoader.close(); is the cause.
I have a simple application whereby a user enters info into a textbox, then I send that info to a PHP script and return output. After output is received, you can click a new button that resets the application. The error lies with the functio...
I have a gui class, The functions optional value getting error. If i am not passing the fillcolor and other optional values.
Error:
ReferenceError: Error #1069: Property fillColor not found on String and there is no default value.
AS 3.0
var windowBase:Sprite = UIClip("Sprite");
/* sliderClip = Gui.UIClip("MovieClip",{width...
Hi,
I'm using a PHP Script to create XML. Which pulls through the data from a Database.
I have an video list, which pulls through X amount of videos. But I want to show them 5 at a time. I want to hide a button once it reaches the amount of videos in the XML.
Hope there's enough detail in this question. My script is as follows.....
...
Hi guys,
I am wondering if it is possible to customize Flex Chart to have grids like in this example: http://imglink.ru/show-image.php?id=bfcb5a0c5bbcfc20f3f21ef764ed79e7
Thank you in advance!
...
Dear friends,
Whenever a swf is loaded a custom movie is shown (by default a rotating circle), is there some way where I can have my custom movie to play there. If you have any idea in this regard, then please help.
Thanks in advance.
Ashine.
...
I'm a Flash(AS3) newbie and this is just a little experiment of mine.
I'm trying to morph image captured through a webcam. The webcam snapshot part is already working but I still have no clue on how to do the morphing part. Can anyone point me to a tutorial (or kindly post code sample) on how to achieve image morphing using flash actio...
Hi
I have a bitmapdata object that is filled with n rectangles of a width of 1 pixel and of varying heights.
I want to run through a loop and remove the old rectangle and replace it with a different one.
Should I do something like reset the each bitmap column of pixels to a background color and then add the rect i want?
for(i:int=0;i...
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...
If I have code that looks like this:
public function getNetStreamPublishClientList():Array
{
var ncStreamListResults = new Object()
ncStreamListResults.onResult = function(list:Array)
{
//this needs to be returned from getNetStreamPublishClientList
return list;
}
this.nc.call("getStreamClientIds",
...
Hello my fellow stackoverflower,
i'm looking for away to smooth an image of and embed png file.
i'm using the embeded png as the borderskin for my textInput.
i have seen some other postings about this subject but i can figure it out. Does anybody have an idea, how i can a complish this? some real solid code example wwould be nice.
thi...
Hi,
I am a newbie for ActionScript. I would like to add Sound dynamically to my flv. I have this code. I am pretty sure it is working because I found it in Textbook. :(.
package{
import flash.display.Sprite;
import flash.media.Sound;
import flash.net.URLRequest;
public class soundLoader extends Sprite{
private var sound:Sound;
...
A.as :
public class A {
public function getFunction():Function {
return function():void {
if(this is C) {
trace("C");
} else {
trace("not C");
}
}
}
public function func1():void {
var internalFunc:Function = getFunction();
internalFunc();
}
}
B.as :
public c...
I have setup a page where I have an outer div with an image inside of it and a flash place holder. When I rollover the image, I would like to insert a flash video player (video player is written with as3). The functionality works perfectly in FF, Safari, Chrome but doesn't work in ie6 and ie7.
I have tried all manner of css possitioning...
i have a flash button and i want to pass the button link (after click) as parameter. what is the best way to do it?
...