1&1 DSL
Flashhilfe.de - Flash Community

load Overlay js aus flash? AS2 [Flash CS3]

Forum > Flash mit anderen Programmiersprachen > load Overlay js aus flash? AS2

 


AntwortenRegistrieren Seite1 2  

 15.10.2009, 19:47Re16
Benutzerbild von skoda
Beiträge: 1152
Wohnort: Boston MA
Registriert: Feb 2006

Themenautor/in

yo habs n bischen anders geloest
das flash wird versteckt wenn der overlay kommt

wens interessiert hier der code aus der html

ActionScript:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
<!-- each overlay is initialized with this single JavaScript call -->
<script>

function triggerMe(){
api.load();
$("#flash").hide();
}

//$(function makeIthappen() {
  // make overlay API global call within flash api.load(); 
  //window.api = $("#custom").overlay({api: true, expose: 'black', effect: 'apple'});
//});
//added function name
$(function(){
      window.api = $("#custom").overlay({
         api: true,
         expose: 'black',
         effect: 'apple',
         // when the mask closes, alter its background color
          onClose: function() {
              $("#flash").fadeIn("fast");
          },

         // when the mask loads again, use the original background color
        onLoad: function() {
            $("#flash").hide();
          }          
      });
      $("button[rel]").overlay({expose: '#000', effect: 'apple'});
      $("a[rel]").overlay({expose: '#000', effect: 'apple'});            
});
$(function(){
    $("#OpenEnrollment").submit(function(){
        dataString = $("#OpenEnrollment").serialize();

        $.ajax({
        type: "POST",
        url: "Reminder/reminder.php",
        data: dataString,
        dataType: "json",
        success: function(data) {
         
         if(data.email_check == "Yahoo"){
            //alert("Thank you the reminders have been sent.");            
            $("#container").html('<div><h1 style="font-weight: normal; font-size: 16px;">Thank you.</h1><p>You will receive a calendar event in your email shortly. <a href="javascript:location.reload(true);" style="color:white">Back to Open </a></p></div>')
         }         

        }

        });

        return false;           

    });
});


danke nochmal an alle
T
no one died when clinton lied
 15.10.2009, 20:21Re17
Benutzerbild von SebastianFlashhilfe.de Moderator
Beiträge: 6940
Wohnort: München
Registriert: Jan 2002

Bitte noch den Beitrag als beantwortet markieren wenn die Frage damit beantwortet ist.
Flex Freelancer || Flashhilfe @ Twitter || XING Profil
 
nicht sichtbar bei eingeloggten Mitgliedern1&1 Webhosting
 
Themen
Ähnliche Beiträge zum Thema
 

AntwortenRegistrieren Seite1 2  

Schnellantwort

Du musst registriert sein, um diese Funktion nutzen zu können.
Partner Webseiten: DesignerInAction.de   Designnation.de   Mediengestalter.info   php-resource.de   phpforum.de   phpwelt.de   Pixelio.de   PSD-Tutorials.de   Tutorials.de

Haftungsausschluss   Datenschutzerklärung   Hier Werben   Impressum
© 1999-2012 Sebastian Wichmann - Flashhilfe.de