# Iam really banging my head , Please help

**URL:** https://forum.kirupa.com/t/iam-really-banging-my-head-please-help/323449
**Category:** flash
**Created:** [July 1, 2011, 1:13pm UTC](https://forum.kirupa.com/t/iam-really-banging-my-head-please-help/323449 "2011-07-01T13:13:10Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![jatintalwar](https://avatars.discourse-cdn.com/v4/letter/j/f19dbf/32.png) [@jatintalwar](https://forum.kirupa.com/u/jatintalwar)
#### Post date: [July 1, 2011, 1:13pm UTC](https://forum.kirupa.com/t/iam-really-banging-my-head-please-help/323449/1 "2011-07-01T13:13:10Z")

</div>

Guys  
Iam really mad over a problem , somebody please help

There is a text file from which images are loaded in flash . The pattern inside this file is :

&cat\_0=LANDSCAPES& // this is the category

&cat\_0\_pic\_0=x.jpg& // the images inside category  
&cat\_0\_pic\_1=y.jpg&

and so on and so forth !

Now can i wrtire an actionscript 2 code which :  
Counts the total number of pic in the file ( the answer shud be 2 above !!)  
Counts the image number in above file ( the answer shud be 0 for x.jpg and 1 for y.jpg )

Somebody please help , will be highly appreciated .  
I dont mind providing free Orthopaedic opinion for the above help 🙂 on pm basis .  
Thanks
