ActionScript 3.0 :: Retrieving File Names From Main Timeline Into Classes?

Jul 27, 2010

I have the following code on the main timeline. I have soundLoad_mc assigned to the SoundChgUrl class.soundLoad_mc.mp3URL = "climbing.mp3";soundLoad_mc.swfName = "journey.swf";The code below is from SoundChgUrl. The import to mp3URL works. The one to swfName does not - it throws "1119: Access of possibly undefined property swfName through a reference with static type classes:SoundChgUrl." This doesn't make sense to me.

package classes{ import flash.display.MovieClip;  import flash.net.URLRequest;  import flash.net.navigateToURL;  import flash.events.Event;  import flash.media.Sound;  import

[code].....

View 2 Replies


Similar Posts:


ActionScript 3.0 :: Retrieving Class Values In Main Timeline?

Feb 28, 2012

The code works, I'm jsut unable to read the Class variable "myString" on the main timeline.I thought I could pass the "myString" value from the Class to the Main Timeline?I created a variable in an external Class .as file.See coding below.

//------- Code on main timeline .Fla
var testClass:MyClass = new MyClass(myString);
var myString:String;

[code].....

View 3 Replies

ActionScript 3.0 :: Attaching And Retrieving Data With Instance Names?

May 13, 2009

I'm developing an AS3 module where the user interacts with certain hardware. One part is highlighting the hardware's features when the user hovers certain points on it. There's quite a lot of work to be done here (about 6 modules with about 30 highlights each) so I figured I would make it as changeable as possible.

On the stage I've placed all instances of a movieclip that acts as the pointer for the highlights. This movieclip uses a class that animates it upon mouseover/mouseout (hence only two animation functions are required for them all). At the same time I want to display a unique text for every point, and this is where the trouble comes in.
I figured I could attach data with each instance to the class somehow, and then create a new text field upon accessing the class. This is what I came up with:

Code:
// Features
f1.name = "V�xla mellan anv�ndnings- och vilol�ge.";
f2.name = "Display.";
f3.name = "Visa den elektroniska programguiden.";

[code]....

As you can see I tried using the instance property name to attach the data, it failed though (I didn't get a compile error for this but I couldn't retrieve the data in the class).How would you approach this? Do I have to create a variable for each instance's data, then match them (same number etc.)?

View 4 Replies

Media Server :: Retrieving List Of Live Streams Names With Status Publishing

Apr 28, 2011

i have a website like ustream, where user can register and create  live channels and publish live video using FMLE.
 
Now i want to check wether a particular channel is online or offline. I have stream name for particular channel. My website is coded in PHP. I have tried using getLiveStreamStats function, it works fine where the XML file is not heavy. I mean number of subscribers are less. Then i can just check the Publisher Tag. if it exists that means stream video is live, else not.
 
But problem arrives when the number of subscribers are high. The XML file do not loads in PHP, and it takes too much time to load the page.
 
what can be done to just check if the xml file has publisher tag. and display if the stream is live or not

View 12 Replies

Media Server :: Retrieving List Of Live Streams Names With Status Publishing?

Jan 3, 2012

I want to retrieve the list of live stream name.

View 1 Replies

ActionScript 3.0 :: Import Other Classes Into Main Class Or Extend Other Classes To Main Class?

Aug 1, 2011

how to get a Class file up and going in Flash and that works fine but say I want to import other classes. I try "import testCass" above in my import statements section of my as file and that doesn't work. What do I have to do to get that to work?

View 6 Replies

ActionScript 3.0 :: Control Main Timeline With Class File?

Jan 13, 2009

I have a menu btn that is created via an external class. I want to move the main timeline of my flash file to a frame label but I'm having a hard time referencing the main timeline via my external class code.

How do I control the timeline via this external class.

View 3 Replies

ActionScript 3.0 :: Mp3 File In Main Timeline - Change Its Volume?

Nov 23, 2010

I Have  one Mp3 file in main timeline. how to change volume

View 1 Replies

ActionScript 3.0 :: How To Preload External SWF File Into Main Timeline

Mar 19, 2009

In trying to keep file size down for download time... I have a SWF file that I have placed using the "UILoader" component (not sure if this is the correct thing to do)... what I would like to work out is how to make a preloader within my main timeline for this SWF file when it comes in. I hope that makes sense - I am very new to all this and struggling with terminology etc. I figured Actionscript would be what I need - but no clue right now...

View 10 Replies

ActionScript 3.0 :: Referencing A Variable On The Main Timeline From A .as File

Sep 2, 2010

I am having problems referencing a variable on the main timeline in a .as file using root.variable.

[Code]....

View 6 Replies

ActionScript 3.0 :: Call Function In Main Timeline From Class File?

Jun 3, 2009

How can a function in main timeline be called from class file?

View 4 Replies

Actionscript 3 :: Call A Function In The Main Timeline From A Class In A .as File

Feb 15, 2012

I have some functions defined at the main timeline, and I need to call them from a class, how can I do this?

I've tried object(parent).function();

and object(root).function();

but didn't worked

those functions need to be on the main timeline because they removeChild() of the class

View 2 Replies

ActionScript 2.0 :: Linking External Sfw File In Main Timeline Lebel?

Dec 28, 2005

I am using flashmx 2004. I am creating a presentation where the main (suppose "main.swf" )movie has seven "lebels" on the timeline. I am require to link to external swf files for each lebel which I can do by using the button script :

on (release) {
loadMovieNum("externalmovie1.swf", 0);
}

[code]........

View 1 Replies

ActionScript 3.0 :: Tell The Playhead To GotoAndStop(); On Frame 2 Of The Main Timeline From A Class File?

Jan 21, 2010

How do i tell the playhead to gotoAndStop(); on frame 2 of the main timeline from a class file?....I'm trying to oop this program.

View 2 Replies

ActionScript 3.0 :: Flash Return Values From External File To Main Timeline?

Jan 11, 2011

I have just started using external AS3 files to try wean myself off using code in the main time line.I am importing an XML file using an external as3 file, but cant return the values to the main timelineIt worked when I used the trace option, but I need these values to dynamicly populate a movieclip on stage (another problem I cant add movie clip to stage even though I have the linkage etc)AS3 Code ----------------------------------

package com.teamSelection
{
import flash.display.DisplayObjectContainer;

[code].....

View 4 Replies

ActionScript 3.0 :: End Of External Audio File Triggers Movement On Main Timeline?

Aug 12, 2011

I have a few external audio clips in MP3 format that I bring in to my SWF by creating different Sound Channels for them. However what I would like to do it when the end of the MP3 file is reached, it will dispatch an event to make the playhead on the main timeline move to a certain frame.

View 2 Replies

ActionScript 3.0 :: Retrieving Loaded XML Data From Main Document Class

Feb 28, 2011

I need to access successfully loaded XML data from the main document class BUT from objects multiple levels deep. I could hack around this setting properties deep down from the top but it doesn't seem like good practice. Is there a better way?

View 4 Replies

ActionScript 3.0 :: Instancing Classes With String Names?

Feb 17, 2012

There's a part of as3 that i've not quite learned yet. maybe it's not good practice to do, but i'm trying to instance classes without having to specifically write their names in the code.In essence, i want to have a string containing the name of a class (in this case, "Pistol") and i want to be able to use that variable, to create an instance of that class. Presumably using new. I'm not exactly how to go about resolving a string into a classname though.

View 2 Replies

ActionScript 3.0 :: Execute Functions In Main Document Class When Main Timeline Reaches Frame X

Oct 16, 2009

I have 3 functions in my main document class that I want to execute when the main timeline reaches a particular frame number. how do I do that?

see the code and comments

public function mainClass()
{
//stage declaraction
stage.align = StageAlign.TOP_LEFT;

[Code]....

View 5 Replies

IDE :: Timeline Inside These Movie Clips And The Timeline On The Main Scene Have To Correspond To Work

Jun 10, 2009

why the timeline inside these movie clips and the timeline on the main scene have to correspond to work. [URL]

View 1 Replies

ActionScript 3.0 :: Loading Main Timeline Variable From Movie Clip Timeline?

Feb 2, 2010

I cannot seem to find anything of what I need from google.(Well, I can find the reverse method to what i need ) Basically I wish to access a variable declared in the Root Timeline from my Movie clips timeline.

[Code]...

View 2 Replies

ActionScript 2.0 :: [Flash8] Assign A Variable To The Current Frame Of The Main Timeline (not Movieclip Timeline)?

Mar 16, 2007

I simply want to assign a variable to the current frame of the main timeline (not movieclip timeline) I already know about _currentframe and it doesn't help in this case.

View 4 Replies

Professional :: Moving To A Frame In Movieclip Timeline From The Main Timeline

Apr 26, 2011

I am in the learning process. Working with FlashCS5 and AS3. if the issue appears to be too simple for you. Placed a movieclip(mcassessJohn) on the main timeline and moved to the frame labelled "johnFeedback" in the movieclip timeline using the following actionscript code.

[Code]...

View 1 Replies

ActionScript 3.0 :: Movie Clip Timeline To Main Timeline Coding?

Oct 9, 2009

I have a file comprised of 1 scene and two movie clips. The clips are instanced into the Main Timeline and occupy Frames 1 and 2 respectively.MovieClip1 is an animation that has navigation buttons that appear at the end of the clip. I'm trying to get mouse click navigation to make Frame 2 on the Main Timeline active.

Here is what I'm trying but it is not working:

btExplore.addEventListener(MouseEvent.CLICK, ExploreClick);
function ExploreClick (evt:MouseEvent):void {
gotoAndStop(2);
}

this takes the animation to Frame 2 of the Movie Clip Timeline not Frame 2 the Main Timeline.

View 9 Replies

IDE :: Calculate How Long A Symbols Timeline Should Be So It Maches The Main Timeline?

Jul 4, 2009

I'm having some problem with the workflow of flash.I make web banners everyday att my work att it is important to me to have the banners easy structured so I can copy effects, tweens and symbols to a new banner. I have Flash CS3 pro.I always start by making a symbols. And then in the symbols own timeline I make the animation or effect.

The big problem I'm having is when I have the main (scene1) timeline with many frames, and then have symbols on that timeline, with it's own timeline with some frames. The frames in the symbol timeline is okey, but at the main timeline the frames is too short or too long so the animation of the symbol cuts of early or it plays more than one time (too many frames).

How do I calculate how long a symbols timeline should be so It maches the main timeline?What happens to me is that I always have to adjust the symbols timeline and the main timeline, and this I have to do many times.

View 2 Replies

Actionscript 3 :: Copy The Script From A ".as" File Into The Main Timeline Of Flash?

Apr 7, 2011

i have a program made in flash who runs well, the actions on the .fla file are empty, it has a class who makes all the the work:his is the content of the class:

package {
import flash.events.Event;
import org.papervision3d.objects.parsers.DAE;

[code]......

View 2 Replies

ActionScript 3.0 :: Call A Function On Main Timeline From A Different Timeline

Jul 14, 2009

so here's the function on main stage:

[Code]....

and here's the code that wants to call this function in a another movie clip. I've attached this clip dynamicaly to the main stage as well.

[Code].....

How can i acess slideImage function on the main stage. in AS2 _root.slideImage(btnNumber); would work. How Would I do this in AS3?

View 7 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

ActionScript 3.0 :: Use Timeline Of A Nested Mc To Affect The Main Timeline?

Mar 13, 2011

I have a magic cloud effect. On frame 30 of the nested effect I would like an mc on the main timeline to become visible.Not too sure how to code with frame numbers,a) Do I put AS on the timeline of the nested clip ORb) Write code on the main timeline to listen for when the nested mc gets to frame 30

View 5 Replies

ActionScript 2.0 :: Send A Value From The Main-timeline To A Moviclips Timeline

Apr 5, 2005

I have a movieclip on the scene. I also have a button on the scene and when I press the button I want to send a variable-value to the movieclip. I have a variable set in the actual frame on the main-timeline but the movieclip doesn't catch that, when traced I get undefined. Can I send a value from the main-timeline to a moviclips timeline?

View 3 Replies







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