ActionScript 1/2 :: Swf File Calls Another Swf File?
Jun 4, 2009
I have a flash movie which should plays the second swf(intro_community.swf) when it finishes but when it plays by itself, it doesn't call the second swf file to play, but when it launchs from a button
(on (release) {
loader_mc.loadMovie("intro.swf");}
the swf calls the second swf to play.
[code].....
View 1 Replies
Similar Posts:
Feb 17, 2009
I have a swf file in which when a button is clicked it calls a function in a javascript file using ExternalInterface.call
Now everything works fine if all files are in one folder.
but now If a place the swf file in this location /assets/swf/test.swf and the java script file in this location /assets/scripts/test.js
View 1 Replies
Jan 13, 2009
We recently decided to add a flash banner to our site which calls an xml file which loads the price and name for 5 separate products and keeps looping through until a user clicks a product. Unfortunately, it appears each time the file loops it calls another iteration of the xml file -- so if a user opens our homepage and walks away the xml file could be called 100s of times. My question is, can we set up the actionscript so the xml file is called just once?
View 1 Replies
Sep 12, 2009
I can't seem to remove / unload the external swf files e.g when the carousel.swf (portfolio) is displayed and I press the about button the about content is overlapping the carousel (portfolio) . How can I remove / unload an external swf file from the main flash file and load a new swf file, while at the same time removing garbage collection from memory?
View 15 Replies
Feb 4, 2010
I am trying to write a class file using a .as file instead of writing code into the script tab of a .fla file.When I write stage.addChild(img); I get an error that stage is null. When I take out stage, and just write addChild(img); the code runs fine, but nothing appears on stage. Do I need to do something to set a stage active?
Is this because I don't have a Main class? My class is named after the file and I don't have a file named Main.Here is the code. As it is, it runs and I get the two trace outputs, but no graphic on my screen.
package { import flash.display.DisplayObject; import flash.display.Sprite; import flash.display.Loader; import flash.events.*; import flash.net.*; public class HelloWorldImage extends Sprite { private var background:DisplayObject, foreground:DisplayObject; private var url:String = "hw_jpg.jpg"; private var loader:Loader = new Loader( ); public function
[code].....
View 7 Replies
Jun 11, 2011
Which is preferred and why: keeping the AS in the Flash file itself, or linking to the .as with the Flash file. I've seen both done. Is it just a matter of preference?
View 4 Replies
Nov 15, 2009
I am sending out a standalone player that uses an xml driven image gallery. I need to prevent changes to the xml file to stop images being added to the gallery. I can can password protect the xml file to prevent changes, but I also wondered if there was a way to validate the authenticity of the xml file from within Flash to prevent the entire file being replaced?
View 3 Replies
Sep 23, 2010
I have created a booklet in InDesign cs4 that includes page turn transitions. I have saved it as a SWF file and it works perfectly on my PC with the ability to sweep through the page turns. My issue is now, what type of file can I export the SWF file to so that I can view it on an iPad and am still able to have the page curls?
View 3 Replies
Apr 19, 2010
I want to write the bulk of data into xml file ,the data coming from the backend(mysql) using cgi by httpservice, read the xml file and bind it into list. can anyone send the sample code for this?
View 1 Replies
Apr 28, 2011
I have a application developed in flex deployed on server. In the application data is filled by user and saved in cookies so as to be available even when the user closes the application. However if new version of application is released the user can still access the older version saved in the cahe. How can it be assured that whenever a new version of application is released the application is loaded from the server and not from the cache and at the same time data saved in the older version (in cookies) can also be accessed in the new version.
View 2 Replies
May 9, 2011
I'm having some problems inserting my ammap into my webpage. I've read through the documentation and it isn't helping. The map works with if I use the .html file in my original folder but all the paths are relative and I'm trying to make this work in an ASP.NET MVC project using visual studio. It's rather tough to explain the problem since I don't know what's wrong (no javascript or flash debugger).Here is the code that embeds the ammap:
<script type="text/javascript" src="../../Content/AlcoholAndWar/WarStuff/ammap/swfobject.js"></script>
<div id="flashcontent">
[code]....
View 1 Replies
Jan 13, 2012
Is there any "mainstream" library used for this purpose? Commonly spread, well maintained, documented etc.I found these (using flash):
Uploadify - not many releases, latest 12/2010, no documentation (!)
SWFUpload - latest release 03/2010, documentation
fancyupload - looks buggy.
phpfileuploader - looks heavyweight, and looks commercial (?) I cannot read the licence (you can download it but are you allowed to use it forever without paying?) plupload New version of pure javascript (no flash) Valums' ajax upload claims to handle file size limit and progress bar, which is quite suspicious to me: these features require to guess the file size before the upload, which seems impossible in javascript (look also here). Or can it work?
View 2 Replies
Aug 20, 2009
The template is built under Flash and has .swf, .fla and html files and was setup on an html background. To make things look nice I decided to use an XML web template as a background to his template. The problem starts from there.The XML web template allows us to add our own SWF files, so I decided to add the swf file of my friend's template.
The swf file was set to "noscale" and when I imported it into the web template it didn't fit properly. So I took the "noscale" off from the actionscript and imported it again. Even then the scaling of the swf file was not correct.As soon as you load the file, it scales towards the left and not center.My question is how can I write a code within the fla file so that when the swf file is loaded it automatically centers itself?2nd question is how can I setup the dimensions of the file as in terms of height and width of the file without getting it cropped. I tried to set it up from 840x610 to 650x430 however the swf content got chopped off (even with noscale off).
View 2 Replies
Jul 21, 2010
I need to find a way to detect keystrokes when the flash file is not selected and send that information to an .swf file. The file would be stored locally (not on the internet).
View 3 Replies
Jul 27, 2011
i have banner with 5 images fad in fade out effecti need to load images & test from external file " text file or xml file " with keeping fade effects on imagesall ways i know can't keep fading effect on images so
View 4 Replies
Nov 17, 2004
I have a movie player that works fine when i hard-code the url value in the video function, but when i try to pass that url/file path from an external file, the video doesn't load. I suspect that there is something i'm doing wrong with the quotes. What am i doing wrong?
[Code]...
View 5 Replies
Aug 23, 2005
is there a simple way to just pull back a true or false value from an associated javascript file to a flash file? here is what i have:
Code:
var bincheck:Boolean = fscommand("eval", "parent.check_bins(\'"+img+"\')");
if (!bincheck){return false;}
return true;
check_bins(img) is a function in my javascript file that simply iterates through an array, returning false if "img" is found. im simply trying to get the true or false value back into flash, but its not proving that simple. i added a couple alerts so that i could see what the "bincheck" value was, and i keep getting an 'undefined' value for "bincheck" in flash.
View 1 Replies
Nov 26, 2006
I have to make a project for school. It will be like a tutorial, but into an application. I already made a part of it in MXML and a bit of action script but I encountered a few problems that are over my newbie limits. So the Flex Builder 2 makes a SFW file, in the main folder of the "project". I want to make that SWF file my main executable file. I have a folder with some pics, and another folder with Action Script Files. The code lvl that I know atm is ABSOLUTE BEGINER... I don know how to make my SWF file have a specific name when I run it.Here is a picture of a training exercices that should make thing more clear:Some people told me that I should use a HexEditor and stuff. Is it ture(what u think?).
Next problem. I dont know how to make the Stage to be fix. I mean.. I dont want the stage to be resizeble. I tryed to change the stagescalemode but that wasn't it. I toke a look at the help files of Flex from the net, about the Resize action and SystemManegment, but I didn't find out what I wantend.
View 4 Replies
Jun 21, 2007
I'm building a flash movie for something at work and im loading in some images using an XML file but when i use a preloader it only preloads the XML file (as in just the text inside) and not the images.
This causes the movie to start playing without having the images loaded.Does anyone have any ideas about how i could get it to preload the contents/images being called in the XML file so it doesn't run as soon as the XML file is loaded.
View 1 Replies
Jul 7, 2010
how to pass variables from one Movie clip's AS file to my Main AS file. Let say my Movieclip's AS file is calling damage = 1; so how the Main AS file retrieve the damage value from the Movieclip's AS?
Code:
public class robotMC extends MovieClip
{
public function robotMC()
{
[code]....
View 5 Replies
Jan 20, 2010
I am wondering if it is possible to use random file access for reading and writing data to file in Actionscipt 3.0 similar to that what is in Visual Basic?
View 1 Replies
Jan 18, 2011
Having got into flash about a year ago, I have a fairly good understanding of as3, but I have never had any reason to learn as2. For an upcoming project, we were looking to use Scaleform GFx, with the UDK. (Unreal Development Kit) Trouble is, Scaleform only supports as2. From what I've been told, as3 is supposed to be better in just about every way, so I really don't want to learn a language that?s most likely on the way out, if I have any other options.
Is there any converters out there, that can convert script from as3 to as2? Or another workaround possibility, since flash communicates with the UDK by means of just calling a function, could I create an as2 file that could dynamically load an as3 file?
View 2 Replies
Jul 20, 2009
I have a Flash movie which is embeded in 'base.aspx' file, when a button is clicked in the flash movie another 'something.aspx' file need to be called.When I run the flash movie from the Adobe Flash Professional CS3 IDE , it (the flash movie) calls the 'something.aspx' file just as expected.However when I embed the flash movie in to the 'base.aspx' file it doesn't work as expected .
View 4 Replies
Oct 14, 2009
I asked this earlier but maybe I didn't give enough information. I am working on a website where video quality is very important and the client is delivering me the video already compressed. I then want to import it to flash CS3 and export it as .flv for progressive download with the media playback component. I have done all of this successfully in a sense that it all works but the video quality is not good enough, it's good but the client says it;s a bit grainy. I used the highest setting in Flash, on2 vp6 at 700kbs.
My question is what is the best file format (.mov etc) and what settings should the client use, so I can create the highest quality .flv export from their .mov file? Second question, I used an 8 second buffer but now the client is saying they don't want it to buffer at all. What are the other options besides progressive download, I have never delved into this before?
View 5 Replies
Oct 26, 2009
Can the clickTAG code in a flash banner be changed if you only have the .swf file and not the .fla file?
View 1 Replies
Nov 22, 2009
I have four buttons in flash and only one of them work. I have attached the fla file and an index page in a zip file. It seems only one button will work at a time.
[Code]...
View 5 Replies
Jan 6, 2011
Got a really big problem here. I keep on getting "NetConnection.Connect.Failed" when I load a .asc file on my main.asc file, i use the method load() in my code. I really don't understand why this happens, but when i comment out the code that loads the asc file, I can successfully connect to fms. I can't figure out what's happening here. Btw, i'm using fms4 in windows 7 32bit.
View 6 Replies
Jun 29, 2011
I've looked through the scripts in the scripts/ directory, but haven't seen anything obvious.
I would like to be able to specify the file name to capture the stream to. At present, the capture file is always named the same as the stream, which means if I stream for a bit, stop, then restart, the originally captured file gets overwritten. I'd like to be able to incorporate something, i.e. the stream start time, into the capture file name.
View 3 Replies
Jul 22, 2011
I have a problem with SharedObject. I created SharedObject using AS2.0 it's working fine.... my question is can it possible to store the variable values in an .txt file where the flash file is saved... basically the SharedObject will store the vallues in localdrive with file extention. not only using SharedObject if any other way to store the vaules in .txt file will be helpfull for me... my requirement is to store the the position of the swf file and when the time it reopen, it should start from previous position.
View 2 Replies
Jul 23, 2011
I do understand the differance between ssas and as3. Not all, but all most everything I see written in SSAS can be writen into a external AS3 file. This leads me to quite a few questions I'm hoping you kind people can shed some light on for me.
1) What is the advantage of writing a SSAS file over an external AS3 file?
2) Can I write an .asc file in AS3 or do I have to use AS1? Please understand I'm using tuts from fmsguru.com and the books "Learning Flash Media Server" (pdf) and "Programming Flash Communication Server". I'm not a javascript programmer so nothing I do in AS1 seems to make any sence while everything I do in AS3 does. It may not seem like it to you people that are programmers, but to those of us that aren't, AS1 and AS3 are miles apart.
3) kind of off topic, but a security question. I'm not a "hacker" and don't like the jerks that are. My question is on external AS / SSAS files and swf files. When my fla is compiled into a swf does my external AS files remain external? I assume they do, but then what is the threat of the swf being decompiled? In most projects I would do I could care less if somebody had access to my fla as long as they don't have my actionscript files.
I don't know. Maybe on questions one and two I'm getting confused becasue I'm using out dated material. Again I assume that even though fms was built off of the javascript engine it should be able to read and execute my AS3 file. Other wise what was the point of the evolution of actionscript into a fully functional programming language?
View 1 Replies