system
(system)
23 Marzec 2008 12:39
#1
Jak we flash’u wczytac strone do ramki po kliknieciu myszka?
Normalnie wiem jak wczytac cala strone:
on (release) {
getURL("index.html");
}
ale zalezy mi na tym abym mogl ja wczytac do ramki.
Czy cos jeszcze trzeba dodac do tego kodu?
Dodam ze moja strone pisze w html’u a tylko baner i menu mam we flash’u.
Jest taki prosty sposób. Wpisujesz getURL nie w searchu helpa flasha tylko w polu actionscript. Następnie wciskasz ppm i view help a tam masz wszytko jak na dłoni.
getURL function getURL(url:String, [window]]) : Void Loads a document from a specific URL into a window or passes variables to another application at a defined URL. To test this function, make sure the file to be loaded is at the specified location. To use an absolute URL (for example, http://www.myserver.com ), you need a network connection. Availability: ActionScript 1.0; Flash Player 4 - The GET and POST options are available only in and later versions. Parameters url:String - The URL from which to obtain the document. window:String [optional] - Specifies the window or HTML frame into which the document should load. You can enter the name of a specific window or select from the following reserved target names: _self specifies the current frame in the current window. _blank specifies a new window. _parent specifies the parent of the current frame. _top specifies the top-level frame in the current window.
i przykładowy kod instrukcji
getURL("http://www.macromedia.com/software/flash/flashpro/", "_blank");
pewnie o to biegało:)
Wesołych Świąt Wielkanocnych :mrgreen:
system
(system)
23 Marzec 2008 19:59
#3
No dzieki ale chyba nie o to chodzilo bo tam jest tylko opisane cos o wyswietlaniu w nowej karcie itd. a mi chodzi abym dany adres mogl wyswietlic w jednej z moich ramek na stronie ktora nazywa sie np.“strona” a nie odswiezac cala strone. Nie wiem ale wydaje mi sie ze tego tam nie ma opisanego:(
przecież polecenia są takie same jak w html. Zamiast “_blank” wklep “_nazwa_ramki” i wszystko
system
(system)
24 Marzec 2008 12:42
#5
No ni w ząb nie działa nie wiem o co chodzi :?:
W HTML’u mam kod do ramki:
Natomiast we Flash’u wpisuje:
on (release) {
getURL("tabela.html", "_strona");
}
i nie wczytuje do ramki tylko wywala mi na cala strone w przegladarce