ActionScript 1/2 :: Targeting An FLVplayback Component Within A Nested Movie Element?

Oct 24, 2009

I'm trying to get my own buttons to load FLV movies into the FLVplayback component. I've got it to work in a simple test but making it work on a more complex level. The test is here I've named the FLVplayback instance 'my_video'The simple buttons have this script in the actions:

n (release) {
my_video.load("videonamehere.flv");
my_video.autoPlay=true;

[code].....

View 1 Replies


Similar Posts:


ActionScript 3.0 :: Targeting Nested Movie Clips?

Feb 25, 2010

Here's my example, on frame 1 is an mc I created named holder. Inside there's an mc named box. Inside box are four mcs, circles1-4, inside the circles I have four skulls. If I want to affect only the skulls, what is the proper way to go about it?For instance, whats the proper way to write a trace statement?or , if I wanted the skulls to fade individually on mouse over, how would you properly go about writing this function?
 
function over(evt:MouseEvent):void{
evt.target.alpha = .5;
{

[code]....

View 8 Replies

ActionScript 3.0 :: Looping Flv / Video - Movie - Can't Add FLVplayback Component In CS3

Nov 9, 2007

I have made a short movie which I intend to loop on the web using Flash CS3. I found setting up the FLVplayback component really easy and currently have the .swf playing my external .flv perfectly. Now I need to figure out how to loop the movie - seamlessly if possible. I found this video tutorial, but it appears I can't add actionscript to the FLVplayback component in CS3, and the parameters bit doesn't seem to have a option for it. I heard elsewhere that the best way to seamlessly loop a movie in Flash is to embed the movie. Is this true? If so, how do I go about doing this?

View 10 Replies

ActionScript 2.0 :: Targeting A Nested MC?

Jul 13, 2006

I am creating a drop down menu and having problems adding problems to the nested MCs. I have all the actions on the root timeline and I have a one Main_MC which holds several Sub_MC's.I have the Main MC animated fine but I can't find how to control the Sub-MC's.Here is a sample of my code and I have tried _root. and this. and show below but I can't get it to work.

//main MC
Main_MC.onRollOver = over;
Main_MC.onRollOut = out;[code].....

View 9 Replies

ActionScript 3.0 :: Targeting Nested MovieClip?

Jan 26, 2010

I have a main swf that loads an external swf (WNC.swf). The external swf (WNC.swf) contains a scrollPane that loads another external swf (WNC_DATA.swf). I'm trying to target the WNC_DATA.swf from the main swf, so I can tell it to go to frame (2). The following code targets the first child swf (WNC.swf), however I'm unable to target WNC_DATA.swf inside the scrollPane.

[Code]...

View 5 Replies

ActionScript 3.0 :: Targeting Nested Movieclip On Different Frame?

Oct 13, 2011

I always face this problem when coding with flash, and still not able to get a solution for this problem....
 
if the nested mc is in the 1st frame then I can use: Level1_mc.Level2_mc.Level23_mc.gotoAndStop("2");
 
If refering nested btn I will use: MovieClip(parent).gotoAndStop("2");
 
so my question is, how about refering an mc from main timeline into nested mc but different frame( frame 4,5 or 6....)?

View 6 Replies

ActionScript 3.0 :: Targeting Nested Clip From Class?

Jul 23, 2009

I use the loader class to load in an external swf, a preloader movie in my class. (not a document class)

To target the properties in the swf (specifically the text field in it), I coerce it to a movie clip after it's loaded and add the child with:

var thumbPreloaderMC:MovieClip=evt.target.content as MovieClip;

now I can use:
thumbPreloaderMC.preload_text.text "sometext";

to reach the text field. works.

But, I want to nest that clip in a container movieclip I'm placing all the thumbnails I'm loading in, thumbContainer.

So I create the movieclip thumbContainer, add the child, then add the preloader swf to this clip.

I can't name the loaded swf, it throws an error, I googled that and see I can't name an already named clip.

I get an error "TypeError: Error #1010: A term is undefined and has no properties."

First of all, I'm fairly green with as3 still, I think perhaps I should rethink how I'm structuring this. I could and would ask how to target a nested loaded swf from a class.

is nesting clips like this from a class bad practice? What are best practices when it comes to using timeline based animations like preloaders etc by a class? I'd like to make my class as reusable as possible, but one can't create all animations and graphics from code.

View 1 Replies

ActionScript 3.0 :: Targeting Nested MovieClips Outside Of Scope

Oct 12, 2009

I have a movieclip added to the stage through a function.
ActionScript Code:
function myFunctionOne():void{
var myClipA:clipA = new clipA();
myClipA.name = "myClipA";
addChild(myClipA);
}

To access this item on the stage I have to use:
ActionScript Code:
getChildByName("myClipA");
I have some other movieclips INSIDE this clip that have also been dynamically added. If I want to reference one of those clips I have to reference them by name using getChildByName.
[Code].....
But is there a better way to reference movieclips if they are created inside a function, or is there a way to create them so they are always globally accessible?

View 1 Replies

ActionScript 2.0 :: Drag N Drop Nested .swf's Targeting?

Jul 20, 2010

I created a drag N drop .swf that works great until i pull it into the main movie. The drag works, but not the drop. I know its level's issue/pointing and the targets arent being read correctly by the main..

View 1 Replies

Actionscript 3.0 :: Targeting A Frame In A Nested Movieclip From Another?

Jun 1, 2009

On my main timeline, I have a movieclip called "mainpage". Within "mainpage", I have a button that when clicked upon, needs to go back to the main timeline, into another movieclip, and to a specific frame in that movieclip. The code I've been using for all my other buttons is this:

Code: Select allfunction goAdler (e:MouseEvent):void{
MovieClip(parent.parent).gotoAndStop("adler");
}
adler_proj_btn.addEventListener(MouseEvent.CLICK, goAdler);

In that particular case, the button is going up to the parent movieclip of it's parent to a specific frame label.The problem I'm having is that I need for this button within "mainpage", rapp_proj_btn, to go to the main timeline, go into a movieclip a few frames down called "portfolio_content" (on a frame labelled "Portfolio"), and to a frame labelled "rapp". No matter what I've tried, I can't seem to target the "portfolio_content" movieclip, even though I've put the instance name on it and everything. I can, using the code below, get the rapp_proj_btn to go to "Portfolio", but I can't get inside that "portfolio_content" movieclip that sits on that frame.

This is the code I use to get to the proper frame:

Code: Select allfunction goRapp (e:MouseEvent):void{
MovieClip(root).gotoAndStop("Portfolio");
}
rapp_proj_btn.addEventListener(MouseEvent.CLICK, goRapp);

I tend to get an error describing not being able to get to an undefined property called "portfolio_content", and to be honest, in AS3, I'm not exactly sure how to go about fixing that error. I've tried calling the "portfolio_content" instance name in the code (right before gotoAndStop), but it doesn't recognize the movieclip.

View 12 Replies

ActionScript 2.0 :: Targeting Button Nested In Another MovieClip

Feb 27, 2008

I built a button, but as a movie clip. It's nested with in another movie clip on the main timeline. How do I go about targeting the button?- when I have it on the main timeline, it works fine. But once it's nested. The action script can't find it.

Here is the code I'm using:

btn1.onRollOver = function () {
this.gotoAndPlay("in");
} btn1.onRollOut = function () {
this.gotoAndPlay("out")
}

View 10 Replies

Actionscript 3 :: Control The FLVPlayback Component's Volume Using The Slider Component In Flash?

Mar 20, 2012

I was wondering if there was a way to get the sound from a FLVPlayback component and manipulate it with using a custom volume slider? Within my Actionscript I currently have this code which enables me to control the volume of a MP3:

import fl.events.SliderEvent;
var mysong = new music();
var myChannel:SoundChannel = new SoundChannel();
var myTransform = new SoundTransform();
myChannel = mysong.play(0,10);

[Code]...

But Instead of using the MP3 for sound, is there a way to use an FLV's sound instead?

View 1 Replies

ActionScript 3.0 :: Targeting Dynamically Created Nested Movieclips?

Feb 17, 2010

I'm dynamically creating movieclips with dynamically created movieclips inside them and am having trouble with targeting them.

Below is a simplified example of what I'm trying to achieve, in the real file there are a lot more movieclips and I'm creating and naming them with a for loop.

This one is just one Sprite created inside another sprite. I can target the top level sprite named "testname". However when i try target the nested MC it throws an error.

The bottom couple of traces are just test MCs I've made to make sure i got the syntax right, on targeting nested movieclips.

PHP Code:

var holder:Sprite = new test1(); 
holder.name = "testname"; 
this.addChild(holder); 

[Code]....

View 5 Replies

ActionScript 3.0 :: Access Nested Array Element

Mar 21, 2011

I've got a nested array containing a series of 2 element arrays containing an object name, and text related to that object.I've set it up like this:public var names:Array = [["instance name 1", "text for first object"],["instance name 2", "text for second object"], ...]];What I'm trying to do is to have the text related to the object appear in a text box when the object is moved.This is all set up within a class containing code for the drag and drop functions.If I set the text box to show a specific element, such as:MovieClip(parent).text_box.text= names[2][1];it works fine. But I can't get it to create the value for the first bracket from the this.name attribute.I had it working for 2 arrays - one with the name and another with the text where the code was;MovieClip(parent).text_box.text= texts[names.indexOf(this.name)];  (arrays named 'names' and 'texts', text box named 'text_box')I'm hoping there's something similar that I can do for the nested array, but everything I try gives me the #1010 error - term undefined.Is there an easy way to sort this out - or am I better sticking with the 2 array version?

View 6 Replies

ActionScript 3.0 :: Targeting A Component In A Class?

Sep 1, 2011

I want to load a swf into a byte array before loading it into an swf loader. I'm wondering how I would target a specific swf loader to do this to since I have 3 different ones.

View 1 Replies

ActionScript 3.0 :: Targeting/Styling Items In List Component?

Aug 22, 2008

This question specifically deals with AS3 and list components and styling a selected item, if that's even possible. I've got an XML/Flash Video player that lists the videos with a thumbnail and description in a list component. I got the source files from an Adobe tutorial:[URL]...I'm able to style everything the way I want it. The problem comes when I try to attribute a specific text style to a selected item. I understand how the information is being taken from the XML and looped into the list component. What I don't get is how you reference a particular item in the list and whether or not you can attribute a different style to that item when the event listener fires.

[Code]...

View 3 Replies

How To Loop Flvplayback Component

Aug 17, 2010

I know nothing about flash but this is what I am doind with CS5 Adobe Flash Professional:1. Import video. I type in the server location of my .mp4 file.Now when I save it and embed on a webpage it loads and works perfect, however it is not looping. So my question is in adobe flash professional what do I need to exactly?

View 1 Replies

Add Time To FLVplayback Component?

Feb 9, 2010

Im using the FLVplayback component for a project im doing. I want to add the time elapsed and time left on the controls. I dont really want to create my own controls, as im happy with the flv playback component. The FLVs playing in the component are external and are loaded into it via as3

View 13 Replies

ActionScript 2.0 :: Using The FlvPlayBack Component?

Apr 8, 2011

With autoHide set to true would like to have the skin show when a video is loaded then fade away after a couple of seconds.

View 3 Replies

ActionScript 3.0 :: Targeting A Nested Mc Timeline From A Main Timeline?

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

Can't Get FLVplayback Component To Fullscreen Correctly

Sep 30, 2010

I have tried numerous things but when I insert the FLVplayback Component into flash that is linked to an external video source the fullscreen function will not work but the video plays as needed.

View 15 Replies

ActionScript 3.0 :: Refresh The FLVPlayBack Component?

Dec 21, 2010

I am working on AS3 project using Flash CS3. I have to display some videos using FLVPlayBack component. I am using the same component instance to display videos but when a new video is loaded the max duration property does not updates and hence the onComplete event is never fired. I somehow wanted to refresh the component when a new video is to be played.

View 1 Replies

ActionScript 3.0 :: Addressing A Flvplayback Component?

Jun 11, 2009

I imported the flvplayback component on-stage in one frame and gave the instance a name of hv.If a button takes the movie to another frame, how do I pause the flv at that point

View 1 Replies

ActionScript 3.0 :: How To Unload A FlvPlayback Component

Jun 29, 2009

What are steps to do unload a flv file after clearing necessary memory used for its loading and also to remove the FLVPlayback component.his is the code i have used for creating FLVPlayback component and setting its source.
 
public  var m_flvPlayer:FLVPlayback;
m_flvPlayer= new FLVPlayback();
m_flvPlayer.autoPlay = false;

[code].......

View 12 Replies

ActionScript 1/2 :: How To Recognize FLVPlayback Component

Jul 13, 2009

Publish to Flash 8 and using the FLVPlayback component as part of a larger elearning course.We have a legacy pause button that works by recursively looking through every item on stage and if the item is a movieclip following its children and so on. Something like this (there is more to the whole thing, but this is where the problem is):
 
findCurrent = function (obj){ // RECURSIVE SEARCH FOR MOVIECLIPS for (var i in obj) {  if (typeof (obj[i]) == "movieclip" && obj[i] != obj) {   if (obj[i]._name == "pauser"{
continue;   }   var m = obj[i];   m.frameWas = m._currentFrame;   isCurrent.push(m);   findCurrent(m);  } }};
 
