Jump to content


Photo

next frame as pop-up


  • Please log in to reply
14 replies to this topic

#1 Sumpson

Sumpson

    Young Padawan

  • Members
  • Pip
  • 32 posts
  • Gender:Male

Posted 01 January 2006 - 10:31 AM

Hey, after the pre-loader has done it's job and has gotten to the next frame I would like to be able to click on the logo there which makes the next frame (and all frames after) open in a pop-up window. Hope someone will be able to help me out :)

#2 funkysoul

funkysoul

    The Funky Stuff

  • Publishing Betazoids
  • PipPipPipPip
  • 2,307 posts
  • Gender:Male
  • Location:Zurich, Switzerland
  • Interests:Music: HIM, HIM, HIM, Cafe del Mar, Linkin Park, Fort Minor, Coldplay, Eric Jordan<br />Sports: Snowboarding, KiteSurfing, Extreme Sports<br />Computer: Flash, After Effects, Actionscript

Posted 01 January 2006 - 12:01 PM

on each frame you want to open a pop-up, just pu this code in:

onEnterFrame(){
getURL("http://www.yoursite.com", _blank);
}

#3 Sumpson

Sumpson

    Young Padawan

  • Members
  • Pip
  • 32 posts
  • Gender:Male

Posted 01 January 2006 - 10:47 PM

uhm, I need the frame to open in a pop-up not an url.

#4 funkysoul

funkysoul

    The Funky Stuff

  • Publishing Betazoids
  • PipPipPipPip
  • 2,307 posts
  • Gender:Male
  • Location:Zurich, Switzerland
  • Interests:Music: HIM, HIM, HIM, Cafe del Mar, Linkin Park, Fort Minor, Coldplay, Eric Jordan<br />Sports: Snowboarding, KiteSurfing, Extreme Sports<br />Computer: Flash, After Effects, Actionscript

Posted 02 January 2006 - 07:03 AM

you mean a popup in flash?

#5 Sumpson

Sumpson

    Young Padawan

  • Members
  • Pip
  • 32 posts
  • Gender:Male

Posted 02 January 2006 - 05:50 PM

Well I would like the flash to pop-up in a new browser window after the page is loaded with the preloader (it's alright if they first have to click something to open the pop-up too)

#6 Jaymz

Jaymz

    Retired P2L Staff

  • Members
  • PipPipPipPip
  • 4,104 posts

Posted 02 January 2006 - 05:52 PM

onEnterFrame(){
getURL("http://www.yoursite.com", _blank);
}


The code that funkysoul posted will work.

#7 Sumpson

Sumpson

    Young Padawan

  • Members
  • Pip
  • 32 posts
  • Gender:Male

Posted 02 January 2006 - 06:30 PM

I don't really understand because its not an URL I want to open in the pop-up but the next frames.

#8 Jaymz

Jaymz

    Retired P2L Staff

  • Members
  • PipPipPipPip
  • 4,104 posts

Posted 02 January 2006 - 07:09 PM

Save the flash that you want in the popup as a separate file, that'd solve that problem :D

#9 Sumpson

Sumpson

    Young Padawan

  • Members
  • Pip
  • 32 posts
  • Gender:Male

Posted 02 January 2006 - 09:25 PM

yep, but the pre-loader wouldnt work that way

#10 Sumpson

Sumpson

    Young Padawan

  • Members
  • Pip
  • 32 posts
  • Gender:Male

Posted 03 January 2006 - 02:19 PM

does anyone know wether this is possible or not?

#11 dEcade

dEcade

    P2L Staff

  • P2L Staff
  • PipPipPipPip
  • 1,850 posts
  • Gender:Male
  • Location:Saskatoon, Saskatchewan
  • Interests:Guitar, Programming, Storm Chasing, Games (Designing and playing), Hockey, Photography

Posted 03 January 2006 - 04:13 PM

I don't think that this is possible to have it load it self then make the lfahs file pop up again with out loading again. but what you could do is on the first frame add a code like this:

if(_root.id == 1)
{
play();
}
else if(_root.id == 2)
{
gotoAndPlay('home');
}
else
{
play();
}// end if

and then it would load and put in the script that they sugjestted before to make it open it self (make sure the flash file is on a different HTML page) and then in the HTML on the pop up page instead of having: example.swf put example.swf?id=2.

This is kind of pointless though because it would be easier just to have it load and play instead of teaking some extra steps.

hope you cna get it to work.

dEcade

Edited by dEcade, 03 January 2006 - 04:13 PM.


#12 Sumpson

Sumpson

    Young Padawan

  • Members
  • Pip
  • 32 posts
  • Gender:Male

Posted 03 January 2006 - 05:17 PM

Hmm that didn't work, it would be awesome for the project im working on to work like that.. Hope someone else here will be able to help, I'll be trying to find some other help too

#13 dEcade

dEcade

    P2L Staff

  • P2L Staff
  • PipPipPipPip
  • 1,850 posts
  • Gender:Male
  • Location:Saskatoon, Saskatchewan
  • Interests:Guitar, Programming, Storm Chasing, Games (Designing and playing), Hockey, Photography

Posted 03 January 2006 - 07:30 PM

The easier way to do it would just have the whole flash file pop up after you click enter or something.

dEcade

#14 am34012

am34012

    Young Padawan

  • Members
  • Pip
  • 11 posts

Posted 18 January 2006 - 09:37 AM

apply this code to a button:

on (release) {
getURL ("java script:NewWindow=window.open('http://www.domain.com/filename.html','newWin','width=800,height=600,left=0,top=0,toolbar=No,location=No,scrollbars=No,statu
s=No,resizable=No,fullscreen=No'); NewWindow.focus(); void(0);");
}


just change the window size, and you are done!

Edited by am34012, 18 January 2006 - 09:39 AM.


#15 adzicents

adzicents

    Young Padawan

  • Members
  • Pip
  • 21 posts
  • Location:Melbourne, Australia

Posted 20 January 2006 - 08:19 AM

Oh i think i know what he means. A bit like this? (see attachment)

But instead you want it automatically right?




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users