question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error: This tag could not be resolved to an ActionScript class. It will be ignored.

See original GitHub issue

This 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: Screen Shot 2021-12-07 at 8 07 50 AM

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>
Screen Shot 2021-12-07 at 8 25 05 AM

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:9 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
joshtynjalacommented, Dec 8, 2021

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.

Compiler not found in SDK.

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.

“Adobe AIR.framework” is damaged and can’t be opened.

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).

sudo xattr -r -d com.apple.quarantine AIRSDK_Folder

(this is probably explained in HARMAN’s release notes too, but that was the easiest result to find on Google)

0reactions
ULSashidocommented, Dec 8, 2021

Finally got it to work! Needed a small replacement Main-app.xml to reflect the SDK version!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found