New to Actionscript

  • m0w
  • Born
  • Born
  • No Avatar
  • Joined: May 31, 2010
  • Posts: 1
  • Status: Offline

Post May 31st, 2010, 11:26 pm

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
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post May 31st, 2010, 11:26 pm

  • graphixboy
  • Control + Z
  • Mastermind
  • User avatar
  • Joined: Jul 11, 2005
  • Posts: 1828
  • Loc: In the Great White North
  • Status: Offline

Post June 4th, 2010, 2:11 pm

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.
If at first you don't succeed F1... If that doesn't work try Google!
//// Designer, Developer & Teacher - Interactive, Motion and 3D \\\\
Portfolio at WhenImNotSleeping.com

Post Information

  • Total Posts in this topic: 2 posts
  • Users browsing this forum: No registered users and 53 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
 
 

© 2011 Unmelted, LLC. Ozzu® is a registered trademark of Unmelted, LLC.