Highlighted

Widgets TWITTER in ActionScript!

Explorer ,
Jan 22, 2020

Copy link to clipboard

Copied

<a class="twitter-timeline" data-width="320" data-height="245" data-theme="light" href="https://twitter.com/wallacesan7on?ref_src=twsrc%5Etfw">Tweets by wallacesan7on</a> <script async src="https://platform.twitter.com/widgets.js" charset="utf-8"></script>

 

With the Twitter tool itself, I generated a link <script.js>, I would like to know how do I add this code to a .AS project, the goal is for the Twitter timeline to be presented in the program.

The project is being developed in .APK, for Android devices. can anybody help me?

TOPICS
ActionScript, Code, Error, Publish package, Tablet, Timeline

Views

117

Likes

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

Widgets TWITTER in ActionScript!

Explorer ,
Jan 22, 2020

Copy link to clipboard

Copied

<a class="twitter-timeline" data-width="320" data-height="245" data-theme="light" href="https://twitter.com/wallacesan7on?ref_src=twsrc%5Etfw">Tweets by wallacesan7on</a> <script async src="https://platform.twitter.com/widgets.js" charset="utf-8"></script>

 

With the Twitter tool itself, I generated a link <script.js>, I would like to know how do I add this code to a .AS project, the goal is for the Twitter timeline to be presented in the program.

The project is being developed in .APK, for Android devices. can anybody help me?

TOPICS
ActionScript, Code, Error, Publish package, Tablet, Timeline

Views

118

Likes

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
Jan 22, 2020 0
Adobe Community Professional ,
Jan 22, 2020

Copy link to clipboard

Copied

Hi.

 

Use the StageWebView class.

 

It is used to display HTML content in AIR apps.

 

 

Regards,

JC

__________________________________________
HTML5, JSFL, and AS3 samples: http://bit.ly/2mJgDoG

Likes

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
Reply
Loading...
Jan 22, 2020 0
Santon23 LATEST
Explorer ,
Jan 22, 2020

Copy link to clipboard

Copied

 

stop();

import flash.display.MovieClip;
import flash.media.StageWebView;
import flash.geom.Rectangle;
import flash.events.MouseEvent;

var webView: StageWebView = new StageWebView();

click.addEventListener(MouseEvent.CLICK, acc);

function acc (Event:MouseEvent) : void 
{
	webView.stage = this.stage;
	webView.viewPort = new Rectangle(320, 245, stage.stageWidth, stage.stageHeight);
	webView.loadURL("https://twitter.com/wallacesan7on");
}

 

 

I tried it that way, but when I test the function by pressing a button, it shows a load error.

 

OBS: If I change the site in the field, it works, like "google.com".
But with twitter it presents the error below:

Error #2044: Unhandled ErrorEvent:. text=Load error.

 

 

Likes

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
Reply
Loading...
Jan 22, 2020 0