Copy link to clipboard
Copied
Hi,
I'm am trying to add a series of frameworks form myFlashLabs for Firebase to my app but Animate is failing to see them.
I have added plenty of ANE's in the past with no problem but do not seem able to add a dependency framework.
I have added the relevant framework files to the AIR folder under the following path \Applications\Adobe Animate CC 2018\AIR30.0\lib\aot\stub and of course there are a large number of frameworks already there.
I have then added the following to my app's XML
<extensions>
<extensionID>com.myflashlab.air.extensions.dependency.FirebaseAnalytics</extensionID>
<extensionID>com.myflashlab.air.extensions.dependency.FirebaseCore</extensionID>
<extensionID>com.myflashlab.air.extensions.dependency.FirebaseCoreDiagnostics</extensionID>
<extensionID>com.myflashlab.air.extensions.dependency.FirebaseInstanceID</extensionID>
<extensionID>com.myflashlab.air.extensions.dependency.FirebaseNanoPB</extensionID>
<extensionID>com.myflashlab.air.extensions.dependency.GoogleToolboxForMac</extensionID>
<extensionID>com.myflashlab.air.extensions.dependency.nanopb</extensionID>
<extensionID>com.myflashlab.air.extensions.dependency.overrideAir</extensionID>
<extensionID>com.myflashlab.air.extensions.firebase.core</extensionID>
</extensions>
Note the last two files are ANE's so I have added these under actionscript settings in my FLA as I normally would and then imported them into my projects. Those files seem fine, it's the ones before that I can't see.
When I launch the project the Test Movie fails to launch and I get the following error message:
"Test Movie terminated.
The content cannot be loaded because there was a problem loading an extension: Error: Requested extension com.myflashlab.air.extensions.dependency.FirebaseAnalytics could not be found."
If I exclude that file from the xml then it just says can't find the next file listed, so essentially Animate is not looking for these extensions where I have put them. However since they are in the AIR30.0 folder along with all other frameworks I am confused as to why they are not visible to the project.
Possibilities to me seem to be:
a) I have not put the framework files in the right place, in which case where do they go?
b) I need to describe their location in the xml differently, in which case how?
c) Something else?
Thanks for your help.
Stephen
Hi kglad,
I wanted to let you know I have resolved this problem.
You are right that I was trying to add those files as if they were ANEs. In the end I had everything in the right place (ANEs that I did need in the fla folder and included in the xml, and dependent Frameworks in the AIR stub folder but not referenced in the xml). The instructions I had were not clear on this but got there in the end.
Thanks for taking the time to try and help me though.
Stephen
Copy link to clipboard
Copied
did you add those via your publish settings>as3 settings or included files via the air panel?
Copy link to clipboard
Copied
Hi,
Thanks for the response.
I have tried both methods if I have understood you right i.e, browsed to the framework in Actionscript settings (just as I have done for the ANE's which work fine) and included them as files in the Air Panel (just as I do for things like the splash screens) but neither works. As I had understood it, by including them run the AIR folder (within the /stub sub folder where other frameworks reside) then Animate should see them so, apart from the reference to them in the xml they are not otherwise linked in. Of course it's the xml reference that is tripping Animate up as it is looking for those files because the xml tells it to but not finding them.
Does that make sense?
Thanks
Stephen
Copy link to clipboard
Copied
did you navigate to them in the as3 settings panel (as opposed to entering the paths/names)?
Copy link to clipboard
Copied
I have navigated to them when I tried that. Works fine for the ANE's. This is what it looks like for the ANE's in actionscript settings:
And this for the Air Panel for the images:
As you can see I have the ANE's in there and that is working fine, but the Frameworks don't get seen. They are currently sat in the AIR folder but I have tried them in the fla folder where the default images etc. sit.
Note: When I do browse to one of the Frameworks it has to go to the executable, not the folder before I can include it either way.
Thanks
Stephen
Copy link to clipboard
Copied
they're all ane's. why aren't they all added to that panel?
Copy link to clipboard
Copied
These are the instructions I have been trying to follow:
A.3. Add the SDK · myflashlab/Firebase-ANE Wiki · GitHub
See note 2 about where to put the Framework and Note 1 about the xml descriptors.
Thanks
Stephen
Copy link to clipboard
Copied
Hi,
No I don't think they are ANE's (or at least not that I can see). Those files are described as Frameworks. The two that are ANE's I have added in the usual way, no problem, but as in the instructions in the last post I made show these files are Frameworks and are supposed to get added to the AIR30.0 sub folder \stub. This is my whole problem. I have tried to treat them as simple ANE's but they don't work that way seemingly (bit more does the suggested method).
If you want to take a look at the files I am trying to include you can download a set from here from here
Thanks
Stephen
Copy link to clipboard
Copied
Hi kglad,
I wanted to let you know I have resolved this problem.
You are right that I was trying to add those files as if they were ANEs. In the end I had everything in the right place (ANEs that I did need in the fla folder and included in the xml, and dependent Frameworks in the AIR stub folder but not referenced in the xml). The instructions I had were not clear on this but got there in the end.
Thanks for taking the time to try and help me though.
Stephen
Copy link to clipboard
Copied
you're welcome.
Find more inspiration, events, and resources on the new Adobe Community
Explore Now