ActionScript 2.0 :: XML Data Remains Through Scenes

Jun 10, 2008

Using Flash 8, AS 1/2. Here's what I'm trying to do... I've got a slide show sort of thing. Five different scenes. You can navigate scene to scene with simple button navigation. One half of the slide show displays a constant image. The other side displays a different image depending on the scene you're in. Along with each different image, there is a caption for each image. When you click on the caption, text from an external XML file is displayed.

I got that far, and I thought everything was working perfectly. Then I changed scenes. The scenario I'm at right now: Scene 1 loads. I click on the caption. The text from the external XML file displays. Click the navigation button to go to Scene 2. The text from the external XML file that displayed when I clicked Scene 1's caption is displayed. If I click through the rest of the scenes, the text that was displayed when I clicked on Scene 1's caption is displayed throughout. What I need is this: When I click the caption in Scene 1, the text should appear in show_desc. When I go to another scene, there should be no text unless I click on the caption for that scene. I'm not sure how to accomplish this, and I've been trying everything I could think of/could find with no success.

EDIT: I figured out that problem, sort of. The caption is set as a button. It's got an onRelease function, so when it is released, it displays the XML data. I had a function wrapped around the first function, which delayed the XML-display function by one second. It seems that, with that function added in, it was just continually asking for the XML data over and over and over again. The thing is, I do need that delay to occur. What I was using before was:

[CODE].....

View 14 Replies


Similar Posts:


Make A Movie With Multiple Scenes - Streaming Sound And Scenes Sync

Jul 3, 2009

whenever I set my sound to stream and continue to make a movie with multiple scenes. The audio and video get disgustingly out of sync sometimes even off by 30 seconds. I just started an animation its only 10 seconds long with two scenes and the AV is already off by about 5 seconds. Ive worked around this by avoiding scenes altogether but i really don't want to have another 5000 frame scene. I discovered this problem in Flash MX and Im quite annoyed that it still has't been fixed 3 years later!

View 1 Replies

ActionScript 3.0 :: Button That Remains Pressed?

Jul 20, 2010

i have a movieclip with some buttons with blur, when you rollover on them they become normal, when you rollout they return blur.

what i would like to do is that when you press on of them it becams normal and remain in that state untill you press on onother button.

Is there a way to do this? maybe something that prevent onRollOut when you pressed the button?

My code:

Code:
import gs.*;
this.buttonMode = true;
TweenMax.to(this, 0.5, {blurFilter:{blurX:5, blurY:5}});

[Code].....

View 10 Replies

ActionScript 1/2 :: When Press A Button, It Remains Pressed?

Nov 4, 2009

how do I join so that when you press a button, it remains pressed?

View 1 Replies

ActionScript 3.0 :: Sound From The Flv Remains Their And My Bg Music Not Playing Also?

Sep 3, 2010

i made a webiste with bg sound, home, portfolio, gallery, contcts. This are the links. when click portfolio, which contain a flv file, when clicking the flv file bg music stop and video will play smoothly.But if i navigate to other links the sound from the flv remains their and my bg music not playing also..

View 1 Replies

ActionScript 1/2 :: Action Pannel Remains Hidden?

Jul 3, 2011

how to get the action pannel displayed again???? It worked until this morning, and then quit. I tried clicking both  F9 and window/actions, no luck though. I have reinstalled Flash, restarted my PC. Same.

View 2 Replies

ActionScript 3.0 :: Centre Of Map Remains Centered During Map Scale?

Oct 28, 2011

I've created an mc which functions as my map and controls to go with that which allow the map to be moved around and key points navigated to and zoomed in on at varying zoom levels.I'm using scaleX and scaleY to scale the map mc and a list of x and y positions to correctly position the map for each key point. The map mc starts at 1:1 scale ratio with the screen and it's registration point is at 0,0.When I want to go to a certain area I perform this calculation (offsetX and offsetY are the center of the screen and posX and posY are predined offsets on the map):[code]

I now need to implement a zoom in / out function and this is what I'm struggling with. The zoom should use the center of the screen as the reg point for the scale, so I've been trying something along the lines of the following to get the correct x and y position to set after the scale:[code]I know this is wrong but I've shown this to give you an idea of my train of thought, I need to work out what the new x and y will be to ensure that the area that is being zoomed in on, stays in the center of the screen.So in my mind this gets the distance from the current position of the map relative to the center point of the screen (offsetX, offsetY) then scales that distance by the new scale.

