ActionScript 3.0 :: Simply Play Sound Then Load Webpage?

Apr 23, 2009

A rudimentary question from a neophyte. I just want to play some music as part of my swf file and at the end of the song, automatically retrieve a web page. I'm finding a lot of answers for very complex questions, but nothing quite so basic.

View 11 Replies


Similar Posts:


Flash - Create A .swf File That Will Simply Load A Webpage In An IFrame Once Opened?

Sep 26, 2010

what is the code needed to create a simple .swf file that once double-clicked on opens and all it has inside it's window is an iframed website (scrolling and resizing are optional), basically a simple flash mini-browser if you will, with no navigation features of any kind just the ability to click inside and maybe refresh the page...

View 2 Replies

ActionScript 3.0 :: Create A .swf File That Will Simply Load A Webpage In An IFrame Once Opened?

Sep 26, 2010

I simply would like to know is it possible and then what is the code needed to create a simple .swf file that once double-clicked on opens and all it has inside it's window is an iframed website (scrolling and resizing are optional), basically a simple flash mini-browser if you will, with no navigation features of any kind just the ability to click inside and maybe refresh the page...

View 7 Replies

ActionScript 3.0 :: Play MP3 Then Load New Webpage In Same Window?

Jan 13, 2011

I am trying to set it up so that when someone goes to a page on this site, it plays the audio MP3 and then when that MP3 is completed, refreshes the current browser window with the new page. What I have so far in Actionscript 3 is that it works, but loads new page in a new browser window while the MP3 is still playing.Here is the code I have so far, all in a single KeyFrame.

Code:
var url:String = "url2file/preroll.mp3";
var urlRequest2:URLRequest = new URLRequest(url);

[code]........

View 7 Replies

ActionScript 2.0 :: Load 2 Swfs And Play In Sync On Webpage?

Feb 10, 2009

I have two swfs on a web page but need them to start playing at the same time. Problem is that one file size is bigger than the other, so one loads before the other and starts playing earlier.

Is there any code that can make a movie wait until the other one has loaded, then start playing in sync?

View 1 Replies

IDE :: Can't Play/load Sound In CS3?

Jan 28, 2009

trying to make a play/pause toggle button in AS3. I'm a newbie but I've finished the site except for this element. my audio file works when i import to the library and it plays it in the preview. its in the same folder as the fla. working in cs3. This is what i've done.new as3 file. code.

var req:URLRequest = new URLRequest("ocean.mp3");
var s:Sound = new Sound(req);
s.play();

whats the deal? I get no compiler errors. i'm hitting option+Return on the mac to test the movie. I downloaded some one else's and it worked. i copied theirs into my project and it didn't work. i have a feeling its something to do with classes that i don't know about

View 1 Replies

ActionScript 2.0 :: Load The Sound To Play?

Aug 26, 2004

face some problem here : Have 2 page of text to be show with sound. Also have 1 page let user to click on radio button to choose whether want to listen to the sound or not listen to the sound.

how to load the sound to play while the user click on tat page n if the user choose to off the sound all the sound on page 1 n page 2 will off.

View 4 Replies

ActionScript 2.0 :: Load The Sound And Play And Stream It

Mar 21, 2004

I have a button which loads a sounclip into a movieclip: [AS]_root.myMusic = new Sound(emptyMC); _root.myMusic.loadSound("song1.mp3", true);[/AS] it will load the sound and play and stream it ... but in my output i constantly get this every sec: Error opening URL "file:///E|/Dir/Dir/Dir/undefined"

View 1 Replies

ActionScript 3.0 :: Closing Sound To Load And Play Another

Mar 19, 2007

I am trying to close a sound so that I can load and play another but when I call the .close() on my sound object I get this error...
Error: Error #2029: This URLStream object does not have a stream opened.
at flash.media::Sound/close()
It tells me this even though the sound object is currently playing.

Here is the code I am using to initialize.
mainMusic = new Sound();
mainMusic.load(new URLRequest("lvl1.mp3"));

Then elsewhere I call...
Code:
mainMusic.close();
mainMusic.load(new URLRequest("WaterWorld.mp3"));

View 4 Replies

ActionScript 2.0 :: SIMPLY Load An Image Into Flash Via XML?

Jun 7, 2004

I tried this thread under Server-Side and no one replied. I think it is more applicable here.

I am having a tough time simply trying to load an image into flash via XML. I am not trying the whole slide show thing...

Just simply, loading a JPEG into Flash, via XML.

I might be missing something obvious, but still, I am at a loss.[code]...

View 3 Replies

