Load A Swf Into Another FLA Document?
Oct 13, 2009I have gotten some swf files from another designer. I need to show them in my presentation. I am using Flash CS3 for mac.
View 3 RepliesI have gotten some swf files from another designer. I need to show them in my presentation. I am using Flash CS3 for mac.
View 3 Repliesi 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
<?php
$gate = "&gate=".$_COOKIE['gate']."&";
?>
[code].....
I have an as class :
Code:
package
{
import flash.display.MovieClip;
[Code].....
I am trying to get my javascript data to load into a flash document, that's it.But it won't LOAD. I have the data loading into a dynamic text box in actionscript.
ACTION CODE
Code:
submit_btn.onRelease = function() {
emailform = new LoadVars();
var1 = var1.text;[code]..............
I have been informed that it is possible to load an html document inside flash, that you use an HTML tag, but I cannot find it in the scripts, can anyone show an example and explain how to make it work or if there is a tutorial for creating this inside of
View 3 RepliesI know you can find the entire width and height of the SWF itself, but I want to find the document dimensions that were set (in the Document Properties) by the author of that SWF
View 2 RepliesI cant load an image in the document class. Do I need to load all images from a class as I cant load images in a Document class directly?
With this code I get a
Error #1009: Cannot access a property or method of a null object reference.
at Main/moveright()
at Main/doSomething()
Code:
// Class public class Main extends MovieClip {
// Variables private var noLoaded:int;
var myText:TextField = new TextField();
private var img1:Bitmap;
[Code] .....
what I only modified in the .fla file is the library. I created a new folder in the library and I moved all of the bitmap images into it. Also, I edited something from the preloader in the game... I saved the file, then whenever I open it, the error happens. Also, the same error happens after I have edited the properties of the image, I imported new images and saved. Whenever I open the file, the error happens. How can I avoid this from happening? Also, what are the possible effects of this error to the file? Because I cant find anything wrong with the file except for that error.
View 1 Repliespublic class Framework extends MovieClip
{
var _loadingSystem:LoadingSystem;
[code].....
How do I go about loading a movie from another location within a flash document?
View 14 Replieswhen you have a document class for something, how do you load the symbols?lets say you have a gallery and a few buttons for it, and you will load that gallery swf into main site.is it better to leave these symbols on the stage or load them from the library or something else?
View 2 RepliesHow do you load external swf files into your current flash document?
I have made a menu bar with 5 buttons. I want each button to load a new swf outside the current document upon mouse click.
This is the script ive got so far.. But its not loading anything [code]...
How do i wait for the entire document class to load before a custom event dispatches.....my problem is it dispatches before the class with the listener is envoked by the "main" document class
View 8 RepliesI've got this interactive poem I've been working on for a class. I've basically finished each "episode" seperately. I made a parent document which essentially loads one of the ten child documents onto the respective key frame. Here's a sample of the code for the first key frame of the parent document:
stop();
import flash.net.URLRequest;
import flash.display.MovieClip;
import flash.events.Event;
stage.addEventListener(Event.ENTER_FRAME, LoadSWF2);
[Code]....
Well Two things are messed up about it, well my "ChildTimeline2" variable will off and on assosciate itslef not with the main time line of a child document, but of a nested symbol inside said child document. Even worse, the "gotoAndStop();" command I will give sometimes applies to Parent document... yaay! but often it will apply to the child document. The end result being this horrible looping moment where you are stuck in one child document for all time.
I wish I could attach the documents but they exceed the 300KB. how I can get Actionscript to listen fro the last frame of the maintimeline of the child document, or tell flash to gotoandStop for the parent document
Can I set the style of another document from it's parent document? At the moment its giving me the error 1119: Access of possibly undefined property StyleManager through a reference with static type DesignCardForm.
View 2 RepliesI found myself loading a new XML file every day and so decided to create a small class that will load the xml file and return it.The class is loading the file but when i try to return it to a new xml object in the document class it doesnt load it.I think that it's something to with the return being in a nested function but i tried a few ways and non seems to work.
[DOCUMENT CLASS]
loadXML:LoadXML = new LoadXML();
myXML:XML = new XML(loadXML.loadXMLFile("gallery.xml"));[code].....
What would you use to create buttons which when pressed load an image in an image area within the same flash document?
View 1 RepliesIs it possible after embedding a flash exe in to PowerPoint document that we can make flash buttons tell the ppt document to go to a certain slide.
View 2 RepliesI am dispatching an event from one document class and listening for it via another document class.My code in class A.
Code:
this.dispatchEvent(new MYEvent(MyEvent.APERTURE_DONE));
trace("Dispatching APERTURE_DONE");
my code in class B.
Code:
addEventListener(MyEvent.APERTURE_DONE, onDoorsOpen,true);
trace("Lisetning for APERTURE_DONE");
[code]....
My listener is registering before the event is dispatched, based on my output window, however I never get the "Open Doors" trace statement to fire.
We have a requirement to show documents (if we have URL for a document) within Flash. We have a need use embedded document viewer for MS Office and PDF documents. Are there any Flash controls available to acheive this?
View 2 RepliesI have a FLA (say Main.FLA) document class with a child MovieClip on the stage: into the child MovieClip I load other swf files: each of the files contains its own Document Class (every swf is a somewhat independent application, say quizzes and so on).For some reason I must use the Main document class to store data (scores or so) from the child swfs loaded into the Main swf. HOW do I reference the Main class? I can't find a way.[code]and dispatch an Event this way from the loaded swf document class to the Main class:[code]Now, first of all I don't know if this could even work. Secondly, I tried to make it work by adding an event listener to my Main class but id did not work.
View 9 RepliesSo I had a working .fla, with a document class package in the same directory. Everything was fine, until moving both to a new directory, now the fla cannot find the document class. WTF?
View 2 RepliesI'm loading a background into a background container with the following code:
loadMovie("backgrounds/bkg_wht.swf",bgContainer);
I'd like it to load in a 4 second alpha fading load instead of just a hard load. Any ideas what code I need to write?
When I open the file in Flash CS5, this message appears: Flash can not parse this document. An error occurred opening file 'D:......fla'
View 1 RepliesI looked online on how to reduce file size od an .fla file for use on the web but not very clear. I have an .FLA file that is 800X600 px. when I publish it, I reduce file size, audio to mono etc, and I am getting 1.8mb file, way to large for web use. I tried an swf and flv file but same results. I need to reduce the entire document. I read to use the onion skin the highlight everything then resize but I have over 5,000 frames in my movie. Can someone explain in detail, how to highlight all of the frames in the movie, and then reduce the file to say 400 X 300 px? I am able to drag the onion skin but only to the edge of the viewable document then I must scroll over and repeat the process. there must be an easier way to highlight all frames in the movie then resize the whole thing.
View 5 Repliesway to get a PDF document into flash and then so that when i publish the file the pdf links like www.kirupa.com are actual links people can click on?
View 3 RepliesI have a .FLA file which is loading images dynamically from a .xml file called "source.xml" using this code:
// url to slideshow xml
var strXMLPath:String = "source.xml";
// slideshow xml loader
[code]........
I want to know what is going on with my flash document where more of the document is showing than the document size. despite the little white box showing the size, if i set scaling to 100% it starts reaching past the boundaries. how can I get my flash doc to scale without viewing what is essentially outside of the frame?I am experimenting with getting my flash website to scale. I have tried a few things like SCALE="default" in the html and such. I want to try and keep the aspect and scale, but have a minimum size. For this I have been trying swffit.
View 2 RepliesI'm able to read out of an xml document however, how do I save to one?
This is my xml structure at the moment [code]...
how i can find a example of using document class?
View 2 Replies