ActionScript 2.0 :: Pointing To A Scene Depending On URL?

Apr 7, 2008

I've developed a quick video player that pre-loads, auto-plays and then finishes with a frame at the end that allows the user to play the video again, but a recent discovery is that the video reloads as a user browses through a few fields on the site (represent via string at the end of the URL).

What I'd like is that if you arive at index.aspx it starts the video at the preloader, but if you then move onto index.aspx?ID=1234 it goes straight to the scene with the replay function. The AS I'm using at the moment in the first scene is:

if (_url == "http://www.mydomain.com/index.aspx") {
gotoAndPlay("Preloader", 1)
} else {
gotoAndPlay("Replay", 1)
}

but I'm getting nothing from it.

View 3 Replies


Similar Posts:


ActionScript 3.0 :: Way To Make Character Spawn Depending On Which Side Enters Scene?

Jan 5, 2011

In my game, the character moves trough a map and everytime it hits the end of the map it goes to the next scene in which the map continues.The problem is, the character can come into a scene from two different sides, but I can only let the character appear on one side within the scene.So I was wondering if there is a way to make your character spawn depending on which side he enters the scene?

View 1 Replies

Flash :: Make A Button Navigate From Scene 1 To Scene 2 Without Displaying Both Scene Content In Scene2?

Jan 27, 2011

ive made a button in the scene 1 which i have managed to navigate to scene 2 but when i click the button it goes to scene 2 but displays everthing that is in scene 1 in scene 2, how can sort this out so upon the button click in scene 1 it goes to scene 2 and only display content in scene2.

[Code]...

View 1 Replies

ActionScript 2.0 :: Passing Parameters - Swf Should Open A Particular Scene Called 'Scene 2' Rather Than Scene 1

Sep 13, 2004

Check out this code:

[CODE]...

everything here is fine. It opens finely. But... i want to pass parameters where if i click a button in html page My.swf should open a particular scene called 'Scene 2' rather than scene 1. i tried

[CODE]...

View 2 Replies

Flex :: Adobe - Pointing To A Tab Within Application?

Oct 21, 2010

Does anyone know how I would load up a flex application and on load the application would open on a different tab within the application. The only thing I can think of is sending a parameter into the application to tell it where to go, but how does the app load that tab then?

View 1 Replies

ActionScript 2.0 :: Two Domains Pointing To 1 SWF - ERROR

May 13, 2008

I have two domains pointing to the same swf. So I have domain "A" and "B" where my swf (site) is hosted at "A". Domain "B" loads site "A".

The swf loads some vars from a DB, when seeing site directly at domain "A" I have no problems, but when seeing with domain "B", my site just freezes....giving an error at the Browser and I have to close. This is for FF and IE.

At first I thought this was cross domain policies, so I have put at my swf the following code:

Code:
System.security.allowDomain("B")

View 7 Replies

ActionScript 2.0 :: AddChild Buttons Pointing At XML Data?

Jan 25, 2009

I have a scroll component that I use to scroll through a long movie clip that loads a list of 3 text fields from an XML file (each item is called Li and some of the fields include a unique bID (b1, b2, b3 etc) pN, Da etc. on XML load I use a loop to populate the movie clip with the primary information fields creating a list of each <Li> Item in the list by showing the first three fields in that item. Now I would like to add a button to each item that allows the user to see the complete information in that list item. This button should either generate a new movie clip (or make a current one visible) and populate that new movie clip with information taken from said list item. What I don't seem to be able to figure out is how does AS3 handle this, how do I either generate or add a button that will know that if this button is clicked it should get the information from the corect XML list item.

View 2 Replies

Professional :: Animated Buttons Pointing To The Same Link?

Sep 16, 2010

I am working on our new website and have purchased an animated flash template. I have very limited experience of Flash and use Dreamweaver as my every day web tool.
 
I have modified most of the template but have a frustration with some animated buttons pointing to the same page even though I think i have programmed CS5 to point it to different pages. In the middle of each page is 3 boxes which have 3 Read me buttons... each should point to a different page.
 
[URL]
 
It has absolutely got me beaten. I have copied the buttons and their animations, renamed all elements of the button but something is clearly linking them together.

View 3 Replies

ActionScript 3.0 :: Library - Have The Two Clips Pointing To The Same Class

Oct 29, 2009

I have a quick newbie question (I just switched to AS3) : I have two clips in the library that are exactly the same in structure, just that the design changes. Two different characters lets say. Now, I'd like to apply a class to them, and that class is going to be 100% the same for both, how can i do to have the two clips pointing to the same class...? For the moment what I did is save my class with another name, but I guess it's a bit lame...

View 5 Replies

ActionScript 2.0 :: Scrubber Is Not Exactly Pointing When Loader Click?

Aug 2, 2010

i have an mp3 player that works well but when i click on the loader bar, plays from that clicked part, time is also updated, but the scrubber is way to far from the that clicked part of the loader.how can i make the scrubber points exaclty to part when a user seek from the loader bar?

View 6 Replies

ActionScript 2.0 :: When Externaly Loading An Swf, Pointing To A Particular Frame?

Aug 30, 2004

if you are loading an external swf to a target or container or what have you, can point it to a particuar frame or scene in that swf?

View 5 Replies

ActionScript 3.0 :: AddChild Buttons Pointing At XML Data?

Jan 25, 2009

I have a scroll component that I use to scroll through a long movie clip that loads a list of 3 text fields from an XML file (each item is called Li and some of the fields include a unique bID (b1, b2, b3 etc) pN, Da etc. on XML load I use a loop to populate the movie clip with the primary information fields creating a list of each <Li> Item in the list by showing the first three fields in that item. Now I would like to add a button to each item that allows the user to see the complete information in that list item. This button should either generate a new movie clip (or make a current one visible) and populate that new movie clip with information taken from said list item. What I don't seem to be able to figure out is how does AS3 handle this, how do I either generate or add a button that will know that if this button is clicked it should get the information from the corect XML list item. I hope this makes sense?

View 2 Replies

ActionScript 3.0 :: Blue Line Pointing To Dot Incorrect

Feb 25, 2012

Code:
button.addEventListener(MouseEvent.CLICK, myButtonAction1);
function myButtonAction1(e:MouseEvent):void {
for (var i:uint = 0; i < 9; i++){
var ray:RaySpark = new RaySpark(i*15)
addChild(ray);
[Code] .....
The blue lines should each be pointing at a circle, what did i do wrong?

View 1 Replies

ActionScript 2.0 :: When Externaly Loading Swf / Pointing To A Particular Frame

Aug 30, 2004

i was curious, (cause this would help me a lot) > if you are loading an external swf to a target or container or what have you, can point it to a particuar frame or scene in that swf?

View 5 Replies

ActionScript 2.0 :: Pointing To A Specific Frame In A Loaded Swf?

May 16, 2005

I have a dropdown menu that I'm learning to use from a tutorial. It's just a little over my head and am wondering if someone could help me. Here's my situation:

1) The menu has the title, DESTINATIONS. Submenu dropdown are a list of CONTINENTS. Rolling over CONTINENTS show COUNTRIES. This works.

2) Clicking on a Country should:

A) load an external swf into an empty movie clip :: Works!

B) go to the COUNTRY specific frame within that loaded movie clip. :: Doesn't work!

Here is a sample code from this menu, where it defines the fields that populate the menu:

var menu_0 = ['Destinations',['Africa#destinations1.swf|Rwanda#destinations1.swf |Uganda#destinations1.swf|Kenya#destinations1.swf| Madagascar#destinations1.swf|Botswana#destinations 1.swf',
'Asia#destinations1.swf|Japan#destinations1.swf|In diat#destinations1.swf']]

Could someone help me figure out how to direct the link in the menu in a specific frame in an externally loaded swf? I can do this on a 'normal' button using placeFrame, but because I'm unfamiliar with how this particular menu is made, I don't know how to implement what I know.

View 5 Replies

ActionScript 3.0 :: Adding Interactive Cursor (Pointing Hand)?

Dec 30, 2009

I have used the simple script below on several Flash animations to restart the movie by clicking on the last frame. It works fine, but does not show the interactive cursor (the pointing hand). How can I alter the code below so that the browser shows the hand when the visitor moves the cursor over the paused movie?
stage.addEventListener(MouseEvent.CLICK, function(){ gotoAndPlay(1); });

View 5 Replies

ActionScript 2.0 :: Basic XML Driven Menu - Button Pointing To Same SWF

Sep 12, 2007

I'm trying to make a real simple flash menu, and I am using the "Squirrel Finder"-tutorial as a base. Problem is, when I trace my variables desc and swfURL they are correct, and the numbers on the buttons work fine as well, only when I click on the buttons all of them point to the last post in my XML, i.e., buttons 1,2,3,4,5 all point to swf 5.

Code:
function skapaMeny(menu_xml) {
var proj:Array = menu_xml.firstChild.firstChild.childNodes;
for (var i=0; i<proj.length; i++) {
var desc = proj[i].firstChild.childNodes;
var swfURL = proj[i].firstChild.nextSibling.childNodes;
[Code] .....

View 2 Replies

ActionScript 2.0 :: Stop Pointing Hand Cursor From Appearing When Mouse Rolls Over Flash Button?

May 1, 2002

Way to stop the pointing hand cursor from appearing when the mouse rolls over a Flash button?

View 13 Replies

ActionScript 3.0 :: Events Move On To A Specific Scene AFTER The Rest Of The Scene's Animation Has Played Out

Aug 11, 2009

so I have some buttons that, as of right now, simply trigger the scene to move on while at the same time killing some particle effect animations I have spawning when the animation is idle. What I now need to do is make these events move on to a specific scene AFTER the rest of the scene's animation has played out (about 400 more frames) I'm figuring that the gotoAndPlay command has to be tied to some sort of timer variable that I would have to figure out based on my fps. Or maybe there is a way to set up a timer directly tied to a certain amount of frames allowed to go by. I'm pretty noob at actionscript, so keep that in mind. Here is the script at the point where the animation pauses to await user input on the buttons:

[Code]....

View 4 Replies

ActionScript 2.0 :: Have A Main Scene, Then Sitting In The Root Scene Have 2 Movie Clips.1)?

Dec 28, 2009

No..not that type of parenting ;DOK,I have a main scene, then sitting in the root scene I have 2 movie clips.1)centro2)fotoIn the first movie "centro" there is a menu btnI want this menu btn to call up mclarge + its frame (1) thats housed 3 levels inside the foto mc in root.

Main scene - (1) centro (banner which houses menu btn)
(2) foto_mc
- Main_boy_mc (<---works if menu btn houses in here)

[code].....

View 0 Replies

ActionScript 2.0 :: Make The Movie Jump From Scene 1 To Another Scene By Clicking On A Button?

Apr 17, 2004

I have a movie with 4 or 5 scenes. How can i make the movie jump from scene 1 to another scene by clicking on a button?

View 5 Replies

ActionScript 3.0 :: ArgumentError: Error #2109: Frame Label Null Not Found In Scene Scene 1

Apr 1, 2010

ArgumentError: Error #2109: Frame label null not found in scene Scene 1. at flash.display::MovieClip/gotoAndPlay() at intro_fla::MainTimeline/intro_fla::frame606()[intro_fla.MainTimeline: :frame606:3]

View 3 Replies

ActionScript 3.0 :: ArgumentError: Error #2109: Frame Label FrameThree Not Found In Scene Scene 1

May 21, 2010

I'm trying break down a large Flash project into smaller swf's using a Loader :
 
stop();
var reqA:URLRequest = new URLRequest("New_Inro.swf");var loaderA:Loader = new Loader();
function imageLoadedA(event:Event):void {    addChild(loaderA);}   loaderA.contentLoaderInfo.addEventListener(Event.COMPLETE, imageLoadedA);loaderA.load(reqA);
 
Some of these swf files are animations which have code that states :

MovieClip(parent).gotoAndStop("frameThree");

The first loader works but I cannot get that swf to move on to the next frame(frameThree) to load the next swf file
 
Instead I get this message
 
ArgumentError: Error #2109: Frame label frameThree not found in scene Scene 1.    at flash.display::MovieClip/gotoAndStop()    at New_Inro_fla::MainGuy_1/frame146()[New_Inro_fla.MainGuy_1::frame146:2 ]

View 4 Replies

ActionScript 3.0 :: Error #2109: Frame Label <BUTTON INSTANCE NAME> Not Found In Scene <SCENE NAME>.

Sep 2, 2011

I'm getting this error in the OUTPUT window, when I PREVIEW (COMMAND + RETURN) my SWF:
  
ArgumentError: Error #2109: Frame label nGallery_btn not found in scene Scene 1.
at flash.display::MovieClip/gotoAndStop()
at BrookBrovazMusic004_fla::MainTimeline/pageSelect()
 
- The funny thing is that the SWF works the way I want it to. You can view it here:  http://brookbrovaz.com
  
- I just don't like the idea that something's wrong, according to the OUTPUT window anyway.

[Code]...

View 3 Replies

Actionscript 3.0 :: ArgumentError: Error #2109: Frame Label Instance121 Not Found In Scene Scene 1

Jun 22, 2010

the error is:

ArgumentError: Error #2109: Frame label instance121 not found in scene Scene 1.
at flash.display::MovieClip/gotoAndStop()
at Untitled_fla::MainTimeline/goLabel()

this is my code:

stop();
function goLabel(e:MouseEvent):void
{

[code]....

i am using a movie clip button to open a swf with a loader. hope i m not missing any information/other coding....

View 3 Replies

ActionScript 2.0 :: Error - Scene=Scene 1, Layer=balls, Frame=1:Line 15: Identifier Expected

Oct 10, 2005

I've created a class which simulates an action for example a ball bouncing about a screen thus I'd create it like so:

Code:
var Ball1:ball = new ball(x,y);

How would I go about adding this to a loop, in a sense of every frame add another ball till you reach the maximum balls
currently after looking in help, google and forums this is all I could find

Code:

var ["Ball"+currentball]:ball = new ball(x,y);

but this doesn't seem to work and just causes

"**Error** Scene=Scene 1, layer=balls, frame=1:Line 15: Identifier expected"

View 3 Replies

ActionScript 3.0 :: ArgumentError: Error #2109: Frame Label Contact Not Found In Scene Scene 1

Mar 4, 2011

I have created a new Flash file using A3.It has a menu system which all works, I have included trace code that outputs button pressed.So the next step is when the right button is clicked it takes them to the next scene. Please note I have coded it in AS3. When I compile it returns no error however at run time when I click on the buttomit returns the following error:

Menu 1, button 1
ArgumentError: Error #2109: Frame label contact not found in scene Scene 1.
at flash.display::MovieClip/gotoAndStop()
at menuformason_fla::MainTimeline/itemButtons()

[code]....

View 1 Replies

ActionScript 3.0 :: ArgumentError: Error #2108: Scene Scene 2 Was Not Found

Feb 22, 2009

The code below works fine in CS3. But I get the following code when I try to run it in CS4:

ArgumentError: Error #2108: Scene Scene 2 was not found.
at flash.display::MovieClip/gotoAndStop()
at
introActionscriptWorkFile_Scene1_fla::MainTimeline/gotoScene2()

Here is the code: (Note: "scene2Frame1" is a frame label).

View 5 Replies

ActionScript 3.0 :: Error When Placing FLVPlayback Object On Scene Other Then Scene 1?

Jul 28, 2009

When I place a FLVPlayback Object on scene 3 I get the following errorTypeError: Error #1009: Cannot access a property or method of a null object reference.atUntitled_fla::MainTimeline/__setProp_flv_promo1_Scene3_Layer1_0()atUntitled_fla::MainTimeline/frame1()

View 11 Replies

ActionScript 3.0 :: Tweens Play Too Fast When Jumping From Scene To Scene?

Aug 13, 2009

I have an eventListener on a particular movieClip that triggers the timeline to play when clicked.  This should play through a short tween, then hit another piece of actionscript in the last frame of that scene, which should take you to the next scene.  I also have an audio file loaded into a soundChannel, as well as a few timers that operate a click prompt over the movieClip already mentioned.  My bug is that if you click on said movieClip before the soundChannel is finished playing, all functions properly.  However, if you wait for the sound to finish, this initiates a few timers that cause a prompt to fade in, telling you to click on the movieClip.  If you click on it, still, everything works fine.  But once the timers complete their work, and the click prompt fades back out, the tweens do not operate properly.  If you then click on the movieClip, the timeline seems to play doubletime until coming to a stop() action in the next scene.

[URL]

View 2 Replies







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