ActionScript 2.0 :: Action Between 2 Flash Files?
Jun 6, 2005
I'm working on a project. I have a menu.swf and a index.swf. The index.swf is a file containing a movie clip named: contens in that movie clip i have the first frame to load another movie called main.swf into level 10.
How do I make a button in the menu.swf file unload the movie inside the container called contens and then load another movie?? I can't seem to figure it out.
View 3 Replies
Similar Posts:
Dec 22, 2009
I know very little about Flash so I apologize in advance for asking what is possibly a dumb question, although I did a fair bit of research before posting. Our current Flash app, written in AS3.0, is able to display a standard OS browse dialog for the purpose of allowing a user to select files. We are using [URL] to display this dialog.
The documentation for FileReferenceList states that only files could be selected. The new requirement is to allow the user to select directories as well as files. Afterward it would be very nice, but not required, to be able to get a recursive list of all the files in the selected directory. Is it possible to implement this in Flash running inside a browser? The closest I've seen so far is [URL] which does what I want but it only seems to work inside Adobe AIR and is not exposed to the browser.
View 1 Replies
Jun 10, 2002
Is it possible for action script to import audio files into the flash movie while the movie is playing. (Instead of manually importing a file from within the flash application) Or some way to load an audio file located at a remote url, that is not preloaded, and play it.I've searched through the action script reference guide, but have found nothing to do the job.
View 3 Replies
Mar 24, 2005
How do you call functions that are located in an external .as file? I created an action script file that I have saved in the same directory as my swf. In the file I have two functions that I would like to be able to call in my swf when someone rolls over a button.
Here is my .as file (Rollover.as):
Code:
class Rollover extends MovieClip {
function Brass() { // function for loading the brass symbol sound
brass = new Sound(this);[code]....
Within my swf I have two mp3 files, brass_click.mp3 and thoup_click.mp3, and I have set their linkage properties to "export to actionscript" with their respective names. I also have a set of buttons that I would like to play the mp3 files on rollover.On my buttons I have the following code:
Code:
on(rollOver){
Brass();
}
That is about it. How come it doesn't work? I know that I am close...
View 6 Replies
Apr 29, 2009
I have an action script that plays flv files when I run it on my local machine (no web) server then it playes well but if I run it on the server it does not
Code: Select allvar netConnection_:NetConnection = new NetConnection();
netConnection_.connect(null);
var netStream_:NetStream = new NetStream(netConnection_);
[code].....
View 5 Replies
Aug 4, 2004
i am having with xml being displayed in flash mx.the tutorial on this site works fine, but when i write my own xml file and modify the as, i encounter the problems. ideally, i wolud like to be able to load text files and urls of images to be loaded into flash, flash recognises the xml file fine and actually loads it, however, when i try to use the nodeValue action, i am always given the value "null." this is because flash thinks the node is an element rather than a text node (type 1 rather than 3, when you use nodeType.) i don't know why it does this when it is obviously a text node.
View 3 Replies
Oct 2, 2006
Code:
_root.navigationMC.onPress = function() {
startPreload("blue.swf");
}
If I wanted to change an action from a button click to a frame-based action, what do I use instead of onPress? The hints from the AS editor are all click-based.
View 1 Replies
May 8, 2009
I have a slideshow that is looped ... it contains 5 slides.I am using a gotoandPlay action to control the slide show.
on (release) {
this._parent.gotoAndPlay("98");
}
There is a fade transition between slides.When a button is released ... I want to gotoandPlay (frame 98) ... and then have it stop 10 frames later on (frame 108). Frame 98 includes the transition ... if I just gotoandStop on frame 108 ... I loose the transition.Is there any way to incorporate a stop action, after a gotoandPlay action on my button ... without naming instances etc.I.E.
on (release) {
this._parent.gotoAndPlay("98");
STOP ON FRAME 108 INTEGRATED HERE
}
Everything I have attempted is not working.
View 1 Replies
May 23, 2009
I just want to make a simple button action using actionscript 2 but I can't get it to work! I'm sorry for even asking but I've been at this for too long now for it to not work I'm using Adobe Flash CS4 and I do the following --
File -> New Flash File (ActionScript 2.0)
Insert -> New Symbol
Name - test
Type - button
Export for ActionScript
Identifier - test
And then draw it in using the keyframes and add the code to 'Actions - Button' for my button
Code:
on(release) {
trace("trace");
}
I click on the button and it animates but no action event in the trace?
View 3 Replies
Nov 4, 2010
How can I get an action to follow another action when a button is clicked? When a button is clicked, I want the timeline to go to a certain frame and play and when it's done playing, to go to another frame and play. I basically want two actions in one function.
[Code]...
View 1 Replies
May 2, 2003
i want to do this:
on (release) {
_root.nextMovie = "externalmovie.swf";
_root.cover.gotoAndPlay("close");
[code].....
View 1 Replies
Nov 15, 2011
Code is
import mx.events.EventDispatcher;
import Proxy;
Following is the class definition.
class XMLLoad extends EventDispatcher{
public var XML_NODE_TYPE_TEXT = 3;
public var XML_NODE_TYPE_ELEMENT = 1;[code]....
These are the functions. in the class.
View 2 Replies
Jan 27, 2011
I am using code from a tutorial that I downloaded to get an Home.swf to preload in my "index" page.the problem is that a part of the code reads
movie1_btn.onPress=function(){
startPreload ("Home.swf");
}
which means that I have to create a button to get the .swf file to load, how do I edit this code so that the action begins on it's own at that frame?
View 5 Replies
Apr 28, 2009
I'm in the process of making a web page that'll successfully checked as XHTML 1.0 Transitional ([URL]), but as soon as I place in the fixit.js script under the flash object and view the page in IE, all the flash elements turn white. Quote:
[Code]...
Anyone knows how to place in flash files in xhtml files on IE without manually controls by clicking on the flash file.
View 1 Replies
Mar 20, 2010
I installed Flash CS4 Professional trial version for school use. It wouldn't install successfully. I deleted the font files the troubleshooting guide said to, tried again, but gave up. (I'm afraid to run regedit and mess up everything else I have loaded.) (I previously had the Fireworks CS4 trial version loaded, then uninstalled it.) My problem is this- I have it running, but it saves files and then they can't be opened, even if I use the save function often- it's worse when I create the file, test the movie and then save.If I try to open it again, it says "cannot open file." Once it opened a copy I had saved, and it appeared blank, even though it was 544 kb file size. I only need it for a few more days, one more assignment and I'm afraid my previous files are corrupt. I have Windows Vista Home Edition.
View 4 Replies
Jul 13, 2005
i have attached a flash file.the problems are
1) i have palced 2 flash file on my web page.if i stop the sound on this file then the sound on another flash movie placed on my web page also stops.i want both the files to be independent to each other and controlled separately
2)if i click on play it shows loading.even after it loads the file it doesnt change itz status. if i click again on play then itz status changes to play.my codes for flash.....
soundUrl = "test.mp3";
// create sound object, assign properties and events
function createSoundObject(){[code].....
View 1 Replies
Mar 27, 2011
I am constructing a Flash animation and I was hoping to build it by scenes. These scenes would be individual SWF movies that I could import into my final Flash file in consequential order and when finished I would have a completed Flash Movie. There would be no interaction beyond Play/and replay. Where can I get information on how to construct this and is this a recomended way to do it?
View 7 Replies
Nov 16, 2011
I've tried exporting a MOV file using Flash 8. I've tried converting to a MOV using ffmpegx. Neither have worked.
View 1 Replies
Jun 15, 2010
Can anyone improve on this? Requires Sysinternals Strings
date /T >N:output.txt
net use z: /delete
net use z: \svr-002
[Code].....
Basically it mounts a share as a network drive then runs through the share looking for swf files inside office documents.
View 1 Replies
Dec 18, 2009
Can somebody change this code from action script 1 to a action script 2 because it doesn't work on new flash 8
[Code]...
View 1 Replies
Aug 3, 2011
As the title says, i can't seem to add any action to any object,clip or button.
View 5 Replies
Jun 26, 2010
I am trying to design a website in flash , and would like to know how to design a loading flash movie , something like a circle rotating till the website loads . I might not be able to explain properly , but its like when you install a software , the installation bar that you get , how to get that on a website using flash or java script?
View 2 Replies
Mar 28, 2011
i would like to replicate this action with CSS/Javascript only. (I need it to work on ipad/iphone)
I have searched around, but all I can find is flyout menus, and no reference to dimming the pictures. (mine will have 6 instead of 2 this one has).[URL]..
View 2 Replies
Apr 8, 2011
What is the use of void in Action Script 3.0?
View 3 Replies
Oct 6, 2011
I am having a problem with AS 3.0.When you click on a door. You'll move to the next frame.In the next frame i tried the same. But its not working.[code]
View 2 Replies
Mar 20, 2012
I want some assistance in achieving a simple method of incentivising social sharing and liking of my sites.
I would like to have a flash file that plays some content then stops and presents a button to tweet or 'like' through Twitter or the appropriate fan page on facebook.
Once the button has been clicked and the share/like completed I want the flash file to resume and continue to play.
View 0 Replies
Feb 3, 2011
Is there a way to add .as files to a subversion repository but to get it to skip over my .fla files?
View 4 Replies
May 26, 2010
I couldn't come up with a good title for this question but basically the problem is this - I've got a series of thumbnails and clicking on a thumbnail loads a larger picture into a holder movieclip on the main stage. However, if you click another thumbnail while the first picture is still loading, then both pictures load and it goes on from there. How can I make my code so that clicking a new thumbnail cancels any actions from previous clicks?
View 7 Replies
Oct 12, 2009
I created a complex fixed line and a bird flying on the line using tweens from point A to B to C. When I view the birdline in play or by scrubbing across them in the layers mode, the bird follows the line just as designed. When I test the birdline in "test Scene" or "test movie" one bird flies from point A to C, then another bird appears at point B and flies the course to point C. The published .swf and .html do the same as the test functions. What can I do to get the published version to behave the same as the design?
View 9 Replies
Apr 21, 2010
It is my first time using AS3.The way that is set up us I have a "Main MOvie Clip" and inside the main movie clip I have another movie clip which is the MainMenu.Inside the MainMenu are buttons. The frame label I wanted to go to in outside of the MainMenu but Inside of the MainMovieClip.I am doing a small project that involves gotoAndPlay("frame label")In the action layer at the end of the timeline of the MainMenu Moviclip Here is my code;[code]
View 2 Replies