New to Actionscript

  • m0w
  • Born
  • Born
  • m0w
  • Posts: 1

Post 3+ Months Ago

Hey Guys,

So i am pretty new to actionscript and i am wanting to make a flash app. Essentially what i want it to do is to scan a URL and when it finds certain 'keywords' within that URL a Movie Clip (animation) moves along say 5 frames.

I was thinking i could make an array with all the key words. Then make a function which checks the URL against the array using a for loop. Then make a parent function which has a wait of 1-2 seconds before running the child function and calling itself.

However i am pretty clueless in terms of where to start, would anyone be able to make some example code? Or point me out in a more definite direction?

Any help would be appreciated :D .

Cheers.
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • graphixboy
  • Control + Z
  • Mastermind
  • User avatar
  • Posts: 1828
  • Loc: In the Great White North

Post 3+ Months Ago

Well.... Flash doesn't have access to the URL string on its own. So you'll need to start by using something like javascript to read the url and pass it into flash.

The timer portion is really simple using setInterval() (google it for usage)

I would actually look into SWFAddress since it already does the URL parsing and is set to do different things based on the string.

Post Information

  • Total Posts in this topic: 2 posts
  • Users browsing this forum: No registered users and 8 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.