Posts

Showing posts with the label flash

AS2 Add more movieclips to var

Image
Clash Royale CLAN TAG #URR8PPP AS2 Add more movieclips to var This question may be weird, but it's a big problem for me. onClipEvent (load) { var ground:MovieClip = _root.bottomground1; var grav:Number = 0; var gravity:Number = 2; var speed:Number = 10; var maxJump:Number = -17; var touchingGround:Boolean = false; } So, the thing i want to do is to add more movieclips to var ground, such as var ground:MovieClip = _root.bottomground1,_root.bottomground2...; I tried this also: var ground:MovieClip = _root.bottomground1, MovieClip = _root.bottomground2...; None of it is working. Any reply would be very helpful. 1 Answer 1 A variable can only have one value :) What you need is an array. Might not be a valid AS2, it's been a while: Create an array: var groundArray:Array = new Array(_root.bottomground1, _root.bottomground2); OR something like // add objects with instance na...

Badly stuck with a flash game

Image
Clash Royale CLAN TAG #URR8PPP Badly stuck with a flash game I have no knowledge of how flash works. I was moving an old site flash game to a new site. The flash game works on the old site but does not work on the new site. The game itself loads but is looking for an XML file by the name words.xml. I do have access to that file but the URL it is pointing to from the flash game is wrong and I can't seem to find out how can I change the URL. Please help! I can provide with whatever details needed. I donot know how much is needed please do let me know!! 1 Answer 1 The URL is most probably hard coded in the SWF and you can't natively change it unless you have the original construction file for the game, likely a *.fla file, in which case you can open that, find the URL in there, replace it and re-export the SWF Otherwise you could try decompiling the SWF ...