I've been reading about using ExternalInterface to have Flash communicate with JavaScript. I need to detect and call some code in JavaScript when the user starts playing the video and when the video ends. The swfobject is nifty for embedding a player on the page, but I can't figure out how to add these event handlers to it.[code]...
How can I display alternate HTML with the jquery.swfobject plugin for browsers without Flash? I'm unable to find any documentation or examples showing how to do this.
Im trying to load a flash movie using swfobject which I have been successful in doing so however the flash movie takes a few seconds to load I wanted to show a simple loading animation however the animation never displays. I commented out the code that embeds the movie and found that the animation does get displayed.
I have a flash movie and lavalamp menu on the page, when moving the mouse over the menu the flash flickers, and the lavalamp animation is slow and not smooth.[code]
I have downloaded SWFObject, and included it in my website. Now I want to simply get a true or false value based on whether or not Flash is installed in the users browser when they visit my site.
As you can tell by the title, I am having some trouble with AS3 ExternalInterface and jQuery / swfobject.
[Code]...
It's giving the first alert ('init') but then not doing the last one. I'm completely baffled and hope someone can point out my mistakes! (there's bound to be a massively obvious one somewhere)
It works with Firefox and Chrome, but something's not quite right in IE6. Sadly, one of the project requirements is supporting this browser, so even if it workis in IE7, I need to work this out.I know there's SWFObject, but I'd rather not use it (we are loading already a bunch of JS files, we don't want more).Even this won't work:
Is there a way I can have JavaScript/jQuery know when a Flash object has been clicked (and still have Flash process the click)?
I tried putting a table on top of the object with position: fixed and a z-index and the object set to param name='wmode' value='transparent' so I could have my JavaScript detect which column was clicked using jQuery's click(), but the clicks were never intercepted by JavaScript (Chromium Linux).
I need to be able to detect when JQuery resizes the embedded movie so I can trigger a function in my Flash movie. I created a function which detects if Stage.width or Stage.height has changed but this only works when I resize the window after pressing Ctrl+Enter in Flash Pro and not on the webpage.
I need to create a splash page type thing. It needs to play a flash movie and then when that movie has finished show a full screen image using html/js. THe movie will be flash and the image display will be javascript powered.
The simplified code: //triggered on MouseEvent.MOUSE_DOWN private function beginDrag(e:MouseEvent):void { stage.addEventListener(MouseEvent.MOUSE_MOVE, drag); stage.addEventListener(MouseEvent.MOUSE_UP, endDrag); stage.addEventListener(Event.DEACTIVATE, endDrag); [Code] .....
I am using some click-and-drag techniques within my flash code, and I've noticed some loopholes with the MOUSE_UP event: -It wont be triggered if a context menu is activated while the mouse is still held down. -It wont be triggered if the window is deactivated (alt+tab or similar) What other events can possibly interrupt the MOUSE_UP event and lead to unexpected behavior? Additionally is there a way to generically catch ContextMenuEvent.MENU_SELECT for all context menus without having to manually add/remove the listeners to each context menu?
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: // Initialize net stream nc = new NetConnection(); nc.connect (null); // Not using a media server.
[Code]....
Is there anything I am missing have wrong to capture events from my net stream?
I've some very old Flash applications, which we don't want to rebuild to add a new feature. We simply need to detect when the user has become idle. So, if the Flash application receives no key or mouse events after 3 minutes, we want to track that time till the user interacts with the application again.
We've considered wrapping the applications in newer Flash applications to include the key/mouse event tracking; however, early research shows that some of our apps are so old that they use event systems or AVM's (ActionScript Virtual Machines) that are incompatible. Also, it seems that mouse events on the inner application don't bubble up to the outer application. (I think the direction of event processing is backwards in versions of Flash prior to 8)
Anyhow, the next idea on the table is to see if we can determine when the user stops interacting with the old Flash applications using JavaScript. Can anyone confirm whether or not it is possible to detect, using JavaScript only, when a swf in an HTML document loses focus or key and mouse events stop and start occurring on the swf?
I was wondering if it was possible to make a small script in Jquery that would change an image at a certain time. For my site, I want the image for the opening and closing of a facility to change when it opens and closes. Is this possible with Jquery or should I go with something else? Actionscript/Flash? I can't use PHP on the site...
I have website I am developing and I have an intro SWF that I have placed the following AS 3.0 code in the last frame to call the Jquery function "trigger" ; or I might be able to detect the end of the movie and then fire the function.
PHP Code:
import flash.external.ExternalInterface;ExternalInterface.call("trigger")trace ("the movieEnded");stop();
I am a web designer and I do like to hand code using jquery however, I think it would be much faster to use gui applications like flash to create animations especially on the fly as well as support for writing and editing source code.
I'm using the HTML5 JW Player. It sizes the HTML5 video correctly, but shrinks the Flash fallback player; here's an example page: Test Page
If you view that page in IE, you'll notice that on panel 5, the video is smaller than the space it's supposed to occupy. On Firefox, it works fine because it's using the OGG video in its HTML5 video player.Is there a way to resize the Flash video via JavaScript/jQuery to fit the same space as the HTML5 video?
With swfobject 2.2, how do you specify the desired version of flash you require? I need flash 10, but swfobject won't perform an upgrade install with the provided expressInstall. swf in the swfobject 2.2 distributable. How do I get an upgrade install to occur for flash 10?
i was wondering how to make a class that is capable of detecting mouse events outside its own stage.
e.g. i want to make a click-drag bar and if i click on the drag button and start to drag, but the mouse exits the drag bar area, it wont pick up mouse_up and wont finish dragging.
i know i could add a listener to global stage and check if the user is dragging, if so, i could stop the drag. But...what i want to do is a class that wouldnt require me any coding withing a parent class.
I got myself an assignment which requires me to add buffering and few other video related functions to a flash file that uses embedded video( on the timeline).
this swf is about 30-40Mb in size and it loads quite a while.
what i need to do is to detect when the video stops playing, runs out of buffer, but i dont know how do i listen to the netstream events if there is no netstream on embedded video.
I've looked high and low for an answer to this and I'm hoping someone has an answer, or at least a tip on how to avoid it.I'm loading a static HTML file into a container via the jQuery load() method. This static HTML file has a script which loads a swf. When I load that particular file, I get the white screen of death (WSOD) and the page explodes and everyone in the room dies a horrible death.I've had this happen also when using the jQuery wrap methods (wrap, wrapOuter, etc.) when a swf is present.It seems manipulating the DOM with a container that has a swf object causes this. Does anyone have a solution or a way that I can prevent it happening?
I'm setting up a page that uses a flash menu to load html pages into a div container by the following call:
on (release){ getURL("javascript:getPage('test.html')"); }
The loading works fine, but some of my pages had specific jquery scripts and that's where I've struck out so far. I assumed all I needed to do was transfer the script importations, css stylesheets and the jquery functions to my main document, but it won't work.
I also tried importing the html as a the complete html, which works on it's own, but not when imported into the main document. Most recently I heard I should try shifting the jquery function calls to the end of the loaded document, to after the content, My scripts work, just not when imported, so I suppose my question is how can I make the main- and imported documents play nice with each other? What say you we make this a jump-start tutorial for all us noobs to reference?
I am experiencing some difficulty in having the flash content show on this page. I have checked the code and the paths and everything appears to be correct. I have another page in the same directory as the swf file and it works fine so I know that swfobject and the swf file are working properly. Any ideas why the swf file is not showing properly in the first page?