Flash et "chemin" pour l'action script

Bonjour a tous,
(flash8)
J'ai une s�quence 1 nomm�e "intro".
je passe automatiquement a la s�quence 2.
La s�quence 2 est "bloqu�e" puisque j'ai
plac� un "stop".
Sur cette s�quence 2 il y a un clip qui se joue
normallement
sii on clique dessus.
A la fin du clip (image cl� 200 du clip)
je voudrais faire un goto afin de revenir a la scene "intro"
gotoAndPlay("intro",1);
seulement rien ne se passe ?
j'ai donc attaqu� avec les "chemins"
_root.gotoAndPlay("intro",1);
_level0.gotoAndPlay("intro",1);
rien ne se passe non plus ?
quelqu'un pourrait m'aider afin qu'a partir du clip
je puisse avoir un goto me ramenant a la s�quence
pr�c�dente ?
merci

Hello :)
> (flash8)
bonne initiative, merci de le pr�ciser ;)
> J'ai une s�quence 1 nomm�e "intro".
C'est simple ... depuis FLASH 5 il ne faut PAS utiliser de
s�quence !!!
Il faut utiliser des clips tout simplement et si possible sur
la sc�ne
principale de l'animation il faut qu'il y est une seule image
cl� et
c'est tout... tout le reste doit se positionner dans des
clips.
> je passe automatiquement a la s�quence 2.
> La s�quence 2 est "bloqu�e" puisque j'ai
plac� un "stop".
>
> Sur cette s�quence 2 il y a un clip qui se joue
normallement
> sii on clique dessus.
> A la fin du clip (image cl� 200 du clip)
> je voudrais faire un goto afin de revenir a la scene
"intro"
>
> gotoAndPlay("intro",1);
>
il faut que tu comprennes la hi�rarchie de ton
animation :)
De fa�on g�n�ral... tu peux utiliser le
mot cl� "this" et un trace()
pour voir o� tu te trouves quand tu tapes du code :
[code]
trace(this) ;
gotoAndPlay("intro",1);
(/code]
Si tu ne mets pas de this devant ton gotoAndPlay... c'est que
tu
supposes que tu cherches � lancer le gotoAndPlay en
"local" comme si tu
avais �cris :
[code]
trace(this) ;
this.gotoAndPlay("intro",1);
(/code]
Mais l� tu cherches � cibler la sc�ne
principale (parent de ton clip) ..
du coup tu dois taper obligatoirement au minimum :
[code]
trace(this) ;
_root.gotoAndPlay("intro",1); // _root = _level0 =
sc�ne principale
(/code]
> seulement rien ne se passe ?
>
> j'ai donc attaqu� avec les "chemins"
>
> _root.gotoAndPlay("intro",1);
> _level0.gotoAndPlay("intro",1);
>
> rien ne se passe non plus ?
>
> quelqu'un pourrait m'aider afin qu'a partir du clip
> je puisse avoir un goto me ramenant a la s�quence
pr�c�dente ?
>
Pense � lire l'aide de flash, la notion de
hi�rarchie entre les clips
est expliqu�e.
Pense aussi � utiliser si tu d�butes dans la
panneau d'action en haut
l'icon "chemin cible" qui te permettra de retrouver ton
chemin dans ton
code !
EKA+ :)

