Can not link images in Flash...

08-13-06, 02:58 PM
|
|
Newbie Coder
|
|
Join Date: Jul 2006
Posts: 89
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
|
Can not link images in Flash...
 Hi,
I am a newbie and have insterted 3 different images into my Flash program. I have them on three different layers set to appear at 3 different times.
I have tried GET URL and then also LOAD VARIABLES, but can not figure out how to get each image to link to its URL when clicked on (when it appears). Can anyone tell me how?
Thx,
Dave
|

08-14-06, 02:35 AM
|
 |
Community Liaison
|
|
Join Date: May 2005
Location: Antwerp, Belgium
Posts: 3,165
Thanks: 4
Thanked 25 Times in 25 Posts
|
|
hi, you'll have to place an invisible button above the image, and then use the getURL function. something like this:
the invivsible button is not difficult to make.
Greetz,
UnrealEd
__________________
"Good judgement comes from experience, and experience comes from bad judgement." - Fred Brooks
|

08-14-06, 08:01 PM
|
|
Newbie Coder
|
|
Join Date: Jul 2006
Posts: 89
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
|
I can not even create a hidden button
Hi Ed,
I created something, but it does not work:
<not set yet>.onRelease = function() {
getURL('http://www.suntrust.com/scole', '_blank');
}
I am guessing I did not create a hidden button. How do you do that?
I am close here.
Dave
|

08-15-06, 02:46 AM
|
 |
Community Liaison
|
|
Join Date: May 2005
Location: Antwerp, Belgium
Posts: 3,165
Thanks: 4
Thanked 25 Times in 25 Posts
|
|
ok, that's an easy one
it is easier if you first make all the other layers invisible.
after that select the rectangular-tool in your draw-toolbar, and set the fill-color to 'none'. Then make a rectangular as large as your image, and place it exactly above the image. then right-click and select 'convert to symbol'. store it as a button, and then select the button on your flash-document. if you are using macromedia flash, a properties-bar will appear at the bottom of your screen. there's a textfield called button-name. fill in the button's name, and this is the name you have to place at the 'mybutton' or '<not set yet>' word.
hope this makes it a little clearer
UnrealEd
__________________
"Good judgement comes from experience, and experience comes from bad judgement." - Fred Brooks
|

08-15-06, 07:59 PM
|
|
Newbie Coder
|
|
Join Date: Jul 2006
Posts: 89
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
|
Thanks for your help Ed
I tried to do everything you said and I obviously screwed up something as it did not work.
I tried to create a seperate layer and also creating the hidden button on top of the image.
I followed the way to create the button and name it. Then I inserted the name and on release command. I followed that by inserting the get url with web site address.
I think I am doing something wrong with the button creation, because after I enter these commands to the layer then click on another layer and later come back to the first layer with the commands, nothing is stored on that layer - no commands in the action area.
When I name the button it does not ask me to store it just to click OK.
Is there any link that you have to a Free Flash Tutorial that shows how to create hidden buttons?
I just am so new to coding and Flash that until I do it a few times it just does not sink in.
I do always try to play with it a few ways before asking for help, but this solution should be simple and it seems not to be. Kind of like Dreamweaver not having an automatic area to insert the web address in a contact form like in Front Page. Makes little sense.
Thanks for you help and I will google the free flash hidden button tutorials, but if you know of one please include it in a reply.
Thanks again,
Dave
|

08-16-06, 02:37 AM
|
 |
Community Liaison
|
|
Join Date: May 2005
Location: Antwerp, Belgium
Posts: 3,165
Thanks: 4
Thanked 25 Times in 25 Posts
|
|
ok,
i googled for it:
http://www.echoecho.com/flashbuttons.htm
http://www.w3schools.com/flash/flash_button.asp
what you probably did is store the Actionscript in one of the layers of the button itself, instead of storing it in the parent_layer.
when you create your button and double click on it, you will "enter" the buttons layers, which has 4 frames named 'hit', 'over', 'Up', 'Down'. these are not the layers you have to store the Actionscript in. These layers are for animated buttons.
Now go back to the timeline, with all your self-made layers, and select the one where you have put the button in. Now click the "action"-menu, and type in the code. it should work then.
Make sure you store the layer on top. i mean: make sure the layer is placed above all the others, otherwise it won't work.
Hope this helps you out,
UnrealEd
__________________
"Good judgement comes from experience, and experience comes from bad judgement." - Fred Brooks
|

08-16-06, 06:22 PM
|
|
Newbie Coder
|
|
Join Date: Jul 2006
Posts: 89
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
|
This is killing me - Ed or anyone online
Hi Ed,
I think I am close. I have it where the hand appears to open a link, but I keep getting this error message and the hand does not link to the web site.
The error message:
Symbol=north, Layer=Layer 1, Frame=1: Line 1: ')' or ',' expected
getURL( http://www.northsiderealtyservices.com, _blank);
The Code I have:
north.onRelease = function() {
getURL('http://www.northsiderealtyservices.com', '_blank');
};
I was getting 6 error messages, now just this one.
How am I getting only one and how do I correct it?
I will be glad when I learn this.
Dave
|

08-17-06, 02:39 AM
|
 |
Community Liaison
|
|
Join Date: May 2005
Location: Antwerp, Belgium
Posts: 3,165
Thanks: 4
Thanked 25 Times in 25 Posts
|
|
you're sure you named the button north? if so, then there should be no problem, as this is the same as what livedocs say:
EDIT: i tested it in flash, and maybe i found what the error is. make sure you placed the code in the frame of the layer, and not the action-frame of the button.
when you make a button, it will automaticly show the frame of the button when you want to type something in the action-frame. just click next to the button, on your application (do not select anything else), and then open the action-frame again. then type your code, and it should work.
Hope it works now 
UnrealEd
__________________
"Good judgement comes from experience, and experience comes from bad judgement." - Fred Brooks
|
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
|
|
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|