flash

Div wider than browser without browser scrolling

走远了吗. 提交于 2019-12-23 02:58:07
问题 I'm working on a layout where the main content div will have a with of 970px. Behind this div, I want a div with dimensions 1200x600px (it will contain a flash object) positioned like so: width:1200px; height:600px; position:absolute; left:50%; margin-left:-600px; The problem is when the browser is sized to a width smaller than 1200px it get the horizontal scroll bar. I can fix that by: body {overflow-x:hidden;} But I DO want it to have the horizontal scroll bar when it get sized to less than

Embed vimeo player in Rails?

て烟熏妆下的殇ゞ 提交于 2019-12-23 02:45:11
问题 I want to allow users to submit a vimeo url and embed that in a player. Is there a plugin or gem that does that? Thanks 回答1: Vimeo has details on how to embed using their API: http://www.vimeo.com/api/docs/oembed Under their "unofficial downloads" page, there is this gem: http://github.com/matthooks/vimeo 回答2: Old question but I found myself in the same situation. If you wan't to retrieve Vimeo iframe for your video you can use the following code. No need to add a gem. Add helper Just create

Spinning Wheel in flash AS3

雨燕双飞 提交于 2019-12-23 02:43:13
问题 I want to create (roulette) spinning wheel simulation in FLASH. I want to get a number, where that (roulette) spinning wheel will stop in front of an indicator. Here is link which demonstrate what I want actually. http://zytwebdev.zoomyourtraffic.in/amol_zytwebdev/roullete/R1_wheel2.swf section = new Array(); section[0] = "1"; section[1] = "2"; section[2] = "3"; section[3] = "4"; section[4] = "5"; section[5] = "6"; section[6] = "7"; section[7] = "8"; section[8] = "9"; section[9] = "10";

Calling a Namespaced JavaScript Function from Flash

五迷三道 提交于 2019-12-23 02:13:13
问题 Can I use ExternalInterface to call a namespaced JavaScript function? //JavaScript foo.bar = function(baz) {} // AS3 import flash.external.ExternalInterface; ExternalInterface.call('foo.bar', baz); 回答1: The documentation of ExternalInterface.call is a little misleading. it states the first parameter must be a function name, which is not the whole truth. it can be any string that can be evaluated as a proprer JS expression. In fact ExternalInterface.call(func, param_1, ... , param_n); is

Live video streaming using progressive download (and not RTMP) in Flash

和自甴很熟 提交于 2019-12-23 01:55:14
问题 Is it possible to use progressive download for near real-time playback of a live video stream recorded with a webcam? What I need is that a video stream is recorded on one end, uploaded in real-time to a server and downloaded with a short delay, but in real-time, using progressive download (i.e., HTTP streaming) on another end for playback. Is it possible or does it require the use of RTMP? If it's possible, then does it require that Flash Media Server runs on a server? Thanks! 回答1: What you

Find all points along a path AS3

流过昼夜 提交于 2019-12-23 01:43:15
问题 Basically, I want to randomly add a movie clip to any point along a bezier curve. Is there a way to find all points along a path? Or maybe there's a way to find the equation (it's a quadratic curve)? If all else fails, is there a way to find the points along a straight line (that isn't perfectly horizontal or vertical)? 回答1: If you are using the pen tool, this is creating a Shape . You can access the path of this shape by reading the result from Shape.graphics.readGraphicsData() See the

Find all points along a path AS3

Deadly 提交于 2019-12-23 01:43:11
问题 Basically, I want to randomly add a movie clip to any point along a bezier curve. Is there a way to find all points along a path? Or maybe there's a way to find the equation (it's a quadratic curve)? If all else fails, is there a way to find the points along a straight line (that isn't perfectly horizontal or vertical)? 回答1: If you are using the pen tool, this is creating a Shape . You can access the path of this shape by reading the result from Shape.graphics.readGraphicsData() See the

Regexp to get domain from URL

雨燕双飞 提交于 2019-12-23 01:12:19
问题 Anyone knows the Regexp for AS3 to get the domain name from URL? E.g: "http://www.google.com/translate" will get "http://www.google.com" 回答1: There's is a very complete utility class for dealing with URIs in as3corelib. Perhaps you might want to use this instead of rolling your own. import com.adobe.net.URI; var uri:URI = new URI("http://www.google.com/translate"); trace(uri.authority); // traces www.google.com 回答2: This should do the work: http(s?)://([\w]+\.){1}([\w]+\.?)+ You can try this

When using swfobject, swf file ignores z-index

左心房为你撑大大i 提交于 2019-12-22 23:17:37
问题 I have this issue where if I append a swf file using SWFObject, it ignores my css rules for z-index. I have tried to set the parent container, the swf file, and everything around it; nothing seems to work for me. Has anyone ran into this issue and could give me some helpful advice? Thanks, Kyle 回答1: Make sure your using "transparent" wmode. var params = {}; params.wmode = "transparent"; swfobject.embedSWF("file.swf", "id_name", "100", "100", "10.0.0",false,false,params); 回答2: Z-index is

When using swfobject, swf file ignores z-index

会有一股神秘感。 提交于 2019-12-22 23:17:35
问题 I have this issue where if I append a swf file using SWFObject, it ignores my css rules for z-index. I have tried to set the parent container, the swf file, and everything around it; nothing seems to work for me. Has anyone ran into this issue and could give me some helpful advice? Thanks, Kyle 回答1: Make sure your using "transparent" wmode. var params = {}; params.wmode = "transparent"; swfobject.embedSWF("file.swf", "id_name", "100", "100", "10.0.0",false,false,params); 回答2: Z-index is