flash

Can Flash's print action be triggered from JavaScript?

Is it possible to use JavaScript to trigger a Flash object's context-menu 'Print' action? Background: I have a page whose main content consists of a Flash object. I need to print this page via JavaScript, which I'm doing with window.print. Unfortunately, it seems that Firefox has a bug (for the past eight years) whereby Flash content ...

Can a Flash SharedObejct expire per session?

I'm trying to display certain content per session, but the site has the same Flash embedded in the different sections of the site, so I can't set it on the site's Model or a Global Variable. I also can't use PHP or JS. ...

Creating a pacman-style game using Flash (AS3)

Creating a pacman-style game using Flash (AS3). There are 3 players competing to eat the most dots. Right now when one player eats a dot, on that player's screen the dot goes away (but only for a second) and appears again in the screen. The other player playing, doesn't see that the dot went away and reappeared. Using hitTestObject, whe...

Set boundary limit for MovieClip (AS3)

I have a MovieClip that can move up, down, left and right. If the MovieClip hits a wall, the MC bounces, and should not move past the wall--but if you continue to press either your up, down, left or right key, and don't let go--the MovieClip will go past the wall. I'm trying to figure out a way, to stop that from happening. link of movem...

How can I listen for trace() statements on the Flash Media Server Administration API?

I am connected to the Flash Media Server Administration API via RTMPE on port 1111 and I'd like to monitor calls to trace() from the server side actionscript code. ...

want to clear contents of stage in actionscript 3

I am new to flash and actionscript. I have added some movie clips to the stage using addChild method on Some Mouse Events. Now on an event say Mouse Double Click I want to clean the stage. I checked the Stage class from reference it does not have any method called clear. Neither I have stored the references of the objects, so that i ca...

Can someone help me adapt LazyLoader to handle embed flash

http://www.appelsiini.net/download/jquery.lazyload.js -source of code. I want to be-able to lazyload my flash widgets on scroll but I don't know how to adapt lazyloader to handle it. It seems like it should be easy; I went through the code and it seems to be made to handle any type of element, yet changing < img / > to < embed /> didnt...

Param elements being overwritten when flash object is added to the DOM via JavaScript in IE?

I put together some sample code to show what I'm talking about, but basically I need to dynamically add a bunch of HTML to a page that happens to contain a Flash movie that is relying on FlashVars being passed in from the html. The problem is that when you dynamically add a flash object to the DOM in IE, it overwrites all of the param e...

Changing the appearance of a single thumbnail in TileList Component

I'm trying to create a listing of thumbnails using the TileList component, and so far it's working great. Is there a way to change the appearance of a single ImageCell within the component. I'm bringing in the thumbnail data as XML, and I have an attribute for whether it's a "new" image or not. I would like it to display a small badge ...

Loading a swf in facebook news feed

I am building an app for a client that is a Flash based MP3 player. I would like users to be able to load and share the app with in the facebook news feed just like they do with the Youtube player (witch is a swf). I have read all the documentation on how to do this and have set up a .php file that has all the vars needed for loading. ...

Simple image editing within browser on page (Java/Flash/Javascript)

I have a page that needs simple image editing within the page. It can be either in flash or Java. Are there any open source tools that you can recommend? I am looking for a flash or Java tool that can do the following: Cropping Resizing Nothing else required but simple features like this will be a plus If the above can be done in Jav...

How to show Presentations on website like slideshare.net

Hello friends, My question is: I want to show presentations uploaded by my user on my website(like slideshare.net) so please suggest me how can i do this. is there any player available for this? But the player must be open source so i can understand it better. if there is any tutorial showing presentation on website then suggest me...

what is the direct url of metacafe video to play in a div ?

Can someone please help me by providing the "Direct Url" for playing metacafe videos in a div. ...

Video recording RTMP and lag help?

My situation: I have my recorder that works fine running off Red5 0.8 which run off my http server as well. Trying to conserve bandwidth by doing a local move file from the rtmp to http with ftp. I am trying to record HD video with a max of 2-3 minutes each. The problem is lag times on the buffer. The video ends up choppy, freezes...

Simple as2 load into an as3 movie

Hey guys I'm loading an as2 game into a as3 movie. No communication other than to play the game in the movie. I'm using a loader class. function startLoad() { var mRequest:URLRequest = new URLRequest(correctURL.toString()); mLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, onCompleteHandler); mLoader.contentLoaderI...

AS3 OSMF - How can I set a secury token for stream connections ?

Hi Im trying to connect to a secury stream server using osmf but I didnt found the place to set my secury token on the VideoElement or the NetLoader any help ? tks a lot :) ...

Getting the flash object using the DOM

I am embedding a flash video using the SWFObject static publishing option. The code is found at: http://code.google.com/p/swfobject/wiki/documentation I am embedding a youTube video and want a javascript function to start playing the video. I have tried using the document.getObjectById and document.getElementById methods. Neither of the...

Flash Game Creating Score-Dynamic Text Field (AS3)

Creating a pacman-like game, where a player eats objects. When a MovieClip (box) eats a circle on the stage, the score in the dynamic text field should go up by 10 points. Receiving an error: line: `scoreField.text = " " + string(currentScore); error message: Call to a possibly undefined method string. package { import flash.displ...

Syntax error 1084 in Actionscript

I am getting 2 syntax errors out of this. I am new to Flash. How can I fix this? var paddlepos:int = paddle.x.position if; (paddlepos > 253) { paddle.x.postition = 253; } Syntax errors: Scene 1, Layer 'Actions', Frame 1, Line 28 1084: Syntax error: expecting rightparen before leftbrace. Scene 1, Layer 'Actions', Frame 1, Line ...

previous / next within a range of numbers

hey all.. i need a function that would return a previous and next numbers, but only within my numbers range. so, for example, if my range is from 0 to 7, and im on 6 - next should return 7. if im on 7 - next should return 0 (it circled back to it). same for previous, if im on 0, previous should be 7. I think modulo can be used to figur...