ActionScript 2.0 :: Load And Play A Sound From Within A CLASS Definition File?

Aug 3, 2009

I need to know how to load and play a sound from within a CLASS definition file. I know the normal way of doing this, but Flash MX rejects that syntax, so there must be some special way of using sounds in a class file.

I need to know how to code for "if the score increases by any value." So, if the score goes from 0 to 1, the sound plays ONCE. If it increases from 1 to 2, the sound plays ONCE again.

View 0 Replies

ActionScript 2.0 :: Broken Linkage - Load .swf Into Another Movie The Sound Doesn't Play?

Apr 14, 2005

I have an mp3 exported for actionscript with the linkage name bgmusic.When I play the sound using a sound object, it works fine.However, I take that same .swf and load it into another movie and the thing breaks... the sound doesn't play.How do I fix the linkage so that it'll play again?

View 5 Replies

AS3 :: Flash - SecurityError: Error #2000 When Simply Load External Jpg?

Jul 8, 2011

When I try to load an external image in the same folder with a Loader object, I receive the error SecurityError: Error #2000: No active security context.My code is :

var urlImg = String("img.jpg");
var imgLoader:Loader = new Loader();
var _lInfo:LoaderInfo = imgLoader.contentLoaderInfo;

[code].....

View 5 Replies

ActionScript 3.0 :: Sound Event - Buffer Needs To Load And Everytime The Song Resumes Play State?

Jan 14, 2009

I'm having a sound object being loaded. And I want that for as long as it is buffering to have it written in a textfield "loading..." and when it starts playing to write in that textfield the name of the song. And i want this to happen everytime the buffer needs to load and everytime the song resumes play state.

View 1 Replies

ActionScript 2.0 :: Select New Content To Load Into Replace It The Movie Simply Vanishes Without Showing The Outro Sequence?

Aug 2, 2007

I have flash movie that I'm loading other movieclips and swfs into.At the moment when I load in a new swf, the timeline plays through the intro sequence, then when I select new content to load into replace it the movie simply vanishes without showing the outro sequence.It's been puzzling me for a while now but i've seen it used on many flash sites so i'm guessing there's definately a way to do it.

View 4 Replies

Play Music In Flash Player By Clicking Play Button Which Is In The Webpage (outside Flash)

Feb 14, 2012

I want to play the music file in flash player (which is embedded obviously) by clicking the play button which is in the web page (not in flash player).

View 2 Replies

Actionscript 3 :: Load SWF Data Without Loading Sound, Then Load Sound Later?

Jan 2, 2011

I have an SWF that's 30MB. Sound files (music) make up 25MB, art and other things make up the remaining 5MB.

Would it be possible for me to load the 5MB of necessary art and other things first to allow the user to operate the app, then after that's all loaded and they are operating the app, load the remaining 25MB of sound files in the background?

UPDATE: Loading SWF (or other entities) externally is not an option.

View 1 Replies

ActionScript 2.0 :: Load Movie Simply At A Certain Point In Movie

Oct 13, 2003

this is used to load a movie on an event right:[code] what if I want to load a movie simply at a certain point in the movie, ie a keyframe, what is the code applied to the keyframe and why/how is it different?

View 3 Replies

IDE :: SWF Doesn't Play In Webpage?

Mar 21, 2009

I have an FLV file embeded in a SWF. The file plays when directly opened by Firefox or Internet Explorer. However, it doesn't play when embedded in an HTML page.

View 3 Replies

ActionScript 3.0 :: Create Dynamic Sound To Play Sound-file?

Oct 14, 2009

It's possible to play a sound file through AS, either by loading it from a folder or import it to flash. It's also possible to play a dynamic tone with flash.media.Sound + writeFloat.

But... is it possible to play a sound file with flash.media.Sound + writeFloat in some way? I want to play a sound file without having to deal with any files except the .swf!

View 9 Replies

Embed And Play A File.flv In A Webpage?

Sep 7, 2006

Is it possible to embed and play a file.flv in a web page ..without having the flv in a file.swf.

View 5 Replies

Make F4V Files Play In A Webpage?

May 11, 2009

I have a webpage that I have a video linked to play when a user clicks on it - simple enough. With flv (v9 and below) videos, I have no issues serving it up to the user and them viewing it - with a f4v file this is a different animal, nothing happens, the web page player sits there spinning like it is going to do something and never does, like it cannot read or understand the video file.

