MediaWiki to ActionScript Converter
Transform MediaWiki tables into ActionScript format for Flash and AIR applications
MediaWiki Input
ActionScript Output
About MediaWiki to ActionScript Converter
Convert MediaWiki table markup to ActionScript arrays and objects. Perfect for integrating wiki data into Flash and Adobe AIR applications.
Key Features
- Multiple Output Formats: Generate array of objects or array of arrays
- Header Support: Automatically uses headers as object property names
- MediaWiki Compatible: Parses standard MediaWiki table syntax
- Property Sanitization: Converts headers to valid ActionScript identifiers
- String Escaping: Properly escapes quotes and special characters
- File Upload: Upload .wiki files directly
- Instant Preview: Real-time conversion as you type
- Copy & Download: Easy export options
How to Use
- Input MediaWiki Table: Paste your MediaWiki table markup or upload a .wiki file
- Choose Format: Select between objects or arrays output format
- Review Output: The ActionScript code updates automatically
- Copy or Download: Use the Copy or Download button to save your ActionScript
MediaWiki Table Syntax
- {|: Table opening with optional attributes
- ! Header: Exclamation mark for header cells (!! separates multiple headers)
- |-: Row separator
- | Data: Pipe for data cells (|| separates multiple cells)
- |}: Table closing
Output Formats
- Array of Objects: Each row becomes an object with headers as property names
- Array of Arrays: Nested arrays with headers as first array
Example Conversion
MediaWiki Input:
{| class="wikitable" border="1"
! Name !! Age !! City
|-
| John Doe || 28 || New York
|-
| Jane Smith || 34 || London
|} ActionScript Output (Objects):
var data:Array = [
{Name: "John Doe", Age: "28", City: "New York"},
{Name: "Jane Smith", Age: "34", City: "London"}
]; ActionScript Output (Arrays):
var data:Array = [ ["Name", "Age", "City"], ["John Doe", "28", "New York"], ["Jane Smith", "34", "London"] ];
Common Use Cases
- Flash Applications: Import wiki data into Flash applications
- Adobe AIR: Use wiki tables in AIR desktop applications
- Data Migration: Convert wiki tables to ActionScript format
- Game Development: Import game data from wikis
- Interactive Content: Create dynamic content from wiki data
- Documentation: Convert documentation tables to code
ActionScript Compatibility
The generated code is compatible with:
- ActionScript 3.0
- Adobe Flash Professional
- Adobe AIR
- Apache Flex
- Flash Builder
Tips for Best Results
- Use descriptive header names that will become property names
- Ensure headers don't contain special characters (they'll be sanitized)
- Keep cell content concise for better readability
- Use objects format for easier data access by property name
- Use arrays format for simpler data structures
- Test the output in your ActionScript environment
Privacy & Security
All conversions happen locally in your browser. Your MediaWiki data is never uploaded to any server, ensuring complete privacy and security.
