Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
 
  HOME    TRACKER    Flash




Adding A Link To Scene



Hi,I 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:
ActionScript Code:
on (release){getURL("http://www.google.com",_new)}
or something like that.Right now I got to this:
ActionScript Code:
Scene.addEventListener(MouseEvent.CLICK,goTo);function goTo(e:MouseEvent) {    var request:URLRequest = new URLRequest("http://www.google.com/");    navigateToURL(request);}
But I get an error 1061Basically I need to add a link to another web page on my banner.Help please?!




View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

How To Link A Scene In A .swf To Another Scene In Another .swf File.
Hi,
My version is Flash 8 pro. I have created a .swf file that contains up to 10 scenes, and realized that it takes far too long to publish, or even to test movie. So now I've decided to create a new .swf for my other webpages. How do I use the
on(release) command on my buttons in my first .swf file to link to a specific scene in my second .swf file?
Example. I have 2 files <first.swf> and <second.swf>.
I want a button in <first.swf> to link to the third scene in <second.swf>.
Thank you so much!!!!
-Wei-Chuan

Adding Thumbnails <link></link>
hello

I need help with the tutorial.
It works fine but on the fist page of the tutorial the flash photo is clickable how do you do that?
It has something to do with the <link></link> tags in the xml file and I need to make a onRelease event in the code but how??

i'm new in the hole flash, actionscripting, site building thing sorry

thanks
steve
hifyah.be

Adding Scene Issue
Hi !
I did flash project in one scene. I put preloader in frond of it (in new scene). Preloader works fine, but the code in next scene doesn't work at all!!!!

I didn't find any solution. I tried to paste all frames to new empty movie with two scenes. Script started to work, but gotoAndPlay commands dont work correctly.

Leos

Trouble With Adding A New Scene
Hi,

I have a main scene that begins with a animation. Now when i add a new scene to house a preloader and place it above the main scene and play the movie the preloader works fine but when it plays the next scene everything stops at frame 1. At 1st I thought it was my preloader but i tripled checked it and it was fine, I also just added a blank scene but i get the same problem. Im using flash 8. ne 1 ever get this problem?

thx