how to make f4v videos play in a web page? My flv's are working fine, but cannot seem to get the better compressed f4v's to work right. I do not have DW CS4 or I would have tried to see how the code worked there. I created these videos in Premier Pro and exported via the Adobe Encoder in CS4. The video is beautiful for the same size and quality compared to the hazy flv's, so I really want to use the f4v's, I just cannot seem to get it to work.

View 7 Replies

IDE :: Play An External .flv In A .swf And Embed In A Webpage?

Apr 24, 2009

I'm trying to play an external .flv in a .swf and embed in a webpage. I feel like I'm doing everything correctly and everytime I create it, it works offline. When I upload all the files online, nothing shows up. When I right click on the live webpage where the file should be playing it sees the swf, it's just playing and/or displaying anything.

View 1 Replies

ActionScript 2.0 :: Play Sound/stop Sound Button?

Feb 13, 2007

i want to make a single button to play a sound, and if pressed again, stop the sound. and if pressed again, play the sound, and so on...
i know it has to be made with a boolean variable, true/false, but i just can't figure out how.

View 13 Replies

Professional :: Play FLV And Stop All Other Webpage Sounds

Sep 5, 2010

I have a website that has two flash items on it. I have a swf that calls mp3s that plays on the page load, and I have a FLV that plays on page load. What I would like to happen is: on page load the FLV plays when the FLV Finishes the swf starts to play the mp3s. What already happens is that the pages load in _blank pages so they are in new windows. This is good because while you navigate the site, the music from the homepage is still cycling through the swf's mp3 playlist. The problem comes in when you navigate back to the homepage from a new window, and the homepage is still open within the first window. That means that the video plays over, while the music is playing, and the music doubles up. Now the video playing isn't bad, it's that music is doubling up. Can't it sense itself playing a 2nd instance of itself on another webpage and stop it?

View 3 Replies

Html :: Getting Videos To Play Seamlessly On A Webpage?

Oct 30, 2010

I have a mov file that's 157 megabytes. I try running it on my page within a javascript scroller animation and the animation is very choppy and in fact I used css to simulate a mask but the thing doesn't get masked, probably do to the sluggishness of whole page, the page never fully loads, and the movie file makes it nearly impossible to scroll through the page. The file is just too huge. I currently have it embedded as such:

<a href="#">
<object class="im" classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" codebase="http://www.apple.com/qtactivex/qtplugin.cab" height="286" width="655">
<param name="src" value="why_eating_dry_fruit_is_unhealthy.MOV">

[code]....

1) Should I convert the mov to swf - that is, is swf a more compatible and appropriate format for seamless integration in html web page?

2) Whichever I choose, how do I reduce the file size - like on youtube where the videos run seamlessly? I plan on using javascript to scroll through a gallery of videos, so I need the videos to not bog down the page.

3) Also, a lot of sites with galleries of videos have an icon that indicates "click to play". Is that part of the video itself or can I just create an image and then when clicked on, the video plays?

I do have Adobe Flash CS4 Professional, if that matters. And if mov file is more suitable, then how can I reduce its file size?

View 1 Replies

Flash :: Embed Mp4 In Webpage To Play In Adobe Player?

Jul 23, 2010

I have an mp4 that is wrapped (or published) by an swf. I have successfully embedded the swf in a web page but when I play the video from the web page the quaility is significantly degraded. Unfortunately I have no control over the internals of the swf so what I would prefer to do is to embed the mp4 rather than the swf. I understand Adobe Flash Player supports mp4 since version 9, but I haven't been able to figure out the html to make this happen. Here is the code I am currently using with the swf.[code]...

View 3 Replies

Professional :: Insert SWF Into Webpage And Create Play Button?

Apr 29, 2011

I am trying to insert and SWF into my webpage. How do I tell the movie to stop at the end, and insert a "play again" button? What do I need to do to insert that into my webpage.

View 3 Replies

Flash :: Movie Won't Play On Testing Or Remote Server In Webpage?

Jun 6, 2010

I have a Flash slideshow that will only play in a browser if I click File > Open and open the .swf file locally and directly (not in a web page). It has never played in a webpage, remotely on the web server or locally on the Wamp server. It plays correctly in Flash when I test it.I have tried uploading the HTML page that Flash generates (without any changes), and it won't even play in that file. I have also tried using Dreamweaver's "Insert Flash" feature, and that was no good either.Here is the direct link to the .swf:

http:[url].....Here is the page that Flash generated:

View 6 Replies

Professional :: Can Play Video In Flash Player And Embed It Into Webpage

Jul 22, 2010

Is there a way I can play a video in a flash player and embed it into a webpage, so the user and start and stop the movie.

View 2 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved