473,800 Members | 2,613 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

getURL and browser settings

4 New Member
First off hi all,

This is probably simple to someone but I'm stuck.

I created a button on a flash movie, .swf, insert it into a webpage created in Dreamweaver, the idea is when the button is clicked, a new browser window opens to a size of 600 x 600, no scroll bars to toolbar, just a way to close it. The browser will just contain a simple .jpg image of a map.

Now I've looked at heaps of sites and tried the following actionscript.

on (release) {
getURL("javascr ipt:openNewWind ow( \mysite\picture s\simple.jpg, height=600, width=600, toolbar=no, scrollbars=no );");
}

The above opens the browser and immediately closes again?????

As you can also see it's a relative site not an absolute site. It works fine if I use just getURL without the javascript stuff eg:

on (release) {
getURL("\mysite \pictures\simpl e.jpg", "_blank");
}

However it opens a new window "which is what I want" but it's obviously not sized to 600 x 600, and has scrollbars toolbar etc.

What am I doing wrong? I am TOTALLY new to FLASH and actionscript, and I am now more confused than ever, so your help would be appreciated

Hope all of the above makes sense!

Thanks in advance.
Aug 7 '07
10 2814
kestrel
1,071 Recognized Expert Top Contributor
No problem, Just glad i could help
Aug 18 '07 #11

Sign in to post your reply or Sign up for a free account.

Similar topics

0
1625
by: Pieter | last post by:
Hi, I've a activex browser control in a form. I've added proxy server support to the control by modifying the proxy server settings in the registry. This works fine before the browser control is created (the browser control is only created after a button on the form is pressed). However, once the initial proxy settings are commited and the browser control is created, the browser control does not respond to any new settings even though...
1
1392
by: michal2 | last post by:
Is there any way to have the referring field blank when using the GetURL command?
2
4243
by: therefor | last post by:
I have the following in Flash 8 BriefLook_mc.btnStudentLife_mc.onRelease = function():Void { this.createEmptyMovieClip("craveLoader_mc", this.getNextHighestDepth()); this.craveLoader_mc.getURL("BWC_Crave.swf", "_blank"); } This opens a new window for BWC_Crave.swf ...like I want. But the window scales depending on my current window sizing. If I make my window bigger or smaller, it sizes the flash movie in the window. I want it...
1
2444
by: camphor | last post by:
hi, I am getting this error message when using getURL **Error** Symbol=contact, layer=text, frame=1:Line 1: Statement must appear within on handler email_btn.onRelease = function(){ Total ActionScript Errors: 1 Reported Errors: 1 actionscript:
1
1733
Atran
by: Atran | last post by:
Hello EveryBody, I am new to ActionScript. I make to my flash page a button, I want make the button open a web using getURL commnad. See this code: button1.onRelease = function(){ getURL("http://www.adobe.com/", "_blank"); } When I export my project to a swf file, and run the swf from my directory, not from flash program. When the swf is running I click my button, flash show to me a messagebox that the url cannot be shown for...
1
6775
neliy
by: neliy | last post by:
hello there. Well I actually have 2 small problems with getURL. I need to connect a button with a web site an my code looks like this: on (release) { getURL("http://www.blahblahblah", "_blank"); } also I'm trying to make some pop ups work like this: on (release) { getURL("pops\1.htm", "_blank");
2
2684
by: streammalvern | last post by:
I'm working with a client's site where I have the header created in flash. The site is hosted by a third party and I have sent them the code for the flash header, which is hard coded to look for the swf on my company's server. In the flash header I have an invisible box over the logo with a simple getURL, linking it back to the home page. This DID work when I tested it out in both IE and FF but now as of late the page doesn't go anywhere...
5
2979
by: cstansbu | last post by:
This is the item selection piece for a Sharepoint knowledge base. If you type a valid plan code you get info, but if you type garbage you get a 404 file not found. I want to check user input against an array of allowable values (eg. A33, B33, A80, B22, etc...) . true = go to the topic you put in; false = go to a form similar to the original but alerting you to invalid entry. Script: <SCRIPT type=text/javascript> /* Navigate to...
0
9691
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10507
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10279
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10255
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10036
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7582
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6815
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
4150
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3765
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.