Précédent   Forum des professionnels en informatique > Webmasters - Développement Web > Flash/Flex
Flash/Flex Forum d'entraide sur les technologies Flash et Flex
Partagez cette discussion sur d'autres réseaux sociaux : Viadeo Twitter Google Facebook Digg Delicious MySpace Yahoo
Réponse Proposer ce sujet en actualité
 
Outils de la discussion
Publicité
'
Vieux 26/01/2012, 17h35   #1
Invité régulier
 
Inscription : juillet 2008
Messages : 30
Détails du profil
Informations forums :
Inscription : juillet 2008
Messages : 30
Points : 9
Points : 9
Par défaut En attente de connexion au debugger flash

RHhwahwhawhawawa

Pour commencer ce sujet...

Bonjour !!!

Comme indiqué en titre et mon état actuel je reste lymbinthique de ce qui m'arrive.

Hier mon application en debug fonctionnait très bien
Hier soir je fait "Réparer les permissions du disque" sur mon mac
Ce matin, je lance mon eclipse et mon appli en mode debug et là...

En attente de connection au debugger flash...

Impossible de rester bloqué dessus !!! la tête à l'envers
L'appli ne se lance plus de ce faites, car eclipse cherche le debugger (qu'il ne trouve pas) et je peut donc rien faire... car en mode non debug, ça ne fonctionne non plus : S (l'appli pointe vers le html mais rien ne se charge !!!)

Etrange Etrange. jai désinstallé et ré-installé flash player plugins debugger, mais rien n'y fait !!!

Voila la configuration

Mac os.x 10.6.8
Eclipse ganymede (client)
Eclipse helios(server)

about:plugins =>
Shockwave Flash

Fichier : Flash Player.plugin
Version : 11.1.102.55
Shockwave Flash 11.1 r102

Version flash player 11.1.102.55

Dans :
Flash builder/Player/Mac
j'ai mis : Flash player debugger, Flash player.plugin, playerGlobal.swc

Sdks 4.1.0 et (3.5.0) / frameworks/libs/player [10.0, 10.1, 11, 11.0] (et [9, 10, 11, 11.0]) (respectivement) avec le fichier playerglobal.swc associé

Bibliothéque/application support/ adobe/ flash player :
Flash player debugger, Flash player.plugin

Bibliothéque/application support/ macromedia :
Flash player debugger, Flash player.plugin

Bibliothéque/internet plugins :
Flash player debugger, Flash player.plugin

J'ai fait de la redondance dans l'espoir qu'il trouve le plugins debugger

Je ne sais plus quoi faire

Il y a dans le dossier internet plugins, le player plugins, et dans macromedia, le flash player debugger
Tout es là.

C'est quoi le souci ?

Le projet flex :
sdk 4.1
utilise la valeur minimale du flash player requis
mx uniquement
(svn)

(les autres ne fonctionne pas non plus !!!)

flash marche très bien, je peut afficher des anim flah sur internet et tout.
Je peut acceder à mon swf en lancant adobe flash debugger manuellement

c'est le lien eclipse - debugger qui est perdu je pense, et je ne sais comment y remedier

Apperçu du html embarquant le swf

Code :
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!-- saved from url=(0014)about:internet -->
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">	
    <!-- 
    Smart developers always View Source. 
 
    This application was built using Adobe Flex, an open source framework
    for building rich Internet applications that get delivered via the
    Flash Player or to desktops via Adobe AIR. 
 
    Learn more about Flex at http://flex.org 
    // -->
    <head>
        <title></title>
        <meta name="google" value="notranslate"/>         
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<!-- Include CSS to eliminate any default margins/padding and set the height of the html element and 
		     the body element to 100%, because Firefox, or any Gecko based browser, interprets percentage as 
			 the percentage of the height of its parent container, which has to be set explicitly.  Fix for
			 Firefox 3.6 focus border issues.  Initially, don't display flashContent div so it won't show 
			 if JavaScript disabled.
		-->
        <style type="text/css" media="screen"> 
			html, body	{ height:100%; }
			body { margin:0; padding:0; overflow:auto; text-align:center; 
			       background-color: #869ca7; }   
			object:focus { outline:none; }
			#flashContent { display:none; }
        </style>
 
		<!-- Enable Browser History by replacing useBrowserHistory tokens with two hyphens -->
        <!-- BEGIN Browser History required section -->
        <link rel="stylesheet" type="text/css" href="history/history.css" />
        <script type="text/javascript" src="history/history.js"></script>
        <!-- END Browser History required section -->  
 
        <script type="text/javascript" src="swfobject.js"></script>
        <script type="text/javascript">
            <!-- For version detection, set to min. required Flash Player version, or 0 (or 0.0.0), for no version detection. --> 
            var swfVersionStr = "10.0.0";
            <!-- To use express install, set to playerProductInstall.swf, otherwise the empty string. -->
            var xiSwfUrlStr = "playerProductInstall.swf";
            var flashvars = {};
            var params = {};
            params.quality = "high";
            params.bgcolor = "#869ca7";
            params.allowscriptaccess = "sameDomain";
            params.allowfullscreen = "true";
            var attributes = {};
            attributes.id = "Toutouyoutou";
            attributes.name = "Toutouyoutou";
            attributes.align = "middle";
            swfobject.embedSWF(
                "Toutouyoutou.swf", "flashContent", 
                "100%", "100%", 
                swfVersionStr, xiSwfUrlStr, 
                flashvars, params, attributes);
			<!-- JavaScript enabled so display the flashContent div in case it is not replaced with a swf object. -->
			swfobject.createCSS("#flashContent", "display:block;text-align:left;");
        </script>
    </head>
    <body>
        <!-- SWFObject's dynamic embed method replaces this alternative HTML content with Flash content when enough 
			 JavaScript and Flash plug-in support is available. The div is initially hidden so that it doesn't show
			 when JavaScript is disabled.
		-->
        <div id="flashContent">
        	<p>
	        	To view this page ensure that Adobe Flash Player version 
				10.0.0 or greater is installed. 
			</p>
			<script type="text/javascript"> 
				var pageHost = ((document.location.protocol == "https:") ? "https://" :	"http://"); 
				document.write("<a href='http://www.adobe.com/go/getflashplayer'><img src='" 
								+ pageHost + "www.adobe.com/images/shared/download_buttons/get_flash_player.gif' alt='Get Adobe Flash player' /></a>" ); 
			</script> 
        </div>
 
       	<noscript>
            <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="100%" height="100%" id="Toutouyoutou">
                <param name="movie" value="Toutouyoutou.swf" />
                <param name="quality" value="high" />
                <param name="bgcolor" value="#869ca7" />
                <param name="allowScriptAccess" value="sameDomain" />
                <param name="allowFullScreen" value="true" />
                <!--[if !IE]>-->
                <object type="application/x-shockwave-flash" data="Toutouyoutou.swf" width="100%" height="100%">
                    <param name="quality" value="high" />
                    <param name="bgcolor" value="#869ca7" />
                    <param name="allowScriptAccess" value="sameDomain" />
                    <param name="allowFullScreen" value="true" />
                <!--<![endif]-->
                <!--[if gte IE 6]>-->
                	<p> 
                		Either scripts and active content are not permitted to run or Adobe Flash Player version
                		10.0.0 or greater is not installed.
                	</p>
                <!--<![endif]-->
                    <a href="http://www.adobe.com/go/getflashplayer">
                        <img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash Player" />
                    </a>
                <!--[if !IE]>-->
                </object>
                <!--<![endif]-->
            </object>
	    </noscript>		
   </body>
</html>
Le fichier swf est bien présent a coté du html je précise.

Problème du jour au lendemain via un "Réparer les permissions du disque"

Le debugger n'est donc pas trouvé, pourquoi ? comment ? quel manière de lui dire "c'est là" (doit le trouver par défaut normalement)
Une variable d'environnement ?

Merci de votre attention si vous avez quelconques idée, je testerai.
zanteskuken est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 27/01/2012, 12h14   #2
Invité régulier
 
Inscription : juillet 2008
Messages : 30
Détails du profil
Informations forums :
Inscription : juillet 2008
Messages : 30
Points : 9
Points : 9
Je reviens avec quelques peut d'élément supplémentaire.

J'ai créé un nouveau projet "bidon" pour voir si le debugger se lançait.

Flex sdk 4.1
Je reste en mx uniquement (car mon précédent est en mx (pas de fx) et c'était trop volumineux pour migrer en fx ! )

bout de code

Code :
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
 
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" 
				layout="absolute" minWidth="955" minHeight="600" initialize="initializeHandler(event)">
 
	<mx:Script>
		<![CDATA[
			private function initializeHandler(event:Event):void
			{          
				trace(" initializeHandler");
 
			}	
			]]>
	</mx:Script>
 
</mx:Application>
en console j'affiche bien "initializeHandler"

Il doit donc y avoir un problème de config ?

Config

DE mon projet TEST
.project
Code :
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
	<name>testons</name>
	<comment></comment>
	<projects>
	</projects>
	<buildSpec>
		<buildCommand>
			<name>com.adobe.flexbuilder.project.flexbuilder</name>
			<arguments>
			</arguments>
		</buildCommand>
	</buildSpec>
	<natures>
		<nature>com.adobe.flexbuilder.project.flexnature</nature>
		<nature>com.adobe.flexbuilder.project.actionscriptnature</nature>
	</natures>
</projectDescription>
.flexProperties
Code :
1
2
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<flexProperties enableServiceManager="false" flexServerFeatures="0" flexServerType="0" toolCompile="true" useServerFlexSDK="false" version="2"/>
.actionScriptProperties
Code :
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
 
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<actionScriptProperties analytics="false" mainApplicationPath="HomeExperience.mxml" projectUUID="b5e35b2f-1bf8-4268-b4a4-fecab9bf5491" version="6">
  <compiler additionalCompilerArguments="-locale fr_FR" autoRSLOrdering="true" copyDependentFiles="true" fteInMXComponents="false" generateAccessible="true" htmlExpressInstall="true" htmlGenerate="true" htmlHistoryManagement="true" htmlPlayerVersionCheck="true" includeNetmonSwc="false" outputFolderPath="bin-debug" sourceFolderPath="src" strict="true" targetPlayerVersion="0.0.0" useApolloConfig="false" useDebugRSLSwfs="true" verifyDigests="true" warn="true">
    <compilerSourcePath/>
    <libraryPath defaultLinkType="0">
      <libraryPathEntry kind="4" path="">
        <modifiedEntries>
          <libraryPathEntry index="6" kind="3" linkType="4" path="${PROJECT_FRAMEWORKS}/libs/rpc.swc" useDefaultLinkType="true">
            <crossDomainRsls>
              <crossDomainRslEntry autoExtract="true" policyFileUrl="http://fpdownload.adobe.com/pub/swz/crossdomain.xml" rslUrl="http://fpdownload.adobe.com/pub/swz/flex/4.1.0.16076/rpc_4.1.0.16076.swz"/>
              <crossDomainRslEntry autoExtract="true" policyFileUrl="" rslUrl="rpc_4.1.0.16076.swz"/>
            </crossDomainRsls>
          </libraryPathEntry>
        </modifiedEntries>
        <excludedEntries>
          <libraryPathEntry kind="3" linkType="1" path="${PROJECT_FRAMEWORKS}/libs/flex.swc" useDefaultLinkType="false"/>
          <libraryPathEntry index="5" kind="3" linkType="4" path="${PROJECT_FRAMEWORKS}/libs/sparkskins.swc" useDefaultLinkType="true">
            <crossDomainRsls>
              <crossDomainRslEntry autoExtract="true" policyFileUrl="http://fpdownload.adobe.com/pub/swz/crossdomain.xml" rslUrl="http://fpdownload.adobe.com/pub/swz/flex/4.1.0.16076/sparkskins_4.1.0.16076.swz"/>
              <crossDomainRslEntry autoExtract="true" policyFileUrl="" rslUrl="sparkskins_4.1.0.16076.swz"/>
            </crossDomainRsls>
          </libraryPathEntry>
          <libraryPathEntry index="4" kind="3" linkType="4" path="${PROJECT_FRAMEWORKS}/libs/spark.swc" useDefaultLinkType="true">
            <crossDomainRsls>
              <crossDomainRslEntry autoExtract="true" policyFileUrl="http://fpdownload.adobe.com/pub/swz/crossdomain.xml" rslUrl="http://fpdownload.adobe.com/pub/swz/flex/4.1.0.16076/spark_4.1.0.16076.swz"/>
              <crossDomainRslEntry autoExtract="true" policyFileUrl="" rslUrl="spark_4.1.0.16076.swz"/>
            </crossDomainRsls>
          </libraryPathEntry>
        </excludedEntries>
      </libraryPathEntry>
      <libraryPathEntry kind="1" linkType="1" path="libs"/>
    </libraryPath>
    <sourceAttachmentPath/>
  </compiler>
  <theme themeIsDefault="false" themeIsSDK="true" themeLocation="${SDK_THEMES_DIR}/frameworks/themes/Halo"/>
  <applications>
    <application path="HomeExperience.mxml"/>
  </applications>
  <modules/>
  <buildCSSFiles/>
</actionScriptProperties>
Nb : semble un peut tordus ! c'est généré par adobe flash builder plugins
je pense que c'est dû au fait que j'utilise le sdk 4.1 mais reste en mx

DE mon Appli (qui se lançais très bien avant)

.project
Code :
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
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
	<name>toutouyoutou</name>
	<comment></comment>
	<projects>
	</projects>
	<buildSpec>
		<buildCommand>
			<name>com.adobe.flexbuilder.project.flexbuilder</name>
			<arguments>
			</arguments>
		</buildCommand>
	</buildSpec>
	<natures>
		<nature>com.adobe.flexbuilder.project.flexnature</nature>
		<nature>com.adobe.flexbuilder.project.actionscriptnature</nature>
	</natures>
	<linkedResources>
		<link>
			<name>bin-debug</name>
			<type>2</type>
			<location>/Users/cedricanache/Documents/workspace/ServerEchange/WebContent/bin-debug</location>
		</link>
	</linkedResources>
</projectDescription>
.flexProperties
Code :
1
2
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<flexProperties enableServiceManager="false" flexServerFeatures="4" flexServerType="2" flexWarLocation="/Programme/apache-tomcat-6.0.32/webapps/blazeds-bin-4.0.0.14931/blazeds.war" serverContextRoot="/ServerEchange" serverRoot="/Users/cedricanache/Documents/workspace/ServerEchange/WebContent" serverRootURL="http://localhost:8090/ServerEchange" toolCompile="true" useServerFlexSDK="false" version="1"/>
.actionScriptProperties
Code :
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
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<actionScriptProperties analytics="false" mainApplicationPath="Toutouyoutou.mxml" projectUUID="e10dbdf8-7140-42eb-87a0-40114a4135a2" version="6">
  <compiler additionalCompilerArguments="-services "/Users/cedricanache/Documents/workspace/ServerEchange/WebContent/WEB-INF/flex/services-config.xml" -locale=en_US,fr_FR -source-path=../locale/{locale} -include-resource-bundles collections components controls core effects layout resources skins styles textLayout -allow-source-path-overlap=true" autoRSLOrdering="true" copyDependentFiles="true" flexSDK="Flex 4.1" fteInMXComponents="false" generateAccessible="false" htmlExpressInstall="true" htmlGenerate="true" htmlHistoryManagement="true" htmlPlayerVersionCheck="true" includeNetmonSwc="false" outputFolderLocation="/Users/cedricanache/Documents/workspace/ServerEchange/WebContent/bin-debug" outputFolderPath="bin-debug" sourceFolderPath="src" strict="true" targetPlayerVersion="0.0.0" useApolloConfig="false" useDebugRSLSwfs="true" verifyDigests="true" warn="true">
    <compilerSourcePath>
      <compilerSourcePathEntry kind="1" linkType="1" path="locale"/>
    </compilerSourcePath>
    <libraryPath defaultLinkType="3">
      <libraryPathEntry kind="4" path="">
        <modifiedEntries>
          <libraryPathEntry index="6" kind="3" linkType="4" path="${PROJECT_FRAMEWORKS}/libs/rpc.swc" useDefaultLinkType="true">
            <crossDomainRsls>
              <crossDomainRslEntry autoExtract="true" policyFileUrl="http://fpdownload.adobe.com/pub/swz/crossdomain.xml" rslUrl="http://fpdownload.adobe.com/pub/swz/flex/4.1.0.16076/rpc_4.1.0.16076.swz"/>
              <crossDomainRslEntry autoExtract="true" policyFileUrl="" rslUrl="rpc_4.1.0.16076.swz"/>
            </crossDomainRsls>
          </libraryPathEntry>
        </modifiedEntries>
        <excludedEntries>
          <libraryPathEntry index="5" kind="3" linkType="4" path="${PROJECT_FRAMEWORKS}/libs/sparkskins.swc" useDefaultLinkType="true">
            <crossDomainRsls>
              <crossDomainRslEntry autoExtract="true" policyFileUrl="http://fpdownload.adobe.com/pub/swz/crossdomain.xml" rslUrl="http://fpdownload.adobe.com/pub/swz/flex/4.1.0.16076/sparkskins_4.1.0.16076.swz"/>
              <crossDomainRslEntry autoExtract="true" policyFileUrl="" rslUrl="sparkskins_4.1.0.16076.swz"/>
            </crossDomainRsls>
          </libraryPathEntry>
          <libraryPathEntry index="4" kind="3" linkType="4" path="${PROJECT_FRAMEWORKS}/libs/spark.swc" useDefaultLinkType="true">
            <crossDomainRsls>
              <crossDomainRslEntry autoExtract="true" policyFileUrl="http://fpdownload.adobe.com/pub/swz/crossdomain.xml" rslUrl="http://fpdownload.adobe.com/pub/swz/flex/4.1.0.16076/spark_4.1.0.16076.swz"/>
              <crossDomainRslEntry autoExtract="true" policyFileUrl="" rslUrl="spark_4.1.0.16076.swz"/>
            </crossDomainRsls>
          </libraryPathEntry>
        </excludedEntries>
      </libraryPathEntry>
      <libraryPathEntry kind="1" linkType="1" path="libs"/>
    </libraryPath>
    <sourceAttachmentPath/>
  </compiler>
  <applications>
    <application path="ToutouyoutouBackUp.mxml"/>
    <application path="Toutouyoutou.mxml"/>
  </applications>
  <modules/>
  <buildCSSFiles>
    <buildCSSFileEntry destPath="bin-debug" sourcePath="src/style.css"/>
  </buildCSSFiles>
</actionScriptProperties>
J'ai exporter puis importé mon appli dans un autre projet, et ça à bloqué aussi au niveau du debogger.

Tout ancien projet plantouille mais si je crée un nouveau projet flex, ça fonctionner, c'est vraiment étrange.

je continue mes recherches.

N'hésitez pas à proposer des orientations ! Merci.
zanteskuken est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 27/01/2012, 12h56   #3
Invité régulier
 
Inscription : juillet 2008
Messages : 30
Détails du profil
Informations forums :
Inscription : juillet 2008
Messages : 30
Points : 9
Points : 9
J'ai trouvé la réponse (je pense, espérant que ça ne foire autrement, mais cela me semble concret)

dans mon swfObject.js j'eus mis

Code :
window.document.getElementById("appli").style.scrollbar3dLightColor : red;
Hors, cette écriture est fausse, il faut mettre

Code :
window.document.getElementById("appli").style.scrollbar3dLightColor="red";
De ce fait, avant de pouvoir lancer le debugger, flash planté avant en chargant le swfObject.js, car il y avait une erreur de syntaxe.

Erreur non visible sous flash builder plugins donc

C'est en allant voir coté server en lisant le fichier, que mon eclipse m'as indiqué en rouge cette erreur.

C'est bien quelque chose de manquant coté ide flash...

Je poursuis un peut les tests au cas ou !!
zanteskuken est déconnecté   Envoyer un message privé Réponse avec citation 00
Réponse Proposer ce sujet en actualité Cette discussion est résolue.
Outils de la discussion



Fuseau horaire GMT +2. Il est actuellement 20h40.


 
 
 
 
Partenaires

Hébergement Web