flash

Height and width of a SWF file in html

白昼怎懂夜的黑 提交于 2020-01-23 09:20:27
问题 In the following code Only the button image has been embeded into the flex code.But in the html object or embed tag why the height and width has to be specified.Even though for this is a normal button if we do not specify the height and width there seems to be some error html <div align="center"> <br /> <div style="display:block;width:100px;height:100px;" id="audio" class="testsound" align="center"/> <p class="clickable"> <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="400

Height and width of a SWF file in html

ε祈祈猫儿з 提交于 2020-01-23 09:20:21
问题 In the following code Only the button image has been embeded into the flex code.But in the html object or embed tag why the height and width has to be specified.Even though for this is a normal button if we do not specify the height and width there seems to be some error html <div align="center"> <br /> <div style="display:block;width:100px;height:100px;" id="audio" class="testsound" align="center"/> <p class="clickable"> <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="400

What is the best approach to moving a preexisting project from Flash 7/AS2 to Flex/AS3?

徘徊边缘 提交于 2020-01-23 06:23:48
问题 I have a large codebase that targetted Flash 7, with a lot of AS2 classes. I'm hoping that I'll be able to use Flex for any new projects, but a lot of new stuff in our roadmap is additions to the old code. The syntax for AS2 and AS3 is generally the same, so I'm starting to wonder how hard it would be to port the current codebase to Flex/AS3. I know all the UI-related stuff would be iffy (currently the UI is generated at runtime with a lot of createEmptyMovieClip() and attachMovie() stuff),

How do you hide the url of the .flv file in a flash player?

久未见 提交于 2020-01-23 02:55:27
问题 I use expiring urls to hide the urls of images I use on my sites, so that they can only be hotlinked for the duration of the life of the hash (1 hour). I check the hash sent with the file url, against a hash on the server, if they match, the script calls the following code: if (isset($_GET["hash"])) { $this_min = date('Y-m-d-g',time()) . "salt" . $vid_id; $current_hash = substr(md5($this_min),0,12); $submitted_hash = mysql_real_escape_string($_GET["hash"]); if ("$current_hash" == "$submitted

How to enable Adobe Flash with CefSharp?

不羁岁月 提交于 2020-01-22 21:40:05
问题 I'm using the latest Version of CefSharp and I need to Display Flash. When using Chrome, the page gets displayed correctly. However when using CefSharp it does not. So far I tried: var browser = new ChromiumWebBrowser(URL) { BrowserSettings = new BrowserSettings() { Java = CefState.Enabled, Plugins = CefState.Enabled, }, Dock = DockStyle.Fill }; When I load about:plugins I get: CEF 3.2357.1287.g861c26e Chromium 43.0.2357.130 OS Windows WebKit 537.36 JavaScript 4.3.61.30 Flash User Agent

How to enable Adobe Flash with CefSharp?

半城伤御伤魂 提交于 2020-01-22 21:39:06
问题 I'm using the latest Version of CefSharp and I need to Display Flash. When using Chrome, the page gets displayed correctly. However when using CefSharp it does not. So far I tried: var browser = new ChromiumWebBrowser(URL) { BrowserSettings = new BrowserSettings() { Java = CefState.Enabled, Plugins = CefState.Enabled, }, Dock = DockStyle.Fill }; When I load about:plugins I get: CEF 3.2357.1287.g861c26e Chromium 43.0.2357.130 OS Windows WebKit 537.36 JavaScript 4.3.61.30 Flash User Agent

Placing a div in front of a flash embed

本小妞迷上赌 提交于 2020-01-22 19:58:05
问题 I need to place a div tag above literally everything else on the page. I've read that setting wmode param to opaque will do it, but also heard that that will only effect IE. Is this true? How do you do it? 回答1: In your flash applet tag, simply have this: <object id='flashObject' ....> <param ....> <param name='wmode' value='opaque'> <embed ... wmode='opaque'> </embed> </object> That should take care of it. Note that the downside of this is it slows down rendering for both the flash movie and

Error: req.flash() requires sessions

瘦欲@ 提交于 2020-01-22 18:49:24
问题 I'm new to node and I'm pretty sure I've set up the middle ware and express to use flash messaging however I still get the error: Error: req.flash() requires sessions Setup //express.js var flash = require('connect-flash') module.exports = function (app, config, passport) { app.use(flash()); }; //route js exports.loginGet = function (req, res) { res.render('users/login', { title: 'Login', message: req.flash('error') //error in question }); }; What else can I do to make sure I have everything

AS3 Run code continuously while holding a Button down - Air For iOS/Android

徘徊边缘 提交于 2020-01-22 15:04:26
问题 I am developing an iOS game in Flash CS6. I have a basic movement test that I put in an Event.MOUSE_DOWN handler. What I'm expecting/wanting is when I held my finger down on the button, that the player would keep moving until I stop touching the screen. What happens though, is I have to keep constantly tapping to keep the player moving - rather than just hold my finger on the button and the player keeps moving. What code should I use to accomplish what I want? 回答1: To accomplish this, you'll

Flex/ActionScript - rotate Sprite around its center

隐身守侯 提交于 2020-01-22 10:46:12
问题 I have created a Sprite in Actionscript and rendered it to a Flex Canvas. Suppose: var fooShape:Sprite = new FooSpriteSubclass(); fooCanvas.rawChildren.addChild(myshape); //Sprite shape renders on screen fooShape.rotation = fooNumber; This will rotate my shape, but seems to rotate it around the upper-left point of its parent container(the canvas). How can I force the Sprite to rotate about is own center point? I could obviously write code to calculate the rotation, and then have it re-render,