Problems Adding Just A Scene
hi guys,
i am getting in pain just adding a second scene to my flash 8 artwork.
...i have finished an intro and now the movie should jump to a second scene using gotoandplay("scene2", 1).
as soon as i add the second new scene from the scene inspector and play the movie, i get a movie that stops playing to the first (i think it's so) frame of first scene....well at the end ...as soon as i add a scene, the movie stops. no code added or removed!!!it's strange!!!
please helppppp
thank
adro

Adding A Scene Distorts Images
This seems very strange to me, but why would adding a scene to the movie lower the quality of the images I am using. I have images that look fine, but if I just add a scene to the movie the quality goes way down.

Thanks for the help,
Todd

Adding All Instances In A Scene To An Array
I want to instruct actionScript to look at my scene, go though each item on it (e.g. all of the check boxes and radio buttons) and add each of these items that have got an instance name into an array.

I can't think of a simple solution to this. Can anyone help please?

[F8] Adding Text Field In Scene 2
I have a two scene movie

In the second scene i have

Code:
createTextField("word_txt", 2000, 100, 100, 300, 100);
word_txt.multiline = true;
word_txt.wordWrap = true;
word_txt.border=true;

var my_fmt:TextFormat = new TextFormat();
my_fmt.color = 0xFF0000;
my_fmt.underline = true;
word_txt.text = "This is my first test field object text.";
word_txt.setTextFormat(my_fmt);


If I export the whole movie this doesn't work

If I export just the second scene it does work.

What do I need to alter to make it work if I export the whole scene

THanks in advance

Adding All Instances In A Scene To An Array
I want to instruct actionScript to look at my scene, go though each item on it (e.g. all of the check boxes and radio buttons) and add each of these items that have got an instance name into an array.

I can't think of a simple solution to this. Can anyone help please?

Adding Up Score From Movieclip To Scene
Hi, I am doing a quiz game project using flash that is due soon. I am having a bit of problem with adding up score from many movieclips and displaying it on another scene.


Any help is deeply appreciated.Thanks in advance.

Blurry Graphics When Adding A Scene
Hello...i'm new at this forum and here's my first question:

When i add an extra scene to my movie (flash MX 2004) than all my graphics become blurry like a bad jpg. When i delete the scene again, the graphics are perfect.

Is this a bug in flash or am i doing something wrong? The graphics I imported are png or jpg.

I tried some changes with the jpg publishing quality, but that didn't work.

So..anyone with the solution?

Thnx in advance.

Adding Link,
how do i make a picture, once clicked on, go to another page in a seperate window?

Adding A Link
hi... i am kinda of new to flash... so i would like to know if any1 can help out is that how can i add a link to a button that i dragged from the components... i am using flash mx 2004 professional

Adding A Link
Hello,

I am having trouble adding a link to an animated button.

I can do it on the link "Night CLubs & Bars"

But I cant do it for the rest of them

I have uploaded the file, could anyone fill me in on how to do it I think you have to do it with action script. If someone could add a link on one button, then I can see how it is done and do it for the rest.

Here is the file

If anyone could help me out it would be greatly appreciated.

Thanks guys.

Adding A Link?
i have a menu i am doing the borders and i wanted to know how to add a link going to a website eg:yahoo. but keeping it in the same page with my menu still on the side? im guessing this has to be done using actionscript? thanks

Adding A Pdf Link
Is there a way to add a direct link to a .pdf, word or excel file? I would like to add this past weekends results to a sport competition website and can't figure out how.

Adding Url Link In XML?
How do I add a url link (aref<>) in xml so that flash can read it into a dynamic text box with 'render text as html' turned on?

Adding A Link
Whats the script to have a button act as a link?

I could of swore I had it written down, but apperently I dont, and google only has turned up forums of complex links with like 20 lines of code

Adding A Link To My .swf
Oh man, the solution has to be so simple . . .

I'm in Dreamweaver and I have a very nice looking .swf ready to become a banner . . . only I can't figure out how the heck to make it a clickable link. Help!

Adding Url Link In Xml
Hi. I really enjoyed this tutorial http://www.kirupa.com/web/xml/exampl...rrelfinder.htm..I want to use something similar for a news section, but when the viewer clicks the button, they see a short description of the story. How can I add a link at the end of the story that when they click it, they go to the full news page? Ive tried various ways, but none work

Adding 2 Sound Fx To A Scene But It Interupts The First Loop
Hi, i am working through one of the tutorials in swish and i have come accross a problem. IN THE TUTORIAL "THIS IS MY MESSAGE" i have added the vector graphics and the initial sound. However i wanted to added a sound effect when the first picture loaded in. When i did this my first sound loop cuts of then startes again when the sound fx is meant to cut in. So i look at sound/actions panel. I loop 88amp3 15 times and then at my first jpeg i loop a sound fx once. But when i play the whole scene my sound fx cuts in through the whole thing. When i go back to the sound panel i find that the setting have changed and the soundfx wants to play 15 times now overiding my initial 88amp3 sound loop. Its just that in future i want to put key sounds along side pics loading in and what not, and im not sure how to co-ordinate this. Anyone know what im doing wrong? Im pretty sure im close but i cant find the solution. Any takers?
Regards,
Gibbo.

Images Look Crappy When Adding Preload-scene
I have an imagesequence that should be exported with the swf in highest quality. Works great on it self and all, no problem whatsoever, UNTIL....

I added a preloader in a scene

Now when I export, the images look all crappy! Almost bitmap-like. I swear I've checked the properties of all images and the export-settings and all that.

Can someone help me with this problem?
Much appreciated,

Mediamonkey

Adding Scene Makes Images Fuzzy
I have a flash movie (flash 5) with imported PNGs for buttons. When I add a new scene (either by duplicating or adding new), the quality of these images plummets, even though I have the publish settings set to 100% jpg quality. As soon as I delete the new scene(s), the quality is restored. Obviously I can't publish a movie with poor quality images (it's like they've been enlarged and then over-sharpened in paintshop pro or similar, except they haven't). Does anyone know if/how I can remedy this? TIA

Help Adding Moviclips/Btns To My Papervision Scene
Please help. I'm new to papervision and AS3. I'm trying to spin a cube with materials and interact with buttons on the cube. I was able to assemble this:

http://www.methodengine.com/clients/...vidboxspin.swf

It shows my cube with my materials. I placed buttons over the box that spin it. I would like those buttons to actually appear and spin on the cube itself.

Can anyone out there point me in the right direction. I was able to add movieClips on the stage, but no in the front cube material.

Here is my code to make this happen:


ActionScript Code:
package {

    import flash.display.*;
    import flash.filters.*;
    import flash.events.*;

    // Import Papervision3D
    import org.papervision3d.events.InteractiveScene3DEvent;
    import org.papervision3d.scenes.*;
    import org.papervision3d.cameras.Camera3D;
    import org.papervision3d.objects.DisplayObject3D;
    import org.papervision3d.materials.*;
    import org.papervision3d.utils.virtualmouse.VirtualMouse;
    import org.papervision3d.utils.virtualmouse.IVirtualMouseEvent;
    import org.papervision3d.utils.*;
    import org.papervision3d.objects.*;

    import flash.text.TextField;
    import flash.utils.*;

    public class Main extends MovieClip {
        public var mc :MovieClip;

        // ___________________________________________________________________ 3D vars
        var container:Sprite;
//    var scene:Scene3D;
        var scene :InteractiveScene3D;
        var camera:Camera3D;
        var ism:InteractiveSceneManager;
        var plane:Plane;
        var time:Number;
        var tweening:Boolean = false;
        var myVidfront:Boolean = true;
       
        var mouse:Mouse3D;
        var vMouse:VirtualMouse;
        var material:InteractiveMovieMaterial;
        public var myVidContainer:MovieClip;

        private var frontMaterial:BitmapFileMaterial = new BitmapFileMaterial("images/player2_back.png");
        private var backMaterial:InteractiveMovieAssetMaterial = new InteractiveMovieAssetMaterial("flv", true, true);

        private var targetrotationY:Number = 0;

        var p:Cube = new Cube(new MaterialsList( {
          front: frontMaterial,
          back: backMaterial,
          left: new ColorMaterial( 0x000000),
          right: new ColorMaterial( 0x000000),
          top: new ColorMaterial( 0x000000),
          bottom: new ColorMaterial( 0x000000)
          } ), 800, 100, 500, 1, 1, 1);

        public function Main() {
            init();
            time = getTimer();
        }
        public function init():void {

            stage.scaleMode = "noScale";

            // add a spin btn
            var spin180_btn:PlayVid= new PlayVid();
            spin180_btn.x = 500;
            spin180_btn.y = 25;
            addChild(spin180_btn);
           
            // add another spin btn
            var spin360_btn:PlayVid= new PlayVid();
            spin360_btn.x = 400;
            spin360_btn.y = 25;
            addChild(spin360_btn);

            init3D();

            addEventListener( Event.ENTER_FRAME, loop );
            spin180_btn.addEventListener(MouseEvent.CLICK, spin180);
            spin360_btn.addEventListener(MouseEvent.CLICK, spin360);

        }
       
        // ___________________________________________________________________ Init3D
        public function init3D():void {

            // Create container sprite and center it in the stage
            container = new Sprite();
            addChild( container );
            container.name = "mainCont";
            container.x = 270;
            container.y = 200;
           
            // Create scene
            scene = new InteractiveScene3D( container );
            ism = scene.interactiveSceneManager;
           
            scene.addChild(p);
            p.rotationX = 0;
            p.rotationZ = 0;
            p.rotationY = 0;
            p.x = stage.stageWidth / 4;
            p.y = -100;
           
            var moreVids_btn:MoreVids = new MoreVids();
            moreVids_btn.x = 480;
            moreVids_btn.y = -130;
           
//      scene.container.addChildAt(moreVids_btn,1);
            moreVids_btn.addEventListener(MouseEvent.CLICK, spin360);
           

            // Create camera
            camera = new Camera3D();
            camera.zoom = 10;
            camera.sort = true; 

        }
       
        private function spin180(event:Event):void {
           
            tweening = true;
            trace(p);
            if(myVidfront){
                myVidfront = false;
                targetrotationY = 180;
            }else{
                myVidfront = true;
                targetrotationY = 0;
            }
        }
       
        private function spin360(event:Event):void {
            tweening = true;
            if(myVidfront){
                myVidfront = false;
                targetrotationY = 360;
            }else{
                myVidfront = true;
                targetrotationY = 0;
            }

        }
       
        // ___________________________________________________________________ Loop

        function loop(event:Event):void {

            if (tweening) {
                if (p.rotationY <targetrotationY) {
                    p.rotationY += Math.sqrt(targetrotationY-p.rotationY);
                    p.rotationY = Math.round(p.rotationY);
                } else if (p.rotationY> targetrotationY) {
                    p.rotationY -= Math.sqrt(p.rotationY-targetrotationY);
                    p.rotationY = Math.round(p.rotationY);
                }
            }
            scene.renderCamera( this.camera );

        }

    }
}

Adding Live Video To A Scene As A Texture?
Does anyone know if it is possible to add live video (streaming) as a texture in a Flash scene using AS3? If so, what software would I require to do this?

Adding New Frames Before Game Scene [mucking Up]
Got a game, asteroids, and it works fine, but when i move the frames along 1 so that i can add an into screen, with high scores and a play button, it throws off all my remove movieClips.

if anyone know as to why, would be great help.

Scene 2 Scene Link
hi friends,

