Old 04-28-2009, 01:32 AM   #1 (permalink)
Junior Member
 
Join Date: Apr 2009
Posts: 2
Default click on a picture - url does not open.

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.
tmd01 is offline   Reply With Quote
Old 04-28-2009, 11:51 AM   #2 (permalink)
OYXLUSFlash.com Staff Member
 
Adrian's Avatar
 
Join Date: May 2008
Posts: 2,260
Send a message via Yahoo to Adrian Send a message via Skype™ to Adrian
Default

It may not work locally. Try testing it online.
Adrian is offline   Reply With Quote
Old 04-28-2009, 11:59 PM   #3 (permalink)
Junior Member
 
Join Date: Apr 2009
Posts: 2
Default

This doesn't work either. Adrian - I have emailed you an example link (I don't want to post the link in the forum, as the job is confidential).
tmd01 is offline   Reply With Quote
Old 05-23-2009, 11:09 AM   #4 (permalink)
Junior Member
 
Join Date: May 2009
Posts: 2
Default

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.
mutombo is offline   Reply With Quote
Old 06-02-2009, 01:17 PM   #5 (permalink)
Junior Member
 
Join Date: Jun 2009
Posts: 2
Default

My client purchased this scroller but I can't get the url's to work neither. Can you please post the solution here.
quadstyle is offline   Reply With Quote
Old 06-02-2009, 02:50 PM   #6 (permalink)
OYXLUSFlash.com Staff Member
 
Adrian's Avatar
 
Join Date: May 2008
Posts: 2,260
Send a message via Yahoo to Adrian Send a message via Skype™ to Adrian
Default

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);

    
}
Save the file and test again.

It should work fine.
Adrian is offline   Reply With Quote
Old 06-02-2009, 03:13 PM   #7 (permalink)
Junior Member
 
Join Date: Jun 2009
Posts: 2
Default

Ok, many thanks...
quadstyle is offline   Reply With Quote
Old 06-13-2009, 06:53 AM   #8 (permalink)
Junior Member
 
Join Date: Jun 2009
Posts: 1
Default ReferenceError: Error#1069

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.
gadgetfl is offline   Reply With Quote
Old 07-08-2009, 08:01 PM   #9 (permalink)
Junior Member
 
Join Date: Jul 2009
Posts: 2
Default

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!
babtanian is offline   Reply With Quote
Old 07-24-2009, 11:02 AM   #10 (permalink)
Senior Member
 
Laurentiu's Avatar
 
Join Date: Jul 2009
Posts: 858
Default Action On Pics

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"
}
Laurentiu is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 06:56 PM.