Sep 04 2011

Class Flash

Posted by admin in Radios



Class Flash
Why am I getting this class error in Flash when including “NetServices.as”?

I am working on a Flash Remoting project (Flash 8, btw). When I check for script errors, the output panel, I get this response:

“**Error** C:CFusionMX7wwwrootConfigurationNetServices.as: Line 22: Classes may only be defined in external ActionScript 2.0 class scripts.
class mx.remoting.NetServices extends Object ”

I thought this NetServices file WAS an external class constructor…but I’m newbie and obviously am missing something here. Probably better to post this on a Flash forum, which I think I’ll do, but any help here would be appreciated.

The code fragment:
“class mx.remoting.NetServices extends Object ”
declares a new class which, as far as I can understand, is not what you want to do because NetServices already exists as a compiled object in the Flash library.

If you want to use this class what you need to do is import it by using the following code:

import mx.remoting.NetServices;

then you can create an instance of the class by typing something like:

var myServices:NetServices = new Netservices();

The variable myServices is then an “Instance” of the class Netservices and you can then use it whatever you want to do with this Class

Please be advised this is general advise and I do not know this particular Class. this is just the way classes and OOP works in Flash.

I hope this helps you

Flash CS4: Getting Started with Classes (1 of 2)


PUR 3 Stage Vertical Faucet Mount with Filter


PUR 3 Stage Vertical Faucet Mount with Filter




New 60 Minutes Mechanical Kitchen Cook Timer


New 60 Minutes Mechanical Kitchen Cook Timer


$23.99


Great for the kitchen, workout room, or home shop. In a very attractive white finish. They are renowned for their quality and reliability. They are highly accurate and can be set from one-minute to one-hour….

Wipeout Pure


Wipeout Pure


$4.50


Wipeout Pure, the latest edition to the popular racing series for the PSP handheld entertainment system, provides an intense, combat racing experience as players choose from five different speed classes and race relentlessly around 16 futuristic, racing tracks. During both single and multi-player gameplay, racing fans will be able to enjoy challenging, action-packed gameplay modes that include Sin…

Elektro Hip Hop Party - Vol.3 (King T, Ice T, Arabian Prince a.m.m.)


Elektro Hip Hop Party – Vol.3 (King T, Ice T, Arabian Prince a.m.m.)



Elektro Hip Hop Party Vol.3 Trackliste: 1. King T – Paybacks A Mutha 4.35 2. The ArabianPrince – It Ain’t Tough 6.09 3. Ice T – Ya Don’t Quit 4.25 4. Mutha Fucca – Come Deal With Me 3.18 5. The Fila Fresh Crew – Drink It Up 4.41 6. Pretty Boy Gangsters – K The Buster 3.58 7. 2 Live Crew – Revelation 5.58 8. Darkstar – Sexy Baby 4.22 9. Timex Social Club – Rumors 4.10 10. World Class Wreckin Crew …


Lisa Raye (feat. First Class & Bg) - Single [Explicit]


Lisa Raye (feat. First Class & Bg) – Single [Explicit]


$0.99



Transcend 16 GB SDHC Class 10 Flash Memory Card TS16GSDHC10E


Transcend 16 GB SDHC Class 10 Flash Memory Card TS16GSDHC10E


$13.85


Transcend 16GB Class 10 SDHC Flash Memory Card (TS16GSDHC10E) – Frustration Free Package Certified Frustration-Free Packaging has certified this product’s packaging is Frustration-Free. A Frustration-Free Package is easy-to-open and comes without excess packaging materials such as hard plastic ‘clamshell’ casings, plastic bindings, and wire ties. It is exactly the same as a traditionally packaged …

SanDisk microSDHC 32GB Flash Memory Card (Retail Packaging) SDSDQM-032G-B35,Black


SanDisk microSDHC 32GB Flash Memory Card (Retail Packaging) SDSDQM-032G-B35,Black


$14.99


Now you can take your media files with you anywhere with the help of the SanDisk SDSDQM-032G-B35N Flash Memory Card. This flash memory card offers 32GB of additional storage so you can save more files, downloads and data. It is compatible to use with both microSD and microSDHC-compatible devices. Grab the SanDisk SDSDQM-032G-B35N Flash Memory Card and provide more room for your digital files….

SanDisk Extreme 32GB 45MB/s SDHC Flash Memory Card SDSDX-032G-X46,Black


SanDisk Extreme 32GB 45MB/s SDHC Flash Memory Card SDSDX-032G-X46,Black


$37.93


Delivering class 10 video performances, the Extreme HD Video SDHC UHS-I memory card from SanDisk has read/write speeds up to 30 MB/sec and a large storage capacity for HD videos.General:Product Type : Flash memory cardStorage Capacity : 32 GBWidth : 24 mmDepth : 32 mmHeight : 2.1 mmWeight : 1.5 gCompatibility : Non-specificMemory:Speed Rating : 30 MB/s (read) 30 MB/s (write)SD Speed Class : Class …

Vtech - V.Smile Adapter


Vtech – V.Smile Adapter


$9.99


Save your batteries, and use this AC Adapter for unlimited learning fun. It turns battery power into AC power. For use with V.Smile Learning System (sold separately)….

Educational Insights Wireless Eggspert, 2.4 GHz (7881)


Educational Insights Wireless Eggspert, 2.4 GHz (7881)


$77.95


Pre-K and up. Spice up classroom activities and test prep with this flashing, beeping, talking, buzzing game system!  With Eggspert’s two fun game modes – Quiz Show and Wheel of Fortune – you can drill math facts, conduct spelling bees, or reinforce ANY subject area. Wireless, easy-to-use format lets students buzz-in from anywhere in the classroom. Use the Teacher Remote to control the action, ch…