ActionScript 3.0 :: Position Of External Sound In External Swf?
Jul 23, 2010
In trying to activate the remainder of the pause button, I find that using MovieClip(loader.content).channel.position always returns 0. I've tried numerous other combinations to access the position of the sound for the play function to resume correctly. The visual part of extswf.swf stops and starts exactly as it should.
In CntlClass:
public var loader:Loader;
public var movie_mc:MovieClip;
public var soundResume:int = 0;[code].........
View 2 Replies
Similar Posts:
Jul 19, 2010
I am working on controls for an external swf. The external swf loads an external sound file. The structure at the moment is extswf.swf contains mcSound which loads soundfile.mp3. extswf.swf automatically starts playing when invoked. movieController contains the icons for the play/pause buttons. This is assigned CntlClass. CntlClass loads extswf.swf and controls the play and pause buttons.
So far, the play and pause buttons stop and start and stop the movie but not the sound. I know I need to access the sound channel from the external swf and use the sound transform to change the volume. How to access that channel is unknown. The examples I find have imbedded sound files. Also, the examples seem to use the main class for the external swf. My external swf doesn't have a class file, so I have no idea what the main class would be.
View 5 Replies
Nov 19, 2010
I have been having major trouble using embedded FLV's as anyone who has read [url]...
I have tried using externalk FLV files instead. They are only small, basically they are a persons animated face with some talking.
I do not require a player so have selected none, which is fine. I have had to move them and use the freetransform tool to get some of them to fit in the right palces perfectly.
However, when I publish the movie the FLV's are in different places to where they appear in the fla?
View 2 Replies
Feb 27, 2010
I have downloaded a flash movie from flashkit tutorial and now I want that movie to load in another movie but either its not loading properly or its not positioning properly.
[Code]...
View 1 Replies
Jul 19, 2010
I have an external swf that im loading onto my main.fla but it loads into the bottom right corner of the stage and i would prefer it on the stage.
This is the code i am using in the subMenu movieclip which contains all the buttons to call external movieclips:
[Code]...
View 4 Replies
Mar 24, 2011
i have a peice of code to load two external swf files, the problem is that both the files load in to different positions i have a position x,y snippet but the probelm is for that to work i need for both external movies to load in to the same place, is there a way that i can define which movie i want to position.?
ActionScript Code:
var fl_Loader:Loader = new Loader();
addChild(fl_Loader);
[code]...
View 1 Replies
Apr 9, 2009
I have an external swf loading on a button and it appears at the bottom right corner of my main, this is a problem cuz its about the same size as my main and so its cut off the screen. Is there a way to position the X and Y coords when it loads?
View 1 Replies
May 18, 2010
I'm using a Loader component to load and external swf which dynamically loads external jpegs (it's a photo gallery). When I test the movie locally all looks well with the external swf positioned exactly where I put it on the main stage. However, once loaded to my web host the external swf is bumped downward about 150 px.
View 1 Replies
Sep 26, 2009
I am trying to load an external swf at a specific x& y pos. from a button. This is the code I am using :
on (release) {gotoAndPlay(4);loadMovie("gallery.swf",1); xpos="7", ypos="119";
}
The movie loads fine if I remove xpos="7", ypos="119";How do I get it to load at that specific position?
View 3 Replies
May 18, 2010
I want to load that SWF file in the center of the screen.
I got "loader(the variable that loads external SWF file)" and I don't know how to assign the X and Y position of that loader in the center of the screen.
here is my code.....
ActionScript Code:
var myStage:Stage = this.stage;
myStage.scaleMode = StageScaleMode.NO_SCALE;
myStage.align = StageAlign.TOP_LEFT;
[Code]....
View 0 Replies
Jan 6, 2011
I am making a liquid flash site with a video player which loads within the central movieclip. When the site loads everything sits in place perfectly, however if the browser is rescaled in anyway the external swf pushes up to the top of the screen and stays there permanently. This is the link to the site:http:[url]...... It's not the liquid layout code for the mc as this rescales fine, just the external swf doesn't. This is the code I am using to load the external swf also:
var Xpos:Number = 0.5;
var Ypos:Number = 0.5;
var swf:MovieClip;[code].....
View 2 Replies
Feb 2, 2011
[URL]while in "portfolio" section, if you resize, the content go to the left.I know WHY it does it : while in a MC, an external movieclip lose his stagesize to compress into the movieclip, if resize, it use the size of ALL the content in the SWF to resize. the external fla stage is 1600 x 680, but the content goes out of the stage to the right to make an 1760 x 680 size.to make it LOAD at the right place and right size, i've got a layer with a MC (externalStageSize) in the external SWF that is the size of the Stage, while on frame 1, only this MC(externalStageSize) is active, so when loaded, the _level0 flash can position and scale the external SWF.
BUT, while active content is on, any live resize does not go well..I tried to "connect" the scaling with (externalStageSize) BUT once loaded the size does not change.I wanted to use the math : "new width" = ("allcontent".width / externalStageSize._width)/Stage.width but _level0.ContentMC.externalStageSize._width return the value it have in the flash... like, even if rescale, it will say "1600" is there a way to counter this ? before you ask : AS3 was out of the question because the person who will maintain the site is not that advanced.
some script used when resize :
ContenuMC : the movieclip in witch external swf is loaded
Code:
function setContent() {
// content dimensions
ContenuMC._width = Stage.width;
[code]....
View 1 Replies
May 13, 2010
when i load external swf inside main swf through loadClip then sound of external swf does not play.
View 3 Replies
Apr 14, 2010
I'm trying to get a swf file to play in a main swf file. I can get it to play, but it always appears in the top left corner. I've tried several different methods to position it but every one of them either doesn't work or won't play the file.Here's what I'm using right now.
Actionscript Code:
stop();loadMovieNum("circles.swf", 1);var xset = 381;var yset = 179;
The swf plays just fine, but it won't take the coordinates.I also need to get it to stop when I go back and the command
Actionscript Code:
unloadMovieNum(circles.swf);
doesn't work.A tutor in my class showed me a method to place the swf into a box on the main stage without doing a lot of scripting, just putting in some file-name and size/position references, but he's not available right now to ask how he got that started.
View 5 Replies
Oct 7, 2009
I have a flash script which creates instances of movie clips and stores them in an array. What I want the script to perform next, is when clicking a "save" button the position and the movieclip class name of each created instance will be sent to an external script to store.
View 6 Replies
Jan 3, 2011
figure this out I am using this code inside my nav movieclip to load external movie clips on the main stage
Code:
var Xpos:Number = 110;
var Ypos:Number = 180;
[code].......
View 3 Replies
Mar 3, 2008
I have one movie clip that when clicked on moves to the left of the screen, after it gets there I want another and exteral swf to load. But I dont know how to get the external clip to load after the movie clip gets to the left side of the screen....Here is what I got so far..
square_mc.onRelease = function()
{ square_mc._x = 30;
square_mc._y = 180;
[code]....
when square_mc get to the Y position of 180, run the external clip.
View 5 Replies
Oct 11, 2010
I have created a Flash container movie (mainContainer.swf) that cycles through an array loading in several external swf files (animation1.swf, animation2.swf, animation3.swf, etc.). Once the user clicks the next button, the next swf is loaded, and so on...
What I need to be able to do, is to control the sound of the external swf files from the main container. Specifically, I need to be able to pause and play/resume the sound of the external swfs, but not quite sure how to access the external swf's soundChannel from the main container swf. My client recently wanted to add in a "pause" feature, and while I have been able to pause the external swf's animation, I cannot target the external swf's sound - it just continues playing while external animation is paused.
I can successfully pause/resume the sound (song.mp3) if the soundChannel is defined from within the same swf (using code below); however, I cannot seem to figure out how to communicate between the parent and child swf, if the parent is requesting the pause action, and the child swf is the one that loads in the song.
[Code]...
View 4 Replies
Aug 26, 2010
I'm trying to set a volume to my external sound. I'm using the following code, there're no errors, but the volume is not affected...
var req:URLRequest = new URLRequest("squeeak3.mp3");var sound:Sound = new Sound();var controller:SoundChannel = new SoundChannel();var myTransform = new SoundTransform();myTransform.volume = 0.2;controller.soundTransform = myTransform;
View 3 Replies
Jan 11, 2011
I'm trynig to control an sound of a external SWF but I can't seem to get it right,here is the code i'm using to import the sound
mport flash.media.Sound;import flash.net.URLRequest;import flash.display.Sprite;import flash.media.SoundChannel;import flash.events.Event;import flash.events.MouseEvent;var _som1:Sound;var _channel1:SoundChannel;var _playing1:Boolean = false;var[code]...
View 16 Replies
Feb 3, 2009
I wrot a FLA in AS3 which is basicaly a nicly designed Loader which loads little cute SWF games. Each game is built a bit differently and has its own 'thing'.I was wondering, how can I control the sound of the SWF's from the Loader File?
Which leads me to a wider issue of how can I control variables of a loaded SWF.
View 0 Replies
Jun 17, 2009
Urgent help me load a external sound in action script
View 0 Replies
Nov 11, 2010
I am trying to control external swf sound and I have created volume slider. But when I am running the code I am getting following error..
ArgumentError: Error #2068: Invalid sound.
at flash.media::Sound/play()
at volumeControl_fla::MainTimeline/volumeControl_fla::frame1()
[Code]....
i.e. when I load theexternal swf..how to catch the sound embedded in that swf
View 5 Replies
Jan 10, 2011
I'm making an application and I can't seem to find a way to control my sound of an external SWF(SWF2) from the main one(SWF1).Here is the code I'm using to control the timeline of external SWF that is placed inside of the main movie
Code:
var loadAnimBox:Loader = new Loader();
var vid_mc:MovieClip;
function startLoading():void {
[code]....
View 2 Replies
Feb 1, 2009
I'm using external swf in a project, and I got one swf with startup audio play, I can't stop the sound to play when I load another swf via this code :
Code:
clearButtons();
TweenLite.to(m.target, 0.5, {tint:0xcc0000});
m.target.mouseEnabled = false;
[Code]....
View 4 Replies
Oct 7, 2010
I have created a Flash container that cycles through an array loading in several external swf files. What I need to be able to do, is to control the sound of the external swfs from the main container. I would like to be able to pause and play/resume the sound of the external swfs, but not quite sure how to accomplish this, as I am newly migrating to AS3. Some of the sound is embedded in the external files, while others load it in via AS.
I was able to successfully pause/resume the animation of the external files, but cannot get the sound to pause - it just continues playing while the animation is stopped.
How can I pause and resume the sound of my external swfs from my main container?
View 6 Replies
Apr 4, 2005
i am trying to control sound on an external swf.
the sounds that i have is on a swf file that has my "container" MC that loads up all of my external swfs.
the sound controller is on my external swfs.
View 1 Replies
Aug 18, 2009
I have a Loader that loads external SWF. The external SWF has sound. I'd like to stop, pause and play the sound.
[Code]...
This only mute the sound only and the sound is still runnung.
View 4 Replies
Feb 26, 2011
Is there any simple way you can access a very short sound file in flash without having to play it in an flv player. its just a ding sound to play when the user hits a button in the presentation.Also is it possible to access an external pic file and then convert it in to a symbol to be used within my presentation.I just don't want to store these files to keep my main swf small.
View 3 Replies
May 3, 2011
I am pretty dense about flash, pretty new to the software so bare with me. So on the main .fla i have linked to a button to open the external swf mp3 player. That Mp3 player is streaming a song with the code var req:URLRequest = new URLRequest("mysong.mp3"); snd.load(req);
the mp3 is in a folder which is located in the same place as both the .fla and .swf mp3 player. Streaming the mp3 works when testing the swf. but there is no sound when testing the linked swf mp3 player in the main .fla. It's like the file path messes up but i dont know how to go about fixing it?
View 7 Replies