How To Play MP3 Cont. While Changing HTMLs
Hi !
Question : Is there a way to make flash play an mp3 without stopping
while changing HTML pages ?
Details : I have a website with the same swf on every page ,
and I want to play an MP3 track.
For a single HTML page is not a problem ,
but everytime I switch pages - it stops and loads again
and starts from the beginning . I need a continous sound...
Would appreciate any ideas you may have...
Thanks
FlashKit > Flash Help > Flash ActionScript
Posted on: 07-26-2006, 02:56 PM
View Complete Forum Thread with Replies
Sponsored Links:
- Reverse Play On Unload,load New Cont.
- Play Reverse On Unload,load New Cont.
- Variables Between 2 Swfs In Seperate Htmls
- Linking To Exe's And Local Htmls From Flash Projector
- Loading Up HTMLs With CSS (WARNING: New Guy, Mega Newb)
- Need 1 Html Page Witth .swf Menu To Load Other Htmls
- Cont.
- Help Cont.
- JS Popups (cont'd)
- Pop Up Menus Cont.
- Creating Cont.........
- Grouped Buttons Cont
- Loading Problem (cont.)
- Image Jump Around (Cont.)
- [F8] Scrolling Cont. Movieclip
- FlashPlayer 10 Problems Cont.
- Cont HIGH SCORES Help
- [F8] RollOver Animation To Cont. After Mouse Off
- Modifying Flash Movie (cont).
- Loading External Movies Cont.
- Launching A Centered Pop-Up Window (cont...)
- FlashMX File Uploader (cont'd)
- Randomly Changing Direction Of MC Play
- Toggle The Visibility Of A Movie Clip..cont.
- Dynamically Resize Scroll Cont. In Scrollpane?
- Still More Problems Mario Game Gravity Cont.
- Scrolling Photo Bar Cont. By Mouse Position?
- Animated Gradient With Mask Not Working...(cont)
- Scroll Panel: Not Scrolling Smoothly / Cont. After Mouse Off
- AS3 Dynamically Changing Play Rate Of Streamed Sounds.
- Resume Play Than Restart Play On The Play Button.
- Changing Height Of Movie Clip Without Changing Width
- Changing Stage Color When Changing From Scene
- [F8] Changing The X And Yscale Without Changing Line Thickness
- _name Property Changing But Not Changing
- RGB Changing Is Working But Not Changing All The Time
- Changing An Array Name W/o Changing The Content
- Script Single Button To Play Frames, Then Skip Some, And Continue Play?
- Action For,button Pressed, Continue To Play MovieA Till Finished Then Play MovieB
- Helpneed Script 4 Play Button To Play From Current Frame
- How To Play Sound Automatically And Trigger The Play And Pause On The Same Button?
- Check Status Movie, Play Outro, Then Play Selected
- How To Make Flashtrack Play Auto Play When Swf Loads.
- Play A MC In Reverse ... Or Just Simply How To Play Movie Backwords?
- HOW TO PLAY A MOVIE CLIP IN REVERSE AND PLAY ANOTHER SIMULTANEOUSLY
- I Need A Movie Clip To Play, Stop And Play Again In The Next Frame
- Nested Clips, Play The Next MC May Only Play After Previous Has Really Ended
- [MX04] Click A Button Once To Play, Then Again To Play In Reverse
- I Can Play Sounds From Xml. How Do I Only Play One Sound At A Time... Kill The Other
- Actionscript Tweens Randomly Won't Play/only Play Halfway
- Add Skin And Buttons (play, Stop, Etc) To Play A Swf File
Reverse Play On Unload,load New Cont.
Hi,
Hi how can I make a reverse motion of a external swf on unload then load the new content for the correspondend button.
You can see what I mean by looking at this site.Switch between different sections.
http://dan.inko.ca/findex.htm
Hope someone can help.Big thx in advance.
Grtzz
View Replies !
View Related
Play Reverse On Unload,load New Cont.
Hi,
Hi how can I make a reverse motion of a external swf on unload then load the new content for the correspondend button.
You can see what I mean by looking at this site.Switch between different sections.
http://dan.inko.ca/findex.htm
Hope someone can help.Big thx in advance.
Grtzz
View Replies !
View Related
Variables Between 2 Swfs In Seperate Htmls
This is driving me crazy. It has to be simple, but I can't seem to get it to work. I've searched and couldn't find anything. I have a flash movie, and when I click on a button it is opening up a seperate html page, and I am passing a variable through the geturl/javascript command. This works fine. But how do I call the variable in the flash movie that is in the popup window? Thanks!
View Replies !
View Related
Linking To Exe's And Local Htmls From Flash Projector
hi all,
hopefully this is a simple question - and it might just be that i am being dizzy.
I am creating a presentation - I am running it from a flash.exe menu system that opens - in seperate windows - director.exe's and local htm pages.
I was using the getURL code - but it doesn't seem to be working - perhaps this is wrong.
or perhaps it is just the way i am doing it.
so if i code in
getURL("Director.exe", "_blank"); what happens is that it goes to http://Director.exe which obviously does not work
if I send it to ../Director.exe it goes to http://../Director.exe
perhaps i am just being stupid - plz tell me that i am!
hopefully someone knows what is going on here and can help us out.
mucho mucho obligatero!!
beezer
View Replies !
View Related
Loading Up HTMLs With CSS (WARNING: New Guy, Mega Newb)
Hello I recently just found these forums and wow this place is a great resource. Let me introduce myself. I am sah302, I have very recently just started working in Flash, the reason being I have an internship for making a website for my college. The internship is a joint effort with my friend and roomate, we have a good synergy where I co-plan out the layout design, design the graphics and he codes it. However, obviously there is a bit more coding time than graphic design so I was going to take up one of the requirements which was to have a flash version of the site.
I purchased the Saavy book on Flash MX and am using Flash MX 2004 Profressional and have been learned a great deal in a short amount of time. However I have reached a doomed wall which I knew I would hit, the coding.
I was never a coder and I always disliked it. However Actionscript starts off extremely easy and simple for me to understand, but I have reached a point to where I am getting stumped. What I need to do isn't in my book so this prompted my online search and stumbling upon these forums. I have read a lot of the information here and gained tons of insight, but I am still lost with coding. Basically when you put in variables and instances names and start using code that has #'s and xxxx.xxxx I just get lost. I have even read the threads and whatnot on using CSS and htmls. I just don't get it....
So here is going out on a limb here and hoping someone out there can rehash what was already posted in even layer laymens terms.
What I need to do is create a content box which loads their respective pages when a button is clicked on the page. The content needs to be drawn from a .html file with css to make it easy to update content once the site is complete. So far all I know is how to create a dynamic textbox which pulls text from an external text file.
I have uploaded the files to:
www.personal.psu.edu/sah302/Flash
Also I am sure because of my newbness I am doing certain things in the most ineffecient way or the way that makes it have a huge load time or some such so any general comments for improvement would be much appreciated. Thanks.
View Replies !
View Related
Need 1 Html Page Witth .swf Menu To Load Other Htmls
Hi
I am trying to design a site that has an index.html page with a .swf menu for nav.
I would like each other html page to load inside that original index.html that has the swf nav menu.
Is this possible?
Where do I put the required code and what is the code? I am new to AS so please be specific.
Thank you so much.
View Replies !
View Related
Help Cont.
For those that dont know im havin a lil problem with my flash part of my site...take a look. www.chrion-inc.com/main.html ..... i could use sum help. im new at flash. the only thing i did to it was change the words. i did nuthing else. if anyone is interested in fixing it for me i would appreciate it...and i can send u the file. i was told by a member that it had to do with stopping sumthing, but the thing is...it works fine when i dont change the words. this is a website template
thanx
View Replies !
View Related
JS Popups (cont'd)
I am having trouble opening multiple windows with JS. I asked this early today and made the suggested changes (thanks!), but unfortunately it still doesn't do exactly what it should (or what I am trying to do!). I am trying to open a sized window and another from that one.
Home > window1 > window2
It will open the all of the windows in separate popups, but it will not size the last one. Does the JS of the Home window need to include the 'name' parameter? Currently it is the same as below but with 'remote' replacing 'name'. So the script below is for window1, that should open a window 'high' (I've tried it with " and without with no luck). Make sense? I should have it up soon at:
http://www.emotion7.com/clients/pigdog/site/index click on the music button and then on either button. Thanks.
HTML:
function openWindow(url, w, h, name) {
var windowprops = "width=" + w + ",height=" + h;
popup = window.open(url, name, windowprops);
}
Button:
on (release) {
getURL ("javascript: openWindow("I Wish.mp3", 'high', "400", "100")");
}
View Replies !
View Related
Pop Up Menus Cont.
Why would a button work with a url and not with a scene.
The button is part of a pop up menu and the button is a sub menu button.
I am trying to place this pop up movie menu on several scenes as a way to direct my users, but it will not work. The actions are correct and I have used isolated buttons that work, but the pop up will not work to direct a user from scene to scene.
Glenn
View Replies !
View Related
Creating Cont.........
Hi,
I'm trying to figure this tutorial out. Tutorial:: http://www.kirupa.com/developer/mx/continuousmovement.htm I'm fine intil I get to the pont where I copy the pic ::Circle:: and paste them. It wont let me paste more than two. When I try to paste more, It goes back to the second paste. Meanning I cant paste no more than two circles and I'm stuck...plz help thx
dont know whats up with the link... its the tutorial on "Continous Movement" <--------------
View Replies !
View Related
Grouped Buttons Cont
I have writtten 3 replies but they are not showing up, so here goes again!!!!
I am very bad at explaining but I'm gonna try really hard to:
Scene 1: MC (line)
arrow keys to move "line" left and right
Scene 2: Destinations of buttons
The buttons in scene 2 only work when thwy are broken apart but then the arrow keys cannot make them move left and right because the instance "line" does not exist!
Please tell me if this does not make sense.
thankyou for your help
View Replies !
View Related
Loading Problem (cont.)
Hey there,
I put a post up a couple of days ago about a problem i was having with extensive loading times...
http://www.flashkit.com/board/showth...39#post2273739
basically, i managed to get it so that my main framework loads and then when you click on each link it loads a seperate swf file into the main window... which is exactly what i wanted... only problem is... the preloaders on the seperate swf files don't work when loaded into the main movie...
If you look at http://www.guerilla-records.com/test...a_Records.html
That's my main movie, the framework should load up with the links at the top of the page... then if you click on "Reviews" it screws up because it tries to go straight into the movie without pre-loading first!!
However, if you look at http://www.guerilla-records.com/test...e/reviews.html
This uses the exact same swf file, yet the loading bar works perfectly!
Can anyone help me out here, I am completely stuck!!!
Feel free to go to http://www.guerilla-records.com/testzone/loadmovie/ and download a copy of the fla file(s) to take a look if you want!! Just PLEASE help me out on this one.
Cheers
Murph
View Replies !
View Related
Image Jump Around (Cont.)
Had some feedback from Wishbone, but couldn't resolve it, so here it is again. My issue is that I have a button w/ two images in it, the first frame is a picture of my monitor, the second "over" frame has the monitor w/ a glow around it. I've got this button on a layer on top of a layer with a jpg of my desk... the monitor button should line up directly above the monitor in the desk.jpg image, but try as I might, I can't get it to line up.
Hope that helps, I'm really at a loss. No matter how much I fuss w/ the x and y alignments down to the .1 increments, they still don't line up... or if they do line up ok, as soon as I change my zoom or actually test the movie, they don't line up anymore.
View Replies !
View Related
[F8] Scrolling Cont. Movieclip
i hav movie clip in the middle of the stage with a mask over the top. i hav up and down buttons on the right.
i want to make the buttons move the movieclip up and down smoothly and stop at the bottom or top of the clip
ive looked everywhere but its either for a dynamic text or in a totally different scenario and i cant understand it. ive been clawing my hair out for 2 and half hours.
any help would be greatly appreciated
View Replies !
View Related
FlashPlayer 10 Problems Cont.
This is a repeat of my thread below. I won' repeat it again.
I have swf content that won't run in flashplayer 10 if downloaded from my website. It runs locally with 10 just fine. With flashplayer 9, no problems at all, either downloaded from website or run just localliy.
With flashplayer 10 though I get a blank screen when downloading the content and nothing more - No errors in debug flashplayer. There's even no debug output in the actual code, So basically I have no idea how to proceed.
Seems like maybe a security thing but who knows. If you've had a problem like this with FlashPlayer 10 your help would be greatly appreciated.
Thanks
View Replies !
View Related
Cont HIGH SCORES Help
okay okay.. here's the prob I'm faced with really..
I have a game.. and then I have a website in geocities.. if I use PHP to host my high scores how do I go about it??? How does it work that when somebody plays it the high scores get retrieved from my geocities site? My server can host PHP.. can somebody explain to me in layman's terms how it works exactly???
Would appreciate it.. it seems dumb to say this but I'm up to my neck on this trying to understand this..
Thanks again.
-- Kate
View Replies !
View Related
[F8] RollOver Animation To Cont. After Mouse Off
Hello again-
I have 5 buttons, each of which triggers a movie clip in the "over" state. They all work great EXCEPT I would like these triggered movies to continue once the mouse has been moved OFF the hit area. The movie clips are not that long, mind you. Currently the animation will start when the mouse rolls over the hit area, but then disappears if the mouse is taken off before it's finished, whereas I'd like the triggered movie clip to finish.
If you have an easy answer, no need to read on, otherwise, here is what I tried and the additional problems I encountered:
I tried converting the one of the aforementioned buttons to a movieclip, and then labeling a frame within the mc as "_over", the which frame contained the movie clip that is triggered when the rollover occurs. It worked great EXCEPT it would only work once: the mouse rolls over and the animation plays, and then it won't play with subsequent rollovers.
So next I tried using a "gotoAndStop" command at the end of the TRIGGERED movieclip (ie. the animation that occurs when the rollover happens). I tried sending it to a frame in the timeline of the movie clip in which It resides, but all this did was make the animation replay continually. (I thought about using the "gotoAndStop" command to go to the main timeline, but this wouldn't work as this same movieclip [former button] resides in the entire main timeline and the user may be accessing it from any of many different varying frames.)
Finally I decided to add an "_up" frame on the same timeline as the "_down" frame. This solved the above two problems but brought me back to my ORIGINAL problem i.e. the animation doesn't continue after the moust moves off the hit area.
Any advice?
View Replies !
View Related
Modifying Flash Movie (cont).
Hello everyone. Now things are getting a bit more complicated. I need some guidance through this next step modifying a graphic symbol. The movie clip is awesome, it's letters come into the movie individually and then spell out a sentence. When I attemp to edit them, I can't....There are multiple blue dots around the letter and I don't know how to replace it with the one I want it to display. I love how it looks and want the same effect but with my own letters and sentence being displayed.
Can anyone help me learn how to do this??
View Replies !
View Related
FlashMX File Uploader (cont'd)
Ok, i know now how to setup the whole flash file uploading thing, but now im confused... heres my code..
PHP Code:
<script language="JavaScript" type="text/javascript">
function browseFile()
{
document.all['file1'].click();
}
function submitFile()
{
document.form1.upload.click();
}
</script>
<form name="form1" action="mp3upload.php" method="POST" enctype="application/x-url-encoded">
<input id="file1" type="file" size="19">
<input name="upload" type="submit" size="19">
</form>
Then i just make the BROWSE button in flash GETURL("JAVASCRIPT:BROWSEFILE();"); and the same for submit...
and everything works, except in my mp3upload.php script.. i dont know what the variable for the file is because theres no NAME="" in the file input. only ID="". But if i add the name="" field then i get JS errors. hmm.. any clues?
View Replies !
View Related
Randomly Changing Direction Of MC Play
Okay, so I have a MC that has 150 frames.
I want this MC to play both forwards and backwards, randomly, so it should be sliding back and forth on its timeline randomly.
So I put a stop on the first frame of the MC, then I put the folling actions on it (on the stage, not in the MC):
onClipEvent(load){
direction = "forward";
}
onClipEvent(enterFrame){
//Make random number
randNum = Math.random();
//If random number is lower than .01, change direction
//This should happen once every 100 frames or approx 3 seconds
if (randNum < .01){
if (this.direction == "back"){
this.direction = "forward";
} else if (this.direction == "forward"){
this.direction = "back";
}
}
if (this.direction == "back"){
this.gotoAndStop(prevFrame);
} else if (this.direction == "forward"){
this.gotoAndStop(nextFrame);
}
}
But my MC doesn't do anything at all. Just sits there. Anyone? Thanks,
-L
View Replies !
View Related
Toggle The Visibility Of A Movie Clip..cont.
Hey guys
Thanks for the advice on toggling the visibility of a movie clip, but I am stil having a few problems. I have applied the following code to a movie clip containing a map element but when the button is depressed the action sets the visibility of the entire movie to false, instead of just the Roads_movie.
on (press) {
if (Roads_movie, _visible eq true) {
setProperty (Roads_movie, _visible, false);
} else {
setProperty (Roads_movie, _visible, true);
}
}
Please advise.
Regards Simon
View Replies !
View Related
Dynamically Resize Scroll Cont. In Scrollpane?
I'm using AMFPHP that pulls data from a database and displays in a scrollpane(using createtextfields and createmovieclips).
The problem is that the content is only displayed in the default window (the scroll bar will not resize to adjust to dynamic movie height).
In other words the default scroll pane window is all the content I see, but there is more content that is below, but the scroller will not adjust.
-I've turned the vscroll to on....doesn't work.
-I've tried using a dynamic sized graphic (inside content movie clip)that expands with the text content....doesn't work.
If I use just a mask and some scroll buttons it works fine...but I really want to use the component.
It seems that if I add a hand drawn graphic it will work...but I have to make this dynamic! Plus I'm embedding the fonts from the d-base pull and I've used a dynamic resized graphic...why doesn't it resize!!!!
Please HELP!!!
View Replies !
View Related
Scrolling Photo Bar Cont. By Mouse Position?
I'm trying to find a Flash tutorial and have been Googl'ing away, but
I can't really figure out what to call it!! The end result should be a
strip of photos that scroll both left/right or up/down depending on
the design - the scroll is determined by the placement of the mouse.
Here are two examples:
http://www.kannerarch.com/flash/main.html - click "residential," then
"511 House" to see what I'm talking about
http://www.albertsanchez.com/
I'd love a link to a tutorial, a .fla file or even a fresh suggestion of a
keyword phrase to search for!!! I'm pretty good at fiddling around
with Actionscript, though I can't write it myself, so anything in the
ballpark might help!
Thanks!
View Replies !
View Related
Animated Gradient With Mask Not Working...(cont)
Here's a link to the fla. I'm just starting it. I've got the text animated to the stage, the gradient animated behind the text after the text stops, but just don't understand how to get the mask to work.
http://s27.yousendit.com/d.aspx?id=23QU ... L6QR53FWJE
I'm not sure how to use http://www.yousendit.com, either. Flash is new to me, and very frustrating. Once I know a few basics I will be on my way. Thanks very much for your help. JB.
View Replies !
View Related
Scroll Panel: Not Scrolling Smoothly / Cont. After Mouse Off
I have two flash files
flash4.fla with scrolling panel with pics in it - it keeps scrolling as soon as I take the mouse of the panel onto the rest of the flash file.
flash3.fla, created an empty movie clip, and inbeded an actioncript 'loadMovie('flash5.swf',this,'GET');'; then draged the movie clip on to the stage. - It works fine, exept that it does not scroll smoothly, and has difficulty.
What do you suggest I do to fix this, I would like to keep the scrolling panel as a separate movie that just loads rather than part of a movie.
http://www.netchat.co.za/web1/flash/flash3.fla scrolling panel movie clip load in this one
http://www.netchat.co.za/web1/flash/flash4.fla scrolling panel included
http://www.netchat.co.za/web1/flash/flash5.fla scrolling panel
Regards
View Replies !
View Related
AS3 Dynamically Changing Play Rate Of Streamed Sounds.
I'm wondering if this is possible, I'm making an animation and I want to add a degree of interactivity. Basically when the viewer presses and holds a specified key the sound rate would resample from 44100khz to 22050khz, and the frame rate would also play back half speed. A friend showed me a AS3 "scratch table" which leads me to believe that it may be possible, but my main problem is that that was an external single sound and I need to global effect and de-effect all my sounds that are being streamed into a slower rate and back at key press.
The scratch table i was talking about is here: http://lab.andre-michelle.com/scratching
View Replies !
View Related
Resume Play Than Restart Play On The Play Button.
I have this script that works but it keeps on starting from the start of the song, than resume from where I stopped it.
myMusic = new Sound();
myMusic.loadSound("audio/track.mp3", true)
stopbtn.onRelease = function()
{
trace("sound stopped");
myMusic.stop();
};
playbtn.onRelease = function()
{
trace("sound played");
myMusic.start();
};
How do I change this code to resume when pressing the play button than starting from the start of the song. I guess it be more like a pause button than a play button.
View Replies !
View Related
Changing Height Of Movie Clip Without Changing Width
Im using flash MX, and i needed to know if it was possible to change the height of a movie clip without changing the width of it. i have a 1px wide line, and i want to change the height of it, but i want to keep it 1px wide. is it possible to do this without having to redraw it everytime i want to change it?
View Replies !
View Related
Changing Stage Color When Changing From Scene
Hi,
I would like to change the color of my stage when I get in my next scene, is it possible?
So when people look to the movie Scene one should be black and scene 2 white. Don't tell me to put a big white square at the button of scene 2 coz when put it online I want all my window to change from color.
Thx
View Replies !
View Related
_name Property Changing But Not Changing
I am working on an application where a user can select a movieclip that has been dynamically placed on the stage and then choose Send to Front or Send to Back (compared to the other objects on the stage with it).
As part of this process I am renaming the instances using code that basically looks like this: setProperty(myMovieClip, _name, newMovieClipName);
Using the debugger I noticed something unusual. In the properties tab the _name property changes to the newMovieClipName value I am assigning it. But the target it shows remains unchanged (_level0.container_mc.myOldMovieClipName).
I think this is causing problems elsewhere when I try to target these movie clips. Does anyone know how to completely change an instance's name, or is this just the way it works? Any insights are appreciated.
View Replies !
View Related
RGB Changing Is Working But Not Changing All The Time
basically when you load the .swf it changed everytime u re-load it , i want it to keep on changing even when the user hasnt reloaded the image
onClipEvent (load) {
for (i=1; i<5; i++) {
_root["r"+i+"New"] = random(255);
_root["g"+i+"New"] = random(255);
_root["b"+i+"New"] = random(255);
_root["b"+i+"New"] = random(255);
}
}
onClipEvent (load) {
myNum = _name;
}
onClipEvent (enterFrame) {
_root["r"+myNum+"Diff"] = _root["r"+myNum+"New"]-_root["r"+myNum+"Old"];
_root["r"+myNum+"Change"] = _root["r"+myNum+"Diff"]/10;
_root["g"+myNum+"Diff"] = _root["g"+myNum+"New"]-_root["g"+myNum+"Old"];
_root["g"+myNum+"Change"] = _root["g"+myNum+"Diff"]/10;
_root["b"+myNum+"Diff"] = _root["b"+myNum+"New"]-_root["b"+myNum+"Old"];
_root["b"+myNum+"Change"] = _root["b"+myNum+"Diff"]/10;
swatchColor = new Color(this);
swatchColor.setRGB(_root["r"+myNum+"Change"]<< 16 | _root["g"+myNum+"Change"] << 8 |
_root["b"+myNum+"Change"]);
_root["r"+myNum+"Old"] -= _root["r"+myNum+"New"]-_root["r"+myNum+"Change"];
_root["g"+myNum+"Old"] -= _root["g"+myNum+"New"]-_root["g"+myNum+"Change"];
_root["b"+myNum+"Old"] -= _root["b"+myNum+"New"]-_root["b"+myNum+"Change"];
}
View Replies !
View Related
Changing An Array Name W/o Changing The Content
I have a generated array called foo, now what I would like to do is change the name of the array, without changing the content of the array itself. I am trying to make the name of the array, so it can be made part of a count. Like this.
from foo = ["Room,150,1"]; to T1=["Room,150,1"];
Thank you in advance for any help
Killin
View Replies !
View Related
Script Single Button To Play Frames, Then Skip Some, And Continue Play?
Just as the topic says, I want to script a button to go to and play through a motion tween, but then skip some frames to then play another motion tween all in one button press. For example, play frame 1 which plays the tween and ends at frame 10 (I have that part down fine) but then for it to skip ahead to continue to play frame 20 and then of course stop once it finishes that motion tween.
Tried a few searches but its too many words to explain so I wasnt finding anything. Its probably a simple command im just not familiar with yet. Can anyone help?
View Replies !
View Related
Action For,button Pressed, Continue To Play MovieA Till Finished Then Play MovieB
heres the scenerio:
1) I have 2 movie loops which are spinning lights. each have a frame each. So I have 2 frames, 1 movie on each on the timeline.
Lets call them movieA and movie B
I have a button on the same timeline but different layer
movieA which is a loop plays continously because it is on frame 1 that is on stop
This is what I would like to do.
If button is pressed it will go to next frame, but only when movieA has reached its end frame when playing
What I have now is that it interupts movie A, and just jumps straight to the next frame and movieB starts playing then, whcih looks sloppy.
Is there a script I can add to the button so that it only moves to the next frame when movieA has reached a certain frame
2)
is there a better way of writing this? here is the scenerio
movieD (buttonA)
movieC (movieC1)
movieB
------ movieA ----
hope that makes any sense: basically means. movieA is in the root level timeline. inside movieA is movieB. inside movieB is movieC. inside movieC is movie C1 and movie D. inside movieD is buttonA.
Now I want to control movie C1 with button A.
so I go to buttonA and do a release action. Now when I write the tell target (with), how do I write it the best way.
I currently write it for buttonA as:
_root.movieB.movieC.movieC1
play
also
_parent.movieC.movieC1
play
but this parent one doesnt work sometimes. Is this correct?
There must be a better way of writing this, is there? Whats the proper way of writing this.
All help appreciated. I have several questions so please share the knowledge ; )
TIA
View Replies !
View Related
Helpneed Script 4 Play Button To Play From Current Frame
This must be simple but I cant work it out. I have a video in a movie clip and want to assign a play button wich continues from the current frame if you pause the movieclip, instead of starting from the beggining!!!
I thought it'd be something like
on(release) {
_root.myvideomovie.gotoAndPlay(nextFrame);
}
but obviously not!
Hope thats not so stupid it shouldve been in the newbies section, ok it probably should've been but it is actionscript!
View Replies !
View Related
Check Status Movie, Play Outro, Then Play Selected
I'm trying to figure out how to create a conditional variable script to check to see if one of the 4 movies are finished before starting the next selected one.
I have 4 menus with 4 movie clips that have an opening and closing animation in them.
When clicking the one of the buttons I would like it to check and see if any of the movie clips are in the open position. Then have the movie that is in the open position play it's closing animation. Then play the selected category movie that the person clicked on.
I know it's all done with variables but just cant figure out how to put it together.
here is what i have so far.
menuStatus = 0;
trace(menuStatus);
but1.onPress = function() {
if (menuStatus == 0) {
menuwork.gotoAndPlay("start");
menuStatus = 1;
} else if (menuStatus == 2) {
resetMenus();
}
};
but2.onRelease = function() {
if (menuStatus == 0) {
menuwhoweare.gotoAndPlay("start");
menuStatus = 2;
}else if (menuStatus == 1){
resetMenus();
}
};
function resetMenus() {
if (menuStatus == 1) {
menuwork.gotoAndPlay("close");
menuStatus = 0;
} else if (menuStatus == 2) {
menuwhoweare.gotoAndPlay("close");
menuStatus = 0;
}
}
problem with this code is i have to click the button twice to have it work
thanks for any help in advance
View Replies !
View Related
Play A MC In Reverse ... Or Just Simply How To Play Movie Backwords?
Ok. I've got more problems, now it involves Flash 4. I've got movie clip we'll call "the rock" well, I have a button to play "the rock" forward - that's easy - however, I want a back button to play the clip backwards, a "rewind" type effect ...
am I explaining well? if now feel free to email me doo_wrong@yahoo.com thanks for your help.
Ken
(an example of what I'm looking for can be found at http://www.ccmusic.com - there's a flash movie on the right with posters or something in it, when you RollOver and image it goes to it)
View Replies !
View Related
I Need A Movie Clip To Play, Stop And Play Again In The Next Frame
I need a movie clip to play, stop and play again in the next frame. So pretty much i have to get the movie clip to play once and stop then when you go to the next frame it should play again once and stop again. What i have is a slide show type thing where you click on the next button to advance to the next frame and in each frame i have all the animations in their own movie clips.
-Thanks
View Replies !
View Related
Nested Clips, Play The Next MC May Only Play After Previous Has Really Ended
hi,
if i make a button with the "new" method of nested clips (on rollover play. _root.one.two blabla) that seems to be working quite okay, but i am still experiencing this problem that if i move too quickly over a button, it becomes very jerkey.... i made a rollover and rollout, but the rollout may only start playing once the rollover is finished...
is there a little scripting that can prevent this problem?
greetz
melvin
View Replies !
View Related
[MX04] Click A Button Once To Play, Then Again To Play In Reverse
Alright, so I've got this MC that is set up to play 2 other Movie clips upon being clicked, and what I would like to have happen is; upon clicking this MC again, these 2 other movie clips will being playing in reverse, and if clicked again will play forward, and so on ad infinitum.
I've attempted to do this by having this code in the first frame of the "button" MC, in a separate actions layer.
PHP Code:
stop();
this.onRelease = function() {
gotoAndPlay(2);
this._parent.wing1.play();
this._parent.wing2.play();
};
And this code on the second frame.
PHP Code:
stop();
this.onRelease = function() {
gotoAndPlay(1);
this._parent.wing1.prevFrame();
this._parent.wing2.prevFrame();
};
As of right now, this will simply play the two movie clips upon clicking, stop them and reverse them a single frame, when clicked a second time, then begin playing them again from that point if clicked a third time.
Once the two MCs finish reach their final frames, the button does nothing.
Any help would be appreciated.
View Replies !
View Related
Actionscript Tweens Randomly Won't Play/only Play Halfway
I'm working on a website that can be seen here
I have several tweens created using AS3 and then several tweens created just using motion tweens on the timeline. When I view my website in Firefox (latest version), about 50% of the time, the actionscript tweens will not complete the entire tween or not start altogether. On the other hand, sometimes it works flawlessly. The motion tweens created with the timeline always work in there entirety. When I view it in Safari (also latest version), the tweens work about 90% of the time, but there is a few instances where the tweens won't go all the way through their specified animation.
I was also able to recreate this effect by just testing the movie within flash. In flash, the animations either work fine or the tweens don't start when I click on the corresponding button (unlike browsers where sometime the tweens will only go halfway through their animation). It only happens in flash about 5% of the time when clicking on the nav buttons and there is no apparent pattern as to when it is going to happen or on what nav button it happens on.
Any ideas on what is causing this?
View Replies !
View Related
Add Skin And Buttons (play, Stop, Etc) To Play A Swf File
Hello Forum,
Is there a way to use a skin/buttons just like the FLVPlayer that will give the same control to a movie clip (aka SWF file)?
I have a few swf files that are movie clips - not video. I would like to be able to load the movie clip, and be able to start, stop, pause, mute audio just like the FLVPlayer component does, but for a swf file.
I would like to have a "component" with the buttons, etc and be able to load the movie clip using the loadMovie method, and play the movie clip. I have a clip that starts playing after I load it, but would like to load it, and have it stopped, and then play the clip using buttons, etc.
I do not want to add buttons to each of my swf files, but have one movie clip with buttons, and load a swf into it.
Any tips will help,
thanks,
eholz1
View Replies !
View Related
|