Forum FAQForum FAQSearchSearch MemberlistMemberlist Forum ignore listForum ignore list RegisterRegister ProfileProfile Log in to check your private messagesLog in to check your private messages Log inLog in
Otvaranje stranica u novom prozoru (Flash)

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    mi3dot.org Forum Index -> Flash
View previous topic :: View next topic  
Author Message
Alexx



Joined: 10 Oct 2005
Posts: 123
Location: Zagreb

PostPosted: 29.10.2005 13:56    Post subject: Otvaranje stranica u novom prozoru (Flash) Add user to your forum ignore list Reply with quote

Jedno mini pitanjce za flash gurue... Kako odnosno gdje definirati parametre novog prozora na getURL akciji... Npr. da prozor u kojem se otvara odredjena stranica bude 100x100 pixela, bez scrollbara i resize handle-a, kao sto se to moze definirati u Dreamweaveru...

Ovo je osnovni kod za otvaranje stranica u novom prozoru... dalje neznam Rolling Eyes Embarassed

Code:
on (release) {
   getURL("http://www.bla.com", "_blank");
}
Back to top
View user's profile Send private message Send e-mail AIM Address
pepa.UP



Joined: 10 Sep 2003
Posts: 15
Location: zagreb

PostPosted: 29.10.2005 20:22    Post subject: Add user to your forum ignore list Reply with quote

flash nemoze baratati browserom, ali moze pozvati javascript.

u head html filea di ti se nalazi taj flash dodas
Code:
<script type="text/javascript">
<!--
function newWindow(newUrl, newName, newProperties) {
   window.open(newUrl, newName, newProperties);
}
-->
</script>


a na gumb u flashu
Code:
on (release) {
   getURL("javascript:newWindow('neki_fajl.html','ime_prozoar','width=100,height=100');");
}

gotovo je jednako kao ona funkcija iz dreamweavera.

_________________
unpljugged.com
Back to top
View user's profile Send private message Visit poster's website
che.UP
mi3.crew


Joined: 07 Sep 2003
Posts: 2320
Location: zagreb

PostPosted: 29.10.2005 23:48    Post subject: Add user to your forum ignore list Reply with quote

zvinte kolega sto sumnjam u Vas, al kaj ne moze direktno ovak? :)

Code:
on (release) {
   getURL("javascript:window.open('neki_fajl.html','ime_prozoar','width=100,height=100');");
}

_________________
UP | TypeTester | Accommodations App
Meni u Firefox-u ne radi AJAX
Back to top
View user's profile Send private message Visit poster's website
pepa.UP



Joined: 10 Sep 2003
Posts: 15
Location: zagreb

PostPosted: 30.10.2005 03:26    Post subject: Add user to your forum ignore list Reply with quote

che.UP wrote:
zvinte kolega sto sumnjam u Vas
np:)
macromedia wrote:
In a standard HTML page, browser windows are opened and controlled by JavaScript functions in the HTML page. Browser windows can also be opened and closed from a Flash movie, but because windows are a component of the browser, Flash must communicate with the browser and direct it to open new windows.

...ali moze se i direktno. na tvom primjeru flash zabrije da je to url a ne js funkcija (neznam zasto), treba dodati void() da se to izbjegne
Code:
on (release) {
   getURL("javascript:window.open('neki_fajl.html','ime_prozoar','width=100,height=100');void(0);");
}

zaboravih napomenuti: ova kombinacija flash/javascript ce bacati sigurnosnu poruku ako se pokrene lokalno s diska, ali radi ako koristite http:// protokol.

@che: dinamo?:)

_________________
unpljugged.com
Back to top
View user's profile Send private message Visit poster's website
astolitu



Joined: 26 Jun 2004
Posts: 547
Location: Zagreb

PostPosted: 30.10.2005 11:34    Post subject: Add user to your forum ignore list Reply with quote

on (release) {
getURL("javascript:window.open('nesto.htm' , 'ime','width=100, height=100,'
toolbar=No,scrollbars=No,resizable=No,menubar=No,status=No,directories=No,location=No'); void(0);");
}

_________________
http://www.markobjedov.com/
Back to top
View user's profile Send private message Visit poster's website Twitter profile
che.UP
mi3.crew


Joined: 07 Sep 2003
Posts: 2320
Location: zagreb

PostPosted: 31.10.2005 00:51    Post subject: Add user to your forum ignore list Reply with quote

pepa.UP wrote:
@che: dinamo?:)


FTW!!!1 :)
.fla na prosvijetljenju

_________________
UP | TypeTester | Accommodations App
Meni u Firefox-u ne radi AJAX
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    mi3dot.org Forum Index -> Flash All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group