We are removing our XSL-> HTML solution annd replacing it with a Flex UI for our userbase. One of the concerns is that the BlazeDS (amf endpoint, so streaming or polling) won't be able to handle the load as well as the EJB -> XML -> XSLT -> HTML stack. My theory is that it should perform better, but I need a way to statistically prove th...
Hello,
I'm stumped on how to get started with Adobe Flash Media Server. On Linux.
All I need to do is:
Accept a request for rtmp://myserver.com:1935/stream/static/abcdef0123456789
Tell FMS that $filename is located at /var/media/ab/cd/ef/abcdef0123456789
Have FMS send /var/media/ab/cd/ef/abcdef0123456789 to the client.
Handle seekin...
How do I accomplish this in actionscript (example in c#):
string[] arr = { "1.a", "2.b", "3.d", "4.d", "5.d" };
int countD = 0;
for (int i = 0; i < arr.Length; i++)
{
if (arr[i].Contains("d")) countD++;
}
I need to count a character in an array of strings
...
Hello,
I have a child class that is loaded into the parent class when the swf begins, like so:
var myvar = 'hello';
public function Parent()
{
this.child = new Child();
};
How can I retrieve the variable 'myvar' from within child?
...
Hi, I am a newbie in Flash CS3.
I was wondering if anyone could tell me how resize the width of of a movie clip according to the size the size of dynamic text inside it. I did it by creating a text field 'myText' and then converted it to a MovieClip symbol and named the MovieClip as myClip.
The text in myText is assigned at run-time an...
We're seeing some really gnarly display corruption in our flash video player. Here's an example:
We're using fl.video.VideoPlayer for displaying our video, and it seem like perhaps this bug appears most when we're switching between different instances of VideoPlayer, particularly when there's something else above the VideoPlayer that...
I am relatively new to Flex/ActionScript, but I have been using a pattern of creating one file per function in my util package - with the name of the file being the same as the name of the function. Like if the file was convertTime.as:
package util{
public function convertTime(s:String):Date{
...
}
}
This way I can imp...
Hello all. I'm working on a website that requires a flash mp3 player. I have absolutely no idea the procedures from messing with flash/actionscript/flex etc., however I need to edit the flash very slightly (I need to add two lines of code). There are a multitude of tutorials out there for setting up a flash (or flex or whatever) developm...
i am beginner dont know how do display all country time into a single page using action script 3 in flex . do u know any example time code refer me . i will try that code .
...
At some long-ago Flash conferences I recall seeing a demo of a Flash app that had a color picker. Based on the user's color choice the app would show the user a set of images within the approximate range of that color: a bunch of mostly red images, a bunch of mostly blue images, etc.
I'm looking for two things:
1) A link to a demo of ...
Hello all. I'm adding a small .swf object (XSPF Web Music Player) to a site I'm working on. I need to add two lines of code to make external javascript calls, so, I guess I need to re-compile to actionscript (please forgive me, I'm extremely new to flash). I'm using MTASC to compile at the command line. I'm getting errors at the start of...
I'm maintaining a ActionScript 2 application which uses createEmptyMovieClip to create dropdown lists (the list items being attached as movieclips). I can close the dropdown directly via removeMovieClip and such, obviously.
My problem is this: the dropdown should not only be closed when an item is clicked or the button creating it is tr...
private function tileList_itemClick2(evt:ListEvent):void {
img = new Image();
img.maintainAspectRatio = true;
img.addEventListener(Event.COMPLETE, image_complete);
img.addEventListener(ResizeEvent.RESIZE, image_resize);
img.addEventListener(Mo...
What's the sanest way to achieve something along the lines of this.gotoAndStop(this._currentframe)?
What I want is that Flash re-loads the current frame as if I was using gotoAndStop (which does nothing if it is given the current frame as target frame).
...
Duplicate:
Why do I see a double variable initialized to some value like 21.4 as 21.399999618530273?
Is JavaScript’s math broken?
many, many other questions, for every language and platform, all with the same answer.
trace( ">> " + (399.6-(Math.floor(399.6))) );
prints out
>> 0.6000000000000227
why?
...
I am aware of the built-in 'Strings' panel within the Flash IDE, however is this the best way to go about creating a multi-lingual AS3 site/application nowadays?
Are there any recommended 3rd party APIs/frameworks available? Ideally I'd like to be able to change language on the fly and support as many character sets as possible, I will ...
I have a flashlite3 application with navigation consisting of icons the user can browse left or right through infinitely.
The basic algorithm i'm using now works (and is adequate for this project) however, part of the solution depends on a duplicate of the array of icons. Depending on the number of items in the array, and/or the size of...
I am creating an action script library.I am calling some APIs which parses some xml and gets me the result. It dispatches an Event.COMPLETE when the parsing is done. I want to monitor whether this event is dispatched in some while loop like "while(eventnotdispatched)"
is it possible? I know the other way would be to addeventlistener. But...
What (if any) are the major differences in the work environment, type of projects, type of thinking, pay, and general day to day working differences based on your experience?
RE: Apples vs Oranges
(this is exactly why I asked)
...
The following will ensure that any large numbers will only be precise to the hundredths place (related to this answer):
public function round( sc:Number ):Number
{
sc = sc * 100;
sc = Math.floor( sc );
sc = sc / 100;
return sc;
}
What is the optimal way to round my numbers to the precision of .05? Is there something ...