Target the main.swf and frame30 of charge

Hello everyone,

I recently built a new Web site and uses two different swf files. The main.swf in the main SWF is aligned on the toprightcorner of the Web page, and the other buttons.swf swf is at the bottom of the Web page. What I need now is the buttons.swf whenever a button is hit, the main.swf should play a particular frame. So when I press the button 1, frame 30 of main.swf should start playing.

Is this possible? Or is it possible instead of using buttons.swf, I just add different gif images and somehow have these images identify the framework within the main.swf?

I searched for a whole day and I can't seem to find anything. I'm quite new to Flash when it comes to adding features or a script.

I hope someone can help me!

Kind regards
James

James,

> Thanks for the tip!

Sure thing. :)

> I downloaded a sample of the Adobe support site file to which
> shows how to send the text from a swf file to another.

Very well.

> The only different thing is I want a swf file to another to say
> go to section 10.
>
> I did experiences, but to be honest I have no idea what it
> every word means in the code.

Fair enough. It's hard, I admit, when you are just getting started.

> I hope that's not rude, if I ask a sample of work.

Rude not at all. :)

> I do not plan to go further in programming with flash,.
> That's all I need

Heh, you sure about that? You're never going to use the MovieClip class
to load various video clips how to behave? You're never going to use
the Button class to assign functions to button events? ;)

> so, if someone won't find it too much trouble help me with this
> one thing I would really appreciate it.

What file did you download? I'm looking at the LocalConnection class
entry now and it is an example of source code which passes text, as
describe you. The thing is, you can write that
"receiving_mc.methodToExecute ()" function to do what you want. In the
example, that I look at you, it does only one thing:

result_txt. Text = param1 + param2;

... namely, to define a particular text field TextField.text property
(here, result_txt) a combination of two passed parameters.

In your case, you could use the same code, just drop the part the
creates an instance of TextField...

cut this
This.createTextField("hello_txt",0,10,10,100,20) ("result_txt", 1, 10, 10, 100, 22);
result_txt. Border = true;

... and change the methodToExecute() that this is why...

receiving_lc.methodToExecute = {function (param1,:Number)}
gotoAndPlay (param1);
};

... then change the last line of the other code of sovereign wealth funds that it is for this
...

sending_lc. Send ("lc_name", "methodToExecute", 10);

... which means that you are still sending a message on the line "lc_name", so
take the floor; you always call the function of "methodToExecute"; but now.
you want to send only a single parameter, and this time it is 10. Once again, on the
end of reception, the function methodToExecute() (which could be called
No matter what, but in this example, they used a self-descriptive name) is simply
the function call native gotoAndPlay() instead to define a text field
text. And passing this value 10 via the param1 parameter. Does
that clarify a little?

David Stiller
Adobe Community Expert
Dev blog, http://www.quip.net/blog/
"Luck is the residue of good design."

Tags: Adobe Animate