pls send me the code ,in scene 1 i hav inserted some MC's at the last movie clip i want to giv link to scene 2 ...plz send me the code ...what should i write there????


ramm
rammhere@rediffmail.com

Adding To Favourites (link Within A SWF)
Apologies in advance as this is definitely a repost, but searching through the forums on a 56K connection is painful. I remember coming across it is the past - something to do with Named Anchors and Exporting.

I need to allow a user to add to favourites, individual areas of a Flash movie. At present, If I 'Add To Favourites' it adds the link to the SWF and hence the start of the movie.

I want the user to be on something like our Portfolio and be able to Add the link, such that when they click on the link it takes them to that part of the SWF - not the start.

Hopefully that makes sense.

Using Flash MX on W2K - want this featrue to work for all browsers if possible.

Thanks
H

Adding Link To Signature?
How do I go about doing this if it is possible? Does someone have aworking example?

Thanks,
Rob

Adding Pages And Link Them
I bought template, and want to add pages to the Porfolio section. EX: Porfolio 2, Portfolio 3... each Portfolio section will contain 9 pictures. Can you please let me know the step by step procedure for doing that and how to link the number pages to the right flash file. This is a dynamic template.

Here's the link to download the fla file:

http://www.tabithalemaire.com/flash/xxx_portfolio.fla

Thank for your help on that !!

Adding Link Problem ?
Hi,

I am trying to add link to my navigation menu whit this script:

on (release) {
getURL("");
}


but the problem is that I lost the effect on my TEXT BUTTON. Anybody can elp me on this one !!

Thanks

Adding A Download Link
How do I add a download link inside my flash site? I want people to be able to download .mp3's and word.doc as well as pdf's. Thanks for any help.

Adding A Link To A Button
Hi,

I've created a set of buttons.

I'm working on my website on my desktop until it's ready to be published.

How do I link a webpage (which is on my harddisk) to a button?

Rgds,
Tino

Adding Url Link To A Button
Hi
I have a map that I wish to add buttons at different locations and have each of those buttons linked to a web page about the location.

I am using flash 8, I have tried adding the global function-browser/network- 'get url' actionscript but get an error message.

Can someone please tell me how to add a url link to a button. What am I doing wrong?

Adding A Link / URL To Flash Ad
I received two ads from a flash developer, but I am not sure how to get them to link to the websites. What is the easiest way to add and or change the where the flash ad should link to. THanks!

Adding URL Link To CS3 Slideshow
Hi,

Can anyone tell me how to add a url link to the overall swf for a slideshow?

I have an XML driven slideshow which goes through blur transistions. If a user clicks on the slideshow screen anywhere, at any point, I want it to act as a hyperlink to a specific URL.

How do i do this in Flash CS3 AS 3.0?????

I have all of the slide show coded in separate AS files so no AS appears in any of the layers on the timeline.

Any help with this would be appreciated.

[CS3] Adding A Web Link To A Banner
Greetings everyone. My name is Leland Webb. I am new to the flash comunity. I am also very new to flash. I have managed to build a web banner/SWF movie, and would like to find a way to ad a link to my website using this banner. I was wondering if there is any way to ad a link to the movie, kind of like embedding it I guess. I dont know much, just the basics, converting things to symbols, changing layers things like that. I have no knowledge of actionscript, and could really use a helping hand. Thanks

Leland Webb

Adding A Link To A Combobox Via Xml
Hey there I have a US map where the user can click on a state and the different counties for that state appear on a combobox, the user can then select a county and the contact info for the representative of that county appears in a dynamic text box named textBox.
All the data is coming in from an XML document, what I want to do now is add an email field so when you click on it it will have a "mailto="whomever"" functionaliy.

Does anybody have any ideas, here's my current flash code:

comboXML = new XML();
comboXML.ignoreWhite = true;

comboXML.onLoad=function()
{
var props=this.childNodes[0].attributes;
var info = this.childNodes[0].childNodes;
//email = this.childNodes[0].childNodes;
for (var i=0; i<info.length; i++) {
myComboBox.addItem( {label:info[i].attributes.label, data:info[i].attributes.data, title:info[i].attributes.data} );
}
}
comboXML.load("xml/dcCounties.xml");

var listenerObject:Object = new Object();
listenerObject.change = function(eventObject:Object) {
textBox.htmlText=myComboBox.selectedItem.data;
}
myComboBox.addEventListener("change", listenerObject);


and here's my XML

<?xml version="1.0" encoding="utf-8"?>
<combobox>

<item label="DC - Select County" data=""/>

<item label="Washington, D.C."
data="ALAN ARMSTRONG
8630-M GUILFORD RD #403
COLUMBIA, MD 21046
410-290-6902
"
/>

