i'm simply playing a video file the normal way:
var nc = new NetConnection();
nc.connect(null);
ns = new NetStream(nc);
var vid = new Video();
this.addChild(vid);
vid.attachNetStream(ns);
ns.play(videofile);
My flv file is actually 600x678, but shows up scaled down on the stage, and tracing the width and height I get 320x240. I'm not...
Even though I specify different widths and heights for each.
vid = new Video(600, 800);
this.addChild(vid);
trace(vid.width); //600
trace(vid.height); //800
vid2 = new Video(1000, 1200);
this.addChild(vid2);
trace(vid2.width); //600
trace(vid2.height); //800
What is going on here? Is this a flash bug?
...
Hi,
I am trying to read in a string from a C# Response.Write("string example") into ActionScript for a swf file
My actionscript code looks like this
var requestVars:URLVariables = new URLVariables();
requestVars.ornTest = "test";
var request:URLRequest = new URLRequest();
request.url = "http://localhost/apps/game/tree/Desi...
Hi,
I am trying to debug ActionScript within CS4. The script, as you can see below, is making a GET request to a URL that I am hosting from my machine. When I try to debug the movie I get an message box that says:
Adobe Flash Player has Stopped a potentially unsafe operation.
The local application that you are running on your computer:...
I have a flash video player which requests a flv file from a central server. That server might redirect the request to a server from the user's country if possible, a lot like a CDN.
This video player also reports usage stats. One thing I'd like to report is the true server/location from which the player is streaming the video from. So ...
Hi,
I am new to Flash and AS3.
I have a DataGrid like this
Item Percentage
A 20%
B 7.5%
The percentage column is editable.
It is working atm, but I am just looking to enhance user interaction, so my questions is:
How do you restrict user input to only 0-9, . and %.
And when they finished editing a cell, add "%" i...
I have a an image, lets call it "StageSkin.png". This is an image which is really just a border, and the middle of the image is "windowed", meaning that it is meant to show other information inside of it. The information inside of it is in the form of a component (based on a canvas component, lets call it 'Gauge').
I want to create a ...
I'd like my associative array indexed by Point (or, in general, an Object) that has a semantic equality. Unfortunately
var p:Point = new Point(1, 1);
var q:Point = new Point(1, 1);
var dict:Dictionary = new Dictionary();
dict[p] = 5;
trace(dict[p]); // => 5
trace(dict[q]); // => undefined
because
trace(p===q); // => false
Is there...
I can download the latest flash vm here: http://www.adobe.com/software/flash/about/
But where can I get updates about new releases of the flash vm? The RSS feeds here are no help.
Edit: and where are the changelogs?
...
I had been using the open source Flash SDK, and was recently gifted CS4. I was wondering if there are better ways to do things in CS4 for some of the following things:
One of my project is a game with different phases - for phase transition is it better to implement as different frames of the stage?
Any tips in particular?
...
I want to load a swf into a Flex application and scale it down into a thumbnail-size.
I've looked at http://stackoverflow.com/questions/245420/dimensions-of-loaded-swfs-stage, but it does not really address my need: I want to size it and keep all the pieces inside a container.
Thanks
...
I have many Flex objects like this one:
public class MyData {
public var time: Date;
public var label: String;
}
I am populating this object from a DB record retrieved via AMF that looks something like this:
{
label: "Label",
incident: "2009-08-15 11:12:14.12233"
}
I want to write a generic value mapper for these ob...
I want To make a square that has keyboard movement(up, down, left, right) and will stop when it hits another object such as a wall.
please help me achieve this goal! it will help a lot! thanks :)
EDIT: I already have a square and a keyboard layout but if that needs to be something specific then please tell me!
...
Hello,
I am trying to do the following in AIR:
browse to a text file
read the text file and store it in a string (ultimately in an array)
split the string by the delimiter \n and put the resulting strings in an array
manipulate that data before sending it to a website (mysql database)
The text files I am dealing with will be anywher...
This piece of code is from Adobe docs:
package {
import flash.display.Loader;
import flash.display.Sprite;
import flash.events.*;
import flash.net.URLRequest;
public class LoaderExample extends Sprite {
private var url:String = "Image.gif";
public function LoaderExample() {
var loader:Lo...
urlRequest = new URLRequest(AccordionEffectPanel.EFFECT_DIR + fileName);
//initialize loader
loader = new Loader();
//wire image loading complete
loader.contentLoaderInfo.addEventListener(Event.COMPLETE, loadEffectCompleted);
loader.addEventListener(IOErrorEvent.IO_ERROR, ioErrorHandler);
//load image
loader.load(urlRequest);
This i...
I have 2 TileList component in my Flex application.
1 tilelist is filled with data much like following xml sample:
<person name="Test">
<likes>Flex</likes>
<likes>PHP</likes>
</person>
<person name="test2">
<likes>HTML</likes>
<likes>CSS</likes>
</person>
the data shown in that tilelist is the name.
my second tilelist:
<items>
<pr...
This bug ONLY affects the Mac (both Safari and Firefox) and ONLY on the
following conditions-
-ONLY after an image upload using FileReference(up to server then down
into flash)
-only on first browser focus. ie clicking anywhere off the browser and
then giving the browser focus seems to 're-initize the flash runtime
so the stage updates ...
In a tab navigator, I need to find out the x and y coordinates of each the tabs.
Is there a way to do that?
I am using HBox as Tab in the TabNavigator.
...
Hi,
Here is an XML:
<nodes>
<node id="0" a="hello" b="this"/>
<node id="1" c="is" d="a" e="test"/>
</nodes>
Is there a way, using E4X Filtering to find the node(s) who has an attribute with "this" as value ?
...