flash

Display alternate content when Flash is not installed with jquery.swfobject

拈花ヽ惹草 提交于 2019-12-23 03:52:06
问题 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. Here is a snippet of my code: <script type="text/javascript" language="Javascript" src="jquery.1.4.2.js"></script> <script type="text/javascript" language="Javascript" src="jquery.swfobject.1-0-9.min.js"></script> <script type="text/javascript"> $(document).ready(function(){ $("#contentflash").flash({ swf: "myswf.swf", width:

rails notices not appearing

送分小仙女□ 提交于 2019-12-23 03:43:12
问题 I'm in Rails 4 using Bootstrap This is my create action in my controller: def create @contest = Contest.new(contest_params) if @contest.save flash[:notice] = "Contest saved successfully" redirect_to @contest else redirect_to root_path, :notice => 'Project not saved' end end How come there is no notice when I submit the form? Is there something I am missing? I'm a beginner and have not been able to figure this out. I have the following in my layout already: <body> <p class="notice"><%= flash[

Flash ActionScript Grab Query String Value

谁说胖子不能爱 提交于 2019-12-23 03:32:04
问题 I need to grab values from the querystring and inject them into a getURL(""); snippet that's in the on (release) {} for a button. So if the URL that contains the embedded swf is http://domain.com/player.html?returndomain=otherdomain.com I'd like to get that otherdomain.com and inject it. Something like var returnUrl = ""; // do magic querystring getting getURL(returnUrl); *Edit: I need to snag the querystring because I don't have access to the embed code. It's being rendered by a third party

Flash ActionScript Grab Query String Value

六月ゝ 毕业季﹏ 提交于 2019-12-23 03:31:03
问题 I need to grab values from the querystring and inject them into a getURL(""); snippet that's in the on (release) {} for a button. So if the URL that contains the embedded swf is http://domain.com/player.html?returndomain=otherdomain.com I'd like to get that otherdomain.com and inject it. Something like var returnUrl = ""; // do magic querystring getting getURL(returnUrl); *Edit: I need to snag the querystring because I don't have access to the embed code. It's being rendered by a third party

How do I set a certain color to be transparent?

懵懂的女人 提交于 2019-12-23 03:26:08
问题 I'm using copyPixels to copy a parts of a larger Bitmap to smaller Bitmaps to use for individual MovieClips. However, around there is still some extra space white space and corners around the Bitmaps' edges left over. How do I set the color white in the Bitmap to be transparent so I won't see these unsightly edges? 回答1: You can use the BitmapData.threshold method. This code creates a BitmapData with a red square on a blue background, then uses the threshold method to make the red pixels

SVG to SWF Conversion

泄露秘密 提交于 2019-12-23 03:24:17
问题 I need to convert many .svg images into swf format. I can do this be opening the .svg in Adobe Illustrator and exporting to swf but this is very time consuming. Are there any free command line utilities out there that will convert .SVG to .SWF? I have already tried SWFMill with no success. I have also downloaded Ming but cannot compile the c++ source. 回答1: You could try svg2swf. Looks like the Windows binary got updated in 2009 so there's a good chance it'll work. 来源: https://stackoverflow

Playing flash file in vb.net

ε祈祈猫儿з 提交于 2019-12-23 03:24:17
问题 I did some research and come up with this code. AxShockwaveFlash1.Stop() AxShockwaveFlash1.Movie = Application.StartupPath & "\RSAppt.swf" AxShockwaveFlash1.Play() playBtn.Enabled = False I don't know why the video is not playing. My RSAppt.swf file is located at a resources(foldername) folder under my project. Is it the path? What is the right way to direct it to the specific path of my .swf file. Any ideas? Thanks! 回答1: This should work just fine. Dim path As String = Application

Why can't I get Javascript to Talk to ActionScript

梦想与她 提交于 2019-12-23 03:23:12
问题 I have a very simple flash program that plays music. It consists of a play pause button and a timer that shows the current position of the song. I'm trying to make it possible to pause or play the song using a regular form button. <div class="musicplayer_playpause"> <script type="text/javascript"> AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0','width','65','height','68','src','player','quality','high','pluginspage','http:/

Is it possible to improve the performance of this drawing technique?

試著忘記壹切 提交于 2019-12-23 03:00:36
问题 Am currently working on a tool created by a colleague of mine and would like to improve performance. Basically, it's a tool for drawing on screen and uses a combination of Sprites and the Graphics class to draw a line segment every time the mouse is moved when the mouse button is down. Here is the drawing bit: // on MouseMove protected function drawLine(e:MouseEvent):void { if (currentTool.thickness > 0){ //pen var line:Sprite = new Sprite(); line.graphics.lineStyle(currentTool.thickness,

hitTestObject on child of a MC

此生再无相见时 提交于 2019-12-23 02:59:21
问题 I have a MC called 'playerP" and inside of it with 7 different MC. I can't seems to hit test on the children MC, it always show [object position_2] private function cMove(e:MouseEvent):void { trace(MovieClip(playerP.RR), playerP.PT) if (e.currentTarget.hitTestObject(playerP.PT)) { trace("hit la"); } } 回答1: Try explicitly iterating through the children. private function cMove(e:MouseEvent):void { for (var ii : uint = 0; ii < playerP.numChildren; ++ii) { if (e.currentTarget.hitTestObject