flash

flash player embedded in asp page which is opened in webbrowser control

故事扮演 提交于 2019-12-20 06:43:22
问题 I am developing a windows application in C#.NET. In one of my winform I have added a WebBrowser control. In this webbrowser control I have opened an asp page from my local website. Now in this webpage there is one flash object which is used to play swf files. Now my question is can I access this control from my winform? If so then how? can u create a handler for that flash object? 回答1: You can access the ActiveX's scripting interface from the element via the IHTMLObjectElement::object method.

Starling library - When I try and change cursor to image…it doesn't work (and a sprite element dissapears from stage)

こ雲淡風輕ζ 提交于 2019-12-20 06:38:12
问题 I am using Starling to make a really, really, really easy game - I am just trying to add a stationary sprite to the stage...and make it so that when the mouse touches the sprite...the game "stops" and a score is sent. I haven't tried implementing hitTest yet for the collision, but I have run into a sort of conflict problem where, when I comment out the line(s) that is supposed to change the cursor image (see Startup.as - stage.addEventListener(TouchEvent.TOUCH, touchHandler); and

How to maintain a movieclip's color between frames?

流过昼夜 提交于 2019-12-20 06:27:48
问题 My app has 2 frames; in frame 1 there are 5 MC and on a DOUBLE_CLICK event the target's color change and go to the next frame 2. In frame 2 I have a button to return to frame 1. How can i maintain the MC color when I return to frame 1? public class test extends MovieClip { public function test() { var myMCTable:Array = [myMC1, myMC2, myMC3, myMC4, myMC5]; for (var i:uint = 0; i < myMCTable.length; i++) { myMCTable[i].doubleClickEnabled = true; myMCTable[i].addEventListener(MouseEvent.DOUBLE

get embeded flash to autoPlay

一个人想着一个人 提交于 2019-12-20 06:27:32
问题 I'm really puzzled how this is not working, but the video just wont auto start for some reason, am I doing something wrong? the embedded code is for flash playback <object width="600" height="409"> <param name="movie" value="http://fpdownload.adobe.com/strobe/FlashMediaPlayback.swf"></param> <param name="flashvars" value="src=http%3A%2F%2Fwww.domain.com%2Fvideo%2Ftest%2F<?php echo $video;?>"></param> <param name="allowFullScreen" value="true"></param> <param name="allowscriptaccess" value=

Javascript to Flash communication doesn't work

你说的曾经没有我的故事 提交于 2019-12-20 06:09:19
问题 I'm trying to control a flash player from javascript, i did as i saw on the internet and i get an "not supported" error here what i've wrote: on js: function getFlashMovieObject(movieName) { if (window.document[movieName]) { return window.document[movieName]; } if (navigator.appName.indexOf("Microsoft Internet")==-1) { if (document.embeds && document.embeds[movieName]) return document.embeds[movieName]; } else // if (navigator.appName.indexOf("Microsoft Internet")!=-1) { return document

How can I bend a a display object?

故事扮演 提交于 2019-12-20 05:59:25
问题 I want to make collage, Example : http://www.as3.ro/p1_anim4.swf (1.4 mb); I want to bend images using as3. 回答1: There is no easy way to do this. Any solution to this problem will involve a lot of experimenation, and cleverness. For the 3D aspect of the transformation, investigate Papervision. For the 'bend' aspect of the transformation, investigate DisplacementMapFilters. Good luck! 回答2: I would use Papervision; with as3mod. "AS3Dmod is a library of modifiers for 3d objects." - with a bend

Javascript call AS3 function

三世轮回 提交于 2019-12-20 05:56:01
问题 I know that there are lots of articles and forum post about this question and lots of them are not working and remained unanswered. Some tutorials claimed that their code works, but some of them does not have download page and some of them with download page, the link does not work. Also, perhaps there's a new way of doing this and the code that I found is no longer supported. Here is my code:HTML and Javascript <html> <head><title>Javascript to SWF</title> <script language="JavaScript">

Flashvars to stop flash movie reloading on page reload

家住魔仙堡 提交于 2019-12-20 05:49:42
问题 I have a flash banner on every page in my site. I want it to continue playing rather than reloading when users change pages. Ive read that this can be achieved using flashvars, however, its been quite some time since I did any actionscripting. I've tried looking up tutorials to no avail. Can someone point me in the right direction please. UPDATED Thanks for your comments. I have this on frame 1 of my fla file now: var mySharedObject:SharedObject = SharedObject.getLocal("displayCookie"); if

Embed Flash in WPF application

。_饼干妹妹 提交于 2019-12-20 05:48:10
问题 Okay, so I had trouble to embed a Flash animation in a WPF application. I tried many things and only one actually worked for me. I found a solution, so I'll post it below. 回答1: I found the solution, I followed this tutorial, converting C# to VB: http://blogs.microsoft.co.il/janiv/2009/09/20/embedding-and-communicating-with-the-macromedia-flash-player-in-wpf/ But at the end, I managed to end up with only 30 lines of code to do what I wanted at first... Here's the code from WinForm User Control

Disable hash changing with flash anchor navigation

≡放荡痞女 提交于 2019-12-20 05:45:06
问题 If you specify anchors in frames of the flash movie, IE browser will change hash in address bar while playing it. http://example.com/ --> http://example.com/#start Is there any method to disable this navigation using only HTML & JS? 回答1: There will only be changes if you use the "Flash with named anchors" HTML template for export. It uses an ExternalInterface call to change the address. Remove these lines from the HTML page: <script language="JavaScript"> function flashGetHref() { return