flash

flash/JavaScript: non 360 (partial) panorama viewer

夙愿已清 提交于 2020-01-07 03:59:24
问题 I'm searching for free partial panorama viewer. It should be placed in somewhere in the page and it should be customizable (openSource?). So far i found pan0.net but it only supports 360 and i have priority for non 360... 回答1: I recently created one where you can loop an image around horizontal 360 but it does not distort in 3d perspective. Let me know if that's what you are looking for: Web Design Panorama 回答2: I just edited pan0 sources adding if (camera.rotationY < minRA) camera.rotationY

How to use two .as files in Flash using actionscript 3?

偶尔善良 提交于 2020-01-07 03:21:10
问题 I can only specify a single .as file,how can I have 2 classes in it? 回答1: The file (In your case, its MinPlay) you specify is called the document class. Among the contents in the file, the file is supposed to have class a class named 'MinPlay' which extends either a Sprite or Movieclip. Something like package { public class MinPlay extends Sprite { // Constructor?? } } So basically when you type in the document class as above, the constructor will be called. It is totally up to you to

Using SMTP Mailer but not successful yet

若如初见. 提交于 2020-01-07 03:17:10
问题 I am trying to send mail via Adobe AIR using smtp of gmail with the following code. But no success. Anybody can help pls ? Thanks import org.bytearray.smtp.mailer.SMTPMailer; import org.bytearray.smtp.encoding.JPEGEncoder; import org.bytearray.smtp.encoding.PNGEnc; import org.bytearray.smtp.events.SMTPEvent; import flash.utils.ByteArray; import flash.display.BitmapData; import flash.display.Bitmap; import flash.events.*; // create the socket connection to any SMTP socket // use your ISP SMTP

Flash / Actionscript: How to insert images in dynamic text (In line image)?

余生长醉 提交于 2020-01-07 03:15:11
问题 I want to insert images in dynamic-text-box(s) which should be inline. Detail: I am preparing an application using flash CS4; The application is just like a chat room which will show conversation the only difference in this; it will show stored messages (stored in XML file). I want to insert smiling faces (emotions) in text body (using html tags) but the problem is that image is not inline (like in chat room [yahoo, hotmail, etc.]). I have no idea what to do...... 回答1: Please paste your code

Flex SWF Accepting Play or Rewind Command from the Flash Player (Projector)

旧城冷巷雨未停 提交于 2020-01-07 02:58:17
问题 I'm trying to make my Flex SWF act like a Flash movie SWF so that when the user issues the Play command in the FLash Player it can trigger an event in my Flex SWF file. I'm not sure what event this would hook into or if this is possible with Flex. Any help appreciated. Thanks! 回答1: It's not possible to use the 'play' in Flex per say since even though Flash is a frame based VM, Flex is masked against that so that users can use frame based actions. What would be the requirement to have Flex

AS3 audiioencoder to convert to audio

ε祈祈猫儿з 提交于 2020-01-07 02:57:07
问题 In action script how to convert using audio encoder a recorded byte array from microphone to MP3 public var recordedData:ByteArray; recordedData.writeBytes(sample.data, 0, sample.data.bytesAvailable); How to save recordedData to mp3 using audio encoder 回答1: You find yourself an MP3 encoding library that runs in the Flash player. A simple google search finds Shine to be pretty popular. Another option is to stream the audio up to the server and encode there. Depending on your environment, you

How to load jQuery before DOM is ready

こ雲淡風輕ζ 提交于 2020-01-07 02:41:12
问题 I want to load some jQuery code before the DOM is ready. I want to make a flash file transparant as the DOM loads. I was going to use something like this but Flash is initilized before the DOM loads. jQuery(document).ready(function(){ jQuery('object:not(:has(wmode))').each(function(){ jQuery(this).attr('wmode', 'transparent'); jQuery(this).prepend('<param name="wmode" value="transparent">'); jQuery(this).children('embed').attr('wmode', 'transparent'); }); }); Any ideas on how to do this? EDIT

ScrollPane Component required in library even though it is not being used by Parent Movie

两盒软妹~` 提交于 2020-01-07 02:20:15
问题 note: all as3 is written in CS4 and compiled for flash 10. I have a parent movie that loads a separate standalone SWF movie. This standalone movie happens to use the ScrollPane component (fl.containers.ScrollPane), and it runs correctly when launched on it's own. When I attempt to have a Parent movie load the standalone SWF, i receive a run-time error: TypeError: Error #1009: Cannot access a property or method of a null object reference. at fl.containers::ScrollPane/drawBackground() at fl

Can sqlite databae be used with as3 air app for android devices running 6.0+ versions?

£可爱£侵袭症+ 提交于 2020-01-06 21:39:22
问题 My App and Sqlite connection works on simulator but does not work when publishes on android device. Below are the sample codes, I have tried, all work on simulator but not on android phone // SAMPLE-1 var conn:SQLConnection = new SQLConnection(); conn.addEventListener(SQLEvent.OPEN, openSuccess); conn.addEventListener(SQLErrorEvent.ERROR, openFailure); var fileLocation:File = File.applicationStorageDirectory.resolvePath("assets/weddingsql.sqlite"); ; conn.openAsync(fileLocation, SQLMode.READ)