ActionScript 2.0 :: Unable To Load SWF Into Project
May 1, 2011
I have create a 360 mouse control panorama view in swf format. I decided to load my swf into a container called "loader" to hold the movie's size and location so that it wont appear on my buttons but it failed. I hav try the same way to load other swf but it works.[code]...
I am working on this one project that has a couple of movieclips (already placed on stage) which have a custom class set to export via the Library. Each of those custom classes loads an external SWF using URLRequest().
Is it possible (or, what is the best way) to preload the whole project first, including the external SWFs?
I work with Flash Pro allmost 11 hours per day and every while i get a error which messes up everything. Approximetly i get this after about 2-3 hours withevery project.After i get this error there is no chance to test movies afterwards.I see a fast flash of the loader window but it dissapears so fast i cant even really see if it is loader.
I am trying to embed a 3rd party flash component into my current flash project. As a stand alone, the component works fine but when I try and import the xml file for the component into my current flash project library, the message I get:
" one or more files were not imported because there were problems reading them" I have tried importing the xml file into another dummy cs4 project on another machine and again no success, so I believe there are elements within the xml file that will not work with cs4. Below is the xml file code.
I wanted to import an older FB project into the flash builder on my new pc, but I only have the filestructure. So I used 'import>existing projects into workspace'.The files seem to be intact still, but the project now gives me an error regarding an swc in the bin folder:
I dont know much about Parsing XML with AS2. "Game can now be started", "In loadXML function" is traced. Unfortunately, "failed to load" is traced too. I put my cards.xml file in the same file as my main.asc.[code]...
I cant "center" my project, like you can see its "fixed" (yellow lines) in the left side and I cant see "invisible" part of project... (area around the project). how can I move my project so I can see the not-project area around the project. (picture 2).
At the moment situation... (cant see that area around the project) http://img19.imageshack.us/img19/1186/68553623.png
i tried for many times but i can't seem to load the php data into my flash document. I check that the link to the php file is correct and the code for loading does not seem to be wrong
I got a buggy warning from my flash cs4 project, saying at the compiler errors; warning : unable to load SWC fls ther's no reference to the line/place having this error in location area of compiler errors!! i didn't kow how i got there cause it was working smooth befor this error! strange also,
and since, we are at the new year, you know, ther's the best film of the year, the best site of the year.. why not make a "the strangiest undocumented error of the year!".. anyway, if ther's such a competition, I vote for this error!
I'm trying to simply have a flash file that acts as a preloader by loading in a separate swf to it. To my understanding it should be simple and the following should work.[code]...
I have a flash file which loads a movie clip on the click of a menu item.Now I am trying to add some dynamic data (xml) within this movie clip - In short I do have a dynamic tet box, and can access it as follows:
_level0.pages1.page.forumText.text
The problem is how and where do I load my XML. This is my code to load the xml data I tried to add it in the Frame for the movie clip and it came back with the following error :
**Error** Symbol=pages1, layer=Layer 3, frame=3:Line 21: Statement must appear within on/onClipEvent handler headlineXML.load("FlashFile.xml");
I have a movie clip with a background image and also I have another movie clip that load the first movie clip with a Loader, but in the second movie clip, do not see the image of the first movie clip.
im trying to load an external swf into my project the code is simply this:
var loader:Loader = new Loader; loader.load(new URLRequest("gallery.swf");
I get an error that says the following when i debug it.
TypeError: Error #1009: Cannot access a property or method of a null object reference.. at gallery_fla::MainTimeline/frame1()Cannot display source code at this location
I have done this same thing before but never gotten this error message, i even tried to load an old swf file and it worked fine.
I have an issue with a Flash applet that I've written; it's an MP3 player that is supposed to load an MP3 file from a web address.
When I run the SWF on my local computer, it works like a charm. However, when I put it on a webpage, it does not load the MP3 file. (I guess that's what I get for not testing it that way beforehand.) I've double-checked permissions and it seems that everything is as it should be.
I know that AS3 has some cross-domain policies, but I'm loading the MP3 file from the same domain. I understand that Flash has sandbox properties, but I would expect that a file in the same domain shouldn't be a problem. I've heard of people having problems with SWFs before, but not regular media files.
If possible, I'd like find a solution that doesn't require rewriting the code, as I have a release version of the SWF on my site currently. (Rewriting won't be a problem, but I have to wait until the end of the day to do it, and the SWF is on display now.)
Edit: I had three friends test this, and it worked for them. However, it still didn't work for me. I'm at home now, and I'm testing - my applet loads an MP3 in Firefox, but not in Chrome. (Oddly, the friends who tested were using Chrome, which loaded it with no issues.) At work, my applet would not load an MP3 in Chrome or Firefox.
The issue is that the progress reaches 100% but the other file never shows. I also know the progress check is redundant and that the complete event should do the same, but that was one of my attempts at debugging.
The code I gave is a chop-up of the hours-load of tutorials I have been reading, and is just meant to be a test file for me to work with loading external flash files.
My gallery is set up to load from an XML file and it works great. My problem is that the program only loads the first gallery. I can load either gallery 1 or gallery 2, but when I try to switch galleries, the current gallery vanishes and nothing reappears. according to the trace function, the thumbnails are being generated again, but nothing is showing up again.
I think it may be the container_mc that needs to be removed and re-declared but nothing seems to work. I've I've had to remove a bit of code related to background graphics to meet the max length req of the forums but otherwise it is all there. apologies for the messy code:
I have a main movie that loads different .swf files into the main movie. The problem is that I update my site once a month and because of that I have experienced some cache problems. If I change a movie called "x.swf" with a different movie also called "x.swf" the internet explorer will automaticly look for a file called "x.swf" in the cache, and if the website has been loaded once, the next time that it's loaded you wont be able to load the new "x.swf" - same filename, different content.When you load a movie, variables, or a text, what you load is put in the cache of your computer by your browser. This can cause problems because if you load files, chances are that you are going to update them quite often, but Flash will look for the files in the cache, that is to say the old ones.
myIdentifier=Math.round(Math.random()*10000); loadMovie("myAnim.swf?uniq="+myIdentifier,1); This works also with LoadVariables, LoadMovieNum and LoadVariablesNum.
My problem seems fairly simple, however, due to my limited experience with Flash I'm having some difficulty with it. Anyway, here is my problem: i'm trying to use a Photo Gallery written in Flash. The source files for it could be found in the link below:
[Code]...
it's just so strange that merely calling the .swf from the same directory in a different Flash project is totally making this application, useless. As I mentioned earlier, I'm a beginner or less, at Flash, so please bear with me if my problem seems dumb. Nevertheless, my deepest gratitude for anyone that can help me out with this problem.
I'm using AS2 and Flash CS4. I'm having problems loading an external swf correctly. I get it loaded and displayed ok, but not in the correct spot. The movie clip is the same size as swf, and the registration point is in the top left corner. However, each time it loads it ends up in the bottom right corner of the screen.
Experience with Flash: very very little (very) Version: CS4 Operating system: XP Pro. I was given an FLV file to display on the web. I imported the file into flash and exported it as an html file.
The movie worked great online, but then I was asked to save a copy of the movie on a CD to send it to a client - I saved all the files in a folder. I tested it on my computer and I was able to view the movie, but when the client loaded the html page, all they saw was a bar (that has the volume & play buttons) and a green line that scrolls across it. Here's what it looks like
Some people can load the html file and view the movie and others cannot (on their desktop). On some computers I tried updating the flash player (I removed the existing one first), but it still did not work.
As much as I'd like to be, I am not a Flash developer - I just use it to the extent that I must (the nature of my job) Did I provide enough information for someone to be able to tell what the issue is and how to resolve it?
The script below works when I test the index.swf file in Flash as well as testing the index.html file in Dreamweaver. When I upload the HTML and SWF file to my webhost (Just Host), however, it doesn't load the images!!! Is there another line(s) of code that needs to be added or is there something wrog with the webhost? to reduce the size of my website which is my ultimate goal.
var my_loader:Loader = new Loader();my_loader.load(new URLRequest("http://www.awoodruffsart.com/img/ab2.jpg"));container1.addChild(my_loader);
I have a flex 3 app that is attempting to load images from Amazon S3. The images fail to load, so I fired up debug mode. In debug mode, the images load, but I also get the following output in the debugger[code]...
I've learnt ActionScript basics from this forum and i hope i get a solution for my problem.I am doing this window shopping gallery for my company but iam stuck in the middle of nowhere.I am attaching the files so that u can have a look at it. the gallery is xml driven.
when a user hovers to the left side of the gallery tween starts and the stores move in a perspective angle. i am placing the code here for xml loading which is in 1st frame[code]...
I am using ASDoc tool for action script3.0 using flash develop's document ation generator. I have also tried it using command line . I have included external swc library. The problem i am facing is..when i generate documentation than i will get following error
" Error: Type was not found or was not a compile-time constant: "...as far as i did some R&D , this is not a synatx error. I am guessing that ASDoc is not able to detect those classes oif SWC which i included in my project.
I ran into some trouble trying to load a new image from the class other than the "document" class. Attach is a sample of what I'm dealing with. Loader.as is the document class. I can create an image fine from there but not from GamePanel.as.
What I'm trying to do is to create a class loading three images as a pile into a movie clip and be able to switch from one image to another (with a fade effect) thanks to a method (setPic).
The problem I have is when I want to store my loaded image into my array( magnitude[i-1] = loader.content; ) it doesn't load anything, provoking the addchild(magnitude[i-1]); to return a null error. I know the file is properly loaded because if I addchild(loader.content) directly it does load the image (but I can't store it and access it later obviously).[code]...
I am trying to write a small flash app which will load and display images provided as a query. My flash app works fine when I provide the image path directly in the browser address bar, but it is not working when I do the same using html. Here is the direct link to the flash app: [URL]
Here is the link to the html with which I am trying to invoke the app. [URL]
I know my app is getting invoked and it appears to work fine when I hardcode the image url into the flash app. But the query method just does not seem to be working!
I have an image gallery consisting of thumbnail buttons, which load the external fade in/out files. When the buttons are on the main timeline everything works perfectly, but I wanted them to be scrollable so I placed them within a MC, still on the main timeline, and now the externals wont load the scrolling and button actions are fine.