View 6 Replies

Actionscript 3 :: Flash Cursor Remains Arrow?

May 20, 2011

I've got an actionscript project (code I inherited) in which the cursor remains an arrow at all times. Even when I set a Sprite's buttonMode, nothing changes.

mySprite.buttonMode = true;
mySprite.useHandCursor = true;
mySprite.mouseChildren = false;

I've searched the project for terms like 'cursor' and the above 3, but I can't find anything.Is there some global setting somewhere that disallows cursor modification?

View 1 Replies

Flash :: Object Remains On Stage After RemoveChild()?

Nov 21, 2011

I am using removeChild() to remove a MovieClip. And via tests, I can confirm that it's working fine ( stage.contains(mc) returns false ). But the MovieClip still does not seem to be removed, as if the stage is not updated correctly.

View 1 Replies

ActionScript 3.0 :: UI Loaders And Flv Files - Sound Remains

Feb 24, 2011

I loaded a flv into a uiloader. I have 4 buttons which load different projects in. A quiz, an animation and a video. Works great apart from when you click the buttons either the flv sound remains or if you click the flv button I have multiple instances of the audio. The main file AS3 is

[Code].....

View 0 Replies

ActionScript 3.0 :: RemoveChild But Mouse Remains Over/active?

Jan 3, 2010

