PDA

View Full Version : Flach CS3 Navigation Cue Point help


NinjaJedi26
05-19-2009, 08:08 PM
hi everyone :)

I have an FLV playing on my stage with a few Navigation cue points embedded inside and i am having some serious trouble of getting an FLV to stop ON a cue point while at the same time also turn some buttons and movieclips from invisible to visible :!:


here is what i have so far in my actionscript window -


whatis_btn.visible = false;
facts_btn.visible = false;
legal_btn.visible = false;
obmcash_btn.visible = false;
history_btn.visible = false;
contact_btn.visible = false;
menu_mc.visible = false;
home_btn.visible = false;
contactbg_mc.visible = false;
homebg_mc.visible = false;

import fl.video.MetadataEvent;

obmintro.addEventListener(MetadataEvent.CUE_POINT, cp_listener);
function cp_listener(eventObject:Object):void
{
if (eventObject.info.name == "end_site");
{
homebg_mc.visible = true;
}
}



//Links to URLs

var link:URLRequest = new URLRequest("http://www.orangebee.com/accounting.htm");

accounting_btn.addEventListener(MouseEvent.CLICK, onClick);

function onClick(event:MouseEvent):void
{
navigateToURL(link);
}
// line seperator

var link2:URLRequest = new URLRequest("http://www.orangebee.com/buddys_bio.htm");
buddy_btn.addEventListener(MouseEvent.CLICK, onClick2);

function onClick2(event:MouseEvent):void
{
navigateToURL(link2);
}
//
var link3:URLRequest = new URLRequest("http://www.orangebee.com/feedback.htm");
feedback_btn.addEventListener(MouseEvent.CLICK, onClick3);

function onClick3(event:MouseEvent):void
{
navigateToURL(link3);
}

var link4:URLRequest = new URLRequest("http://www.orangebee.com/testimonials.htm");
testimonial_btn.addEventListener(MouseEvent.CLICK, onClick4);

function onClick4(event:MouseEvent):void
{
navigateToURL(link4);
}
//
var link5:URLRequest = new URLRequest("http://www.orangebee.com/press.htm");
press_btn.addEventListener(MouseEvent.CLICK, onClick5);
function onClick5(event:MouseEvent):void
{
navigateToURL(link5);
}
//
var link6:URLRequest = new URLRequest("http://www.orangebee.com/index.htm");
login_btn.addEventListener(MouseEvent.CLICK, onClick6);
function onClick6(event:MouseEvent):void
{
navigateToURL(link6);
}

var link7:URLRequest = new URLRequest("http://www.orangebee.com/forms.htm");
forms_btn.addEventListener(MouseEvent.CLICK, onClick7);
function onClick7(event:MouseEvent):void
{
navigateToURL(link7);
}

var link8:URLRequest = new URLRequest("http://www.orangebee.com/fees.htm");
fees_btn.addEventListener(MouseEvent.CLICK, onClick8);
function onClick8(event:MouseEvent):void
{
navigateToURL(link8);
}

var link9:URLRequest = new URLRequest("http://www.orangebee.com/reservations_request.htm");
reservation_btn.addEventListener(MouseEvent.CLICK, onClick9);
function onClick9(event:MouseEvent):void
{
navigateToURL(link9);
}

var link10:URLRequest = new URLRequest("http://www.orangebee.com/faq.htm");
qa_btn.addEventListener(MouseEvent.CLICK, onClick10);
function onClick10(event:MouseEvent):void
{
navigateToURL(link10);
}

var link11:URLRequest = new URLRequest("http://www.orangebee.com/site_security.htm");
security_btn.addEventListener(MouseEvent.CLICK, onClick11);
function onClick11(event:MouseEvent):void
{
navigateToURL(link11);
}

var link12:URLRequest = new URLRequest("http://www.orangebee.com/taxes.htm");
tax_btn.addEventListener(MouseEvent.CLICK, onClick12);
function onClick12(event:MouseEvent):void
{
navigateToURL(link12);
}

var link13:URLRequest = new URLRequest("http://www.orangebee.com/rules_and_regulations.htm");
rules_btn.addEventListener(MouseEvent.CLICK, onClick13);
function onClick13(event:MouseEvent):void
{
navigateToURL(link13);
}

var link14:URLRequest = new URLRequest("http://www.orangebee.com/privacy_statement.htm");
privacy_btn.addEventListener(MouseEvent.CLICK, onClick14);
function onClick14(event:MouseEvent):void
{
navigateToURL(link14);
}

Ian Jones
05-24-2009, 05:40 PM
Upon quick review... I'd say that:


if (eventObject.info.name == "end_site");
{
homebg_mc.visible = true;
}


You should not have the ; at the end of the conditional statement.

UrbanFuturistic
05-24-2009, 10:36 PM
Ouch! I hate it when I do that.

CGTalk Moderation
05-24-2009, 10:36 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.