Jump to content


Flash Remoting


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

#1 Takatoshi

    Young Padawan

  • Members
  • Pip
  • 23 posts

Posted 18 April 2006 - 08:53 AM

Hi all...

This is my first post on this forum, so I would like to say hello to everyone and I hope everyones ok.

Ok, so i've currently just been able to use flashremoting and connect VB.Net 2003 and Flash 8 Pro with each other. I originally looked at the example for this to be done, however I do not understand the actionscript on the button, it calls a funtion called example1 however i cant find where this is called.

I was wondering if anyone had had chance to look at this example, and would be kind enough to talk me through the actionscrip on the button.

Thankyou :blink:

#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 18 April 2006 - 09:27 AM

could you please your example? thx

#3 Takatoshi

    Young Padawan

  • Members
  • Pip
  • 23 posts

Posted 18 April 2006 - 09:42 AM

No problems, would you like me to email it to you, its just over the 200k upload amount.

#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 18 April 2006 - 10:14 AM

PM me the link to that file

#5 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 18 April 2006 - 10:35 AM

when you press the button, flash calls up the function example1 which is located on the actions layer, frame 2

function example1()
{
	output1.text = _root.setText["connecting"];
	flashService.Example1();
}

Is this what you wanted to know?

#6 Takatoshi

    Young Padawan

  • Members
  • Pip
  • 23 posts

Posted 18 April 2006 - 10:38 AM

I understand it calls example1 but, if you change the name of that function it no longer works, so there must be somewhere within the button that calls example1 im guessing...

lol this is bugging me so bad.. Thankyou for your help though, is much appreciated, and anyone else who would like to pitch in.

am i making sense?

#7 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 18 April 2006 - 10:39 AM

when you select the button, go to the properties panel, and then select the parameters tab.
There you will see two entrys :blink:

Label & Click Handler

the click handler calls up the function

#8 Takatoshi

    Young Padawan

  • Members
  • Pip
  • 23 posts

Posted 18 April 2006 - 10:44 AM

cool, ok i've done this but now it just hangs on "Contacting .Net..."

#9 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 18 April 2006 - 10:47 AM

have you checked typos? Case-Sensitivity?

#10 Takatoshi

    Young Padawan

  • Members
  • Pip
  • 23 posts

Posted 18 April 2006 - 10:51 AM

yeah, i just changed it to "Test" so the coding would become

function Test()
{
	output1.text = _root.setText["connecting"];
	flashService.Example1();
}
function Test_Result(result) {
	output1.text = result;
}
function Test_Status(error) {
	output1.text = _root.setText["error"];
}

or am i being stupid?

#11 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 18 April 2006 - 10:56 AM

I'm not sure but on the example you sent me, the script looks like this:
function example1()
{
	output1.text = _root.setText["connecting"];
	flashService.Example1();
}
function example1_Result(result) {
	output1.text = result;
}
function example1_Status(error) {
	output1.text = _root.setText["error"];
}

and on the button, the parameter is called Example1

just try it by changing the number at the end.. :P small changes :blink:

#12 Takatoshi

    Young Padawan

  • Members
  • Pip
  • 23 posts

Posted 18 April 2006 - 10:59 AM

Yup, done that, literally just hangs saying

'Contacting .Net...'

forever...

Seriously your help is so appreciated, this has been bugging me for days

#13 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 18 April 2006 - 11:02 AM

tbh.. I don't see any errors on the actionscript, now you need to check the aspx and all the other files that are playing a role.. you can also post the code here if you want..

#14 Takatoshi

    Young Padawan

  • Members
  • Pip
  • 23 posts

Posted 18 April 2006 - 11:14 AM

Yeah, thank you. Just wondering is this efficient code, or could it be made even more efficient?

I'm looking through the aspx pages now and cant find nothing... why is the limit 200k to upload lol

#15 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 18 April 2006 - 11:21 AM

sorry dude I can't help you really a lot if I don't see what is all about.. :blink:





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users