Xml Skipping Nodes Problem
When I pull in this XML file why is that I have to skip ever other node to get the information I want?
I pull this and get the title nodes=this.firstChild.nextSibling.childNodes; trace(nodes[17].firstChild.nextSibling.firstChild.nodeValue)
but to get the next title in the next node down I have to call this trace(nodes[19].firstChild.nextSibling.firstChild.nodeValue)
instead of this trace(nodes[18].firstChild.nextSibling.firstChild.nodeValue)
AND....If you look at the dump there's only 9 elements before the first title. so the node number I'm pulling out should only be 9 not 17.
Any ideas? Here's the whole script I'm using.
PHP Code:
var theXML:XML=new XML();
theXML.onLoad = function() { nodes=this.firstChild.nextSibling.childNodes; trace(nodes[19].firstChild.nextSibling.firstChild.nodeValue) trace(nodes[17].firstChild.nextSibling.nextSibling.nextSibling.firstChild.nodeValue) trace(nodes[17].firstChild.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.firstChild.nodeValue)
} theXML.load("this.xml");
And here's the xml file:
PHP Code:
<?xml version="1.0" ?> <content> <title>HUB</title> <link>link here</link> <description></description> <language>en-us</language> <pubDate>Mon, 10 Jul 2006 11:21:07 -0500</pubDate> <lastBuildDate>Mon, 10 Jul 2006 11:21:07 -0500</lastBuildDate> <generator>SINAPSE Articles Module</generator> <managingEditor>link here</managingEditor>
<tube name="expound"> <title>SIN Lifestyles: A Guide to Bad Pick-Up Lines</title> <author>Mark Potts and the SIN Players</author> <link>link here</link> <description>A video guide to pick-up techniques guaranteed to let you get shot down.</description> <image>http://testimageurl.com</image> <startDate>Mon, 29 May 2006 00:00:00 -0500</startDate> <endDate>Sun, 1 Oct 2006 23:59:59 -0500</endDate> </tube> <tube name="sports"> <title>United We Stand</title> <author>Michelle Pierce</author> <link>link here</link> <description>Not everybody is going to be ready for this movie. But if you are, United 93 is more than worth your time.</description> <image>http://testimageurl.com</image> <startDate>Thu, 6 Jul 2006 00:00:00 -0500</startDate> <endDate>Mon, 10 Jul 2006 23:59:59 -0500</endDate> </tube> <tube name="ae"> <title>On Fatherhood</title> <author>Cameron Ferguson</author> <link>link here</link> <description>Child proofing, schmild-proofing.</description> <image>http://testimageurl.com</image> <startDate>Mon, 1 May 2006 00:00:00 -0500</startDate> <endDate>Sat, 7 Oct 2006 23:59:59 -0500</endDate> </tube>
</content>
DevShed > Flash Help
Posted on: July 10th, 2006, 12:22 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Adding Nodes And Child Nodes To An Xml Tree
Hello Ed, and every1 else.
Can i first say a big thank you for your effort, you didnt have to and i really appreciate it...im somewhat of a novice and am finding my feet.
I can now attach a comment to a node. Prior to that I have imported my xml file - which contains the tree into flash and can now display the tree structure and all of its nodes. the comment is there so thats great.
Is there any way though that you can update the xml file with the comment that you have submitted.
i.e. after you have attached the comment with a node, is there any way that the comment willl be passed through to that xml file itself?
Im thinking i need an attribute in the xml file called say "comment" and somehow when you press the submit button to attach the comment to a node the xml file (the "comment" attribute within) is also updated with the comment.
Skipping Through MC's
Hey everyone, I'm starting a project for the company I work for. I am putting together a product tour. Here how it's going to work. It will be set up much like a DVD movie when your enter you get this menu that you can skip to certain secions and or play the entire movie straight without skipping to certain scenes. SO, how can I create this (lets say) 10 min movie clip so i can put buttons on the menue to skip tp certain sections or use a slider to scroll through the movie. Please post your ideas I'm open for anything. Thanks flash kit community.
MP3 Skipping
Hi, I have an MP3 streaming application that has been running for almost a year now. I have been hearing a lot of skipping like a scratched record does. Sometimes it is so bad, that FMS just skips the tack and starts playing the following. Anyone here have a similar issue? I am really lost here.
Skipping
http://www.sixonehundred.com/new/new.html
Okay in the news part on the right, why is it fading in, and then turning blank for a millisecond and then back to the text again in Mozilla ONLY? It works fine in IE, but in Mozilla, it just skips or something. Is this common?
Skipping
http://www.sixonehundred.com/new/new.html
Okay in the news part on the right, why is it fading in, and then turning blank for a millisecond and then back to the text again in Mozilla ONLY? It works fine in IE, but in Mozilla, it just skips or something. Is this common?
Skipping Frames
I'am currently building a game in flash and have encountered an odd problem and was wondering if anyone had come across it before and found a way round it (or can point out if i'm making some stupid mistake). In frame 1 of my movie I do some initialisation of variables (scores etc) and I have the main functions for the game. I have tried a couple of ways to get the game running. the first was to have the initialisation code in another function, initGame, place a blank movie clip which calls the initGame function with onClipEvent(load) and the other functions using onClipEvent(enterframe).
The second was to have the initialsiation done as a frame event in frame 1 of the main timeline, place a call to the functions in frame 2 with a gotoAndPlay(2) action in frame 3. Using both methods the game ocassionally resets all the variables in the middle of a game. I placed a text box showing the current frame in the movie (where I was using the frame loop) which showed that the movie had skipped back to frame 1. Any ideas?
Andy.
Skipping An If Case?
I have a small problem that I can't quite work around or figure out. Up front here is the problem code:
// scroll if set
if (scrolling eq "dw") {
direction = "down";
_parent.content_gen.nextFrame();
} else if (scrolling eq "up") {
direction = "up";
_parent.content_gen.prevFrame();
}
Very simple - this scrolls a Generator Scrolling List object. Two arrow buttons using press and release events set the scrolling value to either "off", "dw" or "up". The "off" part is there cause the movie loops so the user can click and hold and the content will keep scrolling.
The problem is that for some reason the second If case is always ignored - completely. The 'direction = "up"/"down"' code is for debugging purposes. When I click on the Up arrow, 'direction' does not set to "up", meaning that the case was never carried out. The same would happen if I switched the statements, the Down arrow does not work, but the Up does. I've even tried making them two seperate If statements, not an If...Else If - still nothing.
Anyone have any ideas on what might be causeing this?? I've used this exact same code in previous situations and it's worked no prob. The only difference is these buttons were loaded in a Generator object, while previous ones were not. I'm baffled! Any help would be appreciated! Thx!
PLEASE HELP SKIPPING SITE
I have two websites right now...both in flash...and for some reason both of them seem to skip, or when the pages animate they go extremely slow and skip...is there a reason why? Did I do something wrong?
The site isn't that big in file...but everytime the pages change they skip...and I have tried some stuff, but I have a feeling it's something stupid and small that I left out. Please take a look at http://www.VODOwnz.com and click the pages to see what I am talking about...
That was my first full flash site...so please don't criticize too bad about it.
Thank you for your time, and help.
Have a nice day!
Skipping Frames
Ok I have acouple button and when you click on it, It goes to a frame and plays, but when you click on a different button it goes through the frames before first.. is there a way to skip the previous frames ?
Scene Skipping...
I have (currently) three scenes in my flash menu stuff. I have a preloader, an intro, and then the main menu. The preloader is called "loader", the intro "intro", and the main menu "menu". (That is the order of the scenes, by the way) Now, after the preloader finishes it's job, I want it to continue on to "intro" but instead, it jumps straight over to "menu." >.<
Here is the current code used in "loader" to tell it to jump to "intro" after completing...
loadedbytes=getBytesLoaded();
totalbytes=getBytesTotal();
loadedkbytes=Math.ceil (loadedbytes/1000);
totalkbytes=Math.ceil(totalbytes/1000);
if (loadedbytes == totalbytes) {
gotoAndPlay("intro", 1);
At the end of "intro", the following code is used:
gotoAndPlay("menu", 1);
Currently, there is one frame at "menu" with the following code:
stop();
Frame Skipping?
I have a movie clip that doesn't seem to want to act normal when tested/published. When I play the MC during editing it produces a nice fade in/out of a word, When I publish it.. it almost appears to skip the motion tween... any ideas?
TIA,
Button Skipping On PC Not On Mac?
I have a movie made of buttons with a small target area. On mouse over pictures and text apear. Everything works great, but on two of the buttons when I tested the movie, the mouse over text and image skipp and reapears! It would show, than for a fraction of a second go blank, and than come again for good! I also tried the movie on a Mac and it didn't happened! Does the Mac handle Flah differently? Do I need to make the target area biger (I don't have a lot of room)?
Anyway I thought maybe someone could've run into something simillar before!
Thanks Chris
Skipping Scenes
I'm having a problem, I created a calendar (it only has 5 months and is static). Each month is its own scene, I have an action in the first scene that tells the movie what scene to jump to based on what month it is. It works, however it plays through all of the scenes between the first and the destination.
For example, the first scene is called actions, the second is september, and the third is october. In the actions scene, it detects the month and goes to the october scene, however it plays all of the animation in the september scene first. Is there anyway to get around this. Here's the code.
function currentMonth() {
// gets month (0-11)
monthScene = today.getMonth();
// sends to appropriate scene based on integer value of thisMonth
if (monthScene == 8) {
gotoAndPlay("september", 1);
}
else if (monthScene == 9) {
gotoAndPlay("october", 1);
}
else if (monthScene == 10) {
gotoAndPlay("november", 1);
}
else if (monthScene == 11) {
gotoAndPlay("december", 1);
}
else if (monthScene == 0) {
gotoAndPlay("january", 1);
}
}
currentMonth();
Skipping Frames
I was wondering if it was possible to cause a button to skip x amount of frames per click, rather than manuall setting the target frame every few frames.
I'm using Flash MX atm, any help appreciated.
Skipping An Intro
Hey Guys,
I ran a search on Skip Intro, and I didn't find anybody with this problem, so it must be an easy one.
I'm trying to create a preloader with the infamous Skip Intro button.
I'm thinking, it's just a simple button that you can click on that takes you to the next scene, even in the middle of the preloader.
I make a button and slap some script on it:
on (release) {
gotoAndPlay("scene 1,1");
}
However, the button doesn't work during the middle of the time line when I preview the movie. I put a stop script at the end of the intro, and i'ts only when it reaches the end, the skip intro script takes me to the next scene.
Are there any extra steps I need to take to make this thing work?
Thanks Guys,
Brad
Skipping Frames...?
Topic. Is there a way to go from like, frame 1,immediatly go to frame 5 without going through frame 2,3,and 4?
Skipping Intro
How would I make it so I press a button and it skips the intro?
Skipping 4 Frames
Hello,
I have the following code on a button:
Quote:
on (release) {
_root.CRBMain.nextFrame();
Is there a way to add it on another button that will skip four (4) frames instead of going to the next frame?
Thanks,
Jeff
Key Press Skipping?
Hi,
I posted the same problem yesterday and got a very helpful answer but I'm afriad my lack of understanding is still a barrier.
I am developing a presentation in flash. To control the frames I am using key press' I started off with this script
onClipEvent (enterFrame) {
if (Key.isDown(Key.RIGHT)) {
_root.screen.gotoAndStop(2);
_root.screen1.gotoAndStop(2);
_root.screen2.gotoAndStop(2);
_root.screen3.gotoAndStop(2);
_root.nextFrame()
}
if (Key.isDown(Key.LEFT)) {
_root.prevFrame()
}
}
Which would jump to the next section when the right/left key was held down. However the problem was that it would cycle through more than one. So it was suggested that I use this script
stop();
var keyListener:Object = new Object();
keyListener.onKeyUp = function()
{
if (Key.RIGHT == Key.getCode())
_root.nextFrame()
if (Key.LEFT == Key.getCode())
_root.prevFrame()
};
Key.addListener(keyListener);
This works but it seems to not jump in the correct sequence.
I woudl appreciate it if someone could look at my attached file and suggest any ideas about how I could make this file work with key press' but with just one change with each press not lots.
Hope that makes sense
Thank you
DRackham
Skipping Frames
Hi, I've got a problem with several Flash movies, in that frames are skipping. I'm fairly sure it's to do with my sound needing to be set to stream (not looping). I know my SWF is quite big (14MB), and it's fine after playing a few times in a row, but I've compressed it to 4MB and added a preloader at the beginning and the frames just don't seem to be able to keep up with the streaming sound (only 16 kbps and mono). Oddly, the full sized file sometimes performs better . . ?
I'm sure that the many computers I've tested it on must be able to cope with the movie; are there any tips anyone has used to maintain framerate? A preloader should mean minimal loading required throughout the movie?
Many thanks!
Skipping Timer
Hi All
I am having this little problem
I've made a presentation that consists of four scenes the main animation part of the presentation is in the first scene to add delay to various part of the presentation I've used the following timer code :
stop();
var intervalID = setInterval(function(){play();clearInterval(interv alID);},3000);
Initially this presentation was mean to be automated demo as so the mentioned action worked perfectly...
The problem is that now the client wants me to add useer interactivity to it that is by adding Play and Pause buttons ...
I added buttons to the presentation but they didnt work properly as if the frame on which the presentation is paused by the button contains timer action it simply executes the timer and them starts moving on.
I tried several methods to by pass the timer action by adding conditions on changing vales of a global varriable that works like a flag but nothing seems to work...
I wouldn't be able to send the source files as I can't upload anything from where I currently am sitting..
Can anybody help please????
Scene Skipping
I have a problem with my fla.
On my button I have this action:
on(release){
gotoAndPlay('Scene6');
}
This dose take it to Scene 6 but it gos through 2,3,4 & 5.
I have no Idea why can someone shed any light on this?
Thanks
Jonny
Skipping Around The Timeline
I have buttons that control the main movie, with each button skipping to different parts of the timeline, labeled s0, s1, s2, and s3.
For example, you click button #1, if it's the first press, it goes to and plays s0 (the stage widens up, an image corresponding to #1 slides in). If you press #1 and it's not the first press (stage is already widened), it goes to and plays s1 (only the image slides in). s2 and s3 does the same but for buttons #3 and #4.
what's the best way to control this in actionscript? Add var x = 0 somewhere and:
on (release) {
if (x == 0) {
x = x + 1;
_root.gotoAndPlay("s0");
if (x != 0) {
_root.gotoAndPlay("s1");
}
Does this make sense? Is something like this the right method?
Thanks.
Skipping Cue Points (PC Bug?)
Hi,
Here's my workflow:
Scenario #1: Main swf loads animation swf and audio-only flv with embedded cue points.
Scenario #2: Main swf loads audio/video flv without embedded cue points.
Audio-only flv contains embedded cuepoints which trigger animation changes in the loaded animation swf through a series of case statements.
This all works fine & dandy on my Mac.
However, when I test it on a PC, the .flv skips to the next cue point, plays for a couple seconds, then skips to the next cue point, etc. etc. This "skipping" is even reflected in the playHeadTime.
However, when I'm only loading a video/audio flv into my main swf (sans cue points) there is obviously no skipping.
Is this a known issue with PC's? I'm publishing for Flash Video Player 8. Could it be getting buggy while playing on Flash Video Player 9? OR, could it be that the lack of a video track in my Flash Video Encoded .flv is causing the flvPlayer to skip?
Thanks,
-D
P.S. Due to the proprietary nature of this project, I'm not really allowed to upload these files. But work with me, bros.
Animation Skipping Bug
hi there,
This only happens when i first open my game flash file about 166k. i have a walking movieclip that skips when published. however, when i locate the symbol in the library and enter it's timeline by double clicking it. then republish, animation has no skip. i noticed also this happens to my other animated movie clips when tweened. all animations are vector. and the walking clips is 3k. small.
i tried publish settings compress movie the same happens. its get tedious to keep double clicking some of my movclips to get my file to publish right. when i quit application and reopen the same happens. need to double click symbols to get animation flowing right? does anybody know a way out to this?
raskol
Repost: MP3 Skipping
For several years, I've taught a class where we use the MediaDisplay component to play back audio with cuepoints to show students how to advance through slides using the Flash Slide Presentation metaphor. All of a sudden, this semester, the audio we're using OFTEN starts skipping, or actually playing the start of the file over and over and over. Has anyone run into this. Is it a player 9 bug? That's the only thing I can think that has changed. Wasn't there at one time an upgrade for Flash 8 to bring in old 6-7 components that might have fixed this? I can't find that either. Any suggestion totally appreciated. Frustrated at best.
Skipping Frames
I have tried and tried and somethings work half of the way and others not at all.
I have a series of images that shows progress along a 12 month timeline.
When a play button is pressed the movie plays and the images display in succession at the framerate hard coded to the swf. I know you can't change the fps of the swf once it is playing but is it possible to create a button that will make it play every 10 frames, or every 5 frames, to give it the impression that it is going faster without actually increasing the framerate
any help would be great I have tried the playF thing that kglad suggested but I can't get it to work. You would think that something like this would have a built in function in flash by now I can't be the first person to want to have a fastforward button that yuo dont have to hold down to make work.
Skipping Forward
How can i make it so the animation automatically moves on from the loading screen? I have a loading sequence as part of a full flash site, yet when the site is published on the internet, the animation won't move on from the loading, without you controling it through the right-click controls. I really need this sorting out.
Thanks.
Scene Skipping
Hi,
I'm quite new to Flash MX.
I've got 2 scenes.
Halfway through Scene1 at frame 20, I want it to go to and play Scene2, then flick back to the Scene1 (but to a later frame[24]).
I've added an action at frame 20 in Scene1 telling it to gotoAndPlay Scene2, and then another action at the end of Scene2 to continue playing from frame 24 in Scene1.
The action halfway thru Scene1:
gotoAndPlay("Scene2",1);
The action at end of Scene2:
gotoAndPlay("Scene1",24);
//plays frame 24 in Scene1.
But it doesn't work. What it does is that it plays all of Scene1, then plays Scene2.
I want to export it as a Quicktime Video using the "Sorenson 3" compressor. It exports as a SWF file, but it doesn't work when exported as a *.mov (Quicktime Video) file.
I've included an FLA file, but its simplified.
What am I doing wrong?
Thanks!
Skipping Scnes
Hey guys, i need some quick help. Im making a title menu and i know how to skip from one from to another, but I want to skip from one scene to another. I have actionscript on the title menu frame to stop, but what should i put on the button to make it go to another frame? THANKS!
Skipping A Node In Xml
I need to know how to skip a node in xml based on the date.
I have an xml file that houses 2 swf movies:
[xml]
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<scenes>
<first>
<scene>movie1.swf</scene>
<caption>soccer</caption>
</first>
<second>
<scene>movie2.swf</scene>
<caption>soccer</caption>
</second>
</scenes>
[/xml]
and I want flash to skip the second movie based on what day it is.
if anyone can help me with this I'd appreciate it.
Skipping Scenes?
I am making a presentation utilizing scenes.
I have made buttons to skip ahead doing something simple like this:
on(press) {
nextScene();
play();
}
This seems to work fine for skipping ahead.
However when going to the next scene trying to jump back using:
on(press) {
prevScene();
play();
}
Just starts the scene its presently on over.
Please Help.
Thanks.
Skipping Preloader
I'm working on a site that appears to use the javascript api to display the different flash headers. The site was orignally setup to just refresh to the home page with a javascript function that also sent a parameter telling it which page's content (and header) to display. I've converted the site to individual pages and have everything worked out except the flash header, which now displays the preloader for every page that is navigated to. In IE, it doesn't really seem like a problem. It's Firefox & Safari that display the preloader.
HTML Code:
Each page calls the appropriate flash using:
flashHeader.TGotoAndPlay("/","aboutus");
Any suggestions on how to make it skip to a section without displaying the preloader?
Xml Slideshow Is Skipping
I have a slideshow that load jpegs from an xml file. I have 2 movie clips. One in the top layer that loads the image, then fades out. The movie clip in the second layer loads the second image and fades in while the top layer fades out. At the end of the timeline both images switch to the next one. My problem is that when a new jpeg loads, there is a second of blank white space, making it look like a skip. I need a smooth transition from one image to the next. Can I do this? Is there any way to lose that skip?
Here is my fla:
http://www.ryansherman.net/slideshow.zip
Flash Is Skipping Over My Script
It seems that when I put script in the first frame of the first scene, it sometimes gets skipped!
example:
if (_level0.FuturePage == 1) {
gotoAndPlay ("LastScene", 1);
} else {
gotoAndPlay ("FirstScene", 1);
}
The only way I can get this to work is to stretch out the number of frames on the first scene (I put this on the 15th frame).
Is there a command in flash that says "download my movie, then do the scripts in the first scene"?
Button Scene Skipping
I have two buttons in scene 1...
__________ __________
|Button 1| |Button 2|
---------- ----------
I want button one to go to scene 3 and button 2 to go to scene four? what do I do? I went to actions for each and put goto and then where it says scene I typed in scene3(for button one. what am I doing wrong?
Question About Skipping Scenes
Hi, I have a movie with two scene, and I want to make it so that when I click on a button in scene 1, it checks the answer and if the answer is right, it skips to scene 2. I have this code written in the button:
on (release) {
if (_level0:ans == _level0:key) {
gotoAndPlay ("Scene 2", 1);
{
}
But it doesn't work!
I'm sure this is really simple problem to a lot of you, but I really suck at flash and need lots of help. Please, please help me if you know why my movie doesn't work! Thanks in advance...
Skipping Intro Animation
I’m relatively new to flash and I created an animated intro on the home page. Is there a way so that once a user sees the intro and goes into the site and then they want to come back to the home page it automatically skips the animation? I know that’s kind of wordy, but that’s the best way I can explain it. Thanks in advance for any help you can give me.
Array Skipping First Letter
Why when I publish my movie it skips the first letter of my array. Everything seems to load into the array okay but, when the text moves into place it skips the first letter. I fixed it by making the first letter repeat in my text file but, I would like to know what I am doing wrong.
I have a text file named data.txt inside of the text file dataString=Work Please
On the stage I have an empty mc with the code
PHP Code:
//load the text file
onClipEvent(load) {
loadVarsText = new LoadVars();
loadVarsText.load("data.txt");
loadVarsText.onLoad = function(success) {
if (success) {
trace ("done loading: "+this.dataString);
//starting positions
startXpos = 100;
startYpos = 100;
nextX = 0;
elapsedTime = 0;
enterTime = 0;
//i = 0;
//put text from file in array
newLetters = new Array();
newLetters = this.dataString.split("");
trace("length: "+ newLetters.length);
} else {
//oops no text file loaded
trace ("not loaded");
}
}
}
onClipEvent(enterFrame) {
if (elapsedTime>100) {
enterTime = getTimer();
if (i<this.newLetters.length) {
/*attach a mc with from library link named letter
inside the letter mc is animated mc instance named animated
inside the animated mc is text box instance named letterContainer*/
newClip=_root.attachMovie("letter", "letter"+i, i);
//put the letter from the array into the animated text box
newClip.animated.letterContainer.text = newLetters[i];
trace("textWidth: "+newClip.animated.letterContainer.textWidth);
//move the newly made clip
newClip._x = nextX;
newClip._y = startYpos;
//place the mc next to the last mc
nextX = newClip._x + newClip.animated.letterContainer.textWidth;
++i;
elapsedTime = 0;
}
} else {
elapsedTime = getTimer()-enterTime;
}
}
Any help much appreciated.
Skipping Keyframes With Streaming
hi all -
My undertanding is that Flash skips frames as necessary to keep up with streaming audio - does this mean that actionscipt in a keyframe might get skipped over and thus not executed?
If so, is there any way to prevent this?
Thanks much,
brian
Sound Skipping When Loading From CD
I have a Flash MX movie running off a CD. The main movie (level0) has a main menu and each menu item loads an .swf into level1
Each of these 'sub movies' has a menu button in each scene and when you press the menu button I use "unloadMovieNum(1)" to get the sub movie out of the projector and the demo goes back to the main menu in the main movie.
The problem I am encountering is that sometimes the audio will start to jump and sound slow. It happens in random spots but always at the start of one of the sub movies. Once it starts jumping like this, it continues even if you go back to the main menu and into another sub movie. If you quit the demo and restart it the problem goes away and may or may not come back the next time you run it. I've been trying to fix this for waaay too long now and I'm at my wits end. If any of you have any suggestions how to fix this or theories about what might be causing this problem I would be forever grateful.
Skipping The Intro After Its Been Viewed Once?
okay i am using a dynamic system for my site and i want the flash intro header to only play once and then automatically just skip to the second part of the movie after that. I am pretty sure its possible cause i see it don all the time but only on HTML and flash sites. but since mine is dynamic i dont know if i have to do something special as its generating and reloading that main movie everytime. I do know how to make it load the xsecond movie on all the pages except the home page but still when i go back to home its gonna play the intfo again. so i am lost as to even where to begin on this. any help is greatly appreciated. thank you.
just to recap in simpler terms i want intro to play the first time you come to the site but from then on automatically skip to scene two or even just play movie two.
Skipping Sound Through A Timeline
Hey. I have this project I've been working on for a while, and it basicly has one mp3 file that starts in the first frame of the first scene and continues throughout the movie. I want to add a feature at the start where you can skip ahead in the movie (easy enough with GoTo...) BUT I want the sound to match the part of the movie it skips to.
ie. If you skip half way through the movie I want the sound to play from half way into the song.
I'd post my .fla, but its around 20 megs now (I know, I know...). It's a big project, much like flashback at http://www.tripatourium.com (It's under "Eye Candy").
Any help would be appreciated, I'm kind of in the dark here
Sean
Skipping First Frame In Timeline
Err, I know it must be something simple I am missing so if someone could point me to a thread about how to fix this that would be great.
This script was set to load in the first frame,
PHP Code:
var page = "counties.php?county=";
var link1 = page+"County1";
var link2 = page+"County2";
var link3 = page+"County3";
var link4 = page+"County4";
if( id == true ){
var link5 = page+county+"&sub="+num;
if( num == "3" ){ county = "cities"; }
else if( num == "4" ){ county = "water"; }
else if( num == "5" ){ county = "rec"; }
else if( num == "6" ){ county = "interest"; }
else if( num == "7" ){ county = "districts"; }
else if( num == "8" ){ county = "cemetery"; }
}
else if( sub == true ){
link1 = link1+"&sub="+num;
link2 = link2+"&sub="+num;
link3 = link3+"&sub="+num;
link4 = link4+"&sub="+num;
}
gotoAndStop(county);
If I empty my cache in my browser the timeline skips the first frame making the whole movie run over and over and not stopping on the frame. Off course once the swf is cached it works just fine.
So I moved the above script to the second frame and added the following to the first frame,
PHP Code:
if (((_framesloaded/_totalframes)*100)<100) {
gotoAndPlay(1);
} else {
gotoAndPlay(2);
}
Once again if I empty the cache it will skip both this frame and frame 2.
So I added a blank frame before the other 2 on the first frame of my movie. Now it loads fine. My fear is that a person with a slower computer or download speed may still see the movie skip these frames.
Is this just a common problem with actionscript that it won't read the script if the movie isn't completely loaded or am I just doing something completely wrong
Is there a way to make the movie completely stop on the first frame until the entire movie is loaded?
Skipping Playback Issue
ok i posted this issue a day or 2 ago but no one has responded. i will plead for help again.
here's the issue:
i have a cd that auto starts an exe file which displays the main interface. with this main interface i can load external swf movies/files into an empty container when i click on a button. after the cd has been playing for a few minutes i click on a button to load an swf movie into the empty container in the main interface (which is the exe file). the cd sound playback begins to "skip" or "chatter". I close/unload that swf by click a button and then all of the sound for the entire cd is stopped.
any possible solutions to this issue???
wade
LoadMovie() Skipping Every Second Attempt
I am using loadMovie to dynamically import a number of jpegs for a slide show. However, upon hitting "nextSlide" button the loadMovie() command only works every sceond time. I have included all the relevant code below.
Appreciate any suggestions on this one...
//the array is declared elsewhere and reads:
siteImage_arr[0] = "http://localhost/images/image1"
siteImage_arr[1] = "http://localhost/images/image2"
siteImage_arr[2] = "http://localhost/images/image3"
//code behind nextSlide button
on (release){
trace ("Pressed!);
//holder is a movieclip placed on the main timeline
holder.loadMovie(siteImage_arr[x]);
if (x==imageCount){ //imageCount = 2
x=0;
}else {
x=x+1;
}
}
**********
Output: everytime I press the nextSlide button, the trace works ("Pressed1"). however, holder will only display image1, blank, image3, blank, image2, blank, image1 ... etc.
cheers for any help!!!
dots22
Skipping Scenes With Buttons...?
My script doesnt work, which was
code:
on(release) {
gotoAndPlay(5, 1);
}
And I got an error, which i have no idea how to fix, again :P
code:
**Error** Scene=Scene 3, layer=Instructions, frame=1:Line 2: Scene name must be quoted string
gotoAndPlay(5, 1);
Total ActionScript Errors: 1 Reported Errors: 1
Help would be appreciated, thanks~!
Skipping Frames - Button Help
Hey Again
I seem to flood these forums with help!
I have created a scene. It is a radio with many different radio stations (A cool idea). Anyway i have buttons in this scene that change the station. However, when the scene loads it jumps to frame 3 and when i click the "Tune Up" button it skips to frame 6!
This is my actionscript for the button on frame 3:
on (release) {
stopAllSounds();
gotoAndPlay(4);
}
Its supposed to go to frame four but goes to frame six. I also tried:
on (release) {
stopAllSounds();
gotoAndPlay("Radio",4);
}
But it doesnt seem to work either. What could be wrong?
Thanks in advance
TedTLogan
|