I have a button on screen which is removed with removeChild when a certain timer event fires. However, if my mouse is on top of this button when the timer goes off, the button is removed but the mouse remains active (it's still a little hand cursor) and as soon as you move the mouse at all, the button fires its MOUSE_OUT event.

What I would like to happen is for the button to disappear and if the mouse is above it the mouse will simply go back to an arrow cursor and most importantly the MOUSE_OUT event won't be fired (in my case the event triggers a sound effect).It seems to me that the way to make that happen would be to set my button to null. However I use this button every time the user completes a level so it seems wasteful to null it and rebuild it ever time when i can simply add/remove it.

View 7 Replies

ActionScript 1/2 :: Track Scenes Viewed And Display Image A Or Image B Based On Scenes Viewed

Feb 26, 2011

I have an interactive story divided into scenes. At the end of each scene a button appears. This occurs on a frame on the timeline.
 
There are two different buttons that might appear based on whether a prior scene has been viewed or not.
 
For example, there are Scene_1 and Scene_2. At the end of Scene_2 one of two buttons will appear. The buttons will be either "Go see Scene_1" or "Return to Main Menu".
 
If the user has already seen Scene_1, Flash will know that and automatically go to the frame in Scene_2 that contains the button "Return to Main Menu".
 
Conversely, if the user has not seen Scene_1, Flash will know and automatically go to the frame in Scene_2 that contains the button "Go see Scene_1".
 
I imagine there would be an action frame at the end of Scene_2 that will contain the as2 code to enable this action.
 
Perhaps something like, but probably not at all like the following:
 
if ("Scene_1", last frame == true){gotoAndPlay("frame#");}else{gotoAndPlay("frame#");}

View 1 Replies

Disable The Hand For A Button Instance So The Pointer Remains?

Aug 20, 2009

how do you disable the hand for a button instance so the pointer remains? this is for AS3.

View 7 Replies

Professional :: If Go Fullscreen When Viewing An Flv The Video Remains On The Stage

May 5, 2011

I've used a standard skin on an FLVplayback component which loads and plays perfectly. The problem arises when I enter fullscreen mode and then leave it again. Once I've done this, the video remains on the stage irrespective of what frame I'm on. I can even change scenes and the video remains in the middle. I haven't even added the video using actionscript so I don't really understand how it could possibly stay on more than the frame its inserted in!? At the moment I've used no ActionScript to control the video. I apologise if I'm missing something, this is the first time I've dealt with videos.

View 8 Replies

Professional :: FLVplayback Window Disappears But Sound Remains?

Mar 29, 2012

I'm using Flash CS5 and Actionscript 2. I'm created a multi page training document with some pages containing videos. I have a set of XML program generated videos that work great until I use removeMovieClip(); when exiting the page.  I use this to kill the video before I get the the next page.When I come back to the page the code I have regenerates the list. But when I play the videos I only get sound and no video. Sometimes the video black window appears and then immediately disappears or nothing appears but the sound starts playing.
 
Here are the relevant pieces of code: 
import mx.video.*; 
//Creating the mc which will contain the FLVPlaybac 

[code].....

View 7 Replies

Actionscript 3 :: Xml Array Of Objects Parsed From XML Remains With Zero Length?

Apr 9, 2010

I'm trying to parse an XML file and create an object array from its data. The data is converted to MediaAlbum classes (class of my own). The XML is parsed correctly and the object is loaded, but when I instantiate it, the Albums array is of zero length, even when the data is loaded correctly.I don't really know what the problem could be

import Nem.Media.*;
var mg:MediaGallery = new MediaGallery("test.xml");
trace(mg.Albums.length);

[code].....

View 1 Replies

ActionScript 3.0 :: Button Rollover State Remains On Rollout?

Feb 9, 2009

I'm in the process of building a Flash AS3 navigation for a client's website. The horizontal navigation has five main links, and a secondary navigation will drop down under three of them on rollover (this part isn't complete yet). The rollover and rollout states are animated: on rollover they gradually change color; on rollout they gradually change back to the original color.Well, I've finally gotten the code figured out (my first foray into AS3 after finally being comfortable with some things in AS2!). However, depending on how you move the mouse (i.e., if you move the mouse over the button too quickly), the rollover state remains on rollout and I can't figure out why. Can someone help? I also need to know how to designate an active state when the button is clicked (say, if you clicked on Projects, the Projects button would be highlighted (the rollover state) when you're on that page.The link to the in-progress navigation is located here: http:[url].... And this is the AS:

var homeLink:URLRequest = new URLRequest("../index.htm");
var mySound:Sound = new clickSound();
home_mc.buttonMode = true;[code]......

View 0 Replies

ActionScript 2.0 :: Get A True Invisible Button That Still Remains Clickable?

Apr 22, 2003

without using alpha 0% in Flash5

this is the problem.

i want to make a button invisible. however, since using alpha 0% will create colordifferences with 16bit colors, I want to use _visible = "0"; (like you would on a MC).

one option is to put a MC inside the button and make that invisible, but obviously you can't without an onClipEvent handler, but if you do so, it doesn't work.

puting the button inside a MC is the second option, and with the _visible command it works... however, it also stops the button from working.

is there a way to get a true invisible button that still remains clickable????

View 3 Replies

IDE :: RemoveChild - Videos Load But Audio Remains From Previous SWF

Jun 30, 2009

I've got a SWF loading others SWFs with this code:

[Code]...

Videos load, but audio remains from previous SWF. I thought removeChild would take care of it.

View 3 Replies

IE Ignores Flash Width/height, Display Remains Small?

Feb 26, 2012

[URL]how do i stretch the movie to fill the entire white area which is set to be 500 to 350 px (please see pic)

the code:

<object type="application/x-shockwave-flash" data="videos/player.swf" width="500" height="350">
<param name="movie" value="videos/player.swf">
<param name="quality" value="Best">
<param name="allowFullScreen" value="true">

[code].....

View 2 Replies

ActionScript 3.0 :: A Stage Instance Named Remains Null To The Frame?

Jun 6, 2011

For some reason, no matter what I try, a stage instance named 'track' remains null to the frame it's on. I've made sure that Auto-declare stage instances is checked. Is anyone familiar with this problem?

View 1 Replies

ActionScript 2.0 :: External XML Loads But Content Variable Remains Undefined?

Sep 5, 2005

what i have got is an external XML file that loads the news data into flash where it is there parsed and assigned to a dynamic text box and styled with a style sheet. Through trace() if found the xml gets loaded properly but when i upload it to a webserver it does not always load. Many times the variable just reads out undefined. If i refresh it a few times it will eventually load. This is not acceptable of course. It needs to try until it loads. I thought i had the code to make this happen but Im afraid im mistaken.here is the code, its inside the first frame of a simple swf with only the dynamic text box.

Code:
stop();
trace("1");

[code]......

View 4 Replies

Flash Load ALL Scenes Of A Movie Or Does It Load The First Scene And Then Load The Other Scenes?

Jun 2, 2010

I am working with a project that has many scenes. Each scene has a movie clip attached to it. The first scene is simple...just a couple of buttons and that is it. My worry is that when I add all of the videos that correspond with each button and publish the SWF will be a huge file. THE QUESTION: Does flash load ALL scenes of a movie or does it load the first scene and then load the other scenes when the user needs to view them?

My ultimate goal is to just have the first scene load and then when the user clicks on the buttons contained within that scene that only upon release does the corresponding scene load. Maybe I am doing this completely wrong and should look at doing it another way.

View 6 Replies

Media Server :: Live Multicast On FSM Remains Active After Client Disconnects

Mar 9, 2011

I have followed the code provided in a thread in this forum on recording a multicast:
 
[URL]
 
Basically, it gets aan RTMP stream from a client and attached that incoming stream to an outgoing RTMFP stream with multicast enabeled.
 
Everything works fine, except, after the client disconnects from the server, the multicast netstream on FMS continues its life. The admin panel shows that netstream as a stream with type Live.
 
I have tried things like:

ns.publish(false);
ns.attach(false);
 
but the stream keeps staying on the server, how is it possible to get rid of it when the client disconnects?

View 2 Replies

Actionscript 3 :: Flex 4 UIComponent Width And Height Remains Zero After AddChild Is Called?

Aug 25, 2011

I have a component ObjectHolder which extends UIComponent that holds many children UIComponents. However, after using addChild() to add these children to ObjectHolder, its width and height remain zero. Is it possible for the UIComponent to automatically expand to the size of its containing children components?

public class ObjectHolder extends UIComponent
{
public function ObjectHolder()

[code].....

View 2 Replies

Flex :: Move Shape Object Across Screen- Initial Object Remains

Jun 25, 2011

I am trying to move a 'Shape' object across the screen. As the object moves, a copy is being left at the initial position. Almost as if only an instance of original object ahs been moved

This is not an issue for moving an image or MXML graphic. Is something wrong in setting to the move object?

The code is as follows

private var arrow:UIComponent;
private function resetAssets():void{
arrow = new UIComponent();

[Code].....

View 1 Replies

IDE :: Adding A Single Sprite On Main Moviclip Sprite Remains Invisible

Mar 2, 2009

I created a new AS3 document (550px by 400px) and added the following code to the first frame.

However, when I run this, I see nothing painted on the screen at all, the screen remains completely white.[code]...

View 3 Replies

Professional :: Motion Tweened Object Wiped Off Screen In Fullscreen But Remains On Screen In Closeup?

Jan 23, 2010

I'm new to Adobe Flash CS4. I'm making an animation of some fish underwater. I have 2 small fish motion tweened to follow a large fish from left to right. When I view the animation in full screen the small fish seem to be wiped off the screen at a certain point. The tween box continues to follow it's path but the symbol disappears. This only seems to happen with larger objects.

[Code]...

View 2 Replies

ActionScript 3.0 :: Multi Video Player - Audio From The Last Video Remains Playing Even When Prompted To Stop??

Jun 2, 2010

I built a timeline based player with 2 menus and many videos that you can play.The buttons move the timeline to a frame label and the video plays. The back button has a stop function built in it so the video stops playing when its hit.It plays wonderfully locally but once on a server after a few clicks it boggs down and sometimes the audio from the last video remains playing even when prompted to stop. I was pointed to use the add and remove child functions to prevent this but being very new to Flash and 100% self taught i have zero idea on how to do this. The link to the player is[url]....Even if its a link to a tutorial or something.

View 3 Replies

Flex :: Sort Collection And Sort Remains In Place When Adding To Collection?

Jun 30, 2011

When I get a collection back from the service tier, I create an ArrayCollection and apply a sort. When I add an item to the collection later on, the sort is still in place? It seems to be the case. I thought I was only sorting it once, not applying a sort that will stick??Here is the method for adding an item:

private function onAddNewClick():void
{
var fileTemplate:FileTemplateDetailDTO = new FileTemplateDetailDTO();

[code].....

View 4 Replies







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