Java :: SWT-App Loading .swf Files From A Runnable .jar Or External Folder?

Sep 2, 2011

I'm programming using the SWT Widget Library for Java in eclipse, and I'm designing a runnable Java application. I've got the application down, I just don't know how to load external .swf files from a folder on "ALL" computers. I can load Images from any computer, because I use the getResourceAsStream line of code. But the "import com.docuverse.swt.flash.FlashPlayer" "loadMovie(arg, arg)" only takes a String.

So I did ClassName.class.getResource("blah.swf").getPath(); which gives you a string, I set it up, and running it on eclipse it can perfectly find the file in the package. When I export it, the runnable Jar I made cannot find the "blah.swf" inside of the .jar file.So there is my problem, how do I load my .swf files from within the .jar or from an external folder so clients can download along side the .jar executable application, so it can point to those swf files.

View 1 Replies


Similar Posts:


IDE :: Loading Png Files From External Folder In Flash?

Jun 1, 2009

I recently got the following code from one of your tutorials and am wondering why it is that when I try to change the .jpg images to .png images, the images no longer appear in the swf file. Does flash no allow .png files to be loaded.The reason that I need the files to be png is because the have to have a transparent backgroung.[code].....

View 9 Replies

ActionScript 2.0 :: Loading Files From A Folder?

Aug 21, 2006

I have this script (below) that picks out the files from a folder and loads them into the swf without saying specifically what the filenames are. At the moment they load in 1 at a time, how can I make it so they all load at once in a horizontal row with a whote gap between each of them?The whole point of this is so the user can just upload files to a folder and not have to touch any script etc.The plan is to put them into an infinate menu (that part is ready, its just the first bit thats causing me problems).

