mcfmullen Posted November 27, 2010 Share Posted November 27, 2010 This is a big one so here goes: I havea hashmap.as file that I want to extract and pair with an XML file to output information in PHP and MySQL. The hashmap contains informations like this: package { import flash.display.*; public class HashMapLoadable extends Sprite { public var AssetHashMap:Object; public function HashMapLoadable() { this.AssetHashMap = {directory/directory/image1.png:"directory/directory/hashedimage1.png", directory/directory/image2.png:"directory/directory/hashedimage2.png", directory/directory/image3.png:"directory/directory/hashedimage3.png", directory/directory/image4.png:"directory/directory/hashedimage4.png", directory/directory/image5.png:"directory/directory/hashedimage5.png", directory/directory/image6.png:"directory/directory/hashedimage6.png", directory/directory/image7.png:"directory/directory/hashedimage7.png", etc, etc, etc, etc, }; return; }// end function } } Im not too concerned about reading XML since that's fairly simple. What I want to do though, is store the information from the hashmap in a format that php can use to compare with information from the XML to make the link beteween the image referenced in the XML and the hashedimage on the server. I.E XML tag <image>directory/directory/image1.png</image> can be compared with the same hashmap value to output the hashed image url. I can then store this information in MySQL to call at the user's request. Any thoughts on how I can accomplish this? Quote Link to comment https://forums.phpfreaks.com/topic/220015-doozy-hashmapas-xml-to-php-mysql/ Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.