SDK Boy » Transparent Video On The iPhone, It Can Be Done… With Flash!
january 2012 by starpause
hnical functionality that can’t be replicated on the native iOS SDK can work through a third party’s system. So just to share with you some of the results, I was attempting to play four transparent videos, all slightly overlapping with a png image in the background. The playback was unacceptably slow with this many streams. I then tried, two transparent videos with a PNG background and the playback was fine, I didn’t notice any frame grabbing or glitches, and one full screen iPhone video with transparency and a PNG image in the back ground ran fine!
Again, I’d like to express my amazement at being able to play an .flv with transparency on the iPhone. I have no idea how Adobe are able to do it, but I really hope Apple step up their game and include a video codec with alpha channel sometime soon. The only down side to using ARI 2.7 is the lack of support for native UIKit components, meaning you have to build everything in Flash/Flex.
If you want to play around with transparent video on the iPhone with Flash you’ll need to download the trial version of Flash Builder 4.5 from here, and check out this post on setting up your system to export from Flash Builder to your iPhone. You do need to be registered as an Apple dev, as to my knowledge there is no simulator in the Adobe set up, but it was all pretty straight forward (no less painful than having to do it through Apple and XCode).
Here’s the AS3 code, I just created a new Mobile ActionScript Project, as I’ve heard Flex Mobile Projects add unwanted overhead to your app (but don’t quote me on that). You’ll also need to make sure that the info in the project’s XML file (application descriptor file) matches all of your code signing identity info ie com.mycompany.myAppID
One thing to note is that I didn’t use the StageWebView object to place my video. According to Adobe’s docs StageWebView’s shouldn’t overlap with each other, so this wasn’t suitable for this project. The only piece of AIR specific code is the
ios
as3
android
air
video
flv
transparent
playback
local
file
Again, I’d like to express my amazement at being able to play an .flv with transparency on the iPhone. I have no idea how Adobe are able to do it, but I really hope Apple step up their game and include a video codec with alpha channel sometime soon. The only down side to using ARI 2.7 is the lack of support for native UIKit components, meaning you have to build everything in Flash/Flex.
If you want to play around with transparent video on the iPhone with Flash you’ll need to download the trial version of Flash Builder 4.5 from here, and check out this post on setting up your system to export from Flash Builder to your iPhone. You do need to be registered as an Apple dev, as to my knowledge there is no simulator in the Adobe set up, but it was all pretty straight forward (no less painful than having to do it through Apple and XCode).
Here’s the AS3 code, I just created a new Mobile ActionScript Project, as I’ve heard Flex Mobile Projects add unwanted overhead to your app (but don’t quote me on that). You’ll also need to make sure that the info in the project’s XML file (application descriptor file) matches all of your code signing identity info ie com.mycompany.myAppID
One thing to note is that I didn’t use the StageWebView object to place my video. According to Adobe’s docs StageWebView’s shouldn’t overlap with each other, so this wasn’t suitable for this project. The only piece of AIR specific code is the
january 2012 by starpause
AS3 GIF Player Class 0.3 - ByteArray.org
october 2011 by starpause
funny experiment
as3
flash
gif
library
animated
actionscript
october 2011 by starpause
pyro-player - Pyro - a video player API for flash - Google Project Hosting
august 2011 by starpause
Not a full fledge player like whats a
pyro
player
as3
flv
movie
playback
library
august 2011 by starpause
Old Nabble - Flex India - [flex_india:29725] Text Layout Framework
august 2011 by starpause
<TextFlow xmlns="http://ns.adobe.com/
textLayout/2008"><div
direction="rtl"><p>'+selectedItem[_customLabelField]+'</p></div>
div
direction
rtl
right
to
left
bidirectional
text
field
flash
as3
actionscript
textLayout/2008"><div
direction="rtl"><p>'+selectedItem[_customLabelField]+'</p></div>
august 2011 by starpause
Flex mirroring and bidirectional text
august 2011 by starpause
Bidirectional text refers to text that contains both RTL and LTR content. For example, if you write a sentence in an RTL language such as Hebrew, but include the name of a company, such as Adobe. The compiler recognizes characters codes that use RTL and LTR and renders the text appropriately. The following example shows bidirectional text:
rtl
bidirectional
bidi
text
adoble
flash
flex
actionscript
as3
layout
mirroring
august 2011 by starpause
related tags
2.0 ⊕ 2.6 ⊕ 2d ⊕ 3d ⊕ able ⊕ accessability ⊕ accordion ⊕ accurate ⊕ acitonscript ⊕ action ⊕ actionscript ⊕ actionscript3 ⊕ actionsource ⊕ actoinscript ⊕ add ⊕ added ⊕ addon ⊕ addvariable ⊕ adjust ⊕ adobe ⊕ adoble ⊕ adt ⊕ age ⊕ agechecker ⊕ agegate ⊕ air ⊕ air2 ⊕ ajax ⊕ alchemy ⊕ alternative ⊕ amiga ⊕ analog ⊕ analysis ⊕ analytics ⊕ analyzer ⊕ anchor ⊕ android ⊕ ane ⊕ animated ⊕ animation ⊕ ant ⊕ api ⊕ app ⊕ apparat ⊕ application ⊕ ar ⊕ arabic ⊕ architecture ⊕ arduino ⊕ arial ⊕ array ⊕ art ⊕ as ⊕ as2 ⊕ as3 ⊖ aspirin ⊕ assumption ⊕ assurf ⊕ astro ⊕ attach ⊕ audio ⊕ augmented ⊕ autocomplete ⊕ awards ⊕ away ⊕ away3d ⊕ barbarian ⊕ bare ⊕ base ⊕ bbs ⊕ beat ⊕ beautifl ⊕ beautiful ⊕ benchmark ⊕ best ⊕ better ⊕ betterflv ⊕ bezier ⊕ bidi ⊕ bidirectional ⊕ bitmap ⊕ blackberry ⊕ blend ⊕ blendmode ⊕ blog ⊕ bmp ⊕ board ⊕ bold ⊕ bones ⊕ book ⊕ box ⊕ box2d ⊕ bpm ⊕ branden ⊕ brothers ⊕ browser ⊕ bug ⊕ bugfix ⊕ build ⊕ builder ⊕ bump ⊕ bumpslide ⊕ byte ⊕ c ⊕ c++ ⊕ call ⊕ camera ⊕ cameras ⊕ canvas ⊕ caption ⊕ casa ⊕ cccatcher ⊕ change ⊕ cheat ⊕ checker ⊕ cheet ⊕ child ⊕ chip ⊕ chiptune ⊕ circle ⊕ class ⊕ classes ⊕ clock ⊕ closed ⊕ code ⊕ coderanger ⊕ coding ⊕ collaberative ⊕ comercial ⊕ command ⊕ commandline ⊕ communication ⊕ comparison ⊕ compile ⊕ compo ⊕ component ⊕ components ⊕ computeSpectrum ⊕ conference ⊕ connection ⊕ console ⊕ contest ⊕ context ⊕ conventions ⊕ cookie ⊕ core ⊕ creating ⊕ cross ⊕ crossdomain ⊕ crossdomain.xml ⊕ cs3 ⊕ css ⊕ ctags ⊕ cubic ⊕ cursor ⊕ curve ⊕ dance ⊕ data ⊕ davis ⊕ de ⊕ debug ⊕ debugger ⊕ debugging ⊕ debugplayer ⊕ decompiller ⊕ deep ⊕ deeplink ⊕ deeplinking ⊕ demo ⊕ demonster ⊕ descriptor ⊕ design ⊕ desktop ⊕ desuade ⊕ detection ⊕ dev ⊕ develop ⊕ developer ⊕ development ⊕ dialog ⊕ dicitonary ⊕ dictionary ⊕ dinoaids ⊕ direction ⊕ dispatch ⊕ dispatcher ⊕ display ⊕ displayobject ⊕ distort ⊕ div ⊕ diy ⊕ docs ⊕ documentation ⊕ domain ⊕ doomsday ⊕ download ⊕ drawing ⊕ duplicate ⊕ durration ⊕ dynamic ⊕ e4x ⊕ easy ⊕ eclipse ⊕ editing ⊕ editor ⊕ effect ⊕ effects ⊕ element ⊕ elements ⊕ embed ⊕ embedd ⊕ embedded ⊕ embedding ⊕ enforcer ⊕ engine ⊕ engineer ⊕ enterframe ⊕ environment ⊕ erg ⊕ estimate ⊕ estimation ⊕ euclidean ⊕ event ⊕ eventlistener ⊕ events ⊕ example ⊕ existence ⊕ experience ⊕ experiments ⊕ explained ⊕ extention ⊕ external ⊕ externalinterface ⊕ extract ⊕ factory ⊕ false ⊕ family ⊕ fb3 ⊕ fb4 ⊕ fdt ⊕ fft ⊕ field ⊕ file ⊕ fill ⊕ filters ⊕ firefox ⊕ firefox3 ⊕ firmata ⊕ first ⊕ fla ⊕ flar ⊕ flartoolkit ⊕ flash ⊕ flashbuilder ⊕ flashdevelop ⊕ flashlog ⊕ flashplayer ⊕ flashplayer10 ⊕ flashsurf ⊕ flashvar ⊕ flashvars ⊕ flex ⊕ flexbuilder ⊕ flexbuilder3 ⊕ flint ⊕ flod ⊕ flv ⊕ flvplayback ⊕ focus ⊕ font ⊕ fontloader ⊕ fonts ⊕ form ⊕ forum ⊕ foss ⊕ foundation ⊕ fp9 ⊕ fp10 ⊕ fractals ⊕ frame ⊕ frameowkr ⊕ framework ⊕ frameworks ⊕ free ⊕ function ⊕ funnel ⊕ fx ⊕ ga ⊕ gallery ⊕ game ⊕ games ⊕ ganster ⊕ gate ⊕ gatsby ⊕ generation ⊕ generative ⊕ generator ⊕ geometry ⊕ gesture ⊕ get ⊕ getting ⊕ gif ⊕ git ⊕ global ⊕ globaldispatch ⊕ glue ⊕ gml ⊕ go ⊕ google ⊕ grab ⊕ gradient ⊕ graffiti ⊕ graphics ⊕ graphing ⊕ great ⊕ group ⊕ gtd ⊕ gui ⊕ guide ⊕ guidelines ⊕ guttershark ⊕ hall ⊕ hand ⊕ hardware ⊕ haxe ⊕ header ⊕ hello ⊕ helloworld ⊕ homepage ⊕ howto ⊕ href ⊕ html ⊕ html5 ⊕ htmltext ⊕ http ⊕ hx ⊕ hype ⊕ id3 ⊕ id3v2 ⊕ ide ⊕ idea ⊕ ie ⊕ image ⊕ images ⊕ implementation ⊕ import ⊕ in2ar ⊕ include ⊕ input ⊕ inspiration ⊕ intellij ⊕ interface ⊕ introduction ⊕ inverse ⊕ ios ⊕ ipa ⊕ ipad ⊕ iphone ⊕ iso ⊕ isometric ⊕ italic ⊕ japan ⊕ japanese ⊕ java ⊕ javascript ⊕ jedit ⊕ joa ⊕ jockey ⊕ john ⊕ josh ⊕ joshua ⊕ joystick ⊕ jp ⊕ jpg ⊕ js ⊕ jumping ⊕ jumpy ⊕ jw ⊕ jwplayer ⊕ k9d ⊕ kit ⊕ language ⊕ layers ⊕ layout ⊕ led ⊕ left ⊕ length ⊕ lib ⊕ libraries ⊕ library ⊕ license ⊕ light ⊕ lightbox ⊕ line ⊕ link ⊕ linking ⊕ list ⊕ listener ⊕ load ⊕ loader ⊕ loading ⊕ local ⊕ locking ⊕ log ⊕ loop ⊕ looping ⊕ lyrics ⊕ mac ⊕ machine ⊕ macvim ⊕ maker ⊕ manager ⊕ manipulate ⊕ manipulation ⊕ marker ⊕ mask ⊕ math ⊕ maven ⊕ max ⊕ mc ⊕ media ⊕ menu ⊕ meta ⊕ metaio ⊕ metrics ⊕ mic ⊕ micro ⊕ micromusic ⊕ midi ⊕ mike ⊕ minimal ⊕ mirroring ⊕ mix ⊕ mml ⊕ mobile ⊕ mod ⊕ modal ⊕ mode ⊕ model ⊕ module ⊕ monster ⊕ monsterdubugger ⊕ motion ⊕ mouse ⊕ mouseover ⊕ movie ⊕ movieclip ⊕ mp3 ⊕ ms ⊕ multiple ⊕ multiscreen ⊕ music ⊕ mute ⊕ mux ⊕ mvc ⊕ mx ⊕ mxmlc ⊕ native ⊕ nes ⊕ new ⊕ nintendo ⊕ node ⊕ number ⊕ numbers ⊕ oauth ⊕ object ⊕ okr ⊕ omniture ⊕ only ⊕ onyx ⊕ open ⊕ opensource ⊕ optimal ⊕ optimisation ⊕ optimization ⊕ optimize ⊕ optimized ⊕ optimizer ⊕ os ⊕ osx ⊕ out ⊕ p3d ⊕ package ⊕ pad ⊕ papervision ⊕ papervision3d ⊕ parent ⊕ parsley ⊕ particle ⊕ patterns ⊕ pdf ⊕ performance ⊕ perspective ⊕ phile ⊕ photoresistor ⊕ pie ⊕ pitch ⊕ planet ⊕ play ⊕ playback ⊕ player ⊕ player9 ⊕ plot ⊕ plotter ⊕ plugin ⊕ png ⊕ podcast ⊕ point ⊕ pop ⊕ popup ⊕ post ⊕ practice ⊕ practices ⊕ pratices ⊕ pre ⊕ preloader ⊕ print ⊕ printing ⊕ programatic ⊕ programatically ⊕ programming ⊕ projecting ⊕ protocol ⊕ punch ⊕ punchout ⊕ pure ⊕ puremvc ⊕ pyro ⊕ python ⊕ qtrack ⊕ queue ⊕ quick ⊕ quickstart ⊕ random ⊕ randomize ⊕ range ⊕ rate ⊕ raw ⊕ ray ⊕ raytracing ⊕ read ⊕ reality ⊕ realtime ⊕ recognition ⊕ record ⊕ reference ⊕ reflection ⊕ regex ⊕ registration ⊕ render ⊕ renju ⊕ report ⊕ request ⊕ results ⊕ retro ⊕ reverse ⊕ review ⊕ ria ⊕ right ⊕ robotlegs ⊕ robotlets ⊕ rotation ⊕ rounding ⊕ roundup ⊕ rtl ⊕ runtime ⊕ russian ⊕ s ⊕ s3m ⊕ safari ⊕ save ⊕ saver ⊕ saving ⊕ scalemode ⊕ scr ⊕ screen ⊕ screensaver ⊕ screentime ⊕ script ⊕ scroller ⊕ scrubber ⊕ sdk ⊕ security ⊕ seed ⊕ seeded ⊕ seemless ⊕ selectable ⊕ selection ⊕ seminars ⊕ senecular ⊕ session ⊕ set ⊕ setup ⊕ sfxr ⊕ shared ⊕ sharedobject ⊕ sheet ⊕ shifting ⊕ shifty ⊕ shootout ⊕ shopping ⊕ signals ⊕ simple ⊕ singleton ⊕ sion ⊕ siopm ⊕ site ⊕ size ⊕ skew ⊕ skin ⊕ skinable ⊕ skinnable ⊕ slide ⊕ slider ⊕ sliderui ⊕ snip ⊕ snippet ⊕ snippets ⊕ snipplr ⊕ socket ⊕ soft ⊕ softsynth ⊕ software ⊕ sort ⊕ sound ⊕ soundobject ⊕ source ⊕ spark ⊕ specrum ⊕ spectrum ⊕ specturm ⊕ speed ⊕ spring ⊕ sprite ⊕ stack ⊕ stage ⊕ standards ⊕ starpause ⊕ start ⊕ started ⊕ state ⊕ static ⊕ string ⊕ structure ⊕ structures ⊕ style ⊕ stylesheet ⊕ sub ⊕ submenu ⊕ subtitles ⊕ super ⊕ superscript ⊕ surf ⊕ swc ⊕ swf ⊕ swfobject ⊕ swing ⊕ switch ⊕ swiz ⊕ synth ⊕ synthesis ⊕ synthesizer ⊕ system ⊕ tape ⊕ target ⊕ template ⊕ tempo ⊕ test ⊕ text ⊕ textfield ⊕ textflow ⊕ textinput ⊕ textmate ⊕ tfl ⊕ theme ⊕ thickbox ⊕ thin ⊕ thunderbolt ⊕ ticker ⊕ time ⊕ timer ⊕ tip ⊕ titles ⊕ to ⊕ tool ⊕ toolkit ⊕ tools ⊕ touch ⊕ trace ⊕ tracer ⊕ tracermedia ⊕ tracing ⊕ tracker ⊕ tracking ⊕ training ⊕ transparent ⊕ trendy ⊕ tricks ⊕ trig ⊕ truncate ⊕ tune ⊕ turbo ⊕ turbosignals ⊕ tutorial ⊕ tutorials ⊕ tw ⊕ tween ⊕ tweener ⊕ tweening ⊕ tweenlite ⊕ twitter ⊕ twitteraspirin ⊕ ui ⊕ uievent ⊕ unicode ⊕ up ⊕ ups ⊕ url ⊕ usb ⊕ util ⊕ utility ⊕ var ⊕ variable ⊕ variables ⊕ vars ⊕ vector ⊕ vi ⊕ viddeo ⊕ video ⊕ view ⊕ vim ⊕ visit ⊕ visual ⊕ visualization ⊕ visualizer ⊕ visualizers ⊕ visuals ⊕ vj ⊕ volume ⊕ vs ⊕ wag ⊕ wagerg ⊕ wav ⊕ wave ⊕ waveform ⊕ web ⊕ web2 ⊕ widget ⊕ winners ⊕ wonderfl ⊕ wonderful ⊕ wordpress ⊕ work ⊕ workflow ⊕ works ⊕ world ⊕ write ⊕ xm ⊕ xml ⊕Copy this bookmark: