Solved

SWF Button that will open a new browser window and resize, remove menu, toolbar etc

Posted on 2006-11-13
8
318 Views
Last Modified: 2012-08-14
Hi, I've not really used Flash but know that if I'm to achieve what I'm trying to do this is most likely the only thing that will do it.

I have a myspace.com account and the profile page is customisable to a point. DHTML/HTML and CSS are allowed but Javascript is disabled and not allowed. Also the IFrame and Object tags in HTML are not allowed. I can however use the Embed tag to Embed SWF files.

So, is it possible to have an SWF file that I Embed into the HTML without using any of the above restrictions that would allow me to open a new browser window, resize it, remove toolbar, menu, address bar etc?

I'm only putting 20 points into this post as I don't expect a soloution but if you think it's possible and you could provide all the help I need I'll post another thread with as much points as I can.

Thanks in advance
0
Comment
Question by:Tezdread
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 2
  • 2
8 Comments
 
LVL 17

Expert Comment

by:Dushan De Silva
ID: 17935733
As I know, we cant not do with only Flash. We should use Flash with Java script.

BR Dushan
0
 
LVL 1

Author Comment

by:Tezdread
ID: 17939920
But can the Javascript be added into the Actionscript for the button and therefore remove the need to have any Javascript in the HTML page? The problem isn't using Javascript it just can't be in the HTML page. So if the Javascript can be put in the Actionscript and then the whole Flash file save as an SWF file this could be embeded into the HTML and resolve the issue.

I saw somewhere else that this 'might' be possible using Actionscript and getURL or ExternalInterface but like I said I don't really know Flash and certainly don't know anything about Actionscript :-/

Thnaks
0
 
LVL 17

Expert Comment

by:Dushan De Silva
ID: 17940101
We can use JavaScript inside our Flash Action scirpt. You can have an idea from following video.

http://www.kirupa.com/developer/flash8/video/popUpWindows.htm


BR Dushan
0
SharePoint Admin?

Enable Your Employees To Focus On The Core With Intuitive Onscreen Guidance That is With You At The Moment of Need.

 
LVL 1

Author Comment

by:Tezdread
ID: 17940269
Thanks for that. The problem with that is that it still has the Javascript in the HTML which will not work.

Can the Javascript be embeded into the Actionscript so that there is no Javascript in the HTML?
0
 
LVL 7

Expert Comment

by:muxxter
ID: 17940592
Hi Tezdread.

Flash has a function called getURL. It can create a new window, but without Javascript, I'm afraid you can't resize, remove the toolbar, etc.
But it's a good place to start:

getURL("http://www.someplace.com/blah.html", "_blank");

That will pop a new window. See the Flash help page for more info.

Gav
0
 
LVL 1

Author Comment

by:Tezdread
ID: 17940759
Thanks muxxter. the thing is, getURL("http://www.someplace.com/blah.html", "_blank");
is no different that having a standard HTML link using the target="_blank"

If I was to have a working Javascript that opens and resizes a browser window using HTML, would this Javascript be able to be removed from the HTML page and inserted directly into the Actionscript and perform the same operation?

If I can't use Javascript in the Actionscript then what I'm trying to achieve isn't going to be possible...
0
 
LVL 7

Accepted Solution

by:
muxxter earned 20 total points
ID: 17940864
Yep.

In getURL you can put Javascript:

getURL("JavaScript:window.open('http://www.javascript-coder.com','mywindow','location=1,status=1,scrollbars=1,width=100,height=100');");

So, anything you can put in the open method, you can have Flash call.
0
 
LVL 1

Author Comment

by:Tezdread
ID: 17941023
ah that's sound I'll give you the 20 points because that perfectly answers the question! and will start a new post with my remaining points because I'm gonna need some help in getting this to work. I have tried but I get errors and when I click the button in the browser nothing happens...thanks again!
0

Featured Post

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

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

There are times in your Flash CS4 application when you want more than a simple pointer or a hand, and it's hard to find an ideal walk-through to tell you what to do.  I spent a few days recently learning my way around making custom cursors in Flash,…
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 shape tween animation in Flash including shape hints for smooth animation Open a new document in Flash: Draw a shape: Select another frame (how long you want the tween to be): Right click and…
The goal of the tutorial is to teach the user how to select which audio input to use. Once you have an audio input plugged into the laptop or computer, you will go into the audio input settings and choose which audio input you want to use.

636 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