Twitter iPhone pliant OnePlus 11 PS5 Disney+ Orange Livebox Windows 11

Accéder à un écran qui est placé dans un composant window

2 réponses
Avatar
Tannoy
Bonjour,

J'ai créé un document flash de type "Application du formulaire Flash". Ce
document comprend deux écrans : l'écran père se nomme application et l'écran
fils se nomme calendrier.

L'écran application contient un composant window nommé calendrier_wd. Ce
composant possède une propriété contentPath dont la valeur est calendrier ce
qui me permet d'afficher mon calendrier dans l'objet window.
L'écran calendrier contient un composant dateChooser nommé calendrier_dc.

Je souhaite accèder depuis l'écran père à mon objet calendrier_dc afin de
récupérer la date.

J'ai essayé comme chemin d'accès ces 4 syntaxes :

this.calendrier.calendrier_dc

this.calendrier_dc

this.calendrier_wd.calendrier.calendrier_dc

this.calendrier_wd.calendrier_dc

Et bien sûr, rien ne fonctionne.

Avez-vous une idée ?

merci

2 réponses

Avatar
philippe.z
Salut Essaye avec _level.xxxxxxx
insere un trace(this) au niveau de ton calendrier et tu auras le bon chemin
d'acc?s.
J'ai eu ce genre prob et apres avoir essay? un petit tout le bonne soluce
etait celle la. J'espere que se sera la bonne.

a+
Avatar
Tannoy
en fait pour accéder au contenu du composant window, il faut utiliser la
propriété content.

monWindow.content.monObjet.maMethode...


"Tannoy" a écrit dans le message de
news:c4jaqt$37g$
Bonjour,

J'ai créé un document flash de type "Application du formulaire Flash". Ce
document comprend deux écrans : l'écran père se nomme application et


l'écran
fils se nomme calendrier.

L'écran application contient un composant window nommé calendrier_wd. Ce
composant possède une propriété contentPath dont la valeur est calendrier


ce
qui me permet d'afficher mon calendrier dans l'objet window.
L'écran calendrier contient un composant dateChooser nommé calendrier_dc.

Je souhaite accèder depuis l'écran père à mon objet calendrier_dc afin de
récupérer la date.

J'ai essayé comme chemin d'accès ces 4 syntaxes :

this.calendrier.calendrier_dc

this.calendrier_dc

this.calendrier_wd.calendrier.calendrier_dc

this.calendrier_wd.calendrier_dc

Et bien sûr, rien ne fonctionne.

Avez-vous une idée ?

merci