# Papervision Cube question

**URL:** <https://forum.kirupa.com/t/papervision-cube-question/263616>\
**Category:** Uncategorized\
**Created:** [June 17, 2008, 6:57pm UTC](https://forum.kirupa.com/t/papervision-cube-question/263616 "2008-06-17T18:57:39Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![gibry21](https://avatars.discourse-cdn.com/v4/letter/g/3bc359/32.png) [@gibry21](https://forum.kirupa.com/u/gibry21)\
**Post date:** [June 17, 2008, 6:57pm UTC](https://forum.kirupa.com/t/papervision-cube-question/263616/1 "2008-06-17T18:57:39Z")

</div>

Hi guys,

I’m not 100% up on how well html and flash work together, I am currently working on the papervison 3d cube and have managed to create this all fine…

Those of you who are familar with this will know that when you click on a “face” of the cube it opens up a webpage in a new window: Using the following code:

face.addEventListener(MouseEvent.CLICK, faceClick);  
function faceClick(e:MouseEvent):void  
{  
navigateToURL(new URLRequest(“[http://www.yahoo.com](http://www.yahoo.com)”));  
}  
face2.addEventListener(MouseEvent.CLICK, face2Click);  
function face2Click(e:MouseEvent):void  
{  
navigateToURL(new URLRequest(“[http://www.google.com](http://www.google.com)”));  
}  
face3.addEventListener(MouseEvent.CLICK, face3Click);  
function face3Click(e:MouseEvent):void  
{  
navigateToURL(new URLRequest(“[http://www.flickr.com](http://www.flickr.com)”));  
}  
face4.addEventListener(MouseEvent.CLICK, face4Click);  
function face4Click(e:MouseEvent):void  
{  
navigateToURL(new URLRequest(“[http://www.youtube.com](http://www.youtube.com)”));  
}  
face5.addEventListener(MouseEvent.CLICK, face5Click);  
function face5Click(e:MouseEvent):void  
{  
navigateToURL(new URLRequest(“[http://www.facebook.com](http://www.facebook.com)”));  
}  
face6.addEventListener(MouseEvent.CLICK, face6Click);  
function face6Click(e:MouseEvent):void  
{  
navigateToURL(new URLRequest(“[http://www.adobe.com](http://www.adobe.com)”));  
}

I would like to potentially do 3 things:

1. Rather than than open in a new window…open the page in the same window…so something to do with \_parent as the target perhaps??

2. Simialr to above but perhaps more difficult or impossible, open up url in an iframe or specific div, i.e If I have iframe called “content”, when html loads it loads my flash 3d cube into “content” iframe (that bit I can do no problem), then from clicking on a face inside the flash, open new html inside “content” iframe, again this has something to with specifying the target=“content” with flash??

3)Finally, rather than open a url on click, can I navigate to a new flash movie or to a place on the time line??

Any help, advice or tutorials would be very handy and helpful…

Just to clarify point 2, if I was do do this using just html and loading different html pages into my iframe, the html would look like this:

\<a href=“2WheelDrive.html” target=“content” class=“three”\>2 Wheel Drive-R&R\</a\>

Where clickin on “2 Wheel Drive-R&R” would load “2wheeldrive.html” into target “content” which is the name of my iframe, so I would like to apply this to the face within flash???

Hope this makes sense…thanks.

---

<div class="post-metadata">

**Author:** ![gibry21](https://avatars.discourse-cdn.com/v4/letter/g/3bc359/32.png) [@gibry21](https://forum.kirupa.com/u/gibry21)\
**Post date:** [June 18, 2008, 10:04am UTC](https://forum.kirupa.com/t/papervision-cube-question/263616/2 "2008-06-18T10:04:31Z")

</div>

I take it by the lack of interest nobody here knows much about Papervision…or as bout as much as I do!! doh!!

---

<div class="post-metadata">

**Author:** ![Dom\_1](https://avatars.discourse-cdn.com/v4/letter/d/df788c/32.png) [@Dom\_1](https://forum.kirupa.com/u/Dom_1)\
**Post date:** [June 18, 2008, 6:24pm UTC](https://forum.kirupa.com/t/papervision-cube-question/263616/3 "2008-06-18T18:24:14Z")

</div>

to open a page in the current window just use “\_self”

and if ur using the timeline just us a gotoAndPlay / gotoAndStop to the frame you want.  
not sure about the iframe thing, but i think that if you pass the name of the iframe you can load the content in the targeted frame.

---

<div class="post-metadata">

**Author:** ![Anogar](https://avatars.discourse-cdn.com/v4/letter/a/ed655f/32.png) [@Anogar](https://forum.kirupa.com/u/Anogar)\
**Post date:** [June 18, 2008, 6:35pm UTC](https://forum.kirupa.com/t/papervision-cube-question/263616/4 "2008-06-18T18:35:40Z")

</div>

> I take it by the lack of interest nobody here knows much about Papervision…or as bout as much as I do!! doh!!

FYI, your question has nothing to do with Papervision.
