473,748 Members | 2,563 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

FileReference.b rowse()...displ ays error...

1 New Member
Hi,

I have a code for flash player which is capable of playing .swf files, And this player get the movie using xml file(all the information about movies in it) and i want to provide a browse button to choose .swf file to play ,for that iam using 'FileReferene' class.But it displays error as
"the class or interface 'flash.net.File Reference' could not be loaded"

But its working fine for simple program with only single browse button. why this was happened??

Iam using flash CS3 professional and actionscript 2.0. one more thing is i placed import statement also(import flash.net.FileR eference)..



Any idea??
Sep 5 '07 #1
2 3191
xNephilimx
213 Recognized Expert New Member
Hi, srinuseshu! Welcome to TSDN!
Are you using the same instance of the FileReference for the various browse buttons? Or making a new instance per button? The movie that doesn't work with multiple buttons, is the same that works fine with one (sometimes flash looses it's classpath ¬¬)?

Please, post the code you're using so I can have a better idea.

Best regards,
The_Nephilim

Hi,

I have a code for flash player which is capable of playing .swf files, And this player get the movie using xml file(all the information about movies in it) and i want to provide a browse button to choose .swf file to play ,for that iam using 'FileReferene' class.But it displays error as
"the class or interface 'flash.net.File Reference' could not be loaded"

But its working fine for simple program with only single browse button. why this was happened??

Iam using flash CS3 professional and actionscript 2.0. one more thing is i placed import statement also(import flash.net.FileR eference)..



Any idea??
Sep 6 '07 #2
beebers
1 New Member
Be sure you are publishing the .swf file as a Flash 8.

It seems very simple, but I hope it might help :)
Regards.
Sep 9 '08 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

1
2288
by: Chris Lasher | last post by:
Hello, I'm trying to write a tool to scrape through some of the Ribosomal Database Project II's (http://rdp.cme.msu.edu/) pages, specifically, through the Hierarchy Browser. (http://rdp.cme.msu.edu/hierarchy/) The Hierarchy Browser is accessed first through a page with a form. There are four fields with several options to be chosen from (Strain, Source, Size, and Taxonomy) and then a submit button labeled "Browse". The HTML of the form is...
2
4516
by: Joel | last post by:
Hello, ASP does not work locally on my main web site when I browse the machine locally at the console itself, but to the outside world all is fine, and ASP executes normally. I have 4 other virtual webs on this server and I can browse ASP pages fine, locally. We need this working for a search engine product that is failing when trying to execute URLs against this virtual web site, locally.
3
11074
by: Highlander | last post by:
Hello all. Consider the following HTA: <HTML> <HEAD> <TITLE></TITLE></HEAD> <BODY> <SCRIPT LANGUAGE="VBScript"> Sub ButBrowse_onclick() '-- show browse window and Get file path:
4
2399
by: developing | last post by:
Hi All, I have a browse button that the user can click to select a file. The button then fetches the file path. This is all working fine except my boss wants some add functionality. I need it to be so that the user can only access Z: and Y: and not W: or X: Any help is highly appreciated. Thanks a lot The current code I am using is is posted below. (this works just fine) Option Explicit Option Compare Database
1
1990
by: developing | last post by:
Hello, This time I want to filter the 'browse for file' API so that certain drives/folders cant be accessed. Not sure how to go about this...here is the module I am currently using to browse for a file then return the file link... any ideas/help are highly appreciated. Option Explicit Option Compare Database
8
1976
by: =?Utf-8?B?UGV0ZXJX?= | last post by:
I install Visual Studio 2005 Pro on Vista. I open and migrate a 2003 web project to 2005. I attempt to browse an aspx file from the Solution Exploer. It displays a blank html page. I create a master page with 3 content placeholders. I create a WebForm that uses the master and then browse it to have a look. I get an empty html page. I change from the IIS to the internal server. No change. Only displays blank page.
1
1196
by: vanita01 | last post by:
Hi Can anyone please help me. I am trying to browse for a file. I would like the file path name to be shown on a text box. Using the upload button I would then like to save the file on mysql. is is the code I have don so far. Private Function LoadFile(sFile As String) As Boolean Dim filenum Text2.Tag = sFile ' Make sure a file is specified.
2
3911
by: cbellew | last post by:
Hi guys, i wonder if anyone could help me with my problem. Basically, i am creating a file upload tool in as3. I am using a FileReference object, calling browse() and then upload(). I have an event listener catching ProgressEvent.PROGRESS Events and using ProgressEvent.bytesLoaded to update a progress bar. The bar works fine, but i only get expected results when the swf and receiving php script are both local. I.E. on my localhost. The...
1
3314
by: sandeep kumar shah | last post by:
Hi, We have used a file uploading HTML tag in an HTML page. We need to customize the text displayed on the Button (which is by default “Browse…” for internet explorer). Below is the code we have used: CODE: <input type="file" style=" width:100%" id="importFile" name="importFile"/> As per our analysis we got two methods but none is satisfactory. Please let us know if there is any other way out
0
8996
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8832
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9386
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9333
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9254
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6799
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4879
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3319
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2217
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.