WinMatrix: Help with Adobe Flash CS4 (SIMPLE) - WinMatrix

Jump to content

Sign in to access features such as - Topic subscription, Automatic updates, Personal messages, Manage your profile and more..
Page 1 of 1

Help with Adobe Flash CS4 (SIMPLE) How to create a link on a a picture?? Rate Topic: -----

#1 User is offline   windowsvista Icon

  • New WinMatrixian
  • Icon
  • Group: Member
  • Posts: 12
  • Joined: 11-October 08

Posted 07 November 2009 - 08:31 AM

First of all i really suck with Flash, never used the app before so i got NO knowledge in using flash.

Check the attached picture, where i added the red colored rectangles i want links that will display a new windows or just a simple popup window. I have only been able to add buttons to the picture but they are not transparent and will be on top of the picture with a uggly button image. This is probably really easy and im just beeing stupid but help is appreciated!!

Wish it was easy like Map area coords in html where u can just move your links around on the picture very easy.

Thanks people!

Attached File  URSH11.jpg (77.23K)
Number of downloads: 12

This post has been edited by windowsvista: 07 November 2009 - 11:07 AM

0

#2 User is offline   coldemone Icon

  • Indifferent and Hypocrite
  • Icon
  • Group: WM Members
  • Posts: 1,713
  • Joined: 11-August 08

Posted 07 November 2009 - 01:39 PM

set the transparency slider of the button down to 1%. This will keep it from being seen. How, two ways. In the color mixer, there is the alpha slider, it means transparency. Use it to color the button 1% trans. Next method is to click the button, turn the properties pane up while the button is selected. Find the blending drop down and select Alpha. You probably know what it is now. The drop down will appear below. Set it to 1%. understand them?

It's way easier than html to put the links too. just type

on (release) {
getURL("http://crapworld.com");
} 

on the button

This post has been edited by coldemone: 07 November 2009 - 01:40 PM

0

#3 User is offline   knightrider862 Icon

  • New WinMatrixian
  • Icon
  • Group: Member
  • Posts: 7
  • Joined: 27-March 08

Posted 07 November 2009 - 01:42 PM

It depends which ActionScript version do you use. To giving links to the images or the buttons are different in AS2 and AS3. Let me explain.
First, you need to import your graphics to your flash movie or you need to create in Flash or the other programs. If you already made your graphics in the Flash; skip the import section. After you made your graphics; follow the File->Import->Import to Stage path in Flash and add your graphics to your flash movie. Then select entire image with selection tools and hit F8. This will open the "Convert to Symbol" popup. Give a name your symbol and select the symbol type to "button" using type dropdown menu and hit OK. After you convert your graphics to a button, place your button wherever you like and if you want to rotate your button use Free Transform Tool or just hit Q. Everything is good now. But here is the differences.

If you use AS2;

1- Click your symbol and hit F9 to open the action panel
2- In action panel write the following codes

on (release) {
	getURL("http://www.google.com","_blank");
}

3- Save your Flash Movie and hit F12 to publish your movie.

If you use AS3;

1- Click your symbol and open the Properties Panel.
2- In Properties panel you will see the "<Instance Name>" section, click there and give your symbol a name. For example, myButton_btn.(You will use that name in the Action panel... )
3- Then click anywhere on the screen to deselect your symbol.
4- Hit F9 to open the Action Panel.
5- Write the following codes,

myButton_btn.addEventListener(MouseEvent.CLICK,Link);

function Link(event:MouseEvent):void{
	navigateToURL(new URLRequest("http://www.google.com"), "_blank"); 
}

6- Save your flash movie and hit F12 to publish your movie.

That's all.

I hope, it helps to you...

This post has been edited by knightrider862: 07 November 2009 - 01:48 PM

0

#4 User is offline   coldemone Icon

  • Indifferent and Hypocrite
  • Icon
  • Group: WM Members
  • Posts: 1,713
  • Joined: 11-August 08

Posted 07 November 2009 - 01:58 PM

Whoops, forgot about AS3. I was still ignorant about it.
0

Page 1 of 1


Fast Reply

  

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users