ActionScript 3.0 :: Swf To Movie Not Working
May 20, 2011When I change the swf file to any time of movie like avi, wmv, mpeg etc. It is not working. I am loading xml files, images and videos in that swf.
View 3 RepliesWhen I change the swf file to any time of movie like avi, wmv, mpeg etc. It is not working. I am loading xml files, images and videos in that swf.
View 3 RepliesLet say A is the main movie and B will be a external swf file that i'm going to load into A movie. The problems is that, some actionscript(AS) in my B movie is not working anymore after i load it into A movie. I believe that the AS in my B movie is not working anymore because it is refer to A as the _root instead of B movie as _root. This can be a common problem. So, i wonder what should i change in the B movie AS in order to make it work in A movie.
View 3 RepliesI'm made a flash movie[main movie 1] where another movie is loading using the "loadMovie()"[this is the movie2] command.my probblem is - when I'm trying to loadsound in to the second movie
Code:
var mySound1:Sound = new Sound(this);
mySound1.loadSound("music.mp3",true);
[code]....
I have multiple movie clips on stage (all in separate layers, of course) as well as buttons on stage to play each movie clip. There are buttons inside each movie clip. The problem is that the buttons inside the top layered movie clip work, but the others in the movie clips below don't.
View 2 RepliesI have created a smiple flash movie in Flash CS4. It can be seen here [URL] When the site initially loads, the movie keeps playing continuously. If another link is clicked on the site and then Home is clicked again the movie freezes on the first frame. This is happening only in IE. In other browsers such as FF, Google Chrome and Safari the movie works fine whenever the visitor clicks the home page.
View 2 Repliesim having troubles unloading a swf file that is 2 levels above my main movie.Basically I have a main movie and I have actionscript on the timeline which corresponds to a button which loads a swf (eg my web portfolio work):
digitalbut.onRelease = function() {
disableBtns();
_root.createEmptyMovieClip("container",1);
[code]...
This all works....Then in this swf I have another button which again loads another swf on top to show a particular piece of work and the code on the timeline to correspond to the button is:
Dior_hit.onRelease = function() {
createEmptyMovieClip("container",1);
loadMovie("Digital/Dior/Dior.swf","container");
[code]...
This works also....but I come into problems when I want to create a button in this third swf file which then closes this Dior.swf so you are left with the bottom two still showing. I already have a close button on the Digital.swf which works a charm to get you back to the main movie and the code for this is:
on (release) {
_root.container.unloadMovie()
unloadMovieNum(2);
[code]...
how I can close this third swf to still show the two below?? I have tried so many options but none seem to work!
I've created a couple of little flash movies (for the first time) showing figures merging into one another. I imported the movies into Dreamweaver and when I tested them in my browser, they worked fine. However, now that I've uploaded all the pages/files for my client to look at, the movies don't work. Infact in one case it doesn't even appear.
[Code]...
I am not able to play flv movie on the sever it gives an error :
GET http://sagebridgedigital.com/client/michelangelos/index.php/Clear_Skin_1.swf 404 (Not Found) in chrome.
whereas skin is on the root of the site.
I'm trying to create a movie clip on my my main timeline that has a movie clip button within it that pops up a box in the middle of the site that contains text and links. On Frame 1 I have the Up state, frame 2 the roll over state, and frame 3 my Down State (where Box appears).
[Code]...
The problem is that on the main time line, the button is clickable but doesnt do anything
I am creating a button with a 20 frame disolve into a page upon entry.I want the button to play a 20 frame disolve back to it's original state when the user rolls out.I want the movie clip to play from frame 21 to the end of the mc and then become inactive.I can get the button to disolve out but the user will not be able to use it after that first roll over.I was thinking of trying to add a time delay from when the first action of the rollout occurs to when the disolve is complete.How do I include a 20 frame delay in the roll out sequence?[code]
View 7 RepliesI am putting together a site which includes a simple Flash movie. The movie is working fine in all browsers on the Mac (though I can't confirm whether or not this includes IE as I wouldn't have it on my system even if it was still supported by Microfsoft!). On our Windows PC, however, although the movie is fine in Firefox, it will not work in IE 8. The strange thing is, I've visited other sites in IE and it does run Flash movies - just not this Flash movie.
I'm using Flash CS3 on a Mac and I've saved the movie in both Flash Player 8 and Flash Player 9 without success. The file uses ActionScript 2.0. I've uninstalled Flash on the PC and then reinstalled the latest versions, again without success.
i have a chat page in flash, that works.but when i load the chat true a loader (loadmovie) it works but only the cam is not working (own cam).in my chat.swf this works
if (Camera.names.length > 0)
{
cam = Camera.get();[code].....
to view a local copy of the cam.the same fuction works it i put it in the loader.swf but when the chat.swf is loaded into the loader.swf the fuction does not work anymore.also not working when loaded true the loader
cam.onStatus = function (data)
{
tracer.text = data.code;[code].....
and works when loading the chat.swf directly.viewing camstreams works, but publishing and local view dont works
I've encountered a strange problem with a game I'm making with flash cs4, as3. When I test my game with ctrl+enter within flash, it works fine, but if I try it again, it doesn't load at all. Basically, I open flash, test movie, it works, do absolutely nothing except close the test movie window and test it again, and it doesn't work.
I put a trace as the first line in the constructor function of my document class and that doesn't output anything on the second test. If I close flash and reopen it, it does the same thing; the game will work fine the first test and any tests after do nothing. When it doesn't work, no errors are reported whatsoever.
I got this problem, that if i load a movie by ckliking on a button it doesnt work but if it is on its owne it works just fine...
[URL]
button code
PHP Code:
on(release){ if(cont_loaded = !cont_loaded){ _root.insis.loadMovie("tutsisu.swf"); }else{ _root.insis.unloadMovie(); } }
movie code
PHP Code:
on(change){if ( this.selectedItem.label == "tut1" ){loadText = new LoadVars();loadText.load("sisu.txt");loadText.onLoad = function() {_root.scroller.text = this.sisutext;}; }else if ( this.selectedItem.label == "web" ){getURL("http://www.kirupa.com","_blank");}}
I wonder why the following code doesnt work using _level1.unloadMovie() nor even unloadMovie(_level1);[code]
I could be doing something wrong but I cud not figure it out so I created an empty movie clip on the level where I want to remove the movie.
I'm trying to create a "for" loop to load thumbs into existing movie clips using the following code:[code]This should load thumbs 9-17. The trace shows the variable is incrementing but I'm not getting the thumbs to load.
View 2 Repliesim having troubles unloading a swf file that is 2 levels above my main movie. Basically I have a main movie and I have actionscript on the timeline which corresponds to a button which loads a swf (eg my web portfolio work):
digitalbut.onRelease = function() {disableBtns();_root.createEmptyMovieClip("container",1);loadMovie("Digital/Digital_2.swf","container");container._x = -22 ;container._y = 40 ;
This all works....Then in this swf I have another button which again loads another swf on top to show a particular piece of work and the code on the timeline to correspond to the button is:
[Code]....
This works also....but I come into problems when I want to create a button in this third swf file which then closes this Dior.swf so you are left with the bottom two still showing. I already have a close button on the Digital.swf which works a charm to get you back to the main movie and the code for this is:
[Code]....
I created a graphic on one layer in my timeline in FLASH CS4 and then added a new layer above it with text to create a zoom out effect. When I click Control>Play the movie plays fine with the text zooming out as it is supposed to but when I click Control>Test Movie the movie shows white with the text constantly visible and the graphic flickering on (visible) and off (not visible) so fast that it's barely visible.
View 3 RepliesI have am trying to make a pre-loader I guess you would call it for a flash movie with a MP3 embedded in it.The total size of the flash movie is 4MB.Below is what I have in frame 1 actionscript:
stop();
this.loaderInfo.addEventListener(ProgressEvent.PROGRESS, Loading);
this.loaderInfo.addEventListener(Event.COMPLETE, FinishedLoading);[code]....
Instead of 10%, 20%, 30%, ......and so on, I get just one dot, then another, then another, .....Once the reach four, the dots disappear and it starts all over again.Until the movie is loaded.
I have 4 swfs that I have exported from flash, all containing clickable links. By themselves, the links work just fine. However, I have a "Main" movie that I am trying to import the 4 swf files into. They import fine and I have no problems except that when I test/export the movie the links in the original swf files no longer work.
View 2 RepliesSo I've been having an issue with a SWF not work on a page and this is what I can seem to come up with after hours of messing with Dreamweaver and Flash trying to understand why it won't work. When i test the movie from the working Flash file, it works no problem.Something is going wrong when I export or publish the movie and it no longer works. Is this something that happens? .this site needs to go up in the next day or so and the SWF was working and then stopped working and I'm honestly not a Flash gal so I really have no business messing with it, but it was a specific request.
View 5 RepliesMy plan is to initiate part of a movie clip on mouseDown and complete it only when mouseUp has been initiated. This is for a drag and drop onto a UI element that appears only when mouse down is initiated.
I have managed to do this with the following AS2 on the first frame on the timeline:
stop();
slide_mc.stop();
button_btn.onPress = function() {
slide_mc.gotoAndPlay(1);
[Code]....
This works well for the first time, but after that it does not recognise my mouseDown, only my mouseUp.
I need to create an application where a number of buttons keep scrolling horizontally. For that I created a movie clip. In that I create a number of buttons. They scroll on click of a button. My problem is I changed the color of the button in the over state. But while testing the movie, the button color is not changing. I thought that the problem was due to the fact that the buttons are in the movie clip.
View 1 RepliesIm trying to use a Flv video effect like a movie clip in As3...
I want this Flv effect to work like my background on my WebSite... i already imported the flv and convert it to a movieclip... but i dont dont the code to make it work like my background always in loop.. and when i enter a certain frame...
Ive got my main menu inside a movie but i cant get the buttons to work in 'scene 1' the AS is in scene 1.
ActionScript Code:
stop();
menuMovie_mc.contact_btn.addEventListener(MouseEvent.CLICK, onButton1Click);
[code]....
OUTPUT
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at index_fla::MainTimeline/frame25()
I'm doing a little project where I have a movie clip with 2 frames, the second frame has a video in it that's a movie clip, I have a on(release) on the movie clip, but it's not doing anything when I click is the outer movie clip stealing clicks from the one inside or something? oh, also the outer movie clip is being used as a button as well because it zooms in or out when you click it, so that might be another problem
View 4 Repliesim having troubles unloading a swf file that is 2 levels above my main movie. Basically I have a main movie and I have actionscript on the timeline which corresponds to a button which loads a swf (eg my web portfolio work):
[Code]...
Then in this swf I have another button which again loads another swf on top to show a particular piece of work and the code on the timeline to correspond to the button is:
[Code]...
I have a rectange shape 'wty' that scales up in the y direction, and a movie clip 'wave_mc' that I am trying to keep on top of the rectange as it scales up. The rectangle scales properly but the movie clip is not moving in the y direction. The movie clip 'waves_mc' moves from 0 to -160. Here is the code I wrote for the preloader
[Code]...
I have a problem trying to get a button to go back to the start of the a main movie. I have added the button(see below) into the main movie which is only one frame and contains a quiz movie. I want the start button to be visible in the quiz movie (which happens ok) but want it to link back to the main movie when clicked. The link is not working and no errors are showing.
ActionScript Code:
import fl.controls.Button;
var startTextFormat:TextFormat = new TextFormat();
startTextFormat.bold = false;
[code]....
I have an embedded flash movie that runs an AS function that runs a javascript function on the html page when you push a button. However, it only works in Firefox, Safari and Chrome. Is there a workaround for IE 6 & 7?
My javascript is:
Code:
Select all<script>
navArray = new Array();
navArray["home"] = "../index.aspx";
navArray["about"] = "../about.aspx";
navArray["contact"] = "../contact.aspx";
[Code] .....
My actionscript is:
Code: Select allimport flash.external.ExternalInterface;
function homeLink(e:MouseEvent){
ExternalInterface.call('navigate', 'home');
ExternalInterface.call('window.close()');
}