ActionScript 3.0 :: Loading An Asp Document?
Oct 8, 2010
when im trying to load an asp document the loader doesnt remove itself and it stops at 100% load if i try a jpg file it works perfectly, but thats not what i want xD
var myRequest:URLRequest = new URLRequest("/aspindex.asp");
var myLoader:Loader = new Loader();
myLoader.load(myRequest);
[Code].....
View 4 Replies
Similar Posts:
Jan 24, 2010
I have a movie which is placed on the stage in the authoring environment, this movie is called LiftMovie. When the user clicks on a button in LiftMovie, it loads another movie into a placeholder called MallPlaceHolder and the LiftMovie has its visibility set to false.From the document class of the movie loaded into MallPlaceHolder, if the user clicks on the image of the Lift in the mall, I want it to make the LiftMovie visible again.
View 1 Replies
Dec 26, 2009
load a webpage withing a flash document,
this is what i want to happen, i want the flash to stop animating/looping (i already have that done) and then instead of opening a seperate page to load a website i want it to load within the swf. CS4 ActionScript 3
View 2 Replies
Mar 17, 2010
i am trying to use the 'exec' parameter in a fscommand. i dont know how to open a word document from the exe. i tried
fscommand("exec", ""Ejemplo documento.ppt"");
also
fscommand("exec", "Ejemplo documento.ppt");
[code].....
View 6 Replies
Dec 26, 2009
is it possible to load a webpage withing a flash document,this is what i want to happen, i want the flash to stop animating/looping (i already have that done) and then instead of opening a seperate page to load a website i want it to load within the swf
View 1 Replies
Sep 26, 2011
Is there a way I can load a swf file but not automatically instantiate it's DocumentClass? Instead I want to do something like the following:
protected function mainLoaded(e:Event = null):void {
trace('mainLoaded');
var main:* = this.mainLoad.createClassByName('Main');
trace(main);
}
Where mainLoad is an instance of CasaLib's SwfLoad and createClassByName is the equivalent to
loaderInfo.applicationDomain.getDefinition();
The thing is that when my swf finishes loading I can see it is created, because of some trace calls, although its obviously not added to the display list.
View 1 Replies
Jul 31, 2009
I have created a image gallery. it uses a document class and several supporting classes. It works great. I need to load that swf gallery.swf into a another movie. When I try to do this I get this error. TypeError: Error #1009: Cannot access a property or method of a null object reference.at oxylus.rotator::Main()oxylus.rotator.Main is my document class for the gallery.swf that is being loaded into another flash movie.I don't get why it would cause errors as its a compiled swf and should not have references to that class.
View 1 Replies
Dec 30, 2009
So I have created the main class for the .fla file but I want a menu screen before my game starts playing. However, because of my doc class loads on the first frame, I dont know how to control when the document class will start loading.
View 7 Replies
Sep 7, 2010
I am trying to load external classes into a document class and initialize the page by loading one of them (which loads xml and videos) I feel like I should be able to do this but have not found documentation on this. Below is the code i am using...
package {
import flash.display.MovieClip;
import flash.net.URLLoader;
[code]....
View 1 Replies
Jul 20, 2005
How I can load an external .txt document into a designated dynamic text box in my flash document. I've tried the two tutorials I could find on flashkit.com and neither of them worked for me. I did everything as told and still the text file didn't load. When I enter the actionscript into the editor, I'll click check syntax and I get an error!
Here's the code I have in the first frame of my actions layer:
stop();
loadText = new loadVars();
loadText.load("updates.txt");
//creating the loadVarsText function
loadText.onLoad = function() {
[Code] .....
Here's what the error is:
**Warning** Symbol=text, layer=actions,
frame=1:Line 2: The identifier 'loadVars' will not resolve to built-in object 'LoadVars' at runtime.
loadText = new loadVars();
Total ActionScript Errors: 1
Reported Errors: 1
View 14 Replies
May 29, 2007
When person goes to site [URL] they are presented with a different .swf file each time they visit or refresh the page - currently I have three different .swf files that can served up.
What I've done so far to make this outcome a reality: I included a javascript array in the .html document that selects one of three .swf files to present in the page. Here is the javascript:
<script language="javascript">
<!--
files = new Array();
files[0] = "crayolas_pre.swf";
[Code]....
View 5 Replies
Jun 27, 2004
How do I go about loading a movie from another location within a flash document?
View 14 Replies
Aug 29, 2007
Well the shiny new app is now 830K and needs to be preloaded. Simple eh? I've got a preloader that works nicely but I've been trying all day to find a reasonable way to load a swf that was compiled as a document class. My solution was to make a bare bones swf that would preload my main app swf:
[Code]....
View 6 Replies
Nov 1, 2009
This is simple, however I am having trouble. I am adding a swf to the stage in my Document class (Test.as) - it works. I am trying to add the same swf to the stage in a different class called Control.as, it doesn't work. Can someone please help and explain what I am doing wrong?
// Document class Test.as
// Adding bg.swf to the stage - this works....
package ca.blah (
[code].....
View 4 Replies
Apr 22, 2009
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at QuizApp/createStatusBox()
at QuizApp()
That's the error message I get when it tries to play. What I have is an swf that loads another when its done, the new swf is blank but has a document class to an AS file. It seems the problem lies when a function is not properly being added to the stage.
The function is added like this..
Code:
package{
public class QuizApp extends Sprite{
public function QuizApp(){
createButtons();
private function createButtons() {
if (this.stage == null) {
trace("STAGE IS NULL!!!");
} var yPosition:Number;
addEventListener(Event.ADDED_TO_STAGE, addedToStage);
...
View 5 Replies
Apr 1, 2004
i work at this place that does tons of partner sites for our main company, that all the same site, just with different color schemes and logos. i'm in the middle of redoing a lot of the elements and making them flash based. i realized if i can have a way of maybe dynamically loading the colors on the page from an exteral php or xml document, that i would save myself and other much work in the future. does anyone know if a way to do this? to load the color of something from an external document? i'm taking about fill colors here. i think i've seen it done with componients, but is there a strictly actionscript method?
View 6 Replies
Dec 15, 2009
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 Replies
May 27, 2009
I'm loading an XML document that contains properties about "slides" in a presentation. When the XML loads each slide builds as an object with it's params. Everything works perfect except now I need to add graphics, instead of just text, to the stage based on the slide object params. I have an object in the library being exported as "StateMap". In my xml params of the slide it's name is StateMap. How can I convert the string StateMap into a display object and then add it to the stage?
So if Slide 1B has 4 lines of text and an image from the library, I want to build the 4 lines on the stage and then place the image on the stage. The image is exported for actionscript in the library but I cannot get the xml to store a name or reference and figure out how flash converts that to a display object.
View 4 Replies
Aug 18, 2009
I 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].....
View 1 Replies
Mar 14, 2002
Is 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 Replies
Dec 14, 2010
I 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.
View 2 Replies
Dec 16, 2009
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 Replies
May 7, 2011
I 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 Replies
Sep 22, 2008
So 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 Replies
Mar 22, 2011
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 Replies
May 5, 2009
I 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 Replies
Oct 13, 2009
I 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 Replies
Jan 14, 2009
way 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 Replies
Jan 4, 2010
I 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]........
View 2 Replies
Apr 20, 2009
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
<?php
$gate = "&gate=".$_COOKIE['gate']."&";
?>
[code].....
View 3 Replies