/    Sign up×
Community /Pin to ProfileBookmark

I’ve got a flash file and I want it to load when people access my site. The flash file is 800×400 and I want the index page to automatically open up a smaller browser window that is 800×600 and then close itself leaving just the smaller popup.

Also.. in flash I want to have a button going to a URL that is 712×570 but I don’t know how give an action that tells the browser to open up a window without scroller bars, buttons and an address line. all of this AND at the resolution..

Sorry for ALL the requests.
Cheers.
James.

to post a comment
HTML

20 Comments(s)

Copy linkTweet thisAlerts:
@andrew1234Sep 09.2003 — you need to use popups in java script and window.close in the script to close the other window
Copy linkTweet thisAlerts:
@mrcollisionauthorSep 09.2003 — Yeah i know but could someone direct me to an example of a script that can do that. I don't know how to write javascripts or do window.close fucntions or anything like that.

cheers.
Copy linkTweet thisAlerts:
@96turnerriSep 10.2003 — heres how to open a new window without scrollbars etc

<script>

function openLog()

{

NewWindow=window.open('XXXXXX.htm', 'Log',

'width=400,height=400');

}

</script>

<a href="javascript:openLog()">See Web Log / Updates</a>

to have a close link

<a href="javascript:window.close('this')">Close</a>
Copy linkTweet thisAlerts:
@96turnerriSep 10.2003 — should be javascript?penLog()
Copy linkTweet thisAlerts:
@mrcollisionauthorSep 10.2003 — Works a treat, thanks.
Copy linkTweet thisAlerts:
@96turnerriSep 10.2003 — no problem m8 anytime
Copy linkTweet thisAlerts:
@pyroSep 10.2003 — [i]Originally posted by 96turnerri [/i]

[B]<script>

function openLog()

{

NewWindow=window.open('XXXXXX.htm', 'Log',

'width=400,height=400');

}

</script>

<a href="javascript:openLog()">See Web Log / Updates</a>[/B]
[/QUOTE]
That script has numerous errors/problems:

1: You did not define your scripting language, try a tag like this: <script type="text/javascript">

2: You used JavaScript in the href attribute. What happens when your users don't hae javascript enabled?

This way would be much better:

<a href="somepage.htm" onclick="window.open(this.href,'child','width=400,height=300'); return false;">link</a>
Copy linkTweet thisAlerts:
@96turnerriSep 10.2003 — that is also another valid way, but i use my first stated method my site is a java enabled site
Copy linkTweet thisAlerts:
@pyroSep 10.2003 — huh??? ?
Copy linkTweet thisAlerts:
@96turnerriSep 10.2003 — doesnt matter
Copy linkTweet thisAlerts:
@pyroSep 10.2003 — Whatever... :rolleyes:
Copy linkTweet thisAlerts:
@96turnerriSep 10.2003 — oh ok you cant get into my site without java so the coding doesnt matter if they dont have java enabled.
Copy linkTweet thisAlerts:
@mrcollisionauthorSep 10.2003 — anyoe know what I could do to get a flash button to link to a window of my own proportions or a pop-up window.

Basically I need a window that is 712x570 that has no address bars, buttons or scrollers to open when I click on a button in flash.

I know no actionscript and my scripting knowledge is incredibly basic.

Any help?
Copy linkTweet thisAlerts:
@p2bcSep 10.2003 — Ok for flash:

1-Open your flash file for your button

2-Highlight you button you want to use for the pop up

3-Press F9 to on the action panel, or right click and choose action

4-Go into Expert mode, by clicking on the pull down menu in the top right corner that looks like 3 lines with dots beside them. And past this code exactly as it is:

<i>
</i>on (release) {
getURL ("javascript:NewWindow=window.open('http://WEBSITE','newWin','width=712,height=570,left=0,top=0,toolbar=No,location=No,scrollbars=No,status=No,resizable=No,fullscreen=No'); NewWindow.focus(); void(0);");
}


If you go back to normal mode the code need to be in [b]1[/b] straight line, with no breaks. Where it says 'WEBSITE' put the location of the site you want to go to, but make sure to keep the http:// in front. Publush your movie, and that is it.

No need to put any JavaScript tag in the html page or nothing, just that. If you want you can just use the swf file directly.
Copy linkTweet thisAlerts:
@96turnerriSep 10.2003 — ty p2bc i was after something simalar saves me starting a new thread nice one m8, thanks for looking at that site i did 4 richieno9 giving ur opinion cheers

Rich
Copy linkTweet thisAlerts:
@mrcollisionauthorSep 10.2003 — tried.. couldn't go to normal mode.. Got this up instead.

Scene=Scene 1, Layer=buttons, Frame=1: Line 2: String literal was not properly terminated

getURL ("java script:NewWindow=window.open('http:// WEBSITE','newWin','width=712,height=570,left=0,top

Scene=Scene 1, Layer=buttons, Frame=1: Line 3: Left side of assignment operator must be variable or property.

=0,toolbar=No,location=No,scrollbars=No,status=No,

Scene=Scene 1, Layer=buttons, Frame=1: Line 4: String literal was not properly terminated

resizable=No,fullscreen=No'); NewWindow.focus(); void(0);");

Scene=Scene 1, Layer=buttons, Frame=1: Line 5: ')' or ',' expected

}
Copy linkTweet thisAlerts:
@mrcollisionauthorSep 10.2003 — and then I re-read your post and put it all on one line. Oops.
Copy linkTweet thisAlerts:
@mrcollisionauthorSep 10.2003 — oh wait.. that doesn't work either.. For some reason when I click the link the whole line gets entered as a URL and it cant seperate the URL from the rest of the code.
Copy linkTweet thisAlerts:
@p2bcSep 10.2003 — That is fine.

Look at the picture.

[IMG]http://www.birkemusik.dk/test/flash.jpg[/IMG]

Where the word website is highlighted up at the top is where you edit the site.
×

Success!

Help @mrcollision spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.25,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...