flash

how to add google admob ad in flash for ios?

做~自己de王妃 提交于 2019-12-25 07:07:54
问题 I am try to add admob ad to my flash for ios application.I have install the admob ane(https://code.google.com/p/flash-air-admob-ane-for-ios-and-android/) add the follow code in timeline import so.cuo.platform.admob.Admob; import so.cuo.platform.admob.AdmobEvent; import so.cuo.platform.admob.AdmobSize; var admob:Admob=Admob.getInstance(); admob.setKeys("ca-app-pub-17380930385764784/6322941144","ca-app-pub-17380930385764874/4846207943"); admob.showBanner(Admob.BANNER,AdmobPosition.BOTTOM_CENTER

ActionScript 3, How to get character to jump for longer

两盒软妹~` 提交于 2019-12-25 07:06:20
问题 I am making a platformer game in Flash (AS3) and the code I have below works. I want my character to jump high enough to allow it time to reach a platform. The only problem with code below is the speed at which it jumps up and down and the height of the jump. Tthe space bar is what triggers the function to run. Please help as I would much appreciate it! :) Player.addEventListener(Event.ENTER_FRAME, fl_MoveInDirectionOfKey); stage.addEventListener(KeyboardEvent.KEY_DOWN, fl_SetKeyPressed);

Flash: Is it possible to record the user voice & act on it?

给你一囗甜甜゛ 提交于 2019-12-25 07:06:14
问题 Is it possible to record the end user by mic? And what kid of actions can I do with the recording? Can I get for example the volume of the sound (decibels) in real time? Can I save the record on a file? Thanks. 回答1: Yes, Flash allows (with user permission) the ability to record from the microphone. This is how countless sites like Stickam work to provide videoconferencing capability. You cannot take actual (accurate) sound pressure readings in dB--that is an absolute measurement of sound

Getting Checkboxes to retain their state on return to frame

泄露秘密 提交于 2019-12-25 07:05:02
问题 thanks for taking the time to read this. let me preface this by saying I'm extremely new to Flash/Actionscript and haven't done any coding in about 15years. Basically I've been asked by my employer to create a presentation for a client. This presentation uses checkboxes to display different segments of an image (actually buttons). These buttons in turn link to other frames with information about the section they clicked on. So far all is working, I've got all my checkboxes linked to buttons

How could I compile the code for this Flash tutorial?

时间秒杀一切 提交于 2019-12-25 06:59:01
问题 I started reading this tutorial: http://active.tutsplus.com/tutorials/actionscript/creating-a-reusable-flash-uploader-with-actionscript-3-0-and-php/ I'm using FlashDevelop, and I pasted the full code into an ActionScript file. The errors I'm receiving are like this: C:\Users\tempus\Documents\uploaderas\Uploader.as(30): col: 4 Error: Access of undefined property select_btn. select_btn.addEventListener( MouseEvent.CLICK, browse ); ^ C:\Users\tempus\Documents\uploaderas\Uploader.as(31): col: 4

What are some methods that Flash apps can communicate with each other?

十年热恋 提交于 2019-12-25 06:56:11
问题 I'm developing an interactive system where two client flash apps will talk to a third server app. The clients will be sending some status information to the server. I think I need two way communication...haven't decided whether the server needs to send back any acknowledgements yet. These will be applications and not .swfs that run in a browser. So far the only method that I see are to make the server an AIR app (b/c AIR has a Server Socket class) and make the clients Flash projectors (b/c

Test whether a device has Flash enabled, Modernizr style

时光毁灭记忆、已成空白 提交于 2019-12-25 06:38:26
问题 Is there a way to test whether a device supports Flash, similar to the way http://www.modernizr.com can feature-detect browsers and add a class to the body? 回答1: The template files created by Flash or Flashbuilder etc. have javascript checks in place to verify the user has the correct flash player version installed, if not they are given the option to download the player. You can replace this download link with anything you want so it'll fall back on whatever you choose if there is no flash

Is there a way to print a web page via a SWF?

青春壹個敷衍的年華 提交于 2019-12-25 06:37:54
问题 In my web app, I would like to print a web page via a real, physical printer using Flash. I want to do this so that typical page headers added by the browser (eg. the URL and "Page x of y") do not get added to the printout. Perhaps I could generate a PDF and pass it to the SWF, or perhaps I could just send raw HTML ann CSS to the SWF, and then I could call some .print() method via Javascript against the SWF. So, 1) is this possible? and 2) is there a library (on GitHub perhaps) somewhere that

XML - targeting node attribute, push into a Flash AS3 array

♀尐吖头ヾ 提交于 2019-12-25 06:36:13
问题 I'm trying to push just the contents of the "txt" attribute in each "question" tag into an array named "questions" in AS3 Flash. Here is an excerpt from my xml file. <question id='Q1' uId='99036' no_ans='2' txt='In a flat structure employees are not expected to provide their bosses with their opinions.' feedback='' type='MC' passingWeight='1' url='media/'> <answer id='Q1A1' uId='311288' txt='True' weight='0'/> <answer id='Q1A2' uId='311289' txt='False' weight='1'/> </question> <question id=

How to properly use .SWC packages in Flash CS 4

为君一笑 提交于 2019-12-25 06:35:00
问题 I've googled a lot trying to find how to properly import and use .swc files in Flash CS 4, tried lots of different methods but none seem to work. What I've done is: 1. Placed it in my "D:\Program Files (x86)\Adobe\Adobe Flash CS4\en\Configuration\Components" folder. It does however not show up in the component inspector. 2. Added it in Publishing Settings as a Library and External Library, still can't seem to use it. I've also tried adding "import org.osflash.signals;" after each method but I