<item label="Option 2"
data="This is option2
8630-M GUILFORD RD #403
COLUMBIA, MD 21046
410-290-6902
"
/>

</combobox>


Thanks in advance for any help you may provide

Adding Variables To A Url Link
Hi there I'm currently trying to figure out on how to make a form that let's you subscribe to a newsletter.

The e-mail adress people submit should be sent to the end of a url.

Having no experience in either setting up forms and sending info to a url any help is welcome.

Adding A Link In Flash
Got a question for whoever knows the answer. I am trying to put a link to an outside URL on my flash site. The problem I am having is that when I use the GETURL action to try and load the URL flash tries to load the URL I am trying to get to from within my files on-line. (IE...I want to put a link to www.aaa.com on my flash site when I click the button which is linked to www.aaa.com I get the error site not found www.ipowerweb.com.www.shell.com.) If anyone can give me some insight as to why it is doing this I would be greatly appreciative.

Thanks,
Tim

Adding A Link To A Movieclip
Hello, I am new to flash and inherited a template on a website that I am doing.

There is an instance of a Movie Clip that does a nice animation when hovered over and it stays glowing until no longer hovered on.

I want that instance of the Movie Clip to go to a website in a new window (_blank).

I've tried the on (click) and on (release) events for the actions of the Movie Clip, but doing so completely disables the functions of the Movie Clip so that the fancy animations don't work at all and neither does the link that I'm trying to do.

What should I be doing in order to achieve my desired effect of having an instance of a Movie Clip be a link to a website?

Thanks.

Adding A Target To Link
I am using the following action script with a movie clip.
But the link is opening in a new window or browser tab. I want it to open in the same window or browser tab as the flash insert is on. What do I need to do?







Attach Code

var headlink:URLRequest=new URLRequest("head.htm");

head.addEventListener(MouseEvent.ROLL_OVER, headOver);
head.addEventListener(MouseEvent.ROLL_OUT, headOut);
head.addEventListener(MouseEvent.CLICK, headClick);

function headOver(event:MouseEvent):void{
head.gotoAndPlay("Over");
}
function headOut(event:MouseEvent):void{
head.gotoAndPlay("Out");
}
function headClick(event:MouseEvent):void{
navigateToURL(headlink);
}

Adding 'contact' Link
1.)
I'm making a website completely in Flash. I can't remember how to make a 'to contact' link; do I enter something in the 'get url' spot?
2.)
What is the main advantage to using DW to upload, as opposed to doing it straight from Flash? If I do this, do I have to reprogram any of the buttons or links?

Thanks.

HELP!!!!PLEASE!!!

Adding A Link To An Image
I'm brand spanking new to aditing flash files. I have been given a .fla file to edit which is like an automatic slideshow of several images. Only, I need to add a link so that when the slideshow is clicked it will take me to a specific page.

I've downloaded the file from iStockPhotos and it has a layer of help instructions on how to change the link already in their. However, I can't locate a place to enter the link.

Does anyone know what i'm doing wrong?

Adding Link Code To FLV
I have .flv files - how to add to video link with my site's url ? logo or text link and if someone would click it then my site would open in browser.

sorry for terrible english.

Link To A Second Scene
This is what is going on.
I have a movie (flash 5) with 3 scenes

1- preloader
2- intro
3- menu (this menu has button to link to other sections of the website)

This is what I want it to do:

If I use link A (from HTML) will play the intro
If I use link B (from HTML) I want to skip the intro and go right to the menu.

Any suggestions?

Link To Scene
I am trying to find a way to use a button movie clip to link to another scene when clicked on by the mouse. Almost like a hyperlink but have it go to a specified scene. I tried to use text as the link object then created an invisible button over top of it but I cant figure out how to make an invisible button. I do know that the "hit" frame on the button would have to be a keyframe and use action script to link where I want. I am just so confused and none of my books say anything about any of this. Anyone else out there ever go thru this? Any help here would be appreciated. Thanks everyone!

Dan

Scene Link
how do I make a button link to a certain frame from a certain scene? this hasn't been working for me. thanks.

-tucker-

Link To Another Scene
Hi ..i am kind of stuck with a small button problem. I have a movie that loops and i have 3 buttons that represent a menu. I have each button linked to a different scene. For some odd reason when i press the button it doesnt link to the assigned scene infact it doesnt do anything. Heres the code i used.

on (release) {
gotoAndPlay("3", 1);

}

Can someone put on the right track ?

Cheers,

UrbanDev

Copyright © 2005-08 www.BigResource.com, All rights reserved