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


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

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

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

ActionScript 2.0 :: Dynamically Changing Base Folder Of App At Runtime?

Nov 17, 2010

I have a flash file in folder "/" which loads another flash file in folder "/xyz/". The second flash file will load several resource files on its own. Now flash is looking for the resource files at the base folder "/" and instead of the other loaded flash's folder "/xyz/". The second loaded flash file is provided by a third party and can't be modified. Is there any way to dynamically change the base folder of the "application" at run-time? I've heard about the html swf tag "BASE" so I've tried loading the second flash file with a ".....?BASE=/xyz/" but it doesn't work.

View 0 Replies

ActionScript 2.0 :: Test Print Base SWF - Loading Another Movie Into It

Sep 14, 2006

I have created a test print base swf and have used the code below in frame 1 to load another movie into it called "TestPrint.swf". I have a button called "my_btn" located in "TestPrint.swf". I have targeted this button in the code below (or so I thought). This is designed to print the contents of frames 1 and 2 within the swf. There are no movieclips within the loaded swf.

this.createEmptyMovieClip("holder_mc", 999);
holder_mc.loadMovie("TestPrint.swf");
this.holder_mc.my_btn.onRelease = function() {
print(this._parent.holder_mc, "bframe");
};

The TestPrint.swf loads OK, but I am unable to print the contents of TestPrint.swf. I suspect that it is an addressing problem and I am not very familiar with relative addressing.

View 1 Replies

ActionScript 2.0 :: Setting Base Attribute For An External Swf From Flash?

Jun 16, 2010

Is there any provision to set the base attribute from flash for an external swf loaded by MovieClipLoader

View 2 Replies

Actionscript 3 :: Link Library Symbols In Flash CS4 To Base Classes From An External .swc (rsl)?

Jan 27, 2010

This question stems from this question that I asked yesterday.I've followed Theo's advice and created a .swc with all the common classes and added the .swc as an external library to my module .swf. This all seems to have worked smoothly--I don't get TypeErrors and my classes are all present in the catalog.xml of the .swc file when I unzip it--but now I've encountered a new problem: when I try to link a symbol in the module .fla's library to a base class from my .swc rsl, it says the base class definition can't be found in the classpath. The whole reason I want to use rsls is so I can do this,If I now include the project's source path or the .swc in the normal (not external) library path, will that cancel the sharing benefits of the rsl, or will the compiler still know not to compile the shared classes into the module .swf?

View 1 Replies

ActionScript 3.0 :: Add The Caurina Folder To The Folder - Thumbnail.as To The Folder

Feb 5, 2009

Can I do this in AS3?

(1) add the caurina folder to the folder

(2) add Thumbnail.as to the folder

(3) add

[Code]....

View 1 Replies

Actionscript 3 :: Convert From Base 60 To Base 10?

Jul 29, 2010

I have a method that converts an int to a base60 string (using 0-9, a-z, and A-Z chars), but can't work out how to convert it back again. Here is my method for converting base10 to base60:

public static function toBase60(value:Number):String
{
var targetBase:uint = 60;

[Code]....

Works well. But how do I get the base60 string back into a base10 int?

View 4 Replies

ActionScript 2.0 :: Convert From Base 10 To 16 And Then Base 16 To 36.?

May 17, 2007

Its been a while since i touched flash, which is funny considering i started my web/development career here.Anyway, in PHP there is a nice little function called base_convert (http:url....) which will take any number in any base (e.g. base 10, decimal) and convert it to any base (e.g. base 16, hex).So base_convert (15, 10, 16) will output F, which is convenient.I am wondering, as i cannot seem to find, if there is any similar function in actionscript. I am trying to convert from base 10 to 16 and then base 16 to 36.

View 3 Replies

ActionScript 3.0 :: Loading SWF From Different Folder?

Sep 14, 2009

Trying to load a swf from a different folder. I think I'm botching the syntax somehow.

Main fla Path
DH/WEBSITE/DH_MAIN.swf
Imported swf Path
DH/GALLERY/DH_GALLERY.swf
Getting Error: Error #2044: Unhandled IOErrorEvent:. text=Error #2035: URL Not Found.

ActionScript Code:

var file:URLRequest = new URLRequest("../GALLERY/DH_GALLERY.swf");
var loader:Loader = new Loader();
loader.contentLoaderInfo.addEventListener(Event.COMPLETE, fileLoaded);
loader.load(file);

[code]....

View 8 Replies

ActionScript 2.0 :: Loading Swf's From Another Folder?

Nov 29, 2009

Start.swf has nothing in it but this AS in second frame: oadMovieNum("Resources/Game.swf",;In the folder "Resources" are all my swf movies including "Game.swf", which opens fine from the AS above.However, when clicking on a button in the Game.swf to open another swf, none of the other swfs open. All the other swfs are also in the Resources folder.Here's the code for one of the buttons in the Game.swf:

on (release) {
loadMovieNum("Menu.swf", 0);
}

[code]....

View 8 Replies

Flex :: Loading Modules From A Certain Folder?

Jan 20, 2011

I'm working with modules and each of it will be compiled (deployed) in a common folder in a webproject. In the main class I defined an array of module paths which I need for loading all these defined modules.

How can I make that more dynamically, for instance, I want to say, load all modules in a certain folder an its subfolders without to know each module by name.

View 1 Replies

ActionScript 2.0 :: Loading Pictures From Folder?

Oct 22, 2009

I have created a php-file that sends the filenames of images from a folder on a server back to flash, where i populate a array with that info.

What i want to do now is to load the images on the server into a movieclip to make some sort of slideshow.

But im not sure how to make this work. Can i use the loadMovie method for this? How can i then get the array info into the loadMovie method? Im a newbie so please explain well.

[Code]...

View 1 Replies

ActionScript 2.0 :: Loading Thumbnails From Folder?

Mar 2, 2004

I have created a sliding thumbnail viewer for a slideshow in flash, however I would like to load the thumbnails from a folder so that when the images in the folder change the flash file is updated.At the moment I have the thumbnails as buttons contained in a movieclip,allowing me to click the thumbnail to load up the fullsize image in the slideshow. Can I load the images from a folder with this set up?

View 1 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 2.0 :: Loading Images From Folder - XML

Nov 3, 2007

Instead of plugging the paths to each individual jpg or gif into the XML. How would I get flash to load every jpg within a folder without considering the technical stuff.

View 1 Replies

ActionScript 2.0 :: Loading Thumbnails From Folder

Mar 2, 2004

I have created a sliding thumbnail viewer for a slideshow in flash, however I would like to load the thumbnails from a folder so that when the images in the folder change the flash file is updated. At the moment I have the thumbnails as buttons contained in a movieclip, allowing me to click the thumbnail to load up the fullsize image in the slideshow. Can I load the images from a folder with this set up? I would have uploaded the file for you to see, but its too big so the forum won't let me.

View 1 Replies

Actionscript 3.0 :: Loading A Xml File From A Specific Folder?

Jul 27, 2009

I have a problem loading a xml file from a specific folder. The main.swf file is in a folder called swf and the xml file is in this sting of folders "photos/portfolio/content.xml".

Here is the code I have now:
// import tween
import fl.transitions.Tween;

[code].....

View 1 Replies

ActionScript 2.0 :: Dynamically Loading Pictures In A Certain Folder?

Oct 18, 2004

Hello again. Well I dont have too long to write this down so I'll make it short and sweet. Heres the problem.I need to load pictures into a file. However I want it to load all the pictures in a certain folder. Does anyone have any suggestions, or questions as to what i am trying to do? I want to load pictures into the movie at runtime. And I want it to load all the picture within a folder. I could name the pictures in a certain way if needed. aka pic1, pic2.

View 2 Replies

ActionScript 2.0 :: Loading Random Images From A Folder

Feb 25, 2007

I have a little Flash header and each time it loads I want it to load one of six images randomly, onto the stage as a background... The images will be sitting in a folder in the same directory as the Flash file so they can easily be updated, anyone ever done this?

View 6 Replies

ActionScript 2.0 :: Preloading A Folder Of External Images?

Jan 22, 2009

I have a really annoying slide show that shows pairs of before and after pictures. What I need is to be able to preload a folder of images and then load those images into movieClip holders. I have no idea how to get the images to preload.What I really wanted is a slide show that has pairs of images that fade from before to after. With buttons along the bottom that take you to the next pair of images. AND have all the images loaded in from an XML document. Bonus to anyone who can give me a hint on that one.Really i would settle how to preload the images while the preloader is going. And then loading the first pair of slides. [URL]

View 9 Replies

ActionScript 2.0 :: Load External File From A Folder

May 19, 2010

i am trying to load external file from a folder

1-- for backgound

2--2nd for with mouse move

URL...1 thing i done mean getting background but 2nd thing leaf move on mouse move, i cant total is the leaf name which move on mousemove.i want same action that get the leaf image from folder and move with mouse.[code]

View 7 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 :: Loading Multiple Swfs Dynamically From Folder?

Mar 18, 2011

Code:
// Array of external clips to use. Variable index refers to next clip to be displayed.
var clips:Array = ["clips/clip0.swf", "clips/clip1.swf", "clips/clip2.swf", "clips/clip3.swf"];

[Code]....

I am hoping to modify it so I don't have to "hard-code" the "folder/filename.swf" into the var clips:Array line...that way anyone can upload swfs into the "clips" folder and thisLoader will take care of the rest...

View 1 Replies

ActionScript 3.0 :: Flash Loading Random Videos (MP4) From Folder

Feb 3, 2012

The client needs to be able to upload new videos to a folder, and the flash should load a video randomly. Is it possible to make the flash to read the folder and load a random video, without having to change the ActionScript? The number of videos on the folder may vary.

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







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