Similar Messages

  • I am trying to reinstall Flash CS4 professional as the action script is not working but now I am getting an error: 2 message when I use the original CD to try and reinstall

    I can't get the original disk to work on a reinstall.  I get the message
    AdobeColorCommonSetRGB
    Error:
    Error 2.
    I teach a class using this program on Macintosh computers running 10.9.5 and the action script is not working.  It will work on any program designed using the 10.8 but if you design any animation on 10.9.5 the action script will not work for the buttons

    You would have to manually delete the color profiles in question... Run the cleaner tool and see if it gets you started.
    http://www.adobe.com/support/contact/cscleanertool.html
    Mylenium

  • Flash cs6 createjs not exporting action script

    Hi ,
    I had installed cs6 in my laptop(trail version). Basically I am Action Script 3.0 programmer. I try to develop one application and create js file. Using programming I did simple drag and drop functionality. its working in swf file. Once I publish to js its not working. And I faced the text issues. Can you guys let me know that i did wrong.
    Find the attached test files.
    Thanks,
    Chandra sheker

    CreateJS won`t translate your actionscript to javascript.
    Search for tutorials on the matter that will show how you can replicate AS3 functionality with Javascript

  • What is the action script for "go to next page"?

    I'm new to flash and need help with action scripts.  What is the code for "go to next page"  I'll be using a mouse event.
    Thanks!

    It depends on where the next page is.

  • Captivate 8 - module FLASH - Action Script

    Bonjour,
    J'utilise Captive 8 pour créer des modules de formation e-learning.
    Le problème est que ma société ne peut pas passer à IE11 pour afficher les modules en HTML5.
    Pour pouvoir créer des modules, il faut que la publication en SWF se fasse avec Action Script 2 et Captivate 8 utilise Action Script3 que mon module de compilation (obligatoire de passer par là) ne gère pas.
    Y a-t-il une solution ?
    Merci de m'aider.

    Bonjour,
    merci de votre réponse et voici donc un descriptif complet de mon "problème".
    1) j'utilise Captivate8 AS3 pour générer des modules en SWF et en HTML5.
    2) j'utilise un outil spécifique MyRenda du Cerfi ensuite pour compiler mon module afin de l'insérer dans MyTeacher (CERFI)
    3) MyRenda compile avec ISPRING qui ne gère pas AS3 pour créer des modules en FLASH
    Vu que ma société utilise encore la version de IE8 pour le portail applicatif (impératif pour des raisons applicatifs métiers), je ne peux pas générer des SWF et vu que IE8 ne supporte pas le HTML5, je ne peux pas publier mes modules de formations.
    Ma question :
    Est-il possible de modifier AS3 en AS2 pour Captivate8 ? ou est-il possible d'obtenir une version antérieure de Captivate qui utilise encore AS2 ?
    En espérant avoir été claire, je reste à disposition.

  • Using mx components in Action Script project in Flash Builder

    Hi
    I have created an Action Script project in flash builder 4 and want to use a mx.controls.button.
    The as file looks like this:
    package
        import flash.display.Sprite;
        import mx.controls.Button;
        public class as_test_project extends Sprite
            public function as_test_project()
                var btn:Button = new Button();
                btn.label = "test";
                addChild(btn);
    I have added C:\Program Files\Adobe\Adobe Flash Builder 4\sdks\4.0.0\frameworks\projects\framework\src as a Source Path in the project settings. I have also added framework.swc to the library path.
    I still get errors like :
    Description    Resource    Path    Location    Type
    Unable to resolve resource bundle "core" for locale "en_US".    as_test_project        Unknown    Flex Problem
    Have then tried added various Bundles folders like
    C:\Program Files\Adobe\Adobe Flash Builder 4\sdks\4.0.0\frameworks\projects\framework\bundles
    to the source path and library path, but I still get the errors.
    WHAT IS THE CORRECT WAY OF USING MX COMPONENTS IN A PURE ACTION SCRIPT PROJECT ?
    If I want to use th fl.controls componets instead but dont have CS3 where can I download them ?

    Thank you for your quick reply.
    But how then can I obtain the fl.controls components and use them in an Action
    Script project in Flash Builder 4?
    I don't have CS3 or CS4 (the flash authoring tool) installed.
    Is there an SWC somewhere to be downloaded?

  • Flash Newbie needs help with Movie Clips/Action Scripting

    Hi -
    I'm having a problem with my movie clips playing
    simultaneously and cannot, for the life of me, figure out what I
    have done wrong. I'm new to flash, so I may have set something up
    incorrectly, but here's what I have so far:
    11 layers, total: 1 layer with 10 control buttons, each
    button with the following actionscript:
    on (release) {
    gotoAndPlay(85);
    Where the number changes in relation to which keyframe the
    next movie is on.
    I have 10 movies, total, but they are only movie clips,
    essentially photo slide shows with audio, made all in the library.
    The problem happens when I click on the second or third
    button. Not only does the movie that I have selected begin to play,
    but all of the previous clips do as well, so it all sounds quite
    garbled. I don't know what I am missing in the action script, as my
    Action Layer has a stop command on it at each keyframe where there
    is a new clip to play.
    I have tried to add a stopAllSounds command, but I'm afraid
    that doesn't do anything because it is not a "sound file" per se,
    playing in the timeline.
    I'm at the end of my rope and really need some help in
    figuring this one out. My project is hanging in the balance on
    this, as I have scripted everything else correctly and it runs
    beautifully.
    Please help!
    Thanks,
    Caroline

    Each layer has a blank keyframe before and after each
    movieclip. Each movie clip is at a different frame. Even with the
    blank keyframes added, the second video starts to play and then the
    first video begins to play. Same happens if I click on the third
    button. Third plays, and starts 1st and 2nd shortly thereafter. Is
    there an action script I can put in that will tell the timeline
    that, when a button is clicked, no matter where the movieclip is,
    it will stop and start the newly selected movieclip?

  • FLASH MX 2004 action script question

    Hi!
    I need to create an script for a basic function; when mouse goes over a moveclip, that works also link, I want it to trigger an invisible red dot on a nerby map. I have created a movieclip and named it "red", it's a 1 sec clip with nothing in the beginning and a red dot in the end. I want this dot to trigger and show only when mouse goes over this specific link, otherwise it must be invisible.
    I know this is pretty basic stuff and I have done this before few years back but I have forgotten how to do it and need help now.
    Any help would be very much appreciated :-)
    Kim

    I still need help, this problem is little more complicated;
    I can manage making the red dot visible and invisible by triggering roll over and roll out on a button.
    The problem is, I have a navbar which is line of flags made to a movie clip, with 5 invisible buttons. These buttons are configured to do three different actions; get URL, trigger a light effect and a movement effect.
    Now I need this invisible button to trigger my red dot also so that when mouse is over a certain flag a red dot appears on a map on the correct location.
    I have the red dot on a new layer. It has instance name "redDot" and on the very first frame of this red button layer, I have action script that says: redDot._visible = false;
    This works as it should and the dot is invisible when the movie has loaded.
    I need to make this invisible button to trigger the visibility of my red dot, and I have tried to add the code:
    on (rollOver) {
    redDot._visible = true;
    on (rollOut) {
    redDot._visible = false;
    to this invisible button, but it dosent work, furthermore it affects the other functions of the button/movie clip, which were working fine before.
    Here is the code attached to this invisible button so far:
    on (release) {
    getURL(/:url1);
    on (rollOver) {
    gotoAndPlay(2);
    on (rollOut) {
    gotoAndPlay("sec");
    I have the URL:s on an external text file.
    So my question is; where do I add the action script to make it visible when moving the mouse over this invisible button? To my understanding, it should go in the same place as the other code that is working, but I'm doing something wrong...
    I tried to do this:
    on (release) {
    getURL(/:url1);
    on (rollOver) {
    gotoAndPlay(2)
            redDot._visible = true;
    on (rollOut) {
    gotoAndPlay("sec")
    redDot._visible = false;
    But it is wrong, I also tried like this:
    on (release) {
    getURL(/:url1);
    on (rollOver) {
    gotoAndPlay(2);
    on (rollOut) {
    gotoAndPlay("sec");
    on (rollOver) {
    redDot._visible = true;
    on (rollOut) {
    redDot._visible = false;
    But it makes the other functions that worked to stop working.
    I also tried to give the invisible button an instance name and do it like this:
    invisible.on (rollOver) {
            redDot._visible = true;
    invisible.on (rollOut) {
    redDot._visible = false;
    And put them in the actions layer of button movie clip but nothing works.
    Flash is really giving me a headache now...
    To conclude, I made a simple test button, put it on the scene somewhere and and attached the rollOver and rollOut codes, targeting the "redDot" and it works fine, the button didn't need a instance name to work. I don't understand why I can't make it to work with the invisible button where it should be.
    I hope this clarifies the point and I can get some help with this and sorry for bothering again with this problem.
    Oh and I use old Flash MX 2004.
    Thanks
    Kim

  • Video bookmark (videomark) using flash/action script?

    Video bookmark is called videomark.
    Anybody did videomark using flash?.
    Is there any good place, i can learn more about videomark in
    flash?.

    yeah..........
    Can I have a small example on this ... so that it would be very easy for me to understand....
    I am a new bee in flash action scripting......
    Thanks & Regards

  • How use flex sdk 3.5 Action Script-3 code in flash builder 4.5............???

    hiiiiiiiiiiiiiiiiii
    can i use my flax sdk 3.5 action script-3 code into flash builder 4.5 .....if yes so plz give me detail how??..with step....

    Ya i tried by keeping <fx:Declarations> part but still it is throwing error,
    In flex3 we are making a component ex: <mx:canvas> and changeing that component to
    <cairngorm:ServiceLocator xmlns:mx="http://www.adobe.com/2006/mxml"
    xmlns:cairngorm="com.adobe.cairngorm.business.*">
    </cairngorm:ServiceLocator>
    if any one used 4.5 with cairngorm let me know
    thanks

  • Can access c++ library from flash action script by using SWC lib?

    We want to develope a Flash application based on Windows CE 6.0 R3. The application aims to communicate with middleware libraries written in C/C++. Is it possible to create SWC file using the c++ library file so that we can load this as a component in fla project for accessing the library functions from flash action script 3.0? OR Is there any simple way to access c++ library from action script?
    Thanks,
    Saumini

    I don't think Alchemy will help you.  The reason is Alchemy does not give socket capabilities beyond what Flash provides.

  • Draw line in Action Script project in Flash Builder (Gumbo).

    Hi
    I am working on drawing tool application and want to draw line and rectangle in Action Script project in Flash Builder (Gumbo). Please guide and help me with an example.
    Thanks
    Rangrajan.

    This should be helpful http://help.adobe.com/en_US/ActionScript/3.0_ProgrammingAS3/WS5b3ccc516d4fbf351e63e3d118a9 b90204-7dd9.html

  • How do you auto reconnect a live video stream broadcast in flash action script 3?

    how do you auto reconnect a live video stream broadcast in flash action script 3?
    so i don't have to ask people to refresh the page if the connection drops
    i copy pasted the live video stream broadcast files and script from here;
    http://www.adobe.com/devnet/adobe-media-server/articles/beginner_live_fms3.html
    http://www.adobe.com/content/dotcom/en/devnet/adobe-media-
    server/articles/beginner_live_fms3/_jcr_content/articlePrerequistes/multiplefiles
    /node_1278314297096/file.res/beginner_live_fms3.zip
    i don't know what i'm doing

    Why don't you use several layers with appropriate alpha properties, and move these layers according to the mouse events?

  • Help... link URL from XML to Flash Action Script 2

    I am trying to link a different URL to each of my files in XML and use this XML in Flash were I created a carousel. In the carousel, when you click on a picture I would like to insert a specific URL. Each picture will have a different URL (http://------------).
    Here are my codes:
    XML:
    <icons>
    <icon image="icon1.png" tooltip="Planning" />
    <icon image="icon2.png" tooltip="Investments" />
    <icon image="icon3.png" tooltip="Education" />
    <icon image="icon4.png" tooltip="Insurances" />
    <icon image="icon5.png" tooltip="Mortgages" />
    <icon image="icon6.png" tooltip="Retirement" />
    <icon image="icon7.png" tooltip="Business Owner" />
    <icon image="icon8.png" tooltip="Banking" />
    </icons>
    Flash Action Script 2:
    import mx.utils.Delegate;
    var numOfItems:Number;
    var radiusX:Number = 250;
    var radiusY:Number = 75;
    var centerX:Number = Stage.width/2;
    var centerY:Number = Stage.height/2;
    var speed:Number = 0.01;
    var perspective:Number = 60;
    var home:MovieClip = this;
    var tooltip:MovieClip = this.attachMovie("tooltip","tooltip",10000);
    tooltip._alpha = 0;
    var xml:XML = new XML();
    xml.ignoreWhite = true;
    xml.onLoad = function()
    var nodes = this.firstChild.childNodes;
    numOfItems = nodes.length;
    for(var i=0;i<numOfItems;i++)
      var t = home.attachMovie("item","item"+i,i+1);
      t.angle = i * ((Math.PI*2)/numOfItems);
      t.onEnterFrame = mover;
      t.toolText = nodes[i].attributes.tooltip;
      t.icon.inner.loadMovie(nodes[i].attributes.image);
      t.ref.inner.loadMovie(nodes[i].attributes.image);
      t.icon.onRollOver = over;
      t.icon.onRollOut = out;
      t.icon.onRelease = released;
    function over()
    home.tooltip.tipText.text = this._parent.toolText;
    home.tooltip._x = this._parent._x;
    home.tooltip._y = this._parent._y - this._parent._height/2;
    home.tooltip.onEnterFrame = Delegate.create(this,moveTip);
    home.tooltip._alpha = 100;
    function out()
    delete home.tooltip.onEnterFrame;
    home.tooltip._alpha = 0;
    function released()
    function moveTip()
    home.tooltip._x = this._parent._x;
    home.tooltip._y = this._parent._y - this._parent._height/2;
    xml.load("icons.xml");
    function mover ()
    this._x = Math.cos(this.angle) * radiusX + centerX;
    this._y = Math.sin(this.angle) * radiusY + centerY;
    var s = (this._y - perspective) / (centerY+radiusY-perspective);
    this._xscale = this._yscale = s * 100
    this.angle += this._parent.speed;
    this.swapDepths(Math.round(this._xscale) + 100);
    this.onMouseMove = function()
    speed = (this._xmouse-centerX)/10000;
    Thanks so much for the help.

    You should be able to add that data into your xml tags and then extract it in the AS2 onLoad function...
    XML:
    <icons>
    <icon image="icon1.png" tooltip="Planning" linkURL="http://www.someURL.com/somePage.html" />
    AS2:
    xml.onLoad = function()
    etc....
    t.onEnterFrame = mover;
    t.toolText = nodes[i].attributes.tooltip;
    t.urlLink = nodes[i].attributes.linkURL;
    etc...

  • Action Script Help (Flash 8 ONLY)

    My department currently has a host of training videos we use
    for online courses. Of course, these are all being delivered as
    FLVs. Through the Developer's communities, I found a script that
    allowed me to add a caption file to the video (XML).
    Now I'd like to take it to another level. I'd like to be able
    to have my one SWF player play a series of FLVs AND include the
    caption file. I began to look at using an Array, but have not been
    successful in making it work. I'm not too sure, but I think the way
    I coded it started to affect the video - started getting "stuck" at
    times. Another attempt caused the caption file from the previous to
    be seen in the current video.
    I have attached my script and would appreciate any
    assistance.
    Finally, I need to stick to a Flash 8 and Action Script 2.0
    solution. I realize that Flash 9 and Action Script 3.0 would be
    helpful, but our district PCs are all imaged with a Flash 8 player.
    Sorry.
    Thank you for your help.
    Frank Erazo ([email protected])

    Whatever approach you take will depend heavily on the document(s) you have for the bible element of the design.  You somehow need to be able to seek within it and determine where matched elements can be found and how to extract the information you intend to present.
    I don't think your issue currently lies with how to do this in Flash as much as first coming up with a gameplan that identifies the players and how you can interact with and within them.

Maybe you are looking for

  • Cant send email from new iphone

    Hey I hope the following will make sense.? I got an new phone and have "added" my hotmail account to the mail. It accepts my email address and password. I can receive emails however I am unable to send emails. When I attempted to send an email a mess

  • Import cd music not working

    I have been importing my cds tonight and then after about 5 cds it will not accept anymore.  every disc I place in, it will kick out in about a minute.  Then I tried a blu ray, yep, kicked it out, then I tried a dvd, and kicked it out.  any suggestio

  • Best practice: SelectOneChoice containing 'ALL'

    Hi, I'm having a selectOneChoice component, containing several departments. The component also contains a selectItem 'ALL'. Between the departments VO and the emp VO a view link has been defined, so after selecting a departments, the underlying emplo

  • Crystal Reports 11.5 in Windows 2008 R2-64 bit Server

    We have a few applications, which use the crystal reports 11.5. I have given the details of assembly reference given to application. Referenced assembly                                      Version CrystalDecisions.CrystalReports.Engine          11.5

  • Can anyone help? I downloaded photoshop elements trial and got a error message to download support advisor

    Can anyone help? I downloaded photoshop elements trial and got a error message to download support advisor