Solved

navigateToURL not working

Posted on 2010-08-19
5
397 Views
Last Modified: 2012-05-10
Can anyone tell me what I am doing worng?

package
  {
   import flash.display.MovieClip;
   import flash.events.MouseEvent;
   import flash.net.navigateToURL;
    import flash.net.*;

   

      
   public class Intro extends MovieClip {
            
   public function Intro()
      {
     //stop frames
       btnReserve.addEventListener(MouseEvent.CLICK, OnClickReserve);
    }
                  
public function OnClickReserve(e:MouseEvent):void
    {
       var request:URLRequest = new URLRequest("form.asp");
      navigateToURL(request,"_parent");
   }
 


            
      } // close class
} // close package
0
Comment
Question by:1665kelmscott
  • 3
5 Comments
 
LVL 39

Expert Comment

by:blue-genie
ID: 33479737
my first question, where is this swf file, in a frameset?
what exactly is not working, does it not open a page, does it not find form.asp?

the code is right, so it depends on what the specific problem is.
have you tried testing in on a live server.

0
 

Author Comment

by:1665kelmscott
ID: 33480541
It happens when I upload it on my page.

 <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
     codebase="http://..../swflash.cab#version=9,0,0,0"
     width="900" height="583">
       <param name="movie" value="intro.swf?FName=<%=strFirst %>" />
       <param name="AllowScriptAccess" VALUE="always"/>
        <param name=quality value=high />
        <embed src="intro.swf?FName=<%=strFirst %>"
      quality=high
      pluginspage="http://..../index.cgi?P1_Prod_Version=ShockwaveFlash"
      type="application/x-shockwave-flash"  allowscriptaccess="always" width="900" height="583"> </embed>

      </object>
0
 
LVL 6

Expert Comment

by:courtthree
ID: 33482802
Hi 1665,

When you say it's not working, what effect do you actually get? Why have you used "_parent" as the target? Have you tried omitting the target and just calling it into the existing page?
0
 

Accepted Solution

by:
1665kelmscott earned 0 total points
ID: 33487226
Thanks all, i tended up being on my .fla file. I didn't have the instance name configured throughout the entire timeline "btnReserve"
0
 

Author Closing Comment

by:1665kelmscott
ID: 33487237
It ended up being the .fla file, just need to have the instance name trhoughout.
0

Featured Post

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Recently, I was asked to recommend a tracking system to be implemented on a clients website. As the entire site was built on flash, my first thought was to suggest custom built tracking system. However, our company at that point of time didn't h…
While working over numerous projects I often had the requirement for doing a screen capture in AS3.0. Unfortunately I found no "ready made" solutions in google search that suited my requirements. But I did come across some great resources which help…
In this tutorial viewers will learn how to create a basic motion tween animation in Flash Open a new document in Flash: Draw/import an image: Press CTRL + F8 to convert it into a graphic symbol: Select a frame (how long you want the tween to last): …
The goal of the tutorial is to teach the user how to how to record live broadcast.

831 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question