The issue is that when using the FLVPlayback component the 256 recursions limit is reached. I'm guessing that the video part contains a reference to playback controls skin and the playback controls skin contains a reference to the video part and the recursion just goes round and round till it hits the limit and then all actionscript is disabled for the rest of the file.
 
I thought of adding a counter, and that is probabaly a good idea, but I was wondering if there is anyway to identify that I've hit a video player and stop following it?
 
Obviously the topeof(myVideoPlayer) is coming back as "movieclip" or I wouldn't be getting this problem. I don't think there is a getQualifiedName for AS2, right? I looked at the properties and couldn't find one that said, "clearlyVideoPlayer."

View 3 Replies

ActionScript 1/2 :: FLVPlayback Component Volume?

Aug 16, 2009

I'm using the FLVPlayback component to play a movie. In the parameters, I'm setting volume to "8" where the default is "1".This works great and gives me the right volume setting, but if the user touches the volume slider (which I'd like to keep), the new maximum volume is only one.

View 2 Replies

ActionScript 3.0 :: Load FLV Into FLVPlayback Component?

Feb 10, 2010

I have an array of videos coming from an XML doc. I am getting the name of my video in the trace statement okay, but am not sure how to go about loading the FLV video into the player.I have an FLVPlayback component on the interface named "video". The video I'm going to load will be ("videos/" + videoArray[0]))

View 3 Replies

Play Mp3 File Using Flvplayback Component?

Mar 9, 2010

Is there any way that i can load a local mp3 file using flvplayback?

View 2 Replies

Professional :: Trying To Modify FLVPlayback Component

Aug 27, 2010

I try to modify ncmanager file. (I want add parameter when connect method is called). I've edited this file but nothing happens in my application. After two hours of headacke, I delete NCManager (I've made a copy on my USB key).I try to place a FLVPlayback on my scene : no problem ! I can place it, but it does'nt work as I want.So I discover that even I try to change NCManager, this file isn't read.I need help to understand what I must do when I modify these file. Should I have to put it somewhere ? must I compile them and how ?

View 14 Replies

ActionScript 2.0 :: Use Cue Points With FLVplayback Component?

Sep 12, 2009

I need to use cue points in an FLVplayback component to load other movies. I've looked at several tuts, but most are for navigation.

View 7 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved