ActionScript 2.0 :: LoadMovie From Internal Data?

Oct 29, 2006

well my title may be kind of cryptic but... heres what i mean.i've got a main.swf file which loads in a spaceData.swf file intosystemData movieclip ActionScript Code: systemData.loadMovie("data/spaceData.swf"); now there is a movieclip in the 'spaceData.swf' which was loaded into 'systemData' i want to load onto 'myMc'..the mc in spaceData.swf i want to load onto myMc is called 'ss'.how would i accomplish that?i want 'spaceData.swf' to contain all my data and external mc's (atleast most of them) so it can easily be loaded into the main movie.

View 1 Replies


Similar Posts:


ActionScript 2.0 :: Get A Random Internal Movie Clips NOT Calling External Mcs With Loadmovie?

Jun 6, 2006

how to do a random internal movie clips NOT calling external mcs with loadmovie?Let's say I have two internal mc's with instance name : my_mc1, my_mc2 and I want them to load randomly in starting in frame 2 here what I did so far:

var tab_mc = [this.my_mc1, this.my_mc2];
function randomMC(tab_mc) {
var i=tab_mc.length;
var r = (Math.floor(Math.random()*i);

[code]....

View 4 Replies

ActionScript 3.0 :: Using Loadmovie - Get The Error Code : 1151: A Conflict Exists With Definition Loader In Namespace Internal?

Jun 26, 2008

i dont know if its me but have things got alot more complicated? i have made 4 .swf's that all work fine individually. i have 4 scenes that each .swf is to load into and play in turn when the main movie loads in.before the loadmovie code was:

stop();
unloadMovieNum(2);
loadMovieNum("fcbp01.swf", 2);

now however i have been advised to use:

var request:URLRequest = new URLRequest("achange.swf");
var loader:Loader = new Loader();
loader.load(request);
addChild(loader);

this does not work and i get the error code: 1151: A conflict exists with definition loader in namespace internal.var loader:Loader = new Loader();.

View 3 Replies

ActionScript 2.0 :: Converting Internal Array Data Into External XML Data?

Nov 9, 2006

I have this code inside my flash to name my navigation menu. Now I want to put this outside flash and load it via XML. How do save my different arrays into a variable for later use in my code?

In my nav fla (what i want to load from XML):

Code:
// MAIN MENU ARRAY
var mm_array:Array = ["MAIN1", "MAIN2", "MAIN3", "MAIN4"];
// SUB MENU ARRAY

[Code]...

View 9 Replies

Flash :: IDE Internal Cache When Loading External Data?

Aug 12, 2010

When retrieving external variables from the server URLVariables my Flash get stuck on first compilation values. Whenever I update server values flash compiles the first old values. Only after i restart CS4 IDE values are updated. Is there an internal cache?

There is nothing wrong with my code, because it works fine on my mac, but not on pc.

View 1 Replies

ActionScript 3.0 :: LoadMovie From Php Data

Jul 20, 2010

I'm not much of a flash programmer, and am a bit lost. What I want to do is the following. I'll have a SWF with two layers, which is being called from a PHP page on my site. The top layer is just an invisible button, and I'd like it to link to a URL that I provide from the PHP page. The bottom layer I would like to load a separate SWF file, whose path I can also provide from the PHP page. I have the URL and the SWF path working just fine in PHP, but I don't know how to pass those values to flash, or how to get loadMovie to work like I want it. Can anyone provide some guidance?

View 7 Replies

Data Integration :: XML LoadMovie - Getting Undefined Error Message?

Jun 1, 2007

I am in the middle of making an xml driven menu. Each button has an image which loads from an external folder and 3 dynamic text fields. The content for the text fields is taken from an external XML file and I would also like the image to be defined in the XML file. The problem I am having is when I use the code attached below .I get the following error message; :

'Error opening URL
'file:///C|/Documents%20and%20Settings/barry.gee/Desktop/undefined'

However when I manually enter the image url as commented out in the attached code the image loads fine.

View 1 Replies

ActionScript 3.0 :: What Is Internal And The Use Of Internal In OOP

Jun 26, 2009

I am unknown about internal in OOP. Is there any body about internal. How we can use this in pratical world

View 1 Replies

ActionScript 3.0 :: How To Use Internal Css

Feb 25, 2010

i found plenty of tutorials and posts on loading and using external stylesheet, but i find it slows down my app for no reason, im only using 2 styles. i was using an internal css in as2 but cant get it working in as3. how to use internal css in as3?

View 5 Replies

ActionScript 2.0 :: Loading An Internal Mc Into An Empty Mc?

Sep 10, 2009

I have a button that each time it's being press, it will load a mc that's located in the library.
The movie clip is text that's located in a mc, that i can fade in the text when the parent mc is called (meaning, text in a mc in a mc).

How can I do this actrion, where each time the button is pressed the mc will load? tried a few things such as loadmovie, attachmovie, but some how it doesn't work for me.

I gave my parent mc an instant and tried with the butoon calling it. didn't work.

View 7 Replies

Unable To Create Internal Links On Xml

Mar 24, 2010

Ive been sitting infront of this screen trying to create an internal link to my contact page from some text i have on my about us page.[url]...

View 1 Replies

ActionScript 3.0 :: Use An Internal Sound Instead Of A UrlReq?

Nov 3, 2009

heres what i have

public var sampleMP3:Sound;
sampleMP3 = new Sound();[url]....

i want to use an internal sound instead of a urlReq.how do i do this? its in the library with export for actionscript selected and has a class name testmp3?

View 1 Replies

ActionScript 3.0 :: Load Photos From Internal XML?

Dec 11, 2010

I have this photo gallery I'm trying to make using internal XML, but I'm having a lot of issues getting it to work.

Here is a snippet of my code:

//var fm_tween:Tween;
var total:Number;
var photos_xml:XML = <thumbnails>

[Code].....

View 28 Replies

Cannot Remove Internal Frames Of File

Jan 5, 2011

I am a high school student who has an assignment to develop a Flash Video.  My goal is to make a really cool Flash Video by downloading a Youtube video of paintballers and then converting their images to a line drawing and then animating the line drawing.  Well the problem is that after I've imported the FLV into Flash CS5 I find it impossible to edit out an internal chunk of the video.  Every time I try to remove a chunk of the video, it ONLY DELETES A SECTION FROM THE END OF THE VIDEO!

Now, it should be a simple process, select the chunk, Edit->Timeline->Remove Frames

It seems so obvious that I don't mean to delete the END of the video, I mean to delete the highlighted section.  What's the point of highlighting a section if you're just going to delete "X" amount of frames on the end?  Shouldn't this feature be called, "Delete frames from end of video"?

View 1 Replies

Java :: Internal Microphone Call?

Jan 18, 2011

How do you call the microphone built into a computer to turn on when a user visits a site? I've heard that there a number of different ways to do so, but I'd like some advice on the best way.

To provide a meta-level view, I'm planning on having the mic pick up noise and display it as a graphic equalizer (of sorts) but not record it.

View 3 Replies

AS3 :: Flash - Preloader Internal Or External?

Feb 13, 2011

I was wondering what the best way to load my flash game would be. I know how to make an external preloader, but if I want to upload the .swf of the game to a site like newgrounds, Im guessing I need an internal preloader.I've tried a few times but my game only displays after the swf is 100% loaded. While its loading I just see white screen with grey "..." which im guessing is built into the flash player.

I have a .fla called AsteroidsGame.fla which has a library of some classes, and the game's structure is coded into a .as file called AsteroidsGame.as. Maybe this is causing issues?

View 2 Replies

ActionScript 3.0 :: Add Internal Link To Xml Text?

Feb 16, 2009

On a current project, my client asked if there is a way to create a link from text which has been imported via XML to another part of the swf. In other words, when the text is clicked, it executes some code.The only way I can think of is to create a url which would reopen the page displaying the swf and pass a parameter which would navigate to the specified section.

View 3 Replies

ActionScript 3.0 :: Converting Internal To External AS?

Jan 26, 2010

I'm trying to change an internal AS to external AS. however i keep getting error about conflict existing in namespace internal. Can anyone help me with this? I have no idea which I'm suppose to put which var public or private.Im not very familar with AS.

[Code]...

View 3 Replies

ActionScript 2.0 :: Import Internal MP3 Sound

Jul 6, 2010

I have the following code:[code]basically what i need to do is play an internal mp3 from the library that has been exported for the first frame and has the same name as in the array.I have tried the attachSound method but it isn;t working, any ideas?

View 5 Replies

ActionScript 2.0 :: Internal High Scores (without PHP/SQL/XML), How To?

Nov 1, 2006

find a piece of code that creates a high score list of say, the 10 best scores for a Flash game, and stores it inside the .fla. (Is this even possible?)All I found was the following file: http:[url]...(source fla http:url...)But when I try to ctrl-enter it from Flash 8, the program hangs and the swf just won't open...

I'm aware of the fact it'd be much handier via PHP and a MySQL database, but I'm making a game for a contest in which it isn't allowed to use any additional files (also no txt files) next to the main game swf .

View 1 Replies

ActionScript 2.0 :: Using CacheAsBitmap W/ Internal Timeline

Jan 4, 2008

CacheAsBitmap stores a raster copy of a movieclip in memory to use. If that movieclip is rotated or scaled, the performance gain is lost as it must re-cache the new movieclip. I assume this also applies to a movieclip that has a constantly repeating internal timeline, even if that movieclip isn't rotating or being scaled. However, do additional frames (that aren't being used) affect this?I have a 'player' movieclip. This movieclip consists of about ten frames, each its own animation. Idle stance, walking, jumping, all the standard stuff. THe movieclip remains stopped on frame 1 (idle stance) for most of the game. Right now the Idle stance is an animation, so to use cacheAsBitmap I need to stop the idle animation. That's fine, but does the additional content in the movieclip interfere with this? If I go from a walking animation back to the idle stance will it re-cache the idle stance for me?

The main reason I ask is that I wasn't able to notice much of a performance difference between either method. Cacheasbitmap on a player sprite with animated idle stance, and Cacheasbitmap on a player sprite with a static idle stance. Both resulted in 39 fps (set to 40) in the flash player. Which is good I suppose, but I don't know how the results will vary for someone with a slow computerThis is an important area of the game because at any given time there could be up to 12 player sprites on the screen (all with filters attached to them). So if one player is moving left/right the other 11 must be re-translated on each frame (since the stage moves too) so if all 11 players are playing their idle animations, with a glow filter, WHILE flash tries to re-cache all of them, that could lead to performance issues (although it hasn't yet for me)I want to give players the option to disable the idle animation, I just hope that it's actually working the way I intend. If cacheasbitmap fails because of any other content inside the movieclip then this would be a useless feature.

View 1 Replies

ActionScript 2.0 :: Modifying Internal Movieclip?

Jan 26, 2008

I load an external swf:nto my movieclip bill using loadMovie.inside bill.swf it has a movieclip called jon, and I load it in

View 10 Replies

IDE :: Controlling Root-level MC With Internal MC?

May 21, 2009

I've reworking a client's site, so I'm somewhat limited on the changes I can make to the overall structure -BUT - here's my quandry: I have a nav system that is on the _root level - the main content of the site exists in one large MC that sits underneath the nav, and moves to different target positions when the nav is clicked (within THIS mc are individual MC's that house the content for each individual page)So the nav doesn't change positions on the timeline at all - once it loads in, it stays constant on one frame, while the main_mc moves positions underneath I need to make the nav change color when that page is activated (when the main_mc moves into certain target positions), and I can't figure out how to communicate w/ it from within these embedded mc's.

View 1 Replies

IDE :: Passing Parameters To Internal Classes?

Nov 18, 2009

is there a simple way to pass a parameter in the "new" statement for a class that has been defined in the IDE? Like so:var newInternalClass:InternalClass = new InternalClass (someVar);So that when the new class is instantiated it has someVar to work with?

View 3 Replies

ActionScript 3.0 :: Flash External AS To Internal?

Feb 14, 2012

im now working for a school assignment of flash game with AS3.0 which allows us to use someowever, i found that many source codes i downloaded are in external classes( XXX.as ),I want to convert it back to inner flash AS.. like:

Main.as package {
import flash.display.MovieClip;
import flash.events.MouseEvent;

[code].....

View 2 Replies

IDE :: Export Animated Gif With Internal MovieClips?

Apr 15, 2012

Im having a problem where i have a project with 1 frame but in that 1 frame is a movie clip that has more frames inside of it but when i export as a gif it only shows the 1 frame. how can i export my project to an animated gif?

and yes i have the publish settings for gif set to animated.

View 4 Replies

ActionScript 3.0 :: Mute/unmuting Internal Sound?

Mar 10, 2009

I need to mute/unmute the volume of an streaming internal

View 1 Replies

ActionScript 3.0 :: Acces A Component From An Internal Layer?

Feb 2, 2010

I have one scene, with a layer, inside I have more layers and inside this another one, I have a as file, with the maih class, and I can't not access a TextField component.

[Code]...

View 1 Replies

ActionScript 3.0 :: Disable Internal Visibility Warning?

May 3, 2010

I'm using mxmlc to compile '.as' scripts.Is there anyway to disable the 'internal visiblity' warning that occurs if you don't stick 'internal ' before all var/function decls?

View 4 Replies

ActionScript 1/2 :: Load Internal SWFs Into Movieclip?

May 25, 2010

Is there another (easier) way to load swf movies from the library into a movieclip other than the attachMovie function??

i originally set my flash up to load external swf files via the loadMovie command, but would now like to package the whole thing up to consist of only one file.

View 5 Replies







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