Error: This tag could not be resolved to an ActionScript class. It will be ignored.
See original GitHub issueThis is a third attempt over 2 years I’ve been trying to get AIR SDK running on my new Mac (still using old Mac with Flash Builder dedicated to Air Apps).
So I have done exactly as the documentation described:
launch.json:
{
// Use IntelliSense to learn about possible SWF debug attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "swf",
"request": "launch",
"name": "Launch SWF"//,
//"preLaunchTask": "ActionScript: compile debug - asconfig.json"
}
]
}
settings.json
{
"as3mxml.sdk.framework": "/Users/thisUser/Library/AIRSDK_MacOS"
}
asconfig.json
{
"config": "air",
"compilerOptions": {
"source-path": [
"src"
],
"output": "bin/Main.swf"
},
"mainClass": "Main",
"application": "src/Main-app.xml"
}
Main.mxml:
<?xml version="1.0" encoding="utf-8"?>
<s:WindowedApplication xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx">
<s:layout>
<s:BasicLayout/>
</s:layout>
<s:Label text="Hello World" horizontalCenter="0" verticalCenter="0"/>
</s:WindowedApplication>
Main-app.xml:
<?xml version="1.0" encoding="utf-8" ?>
<application xmlns="http://ns.adobe.com/air/application/33.1">
<id>com.example.myAppName </id>
<versionNumber>0.0.0</versionNumber>
<filename>myAppName </filename>
<name>myAppName </name>
<initialWindow>
<content>[Path to content will be replaced by Visual Studio Code]</content>
<visible>true</visible>
</initialWindow>
</application>
Issue Analytics
- State:
- Created 2 years ago
- Comments:9 (3 by maintainers)
Top Results From Across the Web
Royale-Apache Error: "This tag could not be resolved to an ...
But I don't know why error: "This tag could not be resolved to an ActionScript class. It will be ignored." away show when...
Read more >This tag could not be resolved to an ActionScript class. It will ...
Hi Royale team, I am trying to convert my mxml/as to JS with latest Royale.0.9.6 , but I got error: col: 1 Error:...
Read more >Royale-Apache Error: "This Tag Could Not Be ... - ADocLib
I use the flash builder 4.7 to test a basic royale js project. col: 1 Error: This tag could not be resolved to...
Read more >Foal logo - Apache Mail Archives
This tag could not be resolved to an ActionScript class. ... This tag could not be resolved to an ActionScript class. It will...
Read more >Run-Time Errors - Adobe ActionScript® 3 (AS3) API Reference
You tried to call a method that is not available to the specified object.This error occurs when you have copied a prototype function...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I know you figured it out, but I wanted to add a couple of tips for your previous attempts that didn’t work, so that this information might eventually show up on Google for people having similar issues.
Based on your screenshot, it looks to me like you copied the AIR SDK into a completely empty directory. You need to copy it into a directory that contains a Flex SDK. It’s unfortunate that Adobe named it empty-FLEXSDK-directory in their instructions because it’s not actually supposed to be empty.
According to this post you can run this command in the terminal to fix this issue (replace AIRSDK_Folder with the actual directory name of your SDK).
(this is probably explained in HARMAN’s release notes too, but that was the easiest result to find on Google)
Finally got it to work! Needed a small replacement Main-app.xml to reflect the SDK version!