144 повідомлення
#14 років тому
Нашёл я одну шапку на флеше и уж больно захотелось её мне поставить на DLE 8. Подскажите как вставить ей? Всмысле вставить я её могу, но как сделать ссылки на флеш кнопках?
144 повідомлення
#14 років тому
PaulShark, извините, но я не соображаю совершенно во флеше. Есть swf и fla.
144 повідомлення
#14 років тому
Погуглил я... Вставка флеш шапки на сайт....Ну нифига нету там! Везде нубы спрашивают как вставить... А никто толково не отвечает...
658 повідомлень
#14 років тому
Вот вот, что за шапка, скоко весит, может ее и ставить не стоит
144 повідомлення
658 повідомлень
#14 років тому
Меняешь _parent.gotoAndPlay("s2" на getURL_parent.gotoAndPlay("s2"
ActionScript 2.0 Language Reference
ActionScript language elements > Global Functions > getURL function
getURL function
getURL(url:String, ]) : 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, посилання), you need a network connection.
Security note: For Flash Player 8 and later, for local content running in a browser, calls to the getURL() function that specify the "javascript:" pseudo-protocol (for example, getURL("javascript:someFunction()") are only permitted if the SWF file and the containing web page (if there is one) are in the local-trusted security sandbox.
Security note: In Flash Player 9 and later, when code in a SWF file that is running in the local-with-filesystem sandbox calls the getURL() function and specifies a custom window name for the window parameter, the window name is transfered into a random name. The name is in the form "_flashXXXXXXXX", where each X represents a random hexadecimal digit. Within the same session (until you close the containing browser window), if you call the function again and specify the same name for the window parameter, the same random string is used.
Availability: ActionScript 1.0; Flash Player 2 - The GET and POST options are available only in Flash Player 4 and later versions.
Parameters
url:String - The URL from which to obtain the document.
window:String - 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.
method:String - A GET or POST method for sending variables. If there are no variables, omit this parameter. The GET method appends the variables to the end of the URL, and is used for small numbers of variables. The POST method sends the variables in a separate HTTP header and is used for sending long strings of variables.
Example
This example loads an image into a movie clip. When the image is clicked, a new URL is loaded in a new browser window.
var listenerObject:Object = new Object();
listenerObject.onLoadInit = function(target_mc:MovieClip) {
target_mc.onRelease = function() {
getURL("http://www.adobe.com/software/flash/flashpro/", "_blank"
};
};
var logo:MovieClipLoader = new MovieClipLoader();
logo.addListener(listenerObject);
logo.loadClip("http://www.helpexamples.com/flash/images/image1.jpg",
this.createEmptyMovieClip("adobe_mc", this.getNextHighestDepth()));
In the following example, getURL() is used to send an e-mail message:
myBtn_btn.onRelease = function(){
getURL("mailto:***"
};
In the following ActionScript, JavaScript is used to open an alert window when the SWF file is embedded in a browser window (please note that when calling JavaScript with getURL(), the url parameter is limited to 508 characters):
myBtn_btn.onRelease = function(){
getURL("javascript:alert('you clicked me'"
};
You can also use GET or POST for sending variables. The following example uses GET to append variables to a URL:
var firstName:String = "Gus";
var lastName:String = "Richardson";
var age:Number = 92;
myBtn_btn.onRelease = function() {
getURL("http://www.adobe.com", "_blank", "GET"
};
The following ActionScript uses POST to send variables in the HTTP header. Make sure you test your documents in a browser window, because otherwise your variables are sent using GET:
var firstName:String = "Gus";
var lastName:String = "Richardson";
var age:Number = 92;
getURL("http://www.adobe.com", "_blank", "POST"
See also
loadVariables function, send (XML.send method), sendAndLoad (XML.sendAndLoad method)
View comments on LiveDocs
658 повідомлень
#14 років тому
Если че не понял пиши
144 повідомлення
#14 років тому
Эм... А что это за файл? А куда вставлять ссылки для кнопок?
144 повідомлення
#14 років тому
Это инструкция по работе? Я английский знаю только на базовом уровне...
658 повідомлень
#14 років тому
Без английского программисту никуда, учи
144 повідомлення
#14 років тому
sergannd_snz, базового уровня хватит. Я же учусь в школе щас И к тому же не зря создавали программы для переводов с английского на русский 858 повідомлень
#14 років тому
Цитата ("Efremov_XP"):И к тому же не зря создавали программы для переводов с английского на русский
Ну-ну, должны же переводчики над чем-то ржать)))))))
144 повідомлення
#14 років тому
m3w, переводится вполне толково.
858 повідомлень
#14 років тому
Efremov_XP, вам бы мою бывшую учительницу по инглишу))) утро бы начинали с "Rule, Britannia!"))
144 повідомлення
#14 років тому
Давайте без оффтопа. По теме. Помогите пожалуйста. Как сделать на кнопках ссылки?
144 повідомлення
#14 років тому
И пожалуйста на русском. Русский я знаю лучше чем английский 658 повідомлень
#14 років тому
Дык это к Adobe это они по английски пишут, учи......