Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / Flash / Flash Remoting / September 2005



Tip: Looking for answers? Try searching our database.

using import instead of #include

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Clacker - 22 Sep 2005 15:29 GMT
Ive noticed that where before I could use;

 #include "NetServices.as"

...at the start of a multi-scened, multi-scripted flash doc and I could use
the net services anywhere, now when I use the;

import mx.remoting.*;
import mx.rpc.*;

... I have to put these import statements in every script throughout the flash
doc to use them. Is that really how it has to be done or is there any way to
just do one import at the start?
STHG - 29 Sep 2005 06:01 GMT
The way I do it is to encapsulate related remoting calls into a "proxy" action
script class. This class has all the remoting gobbledegook in it. Then I call
methods in this class from my various scripts rather than make all the messy
calls all over the place. So when changes happen to the way Flash Remoting
works, I just go and change my one class.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.