• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

How to display StageWebView page in .ipa app from Flash Professional

New Here ,
May 19, 2015 May 19, 2015

Copy link to clipboard

Copied

I need to display a .mp4 file in a small app that I am building for the iPad with Flash Professional CC. The best way looks to be StageWebView, but I cant get this to work. I found some code that is supposed to do the trick but I keep getting errors: 1180: Call to a possibly undefined method File.

Can anyone please give me some help with this?


var webView = new StageWebView(); webView.stage = this.stage; webView.viewPort = new Rectangle( 0, 0, stage.stageWidth, stage.stageHeight); var path:String = new File(new File("app:/path/file.html").nativePath).url; webView.loadURL("app:/path/file.html");
TOPICS
ActionScript

Views

313

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , May 19, 2015 May 19, 2015

at the top of your lines of code add:

import flash.filesystem.File;

Votes

Translate

Translate
Community Expert ,
May 19, 2015 May 19, 2015

Copy link to clipboard

Copied

did you import the File class?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
May 19, 2015 May 19, 2015

Copy link to clipboard

Copied

What I have done is in the code I posted. I am sorry, but I am new to this and need help in figuring out what is wrong.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
May 19, 2015 May 19, 2015

Copy link to clipboard

Copied

at the top of your lines of code add:

import flash.filesystem.File;

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
May 19, 2015 May 19, 2015

Copy link to clipboard

Copied

Thank you very much! I do appreciate your help, I do not get the error anymore when compiling. Thanks again

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
May 19, 2015 May 19, 2015

Copy link to clipboard

Copied

LATEST

you're welcome.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines