Jump to content


actionscript error


  • You cannot reply to this topic
3 replies to this topic

#1 l3lueMage

    Wanna Be Moderator

  • Publishing Betazoids
  • PipPipPipPip
  • 4,596 posts
  • Gender:Male
  • Location:San Francisco Bay Area

Posted 06 April 2006 - 06:48 PM

I have a Window Flash Component, and whenever I use this code
on(Release) {
getURL("www.msn.com");
}

It works fine but when I use this code below it doesnt seem to work fine, also in the last "else" I am trying to get that text to appear in a dynamic textfield, is that code correct? :( where errormsg is the instance name for the dynamic field

on(release) {
	if(imagepth.contentPath == "flower.jpg") {
		getURL("http://www.google.com", _blank);
	} else if(imagepth.contentPath == "green.jpg") {
		getURL("http://www.msn.com", _blank);
	} else if(imagepth.contentPath == "sampletemp.jpg") {
		getURL("http://www.pixel2life.com", _blank);
	} else {
		errormsg.print = "Error: There was no image selected";
	}
}


I fixed it, I was wondering now why my fscommand wont work? I am trying to get an image open into their default image viewer so
fscommand("exec", "image.jpg");

But it doesnt seem to open..and the files are in a folder called fscommand

Edited by l3lueMage, 06 April 2006 - 09:08 PM.


#2 funkysoul

    The Funky Stuff

  • Publishing Betazoids
  • PipPipPipPip
  • 2,307 posts
  • Gender:Male
  • Location:Zurich, Switzerland
  • Interests:Music: HIM, HIM, HIM, Cafe del Mar, Linkin Park, Fort Minor, Coldplay, Eric Jordan<br />Sports: Snowboarding, KiteSurfing, Extreme Sports<br />Computer: Flash, After Effects, Actionscript

Posted 07 April 2006 - 06:21 PM

fscommand is supposed to open exe files!

As far as I'm aware there is nothing you can do about it.
Anyway if you find a solution, let me know

#3 l3lueMage

    Wanna Be Moderator

  • Publishing Betazoids
  • PipPipPipPip
  • 4,596 posts
  • Gender:Male
  • Location:San Francisco Bay Area

Posted 10 April 2006 - 12:37 PM

I didnt find a solution :D I just put the image on a html page and had the swf open the html page

#4 funkysoul

    The Funky Stuff

  • Publishing Betazoids
  • PipPipPipPip
  • 2,307 posts
  • Gender:Male
  • Location:Zurich, Switzerland
  • Interests:Music: HIM, HIM, HIM, Cafe del Mar, Linkin Park, Fort Minor, Coldplay, Eric Jordan<br />Sports: Snowboarding, KiteSurfing, Extreme Sports<br />Computer: Flash, After Effects, Actionscript

Posted 12 April 2006 - 02:13 AM

try this one out:
http://www.actionscript.org/tutorials/inte...rom/index.shtml





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users