Code:
delay = 3000;
//-----------------------
function loadPHP(loaded) {
if (loaded) {
imageArr = new Array();

[code].....

View 3 Replies

ActionScript 3.0 :: Loading Files Dynamically Outside Of The Project Folder?

Jul 31, 2009

I'm working on an image gallery in Flash that plays a slideshow of different images I have on my hard drive. I've got the basics of it working, but I'm still stuck on something. If my images are in the same folder as the Flash project file or a sub-folder of it, then it works fine. However, I can't figure out how to load images from some other folder. In my case, the Flash project is located at "~/Programming/Flash/Projects/slideshow/" and the images I want to load are at "~/Pictures/Gallery/". Using a normal path didn't work so I figured I could access them with a file:// path, but that doesn't work either gives me "Error #2035: URL Not Found"). Is there a specific way you have to format the file path in Flash, or is it just not possible?

View 3 Replies

ActionScript 3.0 :: Access External Folder Jpeg Files?

Mar 20, 2010

When I compiled the following code I had some problem.[code]...

View 12 Replies

ActionScript 3.0 :: How To Access External Folder Jpeg Files

Mar 20, 2010

When I compiled the following code I had some problem.

private var image_loader:URLLoader;
public function loadImageData():void {
image_loader=new URLLoader(new URLRequest("studentphotosBlue hills.jpg"));

[code].....

View 8 Replies

ActionScript 3.0 :: Load External Image Files From A Folder Automatically?

Aug 4, 2011

Ok this is what I would like to do. My project I am working on has an app that will upload image files to a specific folder on my server what I would like to do is have it load all the files in that folder through flash without me having to manually add the names of the files into the coding if possible.

I can create an image slideshow but I have to put in each and every .jpg and such I would prefer not to do that as in the future there may be more then 5-10 images.

In addition I already have the app created that uploads files.

View 5 Replies

ActionScript 2.0 :: Load An External Mp3 Player File Randomly From A List Of Files In A Folder?

Nov 10, 2003

1 is there a way to load an external mp3 file randomly from a list of files in a folder? is there a "rand" function (as in php) or something to get random numbers?

2 how can I display the ID3 tags?

View 5 Replies

ActionScript 2.0 :: Loading External SWF And JPG Using Base Folder

Oct 21, 2004

My Flash app doesn't work in FireFox (but works in IE). The problem I know is associated to loading external SWF and JPG files when using a BASE folder. Without the base folder it works fine. Here is some syntax I use:
[On Frame 1 of the base SWF, i.e. one frame before the preloader frame:]
....
_root.logo_mc.loadMovie("FlashFiles/Logo.jpg", "GET");

This file never gets loaded into the BaseApp.swf. The object html tag looks something like this:
<OBJECT....
<PARAM NAME=movie VALUE="[URL]">
<PARAM NAME=menu VALUE=false>
<PARAM NAME=quality VALUE=high>
<PARAM NAME=bgcolor VALUE=#FFFFFF>
[Code] ....
What's the easiest resolution to get it working in FireFox as well as IE?

View 3 Replies

ActionScript 2.0 :: Loading Sub-folder .swf But Now It Can't Find External Ref Jpgs?

Jan 26, 2005

I have an app that "loadmovies" a slideshow.swf in a sub-folder. THis sub-folder also contains an xml file and numbered jpgs.But when I run the main app, and click on the button to load the sub SWF files, the images do not appear. I assume it is a directory issue.

But if I run the slideshow.swf directly from it's folder, the images appear fine.I am using the xml_photogallery from this site for the main actionscript, is there something I can change here to point to the jpgs path?

View 2 Replies

ActionScript 2.0 :: Loading Sub-folder .swf But Now It Can't Find External Ref Jpgs

Jan 26, 2005

I have an app that "loadmovies" a slideshow.swf in a sub-folder. THis sub-folder also contains an xml file and numbered jpgs.But when I run the main app, and click on the button to load the sub SWF files, the images do not appear. I assume it is a directory issue.

But if I run the slideshow.swf directly from it's folder, the images appear fine.I am using the xml_photogallery from this site for the main actionscript, is there something I can change here to point to the jpgs path? (If I add the "subfolder/" in the xml it doesn't seem to help)

View 2 Replies

Flex :: Flash Loader Demands Library Files In Folder Other Than Folder Where Main Project File Is?

Jul 29, 2010

i have situation in which i have some library projects, say

"DataProcessors","Lib2"

, included in my lets say "MainProject" (a web project) placed on directory

"E:in-debugMainProject.swf"

, when i build the project it automatically place all the libs .swf in its "E:in-debug" folder, but when i debug or run the project it it gives loading error that

"E:DataProcessors.swf"

not found but i have those lib files on

"E:in-debugDataProcessors.swf"..

what could be the possible errors.

View 1 Replies

Flash :: Loading / Unloading External SWF Using Buttons From Loaded External Files

Feb 23, 2011

I spent almost a week trying to figure out how to unload a currently loaded swf using its button and loading a new swf... I have three files, a main.fla, file1.fla and file2.fla. In my main.fla, I have a code which loads the other two files. If i will click the "unload" button in the file1.swf, I would like the main.fla to unload the file1.swf and load the other file, file2.swf. Here is the code to load the file1.swf:

[Code]....

View 1 Replies

ActionScript 3.0 :: Loading An External Java Script (Twitter Object) Into A Fla File

Oct 14, 2009

I am trying to incorporate a java script into my fla document.


[Code]....

View 1 Replies

ActionScript 3.0 :: Loading External Swf That Loads Other External Files?

Apr 24, 2010

Lets say I have subgallery.swf file that loads jpeg images. And I have gallery.swf file that loads subgallery.swf.The jpeg images and both swf files are in the same folder.When I test gallery.swf it loads subgallery.swf but subgallery.swf doesn't load images. When testing subgallery.swf alone, it loads jpeg files.Is there any limitation or setting preventing external swfs loading other content?

View 2 Replies

IDE :: Loading External Swf That Loads Other External Files?

Apr 24, 2010

I have subgallery.swf file that loads jpeg images. And I have gallery.swf file that loads subgallery.swf.The jpeg images and both swf files are in the same folder.When I test gallery.swf it loads subgallery.swf but subgallery.swf doesn't load images. When testing subgallery.swf alone, it loads jpeg files.Is there any security limitation or setting preventing external swfs loading other content?

View 3 Replies

Java :: Multiple File Upload (even Folder)?

Jan 25, 2010

I'm looking for an easy to use (free) "module" that can upload multiple files / folders.
It must:

Support image files
be user-friendly
be customizable

It may be written in:

RoR (Ruby On Rails)
Java
Flash

View 2 Replies

Java :: Load External Page HTML Via Javascript Or Flash Or Java?

Nov 13, 2011

I need to load somehow the html code of a webpage A into a javascript string of another webpage B, on a different host. I know this is impossible to do with javascript alone because of the same origin policy, and I know I could do it loading the page via php on my server and then send results back to the user's client but I wouldn't be able to handle so many requests, so I need it to be done directly by the user's browser. I can use nearly whatever browser scripting language/applet framework common enough to be installed on the majority of my users' computers, like flash and java.On example, what if I use flash or java to load the external html code and then call a javascript callback function providing the source? Could this work?

View 2 Replies

ActionScript 3.0 :: Loading The External Swf Files?

Aug 25, 2009

[URL] how can i enable the swf files to run randomly basis without click of button

View 2 Replies

Professional :: Loading External .swf Files?

Jan 20, 2010

I'm working on a simple example of loading external swf files with some ActionScript.I've placed an instance of List Component and gave it an instance name of loadList. Using Component Inspector, I assigned data for 4 external files as below:

Next, I've added a UILoader component (instance name - loadWindow). The code that is supposed to load the content into UILoader is this:

loadList.addEventListener(Event.CHANGE, selectItem);function selectItem[code]..........

View 4 Replies

ActionScript 1/2 :: Loading External SWF Files Into A FLA?

Jan 21, 2011

I'm having trouble importing an external .swf into my .fla. file. The only AS that is working gor me is-

loadMovie("panoSceneNoMarkers.swf", _root);

However, once the swf shows, it replaces the background interface. I assume I have to add a _level into the code but how?

View 8 Replies

Professional :: Loading External SWF Files Into A FLA

Jan 21, 2011

I'm having trouble importing an external .swf into my .fla. file. The only AS that is working gor me is-
 
loadMovie("panoSceneNoMarkers.swf", _root);
 
However, once the swf shows, it replaces the background interface. I assume I have to add a _level into the code but how?

View 1 Replies

ActionScript 2.0 :: Loading External .as Files?

Jul 3, 2009

I've been making a game using Adobe Flash CS3 and actionscript 2.0 on my desktop and it was working fine. I tried to transfer the folder containing the flash file and all of the .as files to my laptop via a jump drive and now, when I run the the swf, it doesn't appear to be loading any of my .as files. All of the files are still located in the same folder as my flash files and it still compiles and runs fine on my desktop.

View 1 Replies

ActionScript 2.0 :: Loading And Using External SWF Files?

Aug 12, 2009

When you load an SWF file, is there any way to pass data to and from the SWF file?

View 1 Replies

ActionScript 2.0 :: Loading As3 External Swf Files

Sep 5, 2011

i need to load an external swf which is in as3...and need it to be played in my as2 swf layout. with a time slider ,play, pause ,next, previous for that swf movie clip. give ur mail id i can sent my original files. give ur mail id i can sent my original files. [URL]

View 8 Replies

ActionScript 3.0 :: Pre-loading External Files?

Nov 3, 2011

It's been a while since I've posted here so I apologies if it's in the wrong place.

My ProblemI have a large (30mb) swf file created in InDesign. It's an interactive PDF. Now rather then allowing people to view it straight away and having to wait elements to load we'd like to pre-load it somehow.

I was wondering how I might go about building a preloader for this SWF file. I have limited knowledge of action script, and most of that was as2 rather then 3.

View 3 Replies

ActionScript 2.0 :: MX Loading External .txt Files?

Dec 31, 2002

When I click on a button eg news, I use the loadmovie function to load news.swf. In news.swf, I have the following command (from Kirupa scrolling dynamically loaded text tut) to load a text file in:

stop();
loadText = new loadVars();
loadText.load("news.txt");

[code].....

View 14 Replies

ActionScript 2.0 :: Loading External .txt Files?

Oct 10, 2003

I can't seem to figure out how to load an external .txt file into my movie. I can get it to work onPress, but not for a frame script. got a quick script to display an external .txt in a dynamic text box in flash?

View 1 Replies

ActionScript 2.0 :: Loading In External .as Files?

Dec 16, 2003

i know how to load in external .as files so I can update easily. but why do you still have to re-publish the swf in order for the new .as file 2 take effect.is there any way that you can make a .as file be read in & so that it updates the .swf file, much like the way loading an xml or .txt file does?

View 6 Replies

ActionScript 2.0 :: Loading External .BMP Files?

Feb 12, 2006

I'm making an image catalogue for a client, and for reasons unknown to me my client insisted that the images be stored as binary data in a database. ( i know, i know....but they wouldnt' listen) Anywho, the format of these images is windows bitmap (.BMP). I've just found out that they want to be able to manipulate these images in flash. So i need to have actionscrip open these images.Since the images are stored in the db they have to be accessed via a php file like this: get_image.php?id=imageid.

This works fine for displaying the images in a browser as i just put the string inside an img tag so: <img src="get_image.php?id=someid"/>The thing is, I can't seem to get flash 8 to load these images via loadmovie. I've been able to load jpeg and gif files no problem, but can't seem to get these bmps to work. Adding to misery is that because there are going to be in the neighbourhood of 40,000 images, i dont' want to actually have the images saved locally.this is what i have, it works fine for jpegs and gifs:this.createEmptyMovieClip("pic", 1);pic.loadMovie("image1.gif");

View 3 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved