Help On Swishmax - Linking Buttons... - ...to different scenes in a movie!

free web hosting
Free Web Hosting > Computers & Tech > Designing

Help On Swishmax - Linking Buttons... - ...to different scenes in a movie!

firefoxsilver9
hi all. my problem is this. i'm creating a flash website and so far it is going ok. anyway, i'm creating different scenes for different pages and i'm not sure how to link the buttons i'v created to go to a specified scene/page. i know a scripting code to link a button to go to the next/prev scene, but i need to know how to make it go to a specified scene/page. if you know how to do this, please let me know. thanks in advance, i really would love that. smile.gif biggrin.gif

-paul

Reply

Houdini
That would be done by using a document link to the scene or whatever you call it all you need to do is place an anchor to that scene or page then you would link to that anchor by calling its name the one you gave to the anchor.

Here is an example for a scene that is one the same page in that scene lets call it
<allattributesofsomething.swf> then you would enclose this .swf with a named anchor as shown below:
CODE
<a name="youranchorname"><allattributesofsomething.swf></a>

Ok that is now an anchor then wherever your button is you would enclose it with
CODE
<a href= "#youranchorname">your button</a>


Npw provided that these are on the same web page when a user clicks the nutton it looks for the anchor named youranchorname and runs it, if it were on a different page though just accesss it like the next little bit of code;
CODE
<a href="otherpage.html#anchorname">your button</a>


This should have you linking to any page that you have control over because you are the one that decides where you need these anchors, and of course you are the one that names them so I would make them pretty descriptive if you have alot of them, stuff like anchor1 anchor2, anchor3 would get hard to keep track of.

Just remeber that the # lets the code know that it is looking for a named anchor so don't forget the # when you try to access your anchor or it won't work

 

 

 


Reply

firefoxsilver9
and where would i input these codes? in the script panel?

Reply

firefoxsilver9
ok i'm confused. can you walk me step by step?

Reply

Houdini
The link to the named anchor should surrond your button so that it looks for the named anchor. so lets say you use the html for a form button like below:

CODE
<a href="#Scene1"><input type="submit" value="See Scene 1"></a>


That will make the button a link to an anchor somewhere in your document then you would enclose the script that you want them to view within then named anchor, in this case I refered to it as "Scene1" so the named anchor would kinda look like this.
CODE
<a name="Scene1">The script for your scene or whatever would be here....
................................................................................
~ to end of script</a>

The script would go between the open and closing named anchor in the case
<a name="Scene1> and </a> and it should work if you had some code to show for the actual scene or whatever I could make it clearer and also some code that kind of showed your main page or content.

Reply

iGuest
Replying to Houdini

This is a little long winded isn't it? Whats wrong with just putting the code:



On (press)

{

GotoSceneAndPlay("Scene_5",1);

}



In this example this would link the button to 'Scene 5'

-reply by the_drummer

Reply

iGuest
Linking scenes in Swishmax
Help On Swishmax - Linking Buttons...

You just have to open the script window and select the on Press/add script/movie control/GoToAndPlay/Goand play movie(frame) and select scene boton and select your scene from the dropdown list. You must have the scene previously created.

But I have a problem. I linked my first scene to the second and when the second scene opens some images have to fade out, (in fact the second scene is a copy of the first one and when it starts, some images have to fade out and in their place will appear some text lines). Well, I exported the swf and watched it on my browser but the photos of the second scene only fade out once. If I clic the link to go to the main page and from the main page I clic the link to the second scene again, the photos don't fade out anymore, they are still there. Anybody knows why the animation only plays ones?� Is only because is a preview?�

-reply by Ghost

Reply


Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

(Maximum characters: 10,000)
You have characters left.
Confirm Code:

Recent Queries:-
  1. swishmax 2 submit button - 8.27 hr back. (1)
  2. link to page in swishmax - 8.73 hr back. (1)
  3. copy a page in swishmax - 10.82 hr back. (1)
  4. swishmax create a link to an html page - 45.26 hr back. (2)
  5. button link swish - 51.25 hr back. (1)
  6. swish button link - 51.32 hr back. (1)
  7. link button naar scene swish - 51.59 hr back. (1)
  8. link button swish - 51.65 hr back. (1)
  9. link scene in swish - 53.73 hr back. (1)
  10. swishmax how to script a fade out - 61.38 hr back. (1)
  11. swish movie help - 67.06 hr back. (1)
  12. how to make play button swish - 82.04 hr back. (1)
  13. how to make a play button swish - 82.05 hr back. (1)
  14. call scene to play swishmax - 97.69 hr back. (1)
Similar Topics

Keywords : swishmax, linking, buttons, scenes, movie

  1. How Do I Create A Movie Shot Of My Desktop ?
    of my desktop????? (10)
  2. Play Buttons
    ActionScripting for a play button. (4)
    hey. ive been expermenting with flash again lately. and i was wondering if anyone knew the simple
    actionscript for a play button. i have a stop action on the frame, and i know how to make buttons,
    so this is my next step in flash. thanks, SPH....

    1. Looking for swishmax, linking, buttons, scenes, movie

Searching Video's for swishmax, linking, buttons, scenes, movie
advertisement




Help On Swishmax - Linking Buttons... - ...to different scenes in a movie!



 

 

 

 

ADD REPLY / Got an Opinion! a humble request :-) RAPID SEARCH! Free Hosting [X]
Express your Opinions, Thoughts or Contribute more info. to help others.
Ask your Doubts & Queries to get answers, So that "Together We can help others!"
Register FREE for AD-FREE forum, Create your own topics, Ask Questions, track topics, setup subscriptions & notifications and Get a Free Website w/ Email and FTP.
500MB Space *No Ads*, CPanel, FTP, PHP, MySQL, EMails - 100% FREE