Click to See Complete Forum and Search --> : Multiple videos -urls to webpages


Alyn
03-03-2009, 09:50 AM
Hi Everyone,
I am a stumped newbie. I asked this question over on the Flashkit site but had no responses. I then posted this question on the Multimedia portion of this site. I should have posted here first. Sorry for confusion. Here's the problem: I have a Dreamweaver site that features a Flash multiple video (.flv) player which I have built.This site features videos of real estate that is "for sale". Each flv has a supporting "additional info" webpage / photo slideshow.

The player can correctly play any of the multiple videos in it. Click on a button with the thumbnail jpeg on it, and it loads the flv dynamically. I am using arrays for the flvs, the thumbnails, the videoNames (for the captions) and for the URLS (urlNames) (I will eventually be loading all the data from an XML doc (later on once I figure out how to do it). When a video is chosen, by clicking on its representative button, the flv, loads/plays. A videoName "caption box" shows the flv name (instance -videoNames). The caption box is located on the stage near the projector area. When a different flv is chosen, different caption text appears in the box. So far - so good.

I have created a 2nd text box on the stage, (I call it - URLBox), (it sits right beside the caption box) and dynamically loads, the urlNames, which are the addresses of "additional info" local webpages . Great! This all works up to this point. So far - so good.

Here is where I get lost.

Because there are several different .flv clips, and associated webpages, I have created a "url button", (with the instance "url_btn") which, when clicked on, is supposed to take the user to the associated webpage, based on the URL that appears in the "URLBox". I am getting this data (url address) from an array - (urlNames[videoToLoad]) This is where I am having the problem.... the urlNames shows up in the box when I test the movie but the getURL does not work. Some sort of linkage problem-I'm guessing..

The code I have been trying to use is below - something is wrong - don't know what.

URL_btn.onRelease = function ()
{
getURL = (urlNames[videoToLoad]);
}
Its been a battle getting to this point, and I am at this last item I need to solve, to make the whole thing work. I would be very thankful to anyone who can show me how to get the url_btn to recognize the data in the urlbox and take the user to the "additional info" page when the url_btn is used. Can anyone point me in the right direction please. My mind is slowly turning to jello. What am I doing wrong?? I am using Flash 8 Pro /AS2.0

Alyn Murray

Eye for Video
03-03-2009, 10:26 AM
See response over in Multimedia.
EfV