Similar Questions

  • imported from sovereign wealth funds, get the main swf data

    Hello world

    I'm shaking my old AS2 here school mindset. I have a main swf file that loads a bunch of subordinate sovereign wealth funds. I need my SWF to see some variables in the hand. For example (example simplified for conversational purposes), let's say I have a swf loading (we tell littleSwf), who has set his rotation based on a variable (we tell swfRotation) hand. Rotation code is inside the small swf. How does this small swf said / what is its number of rotation?

    How would I do that? I have tried everything I can think and did some research, but apparently not in the right places.

    Any input appreciated.

    Dan P.

    If you load the swf file in another, chances are you use a charger.  Thus, the charger becomes the parent of the loaded swf file.  And the main SWF is the parent of the charger.  So, using the most common mindset AS2, you want to get any variable in the main swf by a the parent.parent targetng... file that in AS3, can be done using... MovieClip (parent.parent).

    A correct way OOP to getting the value of the child rotation is to assign it to the swf main once it has finished loading the child.  To do this, you assign a loader listener to determine when the file has been loaded, and then you have the main file target the child through the Loader.content property.  You could then have a function in the child that the principal calls and passes the rotation value to as argument, or have just the main file perform the operation on the child using the value of rotation if it is appropriate.

  • Control the main timeline and chronology of built-in movie clip

    Good afternoon folks,

    I am trying to solve this problem.  I have a main scenario with an animation. (animation is not a clip).  I also have a clip film embedded in the main timeline. I want to control the actions of the main timeline AND the embedded animation at the same time.

    For example, when a user clicks on a button "pause", I want to stop the animation of the main timeline as well as the integrated clip. I figured out how to stop the main timeline using the stop(); command.  I also understood how to stop the film incorporated using the command _root.embeddedclipinstancename.stop ();  Problem is that I don't know the commands to stop the two things at the same time.

    I tried to find that an instance name for the main timeline, but there is no (I think). I know I could do the animation in the timeline in a clip, but I don't want to go that route.  Any ideas on how to control two things?
    Also, if possible, I would prefer not to use the _root command since I know that this can cause a conflict in Captivate.

    Thank you.

    Include the two commands that worked in your pause button code.  If your [ause button is on the main timeline, you don't need to use a reference of _root.  It is only really useful if you target some of child level object distance back to the main timeline.  You can _parent (and string them if necessary) instead of using _root.  As you will get in trouble unless you're on the _root timeline when using it.

  • What is the file deleted the files in the main folder, and can / should I remove it?

    What is the file deleted the files in the main folder, and can / should I remove it? Is it too much room, I could use?

    This file stores a list of files from previous version of Firefox that are no longer needed or supported in the current version of Firefox. This file is only a few KB and it is best not to delete files in the Firefox program folder to avoid update problems. If the required files are missing or modified with a update Firefox will download the full version (approximately 10 MB) instead of a small incremental update which is usually only a few hundred KB.

  • Exchange of data between the main VI and sub - VI

    It is my first attempt to build a comprehensive program and hope you can help me.

    The idea is to load a set of data and to perform several calculations and operations on them, find themselves in the creation of a report file.

    What I want to do is to build a main VI which contains the data, and several sub - vi to do the math, dynamically loaded in a subgroup of experts (for the simple user interface). I thought about this architecture because I'm sure I'll have to change the calculation of VI, and I don't know how I'm going to need, so I can just add an another calc VI to the plugin dir and load it. The thing is, I have to keep moving data back from the main VI to the Subvi and maybe even between sub - vi. Is there an easy (or not so hard) how? I thought about queues, but sometimes the data is to be sent to more than a subvi, and I can't have a queue for each. The idea that I get is like a network producer-consumer mode BOX: the main VI produce some data and all those interested in this data use. Then they send the results back (as a "producer") and all stakeholders in the response it consumes.

    Attached, is a "skeleton" of what I intend to do.

    There are several ways you can accomplish this. First of all, you can use the Start Asychronous Call, which will provide a component of connector for you. So, it is easy to wire the reference to it. You could also implement a global functional (also known as a motor of action) to access the event reference. It is the approach we use for our shared events. If you have lines between the main VI and ths Subvi you to format a particular message reference. However, I don't think that this approach would correspond to what you are doing.

  • I forgot my password to get on my computer like im the main user and have my password need anything I don't have a reset disk

    I forgot my password to get on my computer like im the main user and have my password need anything I don't have a reset disk please help

    Hello, sxyria

    Unfortunately, we are unable to provide assistance in bypassing the security or the recovery of passwords.

    David
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • What is the relationship between the main timeline and timelines of symbol in Adobe Flash Professional CC?

    I am new to Adobe flash and tried to create an E-card for a class. My teacher said that it is better just to have a keyframe for each layer in the main timeline and do all the clips of animation and film on the deadlines of each symbol. I'm having a hard time to understand how it works. To illustrate my confusion, let's start with an example.  I have a kite I want to start flying to frame 20. The kite is a symbol, so I create movement to 20 image interpolation in chronology of the wing. 20 on the symbol Timeline frame occurs at the same time as frame 20 of the MAIN scenario, or are they completely separate instances of time?

    Part of my mission, is should I use code snippets to add an element of interactivity to the Ecard. My confusion about the timeline affects my ability to do so. My teacher said that you need a stop on the first keyframe code to make sure that things will not start before you click the play button. Can I put the stop action on the main timeline or in the timeline of each symbol, or both?  Let's say I want to create a button that makes the kite flies when I click it. Where to play action 'go to and play', in the Assembly of the wing?

    I would greatly appreciate any help from the community. I'm the kind of person who needs to understand how things work. I searched for days, watch videos and read articles, but I still need to find a resource that effectively dissolved my confusion on this subject. So if anyone knows of any tutorials that explain how the main timeline and symbol timelines coincide, please share them with me. Thank you very much for your time.

    (P.S. are CC Animate Adobe and Adobe Flash Professional CC the same?)

    Thank you both for responding. Yes, your answers were useful, but a bit Advanced. I hope that you don't mind me asking a few follow-up questions.

    For Pete47-

    So I put my stop() in the main timeline. How the actionscript in the main timeline code works on the chronology of the wing if the two are separate?  Why not put the ActionScript on chronology of the wing? Clearly, there must be an interaction between the main timeline and symbols, right?  When you say "you can drag the symbol on the main timeline and it will run when you start", what do you mean by that? Like GETTING started, in the main timeline or in the scenario of the symbol? As you can see I am very confused by there!

    For Colin.

    I thought that Pete said you want to only have a keyframe in the main timeline. Then, when you said... "you can do it with an interpolation of the main timeline... from the beginning to the final position," why would you animate the motion on the main timeline? Why not in the chronology of the wing, can create another symbol of the tail in this period?

    And if the schedules of chronology and main symbol are separated, how SYNCHRONIZE you together different symbols to their movement to work together? And why should it be like that anyway?

    I am new to the community here, the last thing I want to say because you two sounds very knowledgeable on the Flash. How did you get your start? Did you start by watching the tutorials, read the manual, or something else?

    Once more, you have my abundant thanks for taking the time to help.

  • messages between the main thread and the FX application thread

    I run a thread of the Application of FX for a main thread using Application.launch [described here: {: identifier of the thread = 2530636}]

    I try to have the application thread return information on the main thread, but Application.launch returns void. Is there an easy way to communicate between the main thread and the thread of the Application?

    So far, I googled and found:
    -MOM (Message Oriented Middleware)
    -Sockets

    Thoughts/ideas/examples are appreciated--especially examples ;)--now I try to use Sockets to show/hide the application and data transmission.

    What is the preferred method? Are there others that I did not find (gasp) via Google?

    Dave.

    Published by: cr0ck3t on April 30, 2013 21:04

    Published by: cr0ck3t on April 30, 2013 21:05

    Is there an easy way to get a reference to these objects to both the main thread and the thread of Application FX - called via Application.launch () since the main thread? Or what I need to use Sockets or MOM?

    Not much to do with the concurrent programming is what I would call easy. It looks easy - but it's not.
    You can do kind of what you're describing using Java concurrency constructs without using sockets or a package of Message Oriented Middleware (MOM).
    With the Java concurrency stuff you really implement your own form or MOM light.
    If you have quite an application is complex with many messages of comes and goes, then a sort of package for MOM such as the camel and ActiveMQ (http://camel.apache.org) is useful.
    ---------
    You can find a sample of the various interactions of thread with JavaFX here:
    https://gist.github.com/jewelsea/5500981 "Simulation of dwarf dragons using multiple threads to eat."
    Related code is just demo-ware to try different competitive access facilities and not necessarily a recommended strategy.
    If your curiosity, you can take a look and try to work out what it is, what it does and how it does.
    The main reason followed is that of a blocking queue:
    http://docs.Oracle.com/javase/6/docs/API/Java/util/concurrent/BlockingQueue.html
    ---------
    Note that once you call launch of the main thread, no subsequent statement in the main method will be different until the JavaFX application terminates. If you can't start from the main thread and communicate with the main thread JavaFX application. Instead, you need to spawn another thread (or a set of threads) for communication with the JavaFX application.
    ---------
    But really, in most cases, the best solution with the simultaneity is not care at all (or at least as little as possible). Write everything in JavaFX, use the animation of JavaFX framework to time related things and the simultaneity of JavaFX utilities for when you really need multiple interaction of wire.
    http://docs.Oracle.com/JavaFX/2/threads/jfxpub-threads.htm
    ----------
    For additional assistance, you may be better off describing exactly (i.e. really specific) what you're trying to make in a new question, perhaps with a solution of the sample in a http://sscce.org NBS

  • Cannot target the main stage of dynamically loaded swf...

    A part of the Flash application. I'm working on right now is the following-

    Main stage load an external swf using the following function:

    function loadAsset(evt:String):void{
     var assetName:String = evt;
     if (assetName != null){
      var assetLdr:Loader = new Loader();  
      var assetURL:String = assetName;  
      var assetURLReq:URLRequest = new URLRequest(assetURL);  
      assetLdr.load(assetURLReq);  
      assetLdr.contentLoaderInfo.addEventListener( Event.INIT , loaded)  
      assetLdr.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS, displayAssetLoaderProgress);   
      function loaded(event:Event):void {  
       var targetLoader:Loader = Loader(event.target.loader);  
       assetWindow.addChild(targetLoader);
      }
     }
    }
    

    The external swf file loaded, load another external swf to itself using the following function:

    function loadQuiz(evt:String):void{    
     var quizName:String = evt; 
     if (quizName != null){ 
      var quizLdr:Loader = new Loader(); 
      var quizURL:String = quizName; 
      var quizURLReq:URLRequest = new URLRequest(quizURL); 
      quizLdr.load(quizURLReq); 
      quizLdr.contentLoaderInfo.addEventListener( Event.INIT , loaded)        
      quizLdr.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS, displayQuizLoaderProgress);  
      function loaded(event:Event):void { 
       var targetLoader:Loader = Loader(event.target.loader); 
       quizWindow.assetLoader.addChild(targetLoader);      
      }
     }
    }


    Everything loads fine, but at the level of quizWindow.assetLoader.addChild (targetLoader), I want to send a message/fill in an area of dynamic text on the main stage. I've been 'parenting' my brain and I'm not sure of how to communicate with that level.

    can anyone show me the correct path or the method based on the above, or have a suggestion?


    See you soon,.
    ~ Chipleh

    You make me feel nostalgic...

  • Equium L10: Problem with the main battery and battery RTC

    Hello

    I have the Toshiba Equium L10 and it is about 14 months old and I have problems with the battery and how much time it takes after a full charge. I also have problems with the RTC battery and an ERROR 0271: check date and time settings message when I turn on the laptop.

    Regarding the battery, I can fully charge it upward in about 3 hours, but when I start to use it, apparently in the last few hours around one and a half or so and then it needs to be recharged. I can have down for about 40 minutes and then turn it off and come back later or in a day or two. How long should I expect from a fully charged battery?

    About the batttery RTC, it really becomes a pain and I only started to get the message of the ERROR 0271 start-up, in recent weeks. I can charge the battery pack and then leave for a few days, but when I turn it on, I get the message ERROR 0271 on the date and time incorrect. Surely after a full charge, the RTC battery should last longer than a few days?

    The manual says that if the RTC battery is exhausted or becomes weak, you must charge the battery of the CCF for 24 hours, in a different part of this manual indicates between 24 and 48 hours, but how can load you for long when the sections concerning the charging battery pack status after charging the battery you unplug the power adapter because leaving connected will shorten the life expectancy of the Battery Pack. So, how we can charge the battery of the CCF for 24 to 48 hours if we shouldn't leave the AC adapter plugged in once the battery is charged - which is nearly three hours. Suggestions about these problems would be appreciated.

    Besides we all know that it is easy to change the CMOS/RTC battery in your desktop base unit, but is it easy to change in a Toshiba Equium L10?

    Concerning

    Brave0

    Hi Brave0,

    The normal recommendation for the CMOS (RTC) battery is to leave the laptop connected to the power supply at least 12 hours when the main battery is fully charged. The charging circuit is going to hijack the current to the load automatically RTC battery and no current will be forwarded to your main battery.

    Recommendation do not leave the power adapter is plugged in the main battery is fully charged is really only applicable to older laptops that used no batteries Li - ion and therefore they had to be completely discharged before recharging to avoid any effect 'memory' of the battery.

    With modern Li-ion batteries, it is quite safe to leave the battery when fully charged and still power the laptop from the AC adapter. The charging circuit will pass all the battery charge if it is fully charged.

    Kind regards

  • System fails to recognize the power supply and will not charge the battery

    Had motherboard replaced but, before that, I had tried a secondary power to check if my principal could be faulty.  Card mother equipped now and all working fine except that I can't get the sytem to recognize my main diet.  Battery won't charge and the system stops if I remove the power supply.  This is on a DELL XPS M1530 laptop.

    Thanks for all the ideas.

    Hello

    Motherboard might not be properly installed or has problems - easy to miss a rider or
    any other connection as well.

    Old battery? Unplug the power to the computer - remove the battery and clean the contacts with a pencil
    eraser (do not use this, if your battery is fine slots - just clean up the edges of the knife which fit in)
    them and be careful). Batteries are old, or it could be a problem with the computer.
    Check with the support of the machine system, and many of them have on line forums.

    New Lithium-Ion type battery usually last longer if you do not unload then less than 30%
    However on a laptop that not extend their life a lot. Best is to use the a/c adapter
    When this is possible.

    I use the free version of BatteryBar to monitor my battery. Click on the green button on the
    Yellow box on the right side of the page to download the latest stable version.

    BatteryBar - free version available
    http://osirisdevelopment.com/BatteryBar/index.html

    Problems with the lives of its use and the battery of power - Mr Fixit
    http://support.Microsoft.com/GP/windows_battery_power_settings

    You can also check with the manufacturer of system and forums that many use their own
    proprietary software to monitor the battery and they could be known problems with your battery.

    ============================================================

    Try this - to make a Restore Point

    How to create a Vista System Restore Point
    http://www.Vistax64.com/tutorials/76332-system-restore-point-create.html

    How to make a Vista system restore
    http://www.Vistax64.com/tutorials/76905-System-Restore-how.html

    Then Control Panel - Device Manager - Batteries - Double click on each item - tab drivers - update drivers
    (who can not do anything) - then do a right click and UNINSTALL-REBOOT which will refresh the driver
    Stacks.

    Problems with the lives of its use and the battery of power - Mr Fixit
    http://support.Microsoft.com/GP/windows_battery_power_settings

    I hope this helps.
    Rob - bicycle - Mark Twain said it is good.

  • Targeting the main timeline of in a MC

    Hello all, I have this project that basically works like a slide show. I'm doing things common sense and avoid scenes so I am building each slide as a separate and then mc placing them on the main timeline. What I'm trying to do is get the playhead to move forward on the main timeline to the next image once the mc reached its last picture. I found code that works, but it looks pretty ghetto:

    var _root:MovieClip = MovieClip (root)

    stage.addEventListener (Event.ENTER_FRAME, Text2);
    function Text2 (myevent:Event): void {}
    _root.gotoAndStop ("slide2");
    }

    I guess I have two questions:

    1. What is the right way to target a frame on the main timeline of in a mc in as3?

    2. the way I do build does make sense, or is there a better solution?

    Thanks for reading!

    This code is an accident waiting to happen.  An ENTER_FRAME event is raised repeatedly, at the rate of the file.  This does not mean that it looks like... such As... When something enters a ' framework' everything you need instead of this code is to put the following line in the last image of the mc...

    MovieClip (root) .gotoAndStop ("slide2");

    Since you asked on 'clean'... children should not talk back to their parents and tell them what to do.  The good news is that they should be independent and care only for doing what they do. It is the parent to keep an eye on the kids if they are so trend.  The only thing they should do is to know when they are made to the world the fact.  This is done by sending an event.

    If what you're doing are implemented the child to dispatch an event to indicate that they are doing what they are doing (in the last image in your case).

    dispatchEvent (new Event ("imDone"));

    and set up a listener for this child object in the parent of the parent timeline to listen to this event...

    childName.addEventListener ("imDone", eventHandler);

    function eventHandler(event:Event):void {}
    gotoAndStop ("slide2");
    }

  • Marshall plan: how to pass data between the main field and sub-application

    Hello

    I'm trying to load a Flex 3.5 application in Flex 4. In the process, I need to move a strong local typed object from main application to the loaded swf file. And I also have to pass a rope and a bitmap of application sub to the main application. Have an example to show how to pass data in the application domain?

    Thank you

    SW

    Define scaleContent = true, set a breakpoint on SWFLoader.as:doScaleContent and

    see if he thinks there's a swfBridge.

  • How can I move the tabs back above the main window and below the bar "awesome"?

    I would go back to the previous version of Firefox. I want my tabs immediately above the main window, below the URL bar, and I do no like the "Save password" option appearing in the reading area.

    You are welcome. Other users can view this message in the future for any reference, please click RESOLVED.

  • How to make a single instance of the application regardless of the main application and the other entry point for the application

    Hello experts,

    I explain the sceniro of my application. My request is mainly a time system as well as some other features related businesses. My app has a landing screen which is actually a custom made calendar that accumulates information captured time. There is also a time where entry screen user at will has worked time and other related information. The user has the option to run the application manually at the entrance of the time and see the reports and there the event listener to follow the events of call/SMS/e-mail that invokes the application automatically and user to the scree of time entry.

    Problem one: I used headphones to follow the events of call/SMS/e-mail. When an event is called, alternet point of entry of the application the application is running. Application then get calls time, contact information etc. and push my entry screen with pre-filled information time.

    As such, it works very well, as expected, but the problem is the number of instence that he is creating. Each track event creates a new instance of the application. I want to keep only one instance.

    Two problems: to solve this problem, I removed the other point of entry and RuntimeStore to keep the running instance of my application. This instance of the application in a way keeps in singletone as such when the listener calls the application it finds that the application is running in the background. Then she moves the application to the foreground. It works very well, I mean the application user interface called on the foreground, but he won't have to time entry screen automatically as I hope. The block of code is as follows,

    public static final long applicationID =0x8ddc44508679bd5bL;
    static NSIApplication NSIInstance=null;
    RuntimeStore runtimeStore = RuntimeStore.getRuntimeStore();
    
    if (NSIInstance != null)
                {
                    NSIInstance.requestForeground();
                }
                else
                {
                    synchronized (runtimeStore)
                    {
                        NSIInstance = (NSIApplication)runtimeStore.get(applicationID);
                                            //listener initialization
                        NSIListener.Initialze();
                    }
    
                    if (NSIInstance != null)
                    {                   NSIInstance.requestForeground();
                                        //event's info manipulation and push the time entry screen                                     NSIInstance.RUN_NSIApplication();
                    }
                    else
                    {
                        NSIInstance=NSIApplication.getInstance();
                        NSIInstance.RUN_NSIApplication();
    
                        synchronized(runtimeStore)
                        {
                            runtimeStore.put(applicationID, NSIInstance);
                        }
    
                        NSIInstance.enterEventDispatcher();
                    }
                }
    

    I expect a guideline to follow so that I can reach the expected my workflow. Thanks in advance

    I can't propose to use the runtimestore to store instances of the application, as it was used on an example RIM, he has never worked for me.

    I suggest to use a single point of entry and the automated screen using a global event or status in the runtimestore.

Maybe you are looking for

  • Install Windows 7 on the Satellite M100

    I have the Satellite M100-JG2 (PSMA0C-JG200E). I would like to install Windows 7. The Toshiba does not list the compatible M100. The Microsoft Windows 7 Upgrade Advisor points on certain issues, but I don't know how it's easy to overcome them. I read

  • message "memory device".

    I looked but did not really find a good answer.  I get this message on my iPhone I 31.1 GB available on my iCloud account and the phone 4.1 GB available?

  • Cannot use Sykpe as expected

    I installed Skype on my Y510 and my test recording is not my voice. I was under the impression ther the Y510 had a built-in microphone. Is it not the case? DID have a microphone, how can I disable the mute? Thank you!

  • What is the best way to remove copies of files, such as images duplicate?

    I can't afford expensive programs, what is the easiest and program I hope free to use, clear files copied to my hard drive.

  • MultiPoint touchscreens with?

    What is windows multipoint server 2011 or 2012 compatible with touchscreens? I have seen many people asking this, but I did not find the answer. Anyone know?