ActionScript 2.0 :: Link To Another Root In Another Scene
May 23, 2005Does anyone know how to link to another _root in another scene?you would think that this code would do, but... for some reason, it doesn't work:[code]
View 1 RepliesDoes anyone know how to link to another _root in another scene?you would think that this code would do, but... for some reason, it doesn't work:[code]
View 1 RepliesNo..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].....
i'm new on flash proffecional cs5 and i have made two scnes and i will link a few words from scne 1 to sne 2. If i select words will come a question to what i will link that words and i think that that only is for a url from the web. Q:How to link a few words from scne 1 to sne 2?
View 3 RepliesI have created a Flash movie in AS3.It has 1 scene so far titled "wmain"On the first keyframe I have a movieclip: "licence_mc"Nested within this movieclip is a button that does a little fade in/fade out animation over a range of keyframes when you hold the mouse on it.This buttons Instance name is: "license_bu"Right on the keyframe of this button (so within the mc "license_mc") I placed the following code:
Code:
license_bu.addEventListener(MouseEvent.MOUSE_OVER, onOver);
license_bu.addEventListener(MouseEvent.MOUSE_OUT, onOut);
[code].....
I have a button in my main file (Interiors-02.swf) in Scene 1. When I click it it loads an outside swf (buttons.swf) into a blank movie. This movie has 10 buttons. What I want is for when I click one of those buttons to go to Scene 2 or 3 in the main file (Interiors-02.swf) Can I do this and what would the code be for the button?
View 1 RepliesMy swf file is stored on the web server in say /images/swf/my_swf.swf
The web page I want to link to is stored in the same folder /images/swf/My_Page.htm
So if my_swf.swf is embedded in say Original.htm page in the /images/swf/ directory.
When the visitor to Original.htm Clicks on the Button_btn they will be linked to the My_Page.htm with the following code.
Code:
_root.Button_btn.onPress = function () {
getURL("My_Page.htm", "mainFrame");
}
I have to store the My_Page.htm and the my_swf.swf where they are but the Original.htm is else where and has a number of other .swf's on it. So now when the Vistor click on the Button_btn the link tries to find the My_page.htm in the root of the Original.htm. How can I make the link in the my_swf.swf force the link to read from the root of the swf rather than the Original.htm?
I have a problem trying to get a button to go back to the start of the a main movie. I have added the button(see below) into the main movie which is only one frame and contains a quiz movie. I want the start button to be visible in the quiz movie (which happens ok) but want it to link back to the main movie when clicked. The link is not working and no errors are showing.
ActionScript Code:
import fl.controls.Button;
var startTextFormat:TextFormat = new TextFormat();
startTextFormat.bold = false;
[code]....
How can i link my button to another scene?
View 7 RepliesI am a total beginner in Flash and wanted to know, how to add a link that opens in a new window to a scene?I found out that on AS2 it was done in a manner similar to[code]...
View 1 RepliesI've build a nice animated button using a movie clip that reacts to the mouse rollover.But I can't get it to link to another Scene Inside the movie clip of the button I have this action script on 3 different frames:Frame 1.[code].....
View 2 RepliesI have three scenes in my project, and from each scene there are two buttons that will link to the other two that aren't showing.
In Scene 2 my button should direct me to Scene 1, but instead it just restarts Scene 2. Here's my code:
Code:
on (release) {
gotoAndPlay("Scene 1", 1);
}
with my schools project being 1 week away i started linking up my scenes (we needed to create some virtual world with some small motion tweens in it, contained in different scenes)
we need to be able to navigate trough it.as my fellow students im using the on(release){gotoAndPlay("scene #") code.the first one worked fine, but now, trying to input a new link to another scene, the other button also goes there regardless of the code.no1 else seems so have this problem, is it a bug?
for some simple overvieuw:Scene 1 should link to 2 and 3 after the first button it links to 2 when i applied the second button both go to scene 3 all buttons seem to link to the next scene in the list regardless of codebuttons in scene 1 all link to scene 2, in scene 2 all link to scene 3 (or in this case its 5 because thats the next 1 on the list)
how do i link a button to a new scene
View 4 RepliesI'd like to call up a scene when an image is pressed. I understand, I think, where the image is located on xml and the fla/actionscript. Here are the corresponding parts
xml:
<image imageUrl="_pic16.png" link="asfunction:link"/>
actionscript:
[code].....
I have an intro swf that I want to use as the intro to an older flash site. the intro is using as3 and vcam interative. I want a group of buttons to show up at the end of the intro and each of those takes you to a section (each section is a separate scene) in the older swf (as2)
I also need to load music when the intro loads but I need it to remain on even when the user clicks links to the site file.
This is getting so complicated...I can't put the intro in the same file with the site because if I change that file to as3 to accomodate vcam, EVERYTHING breaks and I don't really know as3 so fixing it is hard.
What I have are 3 buttons. They share the same movie clip called "MC" with different instance name. I added the following code to the btn 1 of the movie clip:
on (press, rollOver) {
_root.resetButtons();
this.gotoAndStop("red");[code].....
However the button just does not link to the next scene. Do I have to load a new movie with this coding instead of linking it to the next scene?
change the color and other stuffs and past the weekend to find where to put the code to call the next scenes for university.
so if the first scene is "interface.swf" and I want the next scene be call in the root, where and what is the correct syntax
[Code].....
i took AS from this site which makes RollOver & Roll Out. all i need is to link it to a scene in the flash file and not to an URL as it is now...i tried Goto but it didn't work ? this is the code:
Code:
//stop();
this.onEnterFrame = function(){[code].....
I'm trying to link a button to the next scene. But the problem is that I can't give an action to the button in the scene, because in the action panel appears: 'Current selection cannot have actions applied to it.' So I have to make a framelabel I guess but doesn't work eather, what's the next step?
View 4 RepliesI genuinely have spent a long time trying to find the answer before asking....
View 2 RepliesI made 3 movies, one of a street, one of the street to the left and one of the right.What I actually want to do is, to play the video of the middle street, stop it after 4 to 5 seconds and put text on where you can see the street left and text on where you can see the street right.
So if you'd click on the text left, the movie needs to play of the left street, the right with the right.
To make motion stops where the text is coming I'll put a jpeg of the end of the movies, that I also use as a pause of the movie.
I know you can make links into html files, but I'd rather have 1 swf file so there is no loading between 2 html files.I tried to use actionscript (however i dont really know any commands ) on text, but it says that the item cannot have a script on it.
I Want to have a button info_btn. Now i know how to make a button and link it to a scene/frame.
But what im asking is, i want the button to display something (text field or movieclip(doesn't matter )) but I do not want it to go to another scene or frame if you know what i mean ? i want it to display there and then on the same scene and frame with a button to close it.. Is this possible?
I've in my flash scene main page and sub pages scattered in different ereas at the scene, but the scene start from main page and that what will show only, now if I clicked any link the scene carry us to the link page in the same scene, and from that page I can press any other link to start moving over the scene to different pages.
View 6 RepliesI am trying to create something like a dress up game. The first screen would be all the body parts(e.g hands,head etc.) and once users click on the next button they will be taken to a new scene with the assembled body parts where there'll be clothes and accessories for users to choose.My question is how to create the next button which will link to another scene containing the assembled body parts.
View 1 Repliesive 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]...
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]...
How can I get a button inside a movieclip link to a frame in another movieclip on the scene? I tried this code:
function gotoCenter(event:MouseEvent):void {
MovieClip(root).centermc.gotoAndPlay(2);
}
skruetest.addEventListener(MouseEvent.CLICK, gotoCenter);
..where "skruetest" is the button, "centermc" is the movieclip where I want to go to frame 2. I don�t get errors with this code, but nothing happens when I click the button. What can I do?
now my project have 3 scene and i want to link between all scene.this common i use to go to next page and previous page for each scene,
stop();
function nextscene1(event:MouseEvent):void
{
nextScene();[code]....
my problem is i can success with the next/prev function if i only click the "nex/prev" button, but when i click the "page2" button to link to particular page, it only can function 1 time and at some time the "nex" and "prev" function will lost
I found this awsome tutorial to create an animated button on this page [URL]. Everything works fine, but now I want to link the button to a frame with text in it called "text" in scene 1. So I tried it instead of
[Code]...
Situation:
- We have a Flash application located on a SAP EP (let's say ep.x.com)
- We have a SAP ABAP Application (Webservices) on a SAP WebAS
server (abap.x.com)
- Clarification: This is not about Flash islands / but a normal Flash application communicating with WebAS ABAP via WebServices
Problem: Due to the changed security policy in Flash 10 this scenario does no longer work.
- A crossdomain policy file on root level cannot be deployed on root level
- The WebServices http/s headers cannot be modified, since the WebServices are generated by the WebAS IDE.
Comment: Technically there is a way to patch a WebAS ABAP,but this is not a practical / acceptable way in a normal SAP WebAS infrastructure.
Conclusion:- The above scenario (Flash from EP content / WebAS ABAP as backend) is a quite normal scenario in the SAP world.
- SAP / Adobe always features the close relationship between their technologies.
Question:- What could we do?
- How does the Visual Composer works around that problem?