ActionScript 2.0 :: Dynamically Importing Audio From Folder And Controlling It In Swf
Mar 24, 2010
How can I get this flash file to import this audio file and be able to pause and reset the audio?The file I have I was able to get it to play but I can not pause it, it just re-sets it.I also can not figure out how to get a progress bar to match the audios progress.Has anyone done this befor or have a fla with code I can look at and revers enginere? URL...
View 2 Replies
Similar Posts:
Feb 22, 2011
I made this flash CS3 project using Actionscript 2.0 I want to import some images in a folder to stage. The images are named 1.jpg, 2.jpg, 3.jpg etc.. All these images are 600px in width. I used a movieclip as a container for these images.
[Code]....
When i run this code, only the last image is loaded. since i used Actionscript Code:
i<3 in the for loop, only the 3rd image is loaded. its in the right place. (_x = 1800). The first and second images are not loaded...
View 3 Replies
Mar 26, 2011
I currently use actionscript 2 and the package Tweener to perform many of my animations etc. Essentially its a class for tweening items with code.
So it all works fine when my folder structure is like this:
- Myflash.fla
- Myswf.swf
- Folder called caurina which holds all of the Tweener classes.
And in my fla file I import the Tweener classes by calling the following lines of actionscript 2:
import caurina.transitions.*;
import caurina.transitions.properties.ColorShortcuts;
import caurina.transitions.properties.DisplayShortcuts;
import caurina.transitions.properties.FilterShortcuts;
[Code]....
View 0 Replies
Jul 28, 2010
Right now in my 3D work folder I have a long list of demos and benchmarks all importing classes from my rumblesushi3D folder (package rumblesushi3D), which contains my entire 3D engine.
It's too long and cluttered, and now that I'm about to start work on my first game, I'd like to put all my publishable work into folders - such as demos, benchmarks, then a folder per game.
The files in these new folders now need to import classes from the same 3D engine that's now in the previous directory (rumblesushi3D).
The only alternative is to place a copy of my 3D engine folder in each folder, which I obviously don't want to do.
Say for example, you have a FLASH_WORK folder, in this folder there is a com folder with all the classes you use. All the document classes of your work are in FLASH_WORK, so the same folder depth as com obviously, and are not assigned a specific package.
If you put all these document classes into a folder called archive (created in FLASH_WORK) for example, is there any way to import the classes from the same com folder, now at a previous depth, without renaming ALL the classes in com to [URL]etc etc ?
View 7 Replies
Nov 23, 2010
I have imported video using Flash 8 and am streaming it from my server.
I am trying to incorporate a play/pause button into the center of the movie clip, however, am having trouble controlling this streamed video.
View 1 Replies
Apr 18, 2011
I'm having a lot of trouble determining the cause of this problem... I have an uncompressed .wav file, and when I attempt to import the file into Flash Professional CS5, something... happens to it. The audio quality is reduced somewhat, but more importantly, the pitch drops at least an octave! I have checked to make sure the file is correct. I tried messing with the Sound Properties window for that in the library. I tried re-importing the sound normally, and using the Sound Properties box to do the same. No matter what I do, I can't get Flash to maintain the sound of the original file.
View 1 Replies
Mar 29, 2010
I am trying to import an audio file into Flash, but do not know what file extentions it recognizes. The file is .m4a that was created in iTunes. I can see how Flash would not recignize it, so what does Flash recognize, and I'll see if I can convert the file.
View 2 Replies
Jan 23, 2009
I have several flash swf's that are about 10 - 20 min. each. I load these in a player that I have created as the user selects them from a menu in the main swf (a swf player basically). I can pause start and stop the swf's with no problem, but I can't seem to get a handle on controlling the audio. I have the audio in the loaded swf's timelines because I need to sync the audio with the animation taking place in those swfs. I could, take the audio out of the timeline (after syncing it), and then load it separately, but it would be much cleaner for me to just have it in the timeline.
I've resorted to the SoundMixer of the main swf to mute and change the volume, but I can't get hold of the Sound(), soundTransforms etc. of the loaded swf. To assign a play location for the soundChannel I need to access the loaded swf's Sound().Play() function, but I can't seem to do that. I have exported the timeline audio in it's actionscript, supplied a name (same as it's class name), and then tried to access it, but I can't seem to do it (yes I wrap the loaded.content variable in a MovieClip cast--that's how I can control the pause and play of the animation). Tutorials I have found only seem to work with sounds loaded into variables, and none refer accessing timeline sounds in a loaded swf.
View 5 Replies
Feb 1, 2010
I've a number of audio files and six menu items in my presentation.respond with instruction on how to stop the currently running audio when a new menu item is clicked (launching a new audio file)?
View 2 Replies
Apr 7, 2009
I'm working on a flash project consisting of 25 separate .swf file. each file has a audio narrative in it which is controlled by "play", "stop" button.the way my project works now is every time you unload a current .swf and load a new one, you have to press "play" to turn on the audio narrative. since there are 25 narratives in total, you can see how annoying having to press "play" every time you load a new movie would get.
what I am trying to do is add a global audio control in first "index" movie which would allow a user to globally turn the audio narrative "on" or "off".so for example, if they like to hear the narrative, they can turn audio on and have the audio start automatically each time a new .swf loads. if they choose to turn the audio "off", then the audio should not come on automatically.as a added twist to this, I would like to give my user an additional control over the audio by allowing them to use the "play", "stop" buttons within each of the .swf files.
View 5 Replies
Aug 19, 2010
I am trying to control the audio of an embedded video from a mute button. I can get the audio to play and the mute button to control the volume using the following script:
var my_nc:NetConnection=new NetConnection();
my_nc.connect(null);
var my_ns:NetStream=new NetStream(my_nc);
[code]....
The problem I am having with this is that the video is not appearing on the stage and when I place it on the stage the audio is playing twice. how I can get it to appear on the stage and still control the sound as the button is doing at the moment?
View 1 Replies
Jan 22, 2009
i need to ctrl the audio of a video clip, but im not sure how to do itwhat actionscript do i needi imagine i would need something like_root.video_movieclip.soundlevels = 100%
View 2 Replies
Jan 26, 2010
I've designed a website for a client and it's completed but she's complaining that the music on the website is too loud. I made a button so you can turn the sound on and off, but i have no clue how to make a volume button for an external audio clip and i haven't found a single tutorial on the internet that can help me with this specific issue. Can someone help me with this and give me a step by step instruction, including any code i need.
View 1 Replies
Jul 29, 2010
So I'm trying to get sound on my flex application. Then tried to load an swf movie with only audio in it.But when it loads on init(), it loops non-stop.Here's a sample code:
[Code]...
View 1 Replies
Sep 2, 2009
I want to create a folder structure through Flex or AIR... is it possible? I mean the Flex or AIR will receive the inputs on what the folders and file names will be and when i press create, it should create a directory structure...
It is possible in PHP through fileSystem, but i am not sure whether it is possible in FLex or AIR....
View 1 Replies
Sep 4, 2011
I want to know if it is possible to use javascript, flash or flex to make a youtube video player that is capable of controlling left/right audio channel volume. For example, mute the left channel and play right channel audio on both left/right speakers.
View 1 Replies
May 14, 2008
I wanted to load image from a folder. I wanted to load the last 30 images to the stage. How can I do it?
ActionScript Code:
var l:Loader;
var r:URLRequest;
var loc:String = 'cards/card%.png';
function loadCardNum(n:int):void {
l = new Loader();
r = new URLRequest(loc.replace('%',n));
trace("Will load card from: "+loc.replace('%',n));
Currently the code I'm using can only load picture with the file name starting from 0. And it will stop loading the image if there is any image missing between the 30 images. How can I make it load from the last 30 images uploaded and enable to continue load in the images if there is any image missing in between? I have the limit of 30 set on somewhere else. Where it will stop loading after it reached 30.
View 1 Replies
Oct 18, 2004
Hello again. Well I dont have too long to write this down so I'll make it short and sweet. Heres the problem.I need to load pictures into a file. However I want it to load all the pictures in a certain folder. Does anyone have any suggestions, or questions as to what i am trying to do? I want to load pictures into the movie at runtime. And I want it to load all the picture within a folder. I could name the pictures in a certain way if needed. aka pic1, pic2.
View 2 Replies
Oct 8, 2005
i am trying to dynamically load the contents of a folder (containing swf`s) into a flash movie and order them into a list based on there file names.
View 4 Replies
Apr 12, 2007
i'm making an application in flash and my client simply wont agree to anything but this. the application should be able to load fonts dynamically from a folder. it could be on the server. i'm prepared to use php if its necessary.
the tool is supposed to give the end user a wide range of choices for fonts for the text he enters.
View 11 Replies
Jul 31, 2009
I'm working on an image gallery in Flash that plays a slideshow of different images I have on my hard drive. I've got the basics of it working, but I'm still stuck on something. If my images are in the same folder as the Flash project file or a sub-folder of it, then it works fine. However, I can't figure out how to load images from some other folder. In my case, the Flash project is located at "~/Programming/Flash/Projects/slideshow/" and the images I want to load are at "~/Pictures/Gallery/". Using a normal path didn't work so I figured I could access them with a file:// path, but that doesn't work either gives me "Error #2035: URL Not Found"). Is there a specific way you have to format the file path in Flash, or is it just not possible?
View 3 Replies
Nov 17, 2010
I have a flash file in folder "/" which loads another flash file in folder "/xyz/". The second flash file will load several resource files on its own. Now flash is looking for the resource files at the base folder "/" and instead of the other loaded flash's folder "/xyz/". The second loaded flash file is provided by a third party and can't be modified. Is there any way to dynamically change the base folder of the "application" at run-time? I've heard about the html swf tag "BASE" so I've tried loading the second flash file with a ".....?BASE=/xyz/" but it doesn't work.
View 0 Replies
Mar 18, 2011
Code:
// Array of external clips to use. Variable index refers to next clip to be displayed.
var clips:Array = ["clips/clip0.swf", "clips/clip1.swf", "clips/clip2.swf", "clips/clip3.swf"];
[Code]....
I am hoping to modify it so I don't have to "hard-code" the "folder/filename.swf" into the var clips:Array line...that way anyone can upload swfs into the "clips" folder and thisLoader will take care of the rest...
View 1 Replies
Sep 18, 2006
I'm trying to create a slideshow which loads images dynamically from a folder on my server. The number of images in the folder will change on a daily basis, so I'm guessing that this needs some kind of array to predetermine the contents of the folder. The files will not have a regimented naming structure.
Basically, I need to display all of the images in the folder one by one and then loop back to the start.
Has anyone managed to do this before?
View 1 Replies
Apr 10, 2007
I need to create a tool which allows the users to apply a wide range of fonts to their text. The fonts may or may not be present on the user's system. I know how to embed fonts, but the problem is that I will have to import every font to my library and set their linkage properties. that will get very cumbersome. Instead, is there any way to dynamically load fonts from a folder on the server into the flash file? Or is there a better way to achieve what i need?
View 4 Replies
Feb 20, 2009
I am new to Flash and ActionScript 3.0. This code (which I think is the code to import an image onto the stage dynamically using AS3 code and convert it to MovieClip, so that I can access mouse_click events on the image present on the stage.) Actually, it is displaying nothing on output and no errors. Will it works good and is the code correct? I am new to AS3.0.
View 1 Replies
Feb 22, 2011
I made this flash CS3 project using Actionscript 2.0
I want to import some images in a folder to stage. The images are named 1.jpg, 2.jpg, 3.jpg etc.. All these images are 600px in width.
I used a movieclip as a container for these images.
Here's the code.for(i=0; i<3; i++){img_scroll.attachMovie("imgbar", "img"+i, _root.getNextHighestDepth());img_scroll["img"+i]._x = i * 600;img_scroll["img"+i]._y = 0;loadMovie(i+1 +".jpg", img_scroll["img"+i]);}
img_scroll is the movieclip that should contain the images. and imgbar is an empty movieclip.
When i run this code, only the last image is loaded. since i used i<3 in the for loop, only the 3rd image is loaded. its in the right place. (_x = 1800). The first and second images are not loaded...
PS: If i use _root.attachMovie, and _root instead of img_scroll everywhere, all the images are loaded perfectly and in place. But i want them to be inside the img_scroll movieclip. Because that will be animating.
View 3 Replies
Jul 24, 2009
I'm trying to write a gallery application in Flash (AS3). It uses a simple XML document to specify a series of images like this:
Code:
<Gallery name="foo">
<Image src="foo/1.jpg" />
<Image src="foo/2.jpg" />
[Code]....
I have a class which parses the XML and displays the images (which sit locally, relative to the .swf file accordiing to the 'src' properties in the XML above) in a UILoader instance. This works great until I move the .swf file somewhere else, as the images aren't part of the compiled file, and obviously it's now looking for them in the wrong place.
I understand that you can use [Embed] to embed assets into your code (this is how I include the XML document), but I can't use it to embed the images. Is there a way I can embed the images in my flash document, and address them using the src values obtained from my XML?
View 9 Replies
Dec 2, 2008
I am making a training video list on a web page. When a training video is clicked, the training video is played by an swf file on a new tab, and at the end of the video, the swf displays a web form to gather some data to be saved in MySQL db. The name of the training video is passed to the swf file as parameter to play the training video dynamically. When loading the training video dynamically in the swf, should I load the training video in the flv format file or swf format? The training video can be produced in swf and flv format. I noticed lots of web sites say that flv should be used. But I think training video in the swf format file size is smaller than the flv size. What is the advantage and disadvantage of loading the training video in flv format and swf format whith all other fators being equal?
View 2 Replies
Jul 13, 2004
Does anyone know if Flash has a limitation on dynamically imported jpegs? I find that maybe 30% (maybe more) of the jpegs I have do not import into Flash (using LoadMovie).I think I read somewhere that you can't import progressive jpegs dynamically. Is that it? Or is there something else?
View 4 Replies