SharedObject not found without information about +configname=flex flag
- Dominant language
- ActionScript
- Stars
- 380
- Forks
- 120
- PR merge metrics
- No merged PRs in 30d
Description
Hi,
I'm working on a migration from Flex to Apache Royale. I had an issue with SharedObject and I fixed it but i don't understand why I had an issue and the solution.
first, I follow the syntax as it's written here:
`https://apache.github.io/royale-docs/features/loading-external-data/localsharedobject`
But, i get this error:
`Type was not found or was not a compile-time constant: SharedObject.`
I did some research and i found a stackOverflow post that suggests to import SharedObject:
`import mx.net.SharedObject;`
And then I had this error:
`Definition mx.net.SharedObject could not be found`
If i add `+configname=flex` it compiles and everything is fine.
So, my questions are:
- **What exactly does `+configname=flex`?** I found this on a post: "this option ensures the compiler takes care of any existing flex code" from https://walkingtree.tech/getting-started-apache-royale/
- **Why it doesn't work without `+configname=flex` while i'm following the documentation?**
Thank you
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with the localsharedobject documentation linked in the report and compare its SharedObject example with the reported compiler errors. Investigate what +configname=flex changes for this example; done when the documentation explains whether the flag is required and why the example behaves differently without it.
Written by the indexing model from the issue text.
Assessment
- Domain
- build-system, documentation
- Issue type
- Documentation
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100