Home Tutorials Forums Articles Blogs Movies Library Employment Press

Go Back   ActionScript.org Forums > ActionScript Forums Group > ActionScript 3.0

Reply
 
Thread Tools Rate Thread Display Modes
Old 08-23-2012, 05:24 AM   #1
brenda318
Registered User
 
Join Date: Jan 2011
Posts: 15
Default Flash open pop-up window

Hi,

I need some code for my flash book that is on the web, to open a pop-up window. The pop-up window needs to sit in front of the current window and be smaller in size. There will be a button in the flash book that would trigger this. Also- it is very important that the pop-up does not get blocked by any browser, just as it doesn't get blocked in html when the pop-up is executed as a direct result of human interaction.

Thank you.
brenda318 is offline   Reply With Quote
Old 08-23-2012, 06:10 AM   #2
[afz]snickelfitz
Senior Member
 
[afz]snickelfitz's Avatar
 
Join Date: Dec 2011
Location: Tucson, AZ
Posts: 2,331
Default

Are you sure you actually need a browser window? You could add a MovieClip instance on top of your book app. Pop-up blockers wouldn't block it, and it would of course be smaller than the window in which it resides.
[afz]snickelfitz is offline   Reply With Quote
Old 08-23-2012, 06:16 AM   #3
brenda318
Registered User
 
Join Date: Jan 2011
Posts: 15
Default

I have tried using a movie clip on top of the book but found that the flash player kept on crashing- there was too much flash content.
brenda318 is offline   Reply With Quote
Old 08-23-2012, 07:01 AM   #4
[afz]snickelfitz
Senior Member
 
[afz]snickelfitz's Avatar
 
Join Date: Dec 2011
Location: Tucson, AZ
Posts: 2,331
Default

I don't think your problem is directly related to adding a small movieclip to the displaylist.
It sounds like you might be adding the entire book to the displaylist, which could result in memory issues and stability problems if the book has a lot of pages, text, vector objects, bitmaps, etc...

How is the book project structured?
ie: is it a movieclip with 300 frames, with images and textfields on each frame?

What is the compiled swf filesize?
[afz]snickelfitz is offline   Reply With Quote
Old 08-23-2012, 07:28 AM   #5
brenda318
Registered User
 
Join Date: Jan 2011
Posts: 15
Default

It is a flip book i purchased on activeden which is a swf with 300kb file size. It can contain swf's or various image formats. I generally have problems when using many swf's for the pages, and i therefore use .png's instead. I don't have any problems with these formats, as long as i stick to 1000 pages or less. I have no problems using .png for the text and images i would like to show but when it comes to the animations, i obviously need to use swf's and that's when i start experiencing problems. When i open pop-up windows using JS inside the xml file, it works well but gets blocked by one of the browsers. The browser is a popular one and i therefore have to find a solution.
brenda318 is offline   Reply With Quote
Old 08-23-2012, 08:25 AM   #6
[afz]snickelfitz
Senior Member
 
[afz]snickelfitz's Avatar
 
Join Date: Dec 2011
Location: Tucson, AZ
Posts: 2,331
Default

Are you loading 1000 png files at startup?
[afz]snickelfitz is offline   Reply With Quote
Old 08-23-2012, 08:49 AM   #7
brenda318
Registered User
 
Join Date: Jan 2011
Posts: 15
Default

yes.
brenda318 is offline   Reply With Quote
Old 08-23-2012, 10:31 AM   #8
[afz]snickelfitz
Senior Member
 
[afz]snickelfitz's Avatar
 
Join Date: Dec 2011
Location: Tucson, AZ
Posts: 2,331
Default

Do you have access to the code used in your template/swf file?
I'd like to see how all of these png files are loaded.
[afz]snickelfitz is offline   Reply With Quote
Old 08-23-2012, 11:55 AM   #9
brenda318
Registered User
 
Join Date: Jan 2011
Posts: 15
Default

would you like the XML or the actionscript that is in the fla?
brenda318 is offline   Reply With Quote
Old 08-23-2012, 06:08 PM   #10
[afz]snickelfitz
Senior Member
 
[afz]snickelfitz's Avatar
 
Join Date: Dec 2011
Location: Tucson, AZ
Posts: 2,331
Default

Actionscript
[afz]snickelfitz is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 06:34 PM.

///
Follow actionscriptorg on Twitter

 


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.