|
|
#1 (permalink) |
|
Junior Member
Join Date: Apr 2009
Posts: 2
|
When you click on an image, the url / link specified in the "name" parameter does not open (nothing happens).
XML: --- <pictures> <picture thumb="7.png" description="Test" name="http://www.google.com.au" param="_blank"></picture> </pictures> --- I have also tried this in the "test" example provided - it also does not work. |
|
|
|
|
|
#4 (permalink) |
|
Junior Member
Join Date: May 2009
Posts: 2
|
Could the solution be posted here as well? I have the same lack of Flash skills and when clicked on the pictures nothing happens. Also online nothing happens.
Data.xml: <picture thumb="Bee_1.jpg" description="Bee 1" name="www.goog.com" param="_self"></picture> Action script: function pictureClick(paramFromXml) { // What am I suppost to put here? } I hope you can help me. Thank you very much in advance. |
|
|
|
|
|
#6 (permalink) |
|
OYXLUSFlash.com Staff Member
|
Hello,
Please follow these steps: 1. Open preview.fla and double click teh symbol located on the layer named "Layer 1" 2. Click the frame on the layer named "Layer 2" and hit F9 to open the actions panel 3. Find the bgrClick function and replace it with: Code:
//executed when the user clicked on a picture
function bgrClick(ev:MouseEvent):void
{
var mc=sel;
var nr=sel.name.substr(3,10)
var ac=actions[nr-1];
var url=urls[nr-1];
var request:URLRequest = new URLRequest(url);
navigateToURL(request,ac);
}
It should work fine. |
|
|
|
|
|
#8 (permalink) |
|
Junior Member
Join Date: Jun 2009
Posts: 1
|
I made the above fix, and the links work, but now if I click anywhere NOT on a icon but within the movie, I get this error.
"ReferenceError: Error#1069: Property name not found on String and there is no default value. at menu_fla::slideshow/bgrClick()" This only happens on MACs - (Confirmed on 2 different Macs) both in Safari and Firefox. No error on PC in any browser. |
|
|
|
|
|
#9 (permalink) |
|
Junior Member
Join Date: Jul 2009
Posts: 2
|
Can you configure the thumbnails to trigger events within the same swf? I would really like to display the pictures that correspond to the thumbnails directly in the same swf file instead of linking to several pages, but have no idea how to accomplish it.
Any help would be greatly appreciated! |
|
|
|
|
|
#10 (permalink) |
|
Senior Member
Join Date: Jul 2009
Posts: 858
|
include "window_settings.as"
include "picture_events.as"; //executed when user clicked on a picture function pictureClick(paramFromXml) { // param="action"> is necesary for this examples //example 1: //in xml file ..<picture thumb="test-images/3.jpg" description="description 1" name="1" param="action"></picture> //your_mc.gotoAndStop(paramFromXml) //in this situation par will be 1, because tha value of parameters name from xml="1" //example 2 //in xml file ..<picture thumb="test-images/3.jpg" description="description 1" name="file1.swf" param="action"></picture> //your_mc.loadMovie(paramFromXml); //in this situation par will return file1.swf , because tha value of parameters name from xml="file1.swf" } |
|
|
|
![]() |
| Bookmarks |
«
Previous Thread
|
Next Thread
»
| Thread Tools | |
| Display Modes | |
|
|
All times are GMT. The time now is 06:56 PM.








Linear Mode
