ActionScript 2.0 :: Targeting - Tell Another MC To Go To A Marker On Its Timeline
Feb 20, 2006
I have a MC with buttons in it. When the button is pressed, I need to tell another MC to go to a marker on its timeline. Do i target the MC name (from the library) or the instance name? would it be something like Code: _root.mc1.mc2.mc3.gotoAndPlay("label");
View 4 Replies
Similar Posts:
Sep 21, 2011
Is it possible to put some sort of a marker along the timeline on a certain frame? I want to select all the frames of all my layers within a certain range so I can paste them in a new document,
View 5 Replies
May 10, 2011
I'm using Google Maps with Flex 3. I'm using custom markers (custom icons) to mark places on the map. It works fine. The problem is that in some cases, I don't need a custom icon, I need the standard marker.
For example, how would I set condition C's icon to the standard marker:
public function iconSetter():void {
if (condition A blah blah){myIcon=star; myPointsBuilder(); return;}
if (condition B blah blah){myIcon=circle; myPointsBuilder(); return;}
[Code].....
I don't know how to revert to the default marker where I wrote "STANDARD MARKER".
View 1 Replies
Dec 30, 2009
I have a main.fla which has 3 movieclips inside it. All 3 mc's have timelines that run 40 frames. The main.fla timeline has each mc instance on a frame. mc_1 is on frame 1 mc_2 is on frame 40 mc_3 is on frame 81 as the main timeline plays the clips each one fades to the other. I need to know how to target this scenerio after mc_3 plays I need to have a goToAndplay (20) set up so the animation inside mc_1 starts playing (frame 20) of mc_1.
View 5 Replies
Dec 30, 2009
I have a main.fla which has 3 movieclips inside it. All 3 mc's have timelines that run 40 frames. The main.fla timeline has each mc instance on a frame.
mc_1 is on frame 1
mc_2 is on frame 40
mc_3 is on frame 81
as the main timeline plays the clips each one fades to the other.
I need to know how to target this scenerio
after mc_3 plays I need to have a goToAndplay (frame) set up so the animation inside mc_1 starts playing (frame 20) of mc_1.
I know how to do off a button
but there is no buttons, the action needs to happen when the playhead reaches the last frame of the main timeline in main.fla
View 2 Replies
May 18, 2009
The site has 6 pages: home, contents, contact, about, showreel, corporate. I have a panoramic photograph as a background across all my pages. When a button,such as contact, is clicked the timeline is enabled and scrolls across the panoramic to the 'contact' area of the photograph.I have a few questions relating to how I can achieve this. 1.) On my actions layer I have this code on frame one: stop(); enter_site_btn.addEventListener(MouseEvent.CLICK, buttonCLicked); function buttonClicked (event:MouseEvent):void { play(); } So when you mouseClick the timeline plays and goes to the next stop point on the timeline which is the contents section. On the contents page are the buttons which lead to the other sections. So far I have this code: stop(); about.btn.addEventListener (MouseEvent.CLICK,buttonCLicked) corporate.btn.addEventListener
(MouseEvent.CLICK,buttonCLicked) showreel.btn.addEventListener (MouseEvent.CLICK,buttonCLicked) contact.btn.addEventListener (MouseEvent.CLICK,buttonCLicked)
Each of the buttons work, but I want the timeline to play and go to the page which corresponds to the button which is clicked, not just to play the timeline until the next stop point. Is there a code which would enable the timeline to play and go to the correct section, and not just roll without a target? 2.) I also want to be able to write a code which enables the timeline to move to any section in the same amount of time. What I mean by this is that if it takes 2 seconds (48 frames) to go from the first section to the second section, I also want it to take 2 seconds to go from the second section to the sixth section (240 frames)
View 40 Replies
Feb 9, 2010
I'm loading an external swf into a project and I want to be able to start and stop the loaded swfs timeline at will.... I'm loading swf into an MC: loadMovie("myFile.swf", swfHolder_mc);
View 1 Replies
Feb 3, 2011
I have this project that will basically work like a slideshow. I am trying to do things the right way and avoid scenes so I am building each slide as a separate mc and then placing them on the main timeline. What I'm trying to do is get the playback head to advance to the next frame on the main timeline once the mc reaches its last frame. I have found code that works but it seems 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 basic questions:
1. What is the proper way to target a frame on the main timeline from within a mc in as3?
View 6 Replies
Jun 30, 2004
i have a problem with tell targeting. basically i have two mc on the main timeline and one(MC1) has a button burried in it. i want that button to tell the other mc (crystal) to play a label "editions" inside it.
my code is:
on (release) {
_root.crystal.gotoAndPlay("editions");
[code]....
View 1 Replies
Jun 30, 2004
i have a problem with tell targeting. basically i have two mc on the main timeline and one(MC1) has a button burried in it. i want that button to tell the other mc (crystal) to play a label "editions" inside it.[code]but it only works when the crystalMC is on the first frame of the root.is there a way of telling the root to move to the position of the first mc and then play a label inside that mc?
View 1 Replies
Dec 31, 2011
Is there any way to control nested MovieClip instances placed on the timeline without naming them through the Properties panel? Are there any unique identifiers I can refer to?
Using instance names (like instance33, instance12, etc.) doesn't help since names are just properties, but how about references like sprite187_27 (as returned by trace(this) inside a MovieClip on the TimeLine)?
(Using ActionScript3, Automatically declare stage instances disabled)
View 1 Replies
Jan 1, 2011
So from the headline u know that i want to do but i don't know how to do it!
ActionScript Code:
/// activate the mc with the button from the main Menu
mathSecondMenu.addEventListener(MouseEvent.CLICK, otvoriVtoroMenu);
[Code]....
the problem is that i can get to the button from the first event, but i can make the Mc "proba" to go to "math_basic"!
View 8 Replies
Nov 18, 2008
I'm working on this project, where i attach movies to an empty movieclip. In these attached movies, i have a button that needs to target a function on the main timeline. Example:
on the main timeline, i have an action that loads a bitmap onto the background: loadBitmapSmoothed("background.jpg",bg_con); On the main timeline, i also have a button with following action:
on(release){
this.mc_holder.attachMovie("MC_products",1);
}
Then, in the attached movieclip i have a button that needs to swap the image previously loaded into the 'bg_con'-movieclip, like thus:
on(release){
_root.loadBitmapSmoothed("product_1.jpg",bg_con);
}
For some reason, this doesn't work. I've also tried using _level0. but nothing happens.
View 5 Replies
May 27, 2005
The swf successfully loads where I want it to, but I'm having trouble moving the new movie clip to a specific keyframe in the timeline.
Code:
on (release) {
_parent.productImage.loadMovie("./flash/BT_Closeup.swf");
_parent.productImage.gotoAndStop("set2");
}
View 1 Replies
Oct 31, 2011
If I have a movieclip on the main timeline, and a button in that movie clip. How would I go about getting it to advance the main timeline to its next frame? I understand that in AS3 movie clips are not connected to the timeline in the same way as they are in AS2 but I dont understand why the following works, or if there is a better way?
stop();
next_btn.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler1);
function mouseDownHandler1(event:MouseEvent) {
MovieClip(this.root).nextFrame();
}
View 2 Replies
May 2, 2011
How to target a label within a movie clip on the main timeline, from a button within another movieclip on the maintimeline.
View 0 Replies
Jan 16, 2006
[URL]
I made a site, but the menu isn't loading properly. If you reload the page the menu loads, but not sure why not loading every time.
Right now menu and site sections in main SWF file. Maybe I put the menu into a separate SWF file it would load properly?
If the site sections are in the main SWF timeline, then how do I do the actionscript for the menu buttons?
Ie)
menu in level7
main site in level0
site sections are "product section", "about us section", "glossary section" on main timeline
So I'm not loading any SWFs, just moving between sections on main timeline.
View 2 Replies
Dec 18, 2009
I am using google map api. Is there any way to put title in marker?
View 1 Replies
Oct 18, 2011
I have created a movie that requires the user to click on two points on an image. I want a visual indication to appear (eg a marker of some sort) to appear on the first and second click. Is this possible?
View 21 Replies
Jan 13, 2011
I'm working with flex 3.5 and I have a problem with a validator. I have a field that dynamically has o has not an asigned validator, the problem is that in a specific moment the field haven't the validator assigned but the textInput had a red border.I dont know what do I have to remove the red marker?Here is an example of my validator: This is the validator:
<mx:CreditCardValidator id="ccV"
cardTypeSource="{cardTypeCbx.selectedItem}"
cardTypeProperty="data"[code].........
And I have a button that been enable or disable because it has a binding with a boolean var isFormValid.The most weird thing is that when remove the validator the button becomes enables but the red border is still in the textInput.
View 1 Replies
May 9, 2011
I am creating a project in Flash using the Google Maps API and docs. I'm trying to add a marker to the map, which is draggable but I don't want it to look like the standard Google Maps bubble-style marker. Is it possible to have a custom polygon or image but still keep the draggability?
View 2 Replies
Jan 1, 2012
I've added a movie clip i've created to the stage and it works fine... the movie clip has 4 frame labels inside it with different content on each label. The main timeline has 4 buttons and I want to be able to click one of these buttons, it will load the movie clip (which it currently does) but goto a specific frame label within the movie clip. The below is a sample of the code from one of the buttons.
[Code]...
View 6 Replies
Sep 16, 2009
I'm interested in understanding the ActionScript 2 code that will allow a random decision on the next marker to jump to. I have five markers on a time line and want the movie to stop after playing a sequence of elements, then randomly choose the next marker to jump to and play, this would continue forever.The goal is to communicate a few concepts without starting from the same concept every time in a linear manner.
View 6 Replies
Nov 7, 2010
I'm desperately trying to solve this one. I have a bunch of files stored outside of the webroot and I need to serve them to a user after a few auth checks. These files have been uploaded using a Flex application or have just been manually uploaded through FTP. I have a serving script that looks something like:
[Code]...
I imagine this could be on the Flash side, but honestly it's dirt simple. I just don't see where the extra data is coming in, and why its corrupting the file. Anyone know why this is happening? or better yet, how I can clean these files up now?
View 1 Replies
Jul 19, 2011
In Google Maps Flash API, When the user clicks, or hovers on a marker, is there a way to dispatch an event containing the ID or lat/lon so this info can be used by the application?
View 1 Replies
Aug 11, 2011
I have another (newbie) question about FLARToolKit.This is Lee Brimelow's code to make 3 boxes on top of the marker.
package {
import flash.display.BitmapData;
import flash.display.Sprite;
import flash.events.Event;
[Code]...
the flaw of this code is, after the marker detected, yes, the 3D object got rendered. but after the marker were not detected, the object still appeared on the screen (even though it did not move)
View 1 Replies
Aug 15, 2011
I've been working with the flex charting component and I want to embed a custom icon for the marker in the legend. I've run into some strange behaviour where if set directly the icon is mirrored and the text is misaligned but if created using the a class factory and the legendMarkerRenderer property the component renders fine. I've included a snippet to illustrate the problem below. Working around this problem may be possible but I'm curious if anyone has an explanation as to what could be going on here. Additional info: Flex SDK 4.5.0.20967, FlashBuilder 4.5This is the output of the below snippet:
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:mx="library://ns.adobe.com/flex/mx" xmlns:s="library://ns.adobe.com/flex/spark">
<fx:Script>
[code]......
View 1 Replies
Jan 12, 2011
how to identify which marker overlay is being clicked.
I've looked up solutions online and the only thing that ever traces back for me is [object Marker] I need a way to identify the marker icon and manipulate the icon.
this is the marker code:
ActionScript Code:
function createMarker(latlng:LatLng, number:Number, tip, myTitle, myContent):Marker {
trace(this);
[Code]....
View 1 Replies
Sep 22, 2011
I'm looking into producing a relatively basic augmented reality web app where a user can print out a pre-made marker, which when held infront of their webcam and viewed through the app will display an object on top which the user can move around and explore. Something very similar to this: [URL] but with a simpler model. I have absolutely no idea where to start and am struggling to find any decent sources online.
View 0 Replies
Sep 12, 2006
I am loading a external swf into a MC "m_loader" but i want to go to a specific marker within the external .swf (Marker "m1q1"), i can load the .SWF fine but how do i go to specific place currently using the following AS.
[Code]...
View 1 Replies