I am creating an app in flash for the iPhone and iPad. I have some flv video's that I am trying to play. I've found some code that I've read should work for the new version of flash but I'm not having any luck. I'm pretty new to this.

When I get to the screen where the video should play, there's just a white box in place of where the video should be.

But here's my code...

Actionscript Code:
import flash.geom.Rectangle;

import flash.media.StageWebView;

import flash.filesystem.File;

 

var webView:StageWebView = new StageWebView();

webView.stage = this.stage;

webView.viewPort = new Rectangle(0,0,stage.stageWidth,stage.stageHeight);

var fPath:String = new File(new File("vid_objects.flv").nativePath).url;

webView.loadURL( fPath );