Ok I have a flex app and I am adding a callback method like this:
private function init():void
{
ExternalInterface.addCallback( "playVideo", playVideo );
}
private function playVideo(videoSource:String):Boolean
{
videoDisplay.source = videoSource;
return true;
}
I am calling it with javascript like this:
function show...
I have created a FLV video player using the AS3 flash.media.Video object (not the FLV playback component) and I am trying to listen for meta events and Cue Points embedded in the FLV video but I am not receiving any when I trace the movie. The cue points are not being created dynamically, they are in the FLV video.
Video embed code:
...
The file upload script I wrote early last year for an internal website has been misbehaving oddly on a number of machines. On some machines it consistently works fine, on others it consistently misbehaves. I am having exactly the same problem with YUI Uploader, SWFUpload (2.2 and 2.5a), and Uploadify.
On the misbehaving machines, the pr...
Hello,
I have a custom scrollbar that controls a group as its viewport.
<s:HGroup>
<s:Group width="520" height="380" clipAndEnableScrolling="true" id="descriptionBox" >
<s:RichText text="Test Test Test Test Test Test Test "
width="490" textAlign="justify" fontFamily="Arial" fontSize="12" col...
I'm trying to accurately determine how many seconds of a video (NetStream) have been loaded so I can scrub/seek correctly. First I tried doing duration*(ns.bytesLoaded/ns.bytesTotal) but this is inaccurate by maybe 15%, ie if that calculation says 20 seconds is loaded and I scrub to 20 seconds ns.time will tell me it can't go past 17 se...
I was told the pixel detection is costly for regular windows games. Is this the same for flash ?? Or would pixel detection be lighter compared to other detections flash has to offer. Flash has the getPixel32 method which makes it easy for detecting pixels. If I am bliting my game, would it be wise to use getPixel32 for collision detectio...
Issue: Lightbox effect not hiding other flash content (swfs) on the page.
To reproduce:
Have an older version of FF (I saw this happening on 3.0.17)
View page: http://www.snaplogic.com/snapstore
Click on 'Introduction to SnapStore' thumb to start vidbox
You'll see the banner swf file still "bleeding" into the lightbox
This is working...
I've tried many different ways of accessing the name of an attribute, but just can't get it working.
The current Function:
protected function applyProperties(_axml:XML):void
{
var list:XMLList = _axml.properties;
var list2:XMLList = list.attributes();
for( var i = 0; i < list2.length(); i++ ){
trace(list2[i].nodeName.toStr...
I am creating a blit game and as of right now, the only thing that is blitting is the world itself (i.e. roads, fences). i was planning on displaying my character as a sprite and any interactive objects that it comes by as sprites as well. PickUps, Houses, Enemies. I was wanting to know what are the best practices when it comes to this. ...
I want to dynamically create and put some Image (mx.controls.Image) objects on a Canvas and I want them then to be able to be repositioned by the user via the mouse. Can this be done? Note, I am not looking for drag and drop. I just want to change the X and Y coordinates of Images with the mouse.
Thanks!
...
Facebook Connect uses JS/CSS overlays/popups for user interaction. I have sites with Flash elements, and no matter how I set the z-indices, the Flash always seems to go to the top.
I have a similar and likely related problem with a div with display:fixed at the top of the screen, where it gets covered by the Flash when you start scrolli...
Hi,
I have an ugly problem. I have two string variables (className and staticMethod) store the name of a class and it's static method I have to call:
package {
import flash.display.Sprite;
import flash.utils.getDefinitionByName;
import flash.utils.getQualifiedClassName;
public class ClassPlay extends Sprite {
public function Cl...
I am trying to remove an object from an array. but from some reason its not working. I am under the impression that a splice accepts 2 parameters. the position of the array. and for parameter 2 , how many to delete from then on out
I just want to delete one array so I am doing this
array.splice(i,0);
but it isn't working. can someone...
Hi
New to the Twitter API, but need to choose between 3 different Actionscript libraries available for the Twitter API.
Has anyone used either TwitterScript, SWX Twitter, or Tweetr and knows some of the pros and cons of each?
...
Hello guys, I'm triying to get a folder size by doing:
var FolderFile:File = new File("file:///SomePath/Folder");
var FolderSize: FolderFile.size;
But this gives me a value of 0, how can I get the folder size? is there anyway to do this?
Tranks
...
This might be a dumb question. I think I already know the answer, just clarify. If you declare a object in varible1 and then pass the value into varible2. If you decide to null varible2 would that kill just the reference or the object itself as well. I want to say no, but then again, everything you do to the reference it self, also affec...
I have some simple code:
function testing(){
for (a=1; a<=4; a++) {
this["btn"+a].enabled = true;
}
}
If i run this function from anywhere it works fine. If i run this function from myTimer = setInteval(testing, 3000); it will not work. If i add other random code into the function it (the newly added c...
hi
I have a flash script, i added one move clip via addChild, my movie area is 500x400
and the movieClip i aligned to center. But when am trying to set the size with in browser its not aligned to center. all my calculations are getting wrong.
package {
import flash.display.*;
import flash.display.Stage;
import flash.geom.*;
...
I'm going to create a website, which is meant to be opened from mobile phones including iphones. The website may be containing different contents such as Javascript widgets, flash content, images, texts, dropboxes, etc. The website is being built using XHTML and Javascript. What are the common issues that safari faces while opening such...
How can I make a doodle pad like this for a website? Is flash the only option? I wanted to make one for advert design.
Edit
Basically, I want to provide features like customized text (font/color/size) and placement, option to put any image with scale/rotate/transform option etc so that he can design advert himself.
Edit2
What could...