ActionScript 2.0 :: Control External Loaded Swf Sound (on Timeline) Properties?
Feb 13, 2009Is it possible that we can control external loaded swf sound (on timeline) properties.
E.g:
duration
position
onComplete....etc?
Is it possible that we can control external loaded swf sound (on timeline) properties.
E.g:
duration
position
onComplete....etc?
I have a swf that gets XML of a location of another swf and loads it. It then casts the loader's content as a movie clip and adds it to the stage. I have that working fine, but how can I control the timeline of the loaded swf?
View 4 RepliesI've got a main flash index file (fla_main.swf) which acts as a header/menu that concurrent pulls in external movies (ie, content pages) when sections are selected. There's no problem with that at all, but I do have a soundtrack control panel that is an external mov loaded in (soundctrl01.swf). There's 3 music tracks and options to stop, start, next track etc. All the usual stuff, vars loaded by "loop01.new Sound();" etc and played/stopped with the var instances. Anyway, the mov starts with loop01 playing and then allows the option to skip etc, working fine on publishing but when the fla_main loads it in theres no sound on any loops. Is this an issue with loading sound vars and external movies?
View 5 Repliespossible to control the volume (and other properties) of a sound that has been generated with Actionscript using the SoundTransform object.I've got the code below generating a sound, but modifying the soundTransform of the _channel object does nothing. I can multiply the amplitude variables by a number 0-1 to change the volume, but I would much rather use the soundTransform object if possible.
Code:
_sound.addEventListener(SampleDataEvent.SAMPLE_DATA, onSineWaveGenerate, false, 0, true);
_channel = _sound.play();
[code].....
I have an application with a collection of sounds in the timeline. One sound file is recorded at a slightly lower volume than the others. I know I could change this in Audacity but I'm wondering whether I could attach a line of actionscript to its button to raise its volume slightly.I know its possible to do this when playing sounds with actionscript directly from the library, but that would be too big a departure from the development style used.
View 1 RepliesI have sound on the timeline.
Also I have the following buttontns[code]...
I have a timeline with a sound in it set to sync because I am scrubbing the main timeline.... I now want to control the volume of the sound in the timeline..is that possible in AS3??
sometime like : var my_globalSound:Sound = new Sound(stage); that of course doesn't work, but how would I get access to the sound set in the timeline...
However, is there a way to control the volume of a timeline sound?
View 7 RepliesI have a few sounds on my main timeline for syncing to an animation. Does anyone know what code I would use to mute the sound on the main timeline?
FYI...I will not be using linking from the library for this project, the sound WILL be on the main timeline.
Here is some code which does nothing and traces undefined...so as you can see...I'm not sure where to go with this. I've placed a mute button in my file, but I need help on knowing how to control the audio.[code]...
if i instantiate an object and say: myObj.visible = false;
is this the same if i say from my objects timeline (external as) this.visible = false ?
I have two swf files. I use as3 on the main timeline of a.swf which successfully loads and inserts b.swf onto the stage (b.swf has a stop on fame 1):
[Code]...
My goal it to get the myButton click to play frame 2 of the recently loaded b.swf - but that's not happening.What am I doing wrong?
My english is not too stron, but i'll try to explain my problem...I've got 2 swf's, first is main, second is loaded to he first(flv player) throught the command "loadMovie("player.swf", myPlayer)".In the second swf there are such code:
vol.onRelease = function() {
vol.bar._width = _root.myPlayer.vol._xmouse;
sound.setVolume(_root.myPlayer.vol._xmouse/vol._width * 100);
[code].....
I have a swf that loads an external swf. I want the external swf, (the one that was just loaded), to interact with the timeline of the swf that just loaded it. I've been trying MovieClip(root). or MovieClip(parent). but they give me errors. How should I use as3 in the external swf so that it interacts correctly with the parent?
View 3 RepliesI'm using a textfield for debug information.I'm loading an swf on the main timeline and I'm showing the status in the debug textfield.[code]I'm loading a png file in the loaded swf. , I'm trying to show the status of the png file as I showed the status of the swf.[code]I can't control the main swf from inside the loaded swf. Even gotoAndStop or calling a function doesn't work.Do I need to add something when I load the swf, saying it's a MovieClip or something?URL...
View 3 Repliesi have a simple swf called site.swf that loads a menu with UILoader called menu.swf, from menu i'm able to navigateToURL but i also need that it goes to frame 50 in menu.swf..
View 2 RepliesI am trying to load multiple swfs (one at a time) using one loader and pause/play the loaded swfs using a button. I have gotten the swfs to pause/play, but all except for one will delete itself upon resuming. I made the loaded swfs in Captivate. Each Captivate swf is made up of multiple Flash swfs, each on its own slide. When the swfs delete, they only delete the currently playing slide's swf and then the next slide's swf will appear and play when the timeline advances to it (but will also delete if paused/resumed), but the playbar will show that the swf has been successfully paused and restarted and will continue along with no swf showing.
Here is a short version of my code (becuase the original has 8 swfs to choose from):
function(){return A.apply(null,[this].concat($A(arguments)))}//HERE STARTS THE ATTACHMENT BUTTONS REFERENCING FROM THE mainMC
var ansaldoButton:DisplayObject =
[Code].....
I have a set of SWFs loaded, and have successfully added them to the stage, and can assign basic methods ( gotoAndPlay(), stop() etc..) based on MouseEvents. I can't quite figure out, however, how to assign methods based on frame number or label, triggered by labels on the currently playing SWF timeline. So, for example: externally loaded swf starts playing, and a listener is set up to listen for a "stop" label, which would activate stop();I can obviously just drop a stop(); in the timeline of the loaded swf, but I am really trying to banish all code from timelines, period.
I could set up a frame-based listener to decide if a label exists at the current frame, and then to evaluate if that frame label == "stop"... but that seems pretty messy, and because it has to run at every frame, CPU heavy...So - the question is really about listeners, I guess. What event would I listen for? Something like a MouseEvent - but ... a LabelEvent instead Obviously - this doesn't exist, but something like it would be perfect. tions scattered here and there isn't that big of a deal
I was trying to get two swfs loaded into a main swf to control each others timelines. This is what I've tried out:
Code:
Select allpackage{
import flash.display.MovieClip;
import flash.display.Loader;
import flash.events.*;
import flash.net.URLRequest;
import fl.transitions.easing.*;
import caurina.transitions.Tweener;
public class LoadTest extends MovieClip{
[Code] .....
I have a loadMovie function in my timeline that is loading a external swf file. I want a button to control the tim line of the swf file that is loading externally.I know this is wrong, but kind show what i want to do:
Code:
loadMovie("g2.swf", empty_mc)
//button
[code].....
I need to contro the timeline of an external swf that i'm loading in a movieclip that is in the main timeline.I have a button inside a MC that is on the Main swf that button has to say to the external swf something like "gotoAndStop(5)" i tried a lot of thinks but nothing works the last think i tried was this.[code]
View 2 RepliesI have a loadMovie function in my timeline that is loading a external swf file. I want a button to control the tim line of the swf file that is loading externally. I know this is wrong, but kind show what i want to do:
[Code]....
I am still wrapping my head around AS3 and have been building out functionality that loads external images (PNG) from XML and putting them into MovieClips that have interactive events assigned.[code]What I'm trying to do is smooth the images when they are loaded and then adding them to the container "imageClick". What is happening is that the "image" is returning null. A lot of the code above is snippets I've been finding and I guess I'm confused with how some of these things work together.If I remove all the "image" functionality and change the line:[code]The images load fine and show up, but they aren't smooth when scaled.I guess what I'm asking, is how come my "image" object is returning null every time?
View 2 RepliesIf you load an external swf and after it is totally loaded give it as to change size properties. the file jumps from his size exactly to the pretended.
View 1 RepliesIf you load an external swf and after it is totally loaded give it as to change size properties. the file jumps from his size exactly to the pretended. How do one give code to do this in a progressive way.
View 1 RepliesI 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
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.
this is the scenario:main class loads a lot of SWF, each with a timeline streaming sound (need this way for sync with animation) I need to access swf-sound peaks to control volume of a main class dynamic loaded mp3.
all loaded swf are added to main swf as "Page" class that extends MovieClip
How can i access sound channel of loaded swf ?
I'm working on a as3 player which loads swf like videos/chapters, inside them I have images and a level where a sound starts to play at frame 1.I'm trying to stopping the sound of the loaded swf when I change it with a previous or later loaded file but nothing seem to work.[code]the timeline sound works without notice the SoundMixer method.
View 2 RepliesI have a basic xml driven portfolio. The xml file holds the path to the portfolio pieces (external .swfs). I have a main navigation that moves from project to project and a subnavigation to view individual pages of that project.The subnav is where I have the problem, I simply want to call gotoAndPlay("framelabel") of the designated mc. It seems that you can no longer call to the timeline of child movieclips as you could with AS 2. I've found some examples Except the examples discuss access of nested movieclips on the stage with assigned instance names. But the problem I'm facing is that I have each item pulled in via the loader Class then the objects are pushed into an array and my subnav needs to access them dynamically via array notation.something like this:
PHP Code:
public function loadMe(){
//var l:Loader = new Loader();
[code].....
i have a UILoader that loads an image from an xml list when you click its thumbnail ( in its thumbnails mc on mainstage aswell) thing is, i have another UILoader on the layer above that loads in a swf ( a slideshow that fades in and out the pictures when they change to the next, with all the coding on frame 1, frame 2 only has a stop and some code for when the mouse is idle for 5 secs it goes back to frame 1) so when you go to "portraits" it takes you to frame "x" where the slideshow ( loaded external swf ) starts playing automaticly right, if i click any thumbnail the slideshow goes to frame 2 ( wich is perfect and the mouse idle thing i wanted works great ) the ONLY THING IS
after the slideshow runs by default for the first time ( i enter the category portraits ) and i click any thumbnail ( moving slideshow swf to frame 2 enabling mouse idle event ) and the mouse is idle ( so it does the event and starts playing the slideshow again ( goes back to frame 1 ) ) I CANT MAKE THE UILOADER OF THE THUMBS IMAGE TO DISSAPPEAR!