Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash




Passinf External Ref To Internal System



I need to find out how to pass something thats at the end of a .swf?valuehere to the internal area for usage. trying to load up a mp3 doing that.

care to help? thnx



FlashKit > Flash Help > Flash ActionScript
Posted on: 08-20-2004, 11:25 AM


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

Link To Internal System
If I link to the picture inside CD rather than link to http, what script should I use?

Like this?D:/Interactive/Colouring_Tutorial_by_Risachantag.jpg?

Internal Or External
Ok Tough question here!!! for me at least

I'd like to have a webpage with a window in it that could contain links to lyrics....

First I thought about making a page for each lyric... but I know there's a better solution... I guess it is possible to make the lyrics appear in always the same page even it these are different lyrics...

How do I do that? I guess it has to do with some external load? Is there a tutorial about that?

I'd just like to be able to click a link and it would open lyrics... kind of image gallery but with lyrics....

can anyone help? or rediret me to the right place?

Sorry Im kinda new and sorry for my English... trying hard to improve it

External Or Internal Swf ?
FIRST HAPPEY NEW YEAR 2007 to all KIRUPIANS !
A simple question : do you advise in web site buuilding to use more external swfs or internal swfs ??
That's all.
Thanks

Internal Or External
Ok Tough question here!!! for me at least

I'd like to have a webpage with a window in it that could contain links to lyrics....

First I thought about making a page for each lyric... but I know there's a better solution... I guess it is possible to make the lyrics appear in always the same page even it these are different lyrics...

How do I do that? I guess it has to do with some external load? Is there a tutorial about that?

I'd just like to be able to click a link and it would open lyrics... kind of image gallery but with lyrics....

can anyone help? or rediret me to the right place?

Sorry Im kinda new and sorry for my English... trying hard to improve it

Sound? EXTERNAL Or INTERNAL ?
I made a flashthingy for a friend.

http://www.cheesedetective.com/cheese_detective

(there's not yet a preloader in front so take enormous time to download so just have a look if you have a fast
connection)

It has the -cleoplayer-(soundplayer) insite. It's quit too heavy now. The sound as it is now is inside a sound MC. So it's got to load all sound before working.
So I thought of making use of external sound?
Can somebody give me some surgestion?
Thanks looots!

External Txt And Internal Links HELP PLEASE
Hello flashexperts,

can anyone help me please, i'm in trouble.
I'm using external text files that i load in flash
this txt files begins with an content (certain heads)
the contents of these heads comes later in the txt.

what i want to achieve is when they click on the content heads
it automaticly scrolls to the explanation later in the txt
IS THIS POSSIBLE AND HOW CAN I ACHIEVE THIS

HELP HELP PLEASE PLEASE

thx

Preloading- Internal Or External
ok guys and gals- question du jour-
we have good size flash movie (ok, about 1.5mbs)- the question is what is faster/better/ and what decides best practice....load it internally with stage.loaderInfo or externally with a shell swf that solely controls this method. I was thinking external load with a shell so we don't have to think about all the library items loading into a different frame...but we have some advocates for the other.... any thoughts on this???

Work It Out With External And Internal Swf
If i have an external swf and user click the button there, is there anyways to control the mc inside the main swf?
Like the user click on the button in external swf inside the main swf, the mc on the main will move to somewhere after that.

Any help is appreciate

Movies...External Or Internal?
Im about to start a project where I could have as many as 270 movies to choose from to load into flash.
Can you pull .mpg's into a movieClip in a .swf?
or do you have to import them into flash and work with them from there?
Im using FlashMX2004.

Movies...External Or Internal?
Im about to start a project where I could have as many as 270 movies to choose from to load into flash.
Can you pull .mpg's into a movieClip in a .swf?
or do you have to import them into flash and work with them from there?
Im using FlashMX2004.

Making External SWF Internal
hello. i recently downloaded a XML splash rotator from flash den.

http://flashden.net/item/zoom-slideshow-banner-rotator/13523

i set up the XML files so that its loading the pictures i want and it is working fine when i publish it and check the html.

i than open up my main website in flash, i select what frame i want the swf to load and use the "Load movie" command. i check the published file and the swf loads fine but its WAY to big, stretches off the screen and its all out of proportion????? whats goin on?

the ideal thing would be to have the "rotator" actually be part of my main flash document, i want to be able to control and set it up right in the main file. is there a way to import SWF's or FLA's so that they are a single movie clip?

i also need particular video to start playing once a slide on the rotator is clicked. i can set this up in the XML file but all you can do is redirect it to an HTML file. i need it to control the timeline in the main SWF file.

here is my website without any of the "rotator" stuff. it would go under the "video" section

www.wafflecone.ca

Animate External Mc In Internal Mc
Hi All,

how is everyone?
So, I have this sort of main movie clip in which I load an external swf, that being the navigation. Is it possbile to animate the external mc from withing? or if not, is it possible to control the external mx from within?
(By this i would animate the external they way I want it and then, control the animation from the original mc)

Thanks a lot in advance,
m.

F8 - Internal Vs. External Pages?
hey, I'm just trying to figure out, whats best.. internal or external swfs...

I use a lot of graphics png's... I want to have intro and outro animation on my page transitions.. I can get this to work nicely IF there is no preloader on the external swf's. I've had success on a site using all internal pages... only it started to get SLOW!!!

any advice would be great! thanks..

Also, if you have any tips on getting buttons to load an external swf into a container, with a preloader either on each swf, or prob. even better a preloader MC loading the swf...

Animate External Mc In Internal Mc
Hi All,

how is everyone?
So, I have this sort of main movie clip in which I load an external swf, that being the navigation. Is it possbile to animate the external mc from withing? or if not, is it possible to control the external mx from within?
(By this i would animate the external they way I want it and then, control the animation from the original mc)

Thanks a lot in advance,
m.

[Poll] Internal Or External AS?
Hey Guys

Just wondering what your thoughts were on whether or when to use Internal or External AS.

I Know its better to have resuable functions as External but what about everything else?

What is your opinion or preference?

Streamer

Using External Swf Or Using Internal MCs For Insite Preloaders
Hi,
I'm designing a site wiht five sections in it, and I'd like each section to have it's own preloader as the user clicks on the menu item. If I'm doing this loading five external swf files for each section then it isn't a problem.

If I want to do this with all the MCs being internal how would I go about this, as I don't want the use to have t wait for the whole site to load when it launches.

External Link To Internal Object?
Hi,
I have made a flash site for someone and now they would like to be able to send out direct links to particular pages/mc using their newsletter; so that people who've visted the site can load these particular pages without navigating to them themselves.

Here is the structure:
- index.html
---- mainflash.swf
------ defaultdisplay.swf
-------- page1.swf
------------- pg1_subpage1.swf
------------- pg1_subpage2.swf
-------- page2.swf
-------- page3.swf
-------- page4.swf

All the pages are loaded within the mainflash.swf on the single html page.

Is there a way to write a link that will open the mainflash.swf and cause it to display the page3.swf or pg1_subpage2.swf?
Rather than the default that loads automatically.


Thank you in advance for any help.

Abby Morgan

Loading External Jpgs Into Internal MC
I want to be able to load an external image, such as a jpg or gif into an internal flash 'pop up' window when the user presses a button. I've found a tutorial for creating the pop up window, but I don't know how to have each button load a different external image into the pop up depending on the button pressed, and I don't want to bog down my file size by including all the images in the library.

Here is the link for the tutorial. Can anyone tell me how to load in an external jpg using this technique or is there a better way?

Many thanks in advance.

External Text With Internal Links
I understand loading external text into flash through actionscript to produce a quick way to modify text without modifying the flash movie. The problem is being able to create hyperlinks in the external text to navigate within the movie (website).

So my question, Is there a way to load external text but with the ability to code links into words or phrases that point to instance names (frames) within the movie (website).

current method

create *.txt file
*.txt loads into .swf file
.swf is called from loader component on main movie.

Or is this impossible and the text has to made within the main movie and edited through flash?

Calling Internal Scene Of An External Swf
Hi,
How can I access an internal scene of an external swf?when I call a external swf file it goes to the first frame of the first scene. But i want to specify the scene and frame number from the calling file itself. Is it possible? please help me.

regards
mcgrath

A Flash Website Without External Swf But Internal
hi everyone

at the begining, l must say l am a new one in this forum and happy to be among you. my question is, l carried out kirupa tutorial about Preloader and Transition for Dynamic Files
http://www.kirupa.com/developer/mx/p...transition.htm
it was very good tutorial, l liked it but l want to make sample site like in the tutorial without external swf but internal, all in one swf, how ?
l know, tarnsition between external swf is a good way particulary about loading but on the other hand in my opinioun that way doesnt suit the total animation, that is my stance.

thanks for everyone
for sharing their knowledge in this forum
as l believe the knowledge can be alive as long as to be sHARED

Is This External Swf Or Internal, L Couldnt Understand Please Help
http://www.templatemonster.com/flash...tes/10159.html
at this link l saw a site but when the l click navigation button, page laded very fast, no wait to be loaded, so l couldnt decide whether this external or not?

if it is not external how it works is there ant tutorials about it, pls recommend.

thanks for everyone

External File Loadinging Internal Action
I have a web site that has external text file brought into flash. I was able to use a couple of different java scripts to open windows through the text file with the <a href> tag. I want to be able to call the action loadMovieNum. To see what i've done already, you can go to http://www.mgiauctions.com. !Please Help!
Thank You,
Quince Wyss

Treating Internal Movie Clips As External Swf's
I've just thought of a better way than preloading external swfs (re: my other thread)
but it requires some working:

instead of using external swfs - I can just have them as movie clips within the main movie. Thus saving alot of bandwidth - since the bulk of each swf is loading down the fonts.

However, how would I tread this movie clips the same way the external swf's were treated?

Currently I have each menu item loading up these swfs into layer2. And thus clicking on another item just loads each swf over the top - eliminating the previous.
I Also have a language switcher which sends this command on release:
_level2.gotoAndPlay(1);
(each swf has a script to detect the language variable and send it to the relevant frame. the switcher obviously has a scipt with the above one to change the variable)

I'm really not sure if this is possible, so If anyone could tell it it could be done, and if so, how to do it, it would be much appreciated

thanks,
Nathan

Including External Or Internal Swf In Html Areas
Hi, using the following you can include an swf in an html area.


Code:
<img src='pdf.swf' id='image1' width='15' height='15' hspace='5' vspace='0'>
I have a loop getting things out of a db into this text area. But, when I add an remove things dynamically - some of the swfs stay behind. Even if I reset the html to be an empty string.

Is there anyway I can reference them or remove them with code?

Also, how would I reference internal movie clips, rather than external swfs?

M@)

Website On CD : What To Do With Internal/external Flash Loads?
Hi,

I would like to burn a CD of my website, whose structure is more or less :
-a main swf/html file(opening full screen) which loads other swfs if itself
-this swf file also opens swfs in EXTERNAL windows (opened with restrictions on window size)

My main question is,
in what format should I burn this ? Is it advisable to export to .exe ? Would there be a problem opening pup-ups then ?
Otherwise, is it better in html/swfs ? I was trying to open pop-ups at my local folders, and there was a problem opening them(I was unable to see the content of my file, but it works right on the net)

Thanks for the help,

Manojo

Linking External Video To Internal Movieclip
hey, what I am trying to figure out how to do is I have some movie clips on the stage that will represent a different video clip for each one. I have a track that the user is able to drag each movie clip onto and it records the clips x position on the track, so the user will drag multiple clips to the track to organize there own custom variation of a video.

the x positions of the clips are recorded in an array from lowest to highest.

my question is I was thinking of a way to have it so that when the user presses play it will pay through the video clips linked to each individual movieclip.

I am not sure how to link an external flv to each of the movie clips and have them load and play on the stage in an empty movieclip (shell).

if someone could please help me with how i would go about doing this it would be greatly appreciated, if you need any other info let me know, thanks.

Import External SWF, Whilst Using Internal Variables
Hi,

I haven't done any flash programming for about 4 years! So AS3 is going to be a bit of a challenge for me to pick up.

I was wondering if it is possible to import an external SWF, and then have that SWF use the original variables to display data.

I want to make a dynamic file that can pull in different skins, or rather set the variables in the initial file, and then use them in the skin file (which I think will be easier, but less dynamic).

If you could could give me a few pointers to get this going I would be very grateful.

I'm working with PHP and MySQL to pull the data from a database and then assign it to variables within flash. I've been using PHP and MySQL for about 6 years now, and I'm pretty good at it.

Thanks

Flash Website - Subsections External Or Internal?
I'm building a photography website for a friend. First (in short) I'm debating whether to do some of the site in external SWFs, or if there's a more efficient way to just have it all in one SWF (and just have preloaders on larger sections).

Details:
Homepage > Preloader; load 5 images externally (slideshow)

Portfolio (Debating loading this externally as a SWF)
Preloader
- 5 subsections to this (perhaps a preloader for each section)
- all images would load externally
- XML file for caption info

Published work (Also debating loading this externally as a SWF)
Preloader
Dynamic horizontal scroll (image loop) of projects

Bio
- general

Contact
- Form

I have general flash experience and will be getting some help from another programmer from time to time, but I wanted to get a basis so that I don't generate something that's too messy. I just remember having issues trying to unLoadMovie SWF's when the user would go back or to another section. The ultimate goal is, not to have the browser refresh on sections of the site (Like HTML), but to have a smooth yet dynamic transition from one section to the next.

Replace Internal Text With External In A Function
I'm starting to play / understand how functions work and I'm looking for a way of having the part where it says "SOME TEXT HERE" replaced by something else when I call the fuction...

Imagine I have some eternal text... and I want that to be placed in that part...
How can I do that?!

Any help?!

myfunction("SOME TEXT HERE",mytarget);

Resize Content On Stage On External And Internal Swf
Hello,

First post, but a reader for a few years now...

I have this:

External.fla + Main.as


Code:
package
{
import flash.display.Sprite;
import flash.events.Event;
import flash.display.Loader;
import flash.net.URLRequest;
import flash.display.Stage;
import flash.display.StageQuality;
import flash.display.StageAlign;
import flash.display.StageScaleMode;


public class Main extends Sprite
{
var swfLoader:Loader;
var sprite_externa:Sprite;

public function Main()
{
stage.quality = StageQuality.BEST;
stage.align = StageAlign.TOP_LEFT;
stage.scaleMode = StageScaleMode.NO_SCALE;

sprite_externa = new Sprite();
sprite_externa.graphics.beginFill(0x0000FF);
sprite_externa.graphics.drawRect( 0, 0, 500, 200); // (x, y, width, height)
sprite_externa.graphics.endFill();
addChild(sprite_externa);


swfLoader = new Loader();

swfLoader.load(new URLRequest("internal.swf"));

swfLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, onComplete);

stage.addEventListener(Event.RESIZE, stageResizer);
stage.dispatchEvent(new Event(Event.RESIZE));
}

private function onComplete(e:Event):void
{
addChild(swfLoader);
}

private function stageResizer(e:Event):void
{
sprite_externa.x = 10;
sprite_externa.width = stage.stageWidth - 20;
}
}
}

Internal.fla + Internal.as

Code:
package
{
import flash.display.Sprite;
import flash.display.Stage;
import flash.events.Event;
import flash.display.Stage;
import flash.display.StageQuality;
import flash.display.StageAlign;
import flash.display.StageScaleMode;

public class Interno extends Sprite
{
var sprite_mc:Sprite;

public function Interno()
{
stage.quality = StageQuality.BEST;
stage.align = StageAlign.TOP_LEFT;
stage.scaleMode = StageScaleMode.NO_SCALE;

sprite_mc = new Sprite();
sprite_mc.graphics.beginFill(0x000000);
sprite_mc.graphics.drawRect( 0, 0, 500, 200); // (x, y, width, height)
sprite_mc.graphics.endFill();
addChild(sprite_mc);

stage.addEventListener(Event.RESIZE, stageResizer);
stage.dispatchEvent(new Event(Event.RESIZE));
}

function stageResizer(e:Event):void
{
sprite_mc.x = 10;
sprite_mc.width = stage.stageWidth - 20;
sprite_mc.y = stage.stageHeight - sprite_mc.height;
}
}
}



I have on swf that has a stage resizer, and everything works great...

I have another swf that has a stage resizer, and everything works great...


I load on into the other, and errors apear...

TypeError: Error #1009: Cannot access a property or method of a null object reference.at Internal()




The objective is to have a swf that preloads another swf...... the preloaderswf has a preloading bar that resizes to the size of the browser... and then, the loaded swf also resizes its content....


Is this possible?


Thanks in advanced

Linking Scenes In Internal And External Movies
hi there i have a problem

im developing this web site which i have seperated out into 10 scenes i am going seperate out the scenes individually into single movies because the site is to big on its own. i need the script to link these movies together so they can be viewable on any systeum at any address so instead of giving them a url i need to work out some sort of script for them! can any one help?


also im having trouble working out how to link to scenes together all the scritp that should work doesn't! im not sure why?

Trying To Display An Internal Movie Clip On Top Of An External Loaded Swf
I am trying to ensure that an internal movieclip named "Incorrect" displays on top of a swf file that loads with the following:

loadMovieNum("map.swf",1);

I'm sure it's pretty simple, but I couldn't find any good reference to a movieclip displaying on top of an external swf. I tried loading the map.swf into a placeholder movieclip and doing a swapDepth, but then the code within the map.swf would no longer function properly.

I'm using actionscript 2.0.
thanks.

Randomise Internal Images, Non-external And Dynamically Loaded.
Rather than external images.

If I have three images within my movie is there a way of randomly displaying an image from the two images available?

This does not really need to be dynamic as I think only three images will be in use, and if they want them changing I can do this.

So lets say I have three images within my movie, as symbols. I am assuming you would use attachMovie, and also assign a linkage value of maybe 1,2,3 but what else would be required to randomize internal images.

Because what I want to do is preload them all as one set in the first instance, and then in other pages I will no longer need a prelaoder as the images would have already loaded into cache.

Any help would be great.

Trev

How Do I Accomplish This With Internal Movie Clips Rather Than External? Link Inside
http://www.kirupa.com/developer/mx2004/transitions.htm

I need this exact functionality for internal movie clips. Anyone know?

External Loading Text System
hello all...

i know that you can externally load in text from a .txt file so that it is easy to change and upload the info. but is there a CMS type system that you can get or build in flash, where the client has access to to change the text files?? hope that makes sense..?

many thanks
shrav..

External Text Load System
hello all...

i know that you can externally load in text from a .txt file so that it is easy to change and upload the info. but is there a CMS type system that you can get or build in flash, where the client has access to to change the text files?? hope that makes sense..?

many thanks
shrav..

Login System Problems With External Flash
I have used tutorials from kirupa to build an extensive flash site. I have a main.swf as the frontend to everything and then individual content and sub content flash files that load when clicked. These flash files load dynamic text from text files. For one of these content files i have added a login for using a tutorial. When i access the file from http://abstract-design.uni.cc/content_login.swf it works fine with the username : chenu and the password : 12345678 but when it is loaded from the main.swf it doesn't work. I'm a bit puzzled.

Here's a link to the main site http://abstract-design.uni.cc

Login System Problems With External Flash
I have used tutorials from kirupa to build an extensive flash site. I have a main.swf as the frontend to everything and then individual content and sub content flash files that load when clicked. These flash files load dynamic text from text files. For one of these content files i have added a login for using a tutorial. When i access the file from http://abstract-design.uni.cc/content_login.swf it works fine with the username : chenu and the password : 12345678 but when it is loaded from the main.swf it doesn't work. I'm a bit puzzled.

Here's a link to the main site http://abstract-design.uni.cc

Converting Internal Array Data Into External XML Data [renamed]
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
var sm1_array:Array = ["sub1", "sub2"];
var sm2_array:Array = ["sub1", "sub2", "sub3"];
var sm3_array:Array = ["sub1", "sub2", "sub3"];
var sm4_array:Array = ["sub1", "sub2", "sub3", "sub4"];
var submenu_array:Array = [];
XML loading code

Code:
// LOAD MY XML
var myXML:XML = new XML();
myXML.ignoreWhite = true;
myXML.onLoad = function (success:Boolean):Void {
if (success) {
// what goes here to define: mm_array, sm1_array, sm2_array etc
myXML.load("myXML.xml")
XML file something like this:

PHP Code:



<navigation>
    <menu>
        <mm_array>main1</mm_array>
        <sm_array>sub1</sm_array>
        <sm_array>sub2</sm_array>
    </menu>
    <menu>
        <mm_array>main2</mm_array>
        <sm_array>sub1</sm_array>
        <sm_array>sub2</sm_array>
        <sm_array>sub2</sm_array>
    </menu>
</navigation> 

Scroll Bar Works For External Data But Not Internal Data
Howdy,

I have a dynamic text box named 'outputbox'. This is set for multiline. I have an associated scroll bar.

I make a lot of these kind of calls:


PHP Code:



history.onPress = function() {
    outputbox._visible = true;
    loader = new LoadVars();
    loader.load("history.txt");
    loader.onLoad = function() {
        outputbox.text = this.history;
    }; 




This works great, the scrollbar becomes active when the text goes beyond the outputboxes boarders.

In addition, this 'outputbox' also has a variable (Var) associated with it named 'myTally'. At some particular frames I am generating content for this variable thusly:


PHP Code:



for (receipt = 0; receipt<23; receipt++) {
    
    description = _root["config"+receipt][1];
    price =  _root["config"+receipt][2];
    if (description != 0) {
    mytally = (mytally+"
" +description+" "+ price); }





Indeed, the outputbox certainly gets populated but the scrollbar does not work. When I select-and-drag the text it definitely goes beyond the boarders of the outputbox. If I change the font size of this outputbox (8pt to 16pt) then the scrollbar *does* work.

Why does the scrollbar react to an external file and not my dynamically generated variable? Is something not scoped or in focus? I really have no idea. Anyhow, any suggestions of where to look for resolution would be greatly appreciated.

Thanks,
Cheez

Flash.system.System.totalMemory Different Than Windows Mem Display
Anyone know why flash.system.System.totalMemory is much different than what I see FlashPlayer taking up in the Windows Task Manager?

I would expect to see some overhead, but the differences I'm seeing are quite large (i.e. 80MB vs 150MB).

Thanks

External Preloader/ Internal Preloader
can someone explain me the difference? i am trying to achieve a loader but that loads a movie clip wich is part of the same swf(i dont see the point in converting this mc to a jpeg as it would weight more), how can this be achieved?

What Does System.capabilities.language Return On Your System?
I am working on a multi-lingual web site that automatically detects the user's OS or browser language by using System.capabilities.language .

Since I am running a german OS/browser, this returns 'de' in my case, but I wonder what it returns on other systems (english, french, spanish etc.)

To find this out, please copy and paste this code into a Flash doc and see what it says:

trace( System.capabilities.language );

Thx!

Mike

System.pause(); And System.resume();
I've been looking for a simple way to pause everything inside the flash player when a user clicks on a pause button. I found what I thought to be a solution by running System.pause() method. This sounds funny but the problem is that this method does exactly what it's supposed to do, meaning it pauses EVERYTHING.

There is another System method call resume(). But with the entire player pause, how is one supposed to call this method when the pause button is clicked a second time?

This is what I thought about using:


ActionScript Code:
public function pauseSystem(evt:MouseEvent):void {
            if(!sytemPaused){
                sytemPaused = true;
                System.pause();
            } else {
                sytemPaused = false;
                System.resume();
            }
        }

But once the pause() method runs, nothing is clickable. I've got tons of event listeners and things happen all at once, so I'd rather not have to go through removing and adding event listeners every time the user clicks a pause button. Any ideas? Thanks.

[AS] External Text File --> Internal Text File
Hi,
I have an external text file which I am using to write the dynamic text in my movie.
Can anyone tell me how I go about making this an internal text file. I am getting my movie ready for publication and I want people to donwload a single file (as an .exe projector file)
This is the code I am currently using.

Code:
next_button.onPress = function(){
n =_global.chapterCount;
load_Text()
}
MyVars = new LoadVars()
MyVars.load("animation_notes.txt")
load_Text()
function load_Text(){
L="Lx" add n;
mySlide= MyVars[L];
}
stop();
Thanks,
Tim.

[AS] External Text File --> Internal Text File
Hi,
I have an external text file which I am using to write the dynamic text in my movie.
Can anyone tell me how I go about making this an internal text file. I am getting my movie ready for publication and I want people to donwload a single file (as an .exe projector file)
This is the code I am currently using.

Code:
next_button.onPress = function(){
n =_global.chapterCount;
load_Text()
}
MyVars = new LoadVars()
MyVars.load("animation_notes.txt")
load_Text()
function load_Text(){
L="Lx" add n;
mySlide= MyVars[L];
}
stop();
Thanks,
Tim.

[MX] Internal SWF
Is it possible to call an internal swf? For example say for a game you made a swf that has a screen with choices and pictures.

now during the main game, is there a way to pull that swf up and use it. The swf would have action-script on it already...

Internal XML AS2.0
Hi all
I could use a little help internalizing an XML file... I have found some examples of how to do this but they all seem to be for AS1.0 and they don't work in AS2.0 or at least not in my AS2.0

So I have started here with your typical loading of an external XML file.


Code:
/***** LOAD XML****/
var timeLineXMLConn:XML = new XML ();
this.timeLineXMLConn.ignoreWhite = true;
this.timeLineXMLConn.load ("02.xml");
this.timeLineXMLConn.trigger ();
trace ("this is = " + this);
this.timeLineXMLConn.onLoad = function (success:Boolean):Void {
if (success) {
//trace("this is Loaded = "+this);
eval ("entry_clip" + i).entry_text.text = timeLineXMLConn;
this.timelineXML.onload = processXML ();
} else {
trace ("error loading XML file");
}
};
And here is where I have ended up:

Code:
var timeLineXMLConn:XML = new XML ("<?xml version="1.0" encoding="iso-8859-1" ?><entry><timeline timeName="Name-2" color="0x333366"><note><note_date day="1" month="1" year="1997"/><note_headLine><![CDATA[head 1-1]]></note_headLine><note_copy><![CDATA[Marriage of 15 years ended Had some therapy due to poor sleep, sadness and crying]]></note_copy><note_position>400</note_position><note_height>430</note_height></note><note><note_date day="2" month="1" year="1999"/><note_headLine><![CDATA[head 1-2]]></note_headLine><note_copy><![CDATA[Mother, who lived next store to Mrs. Wheeler, died]]></note_copy><note_position>420</note_position><note_height>460</note_height></note><note><note_date day="1" month="3" year="1999"/><note_headLine><![CDATA[head 1-3]]></note_headLine><note_copy><![CDATA[Car accident in which young girl on bicycle hit Mrs. Wheeler’s windshield Mrs. Wheeler sustained neck and back injuries, but no psychological or emotional problems.]]></note_copy><note_position>440</note_position><note_height>350</note_height></note></timeline><timeline timeName="Name-3" color="0x663366"><note><note_date day="2" month="1" year="1997"/><note_headLine><![CDATA[head 2-1]]></note_headLine><note_copy><![CDATA[Marriage of 15 years ended Had some therapy due to poor sleep, sadness and crying]]></note_copy><note_position>600</note_position><note_height>570</note_height></note><note><note_date day="2" month="2" year="2000"/><note_headLine><![CDATA[head 2-2]]></note_headLine><note_copy><![CDATA[Mother, who lived next store to Mrs. Wheeler, died]]></note_copy><note_position>620</note_position><note_height>460</note_height></note></timeline></entry>");
//var timeLineXMLConn:XML = new XML ();
this.timeLineXMLConn.ignoreWhite = true;
//this.timeLineXMLConn.load ("02.xml");
this.timeLineXMLConn.trigger ();
trace ("this is = " + this);
this.timeLineXMLConn.onLoad = function (success:Boolean):Void {
if (success) {
//trace("this is Loaded = "+this);
eval ("entry_clip" + i).entry_text.text = timeLineXMLConn;
this.timelineXML.onload = processXML ();
} else {
trace ("error loading XML file");
}
};

But this keeps giving me an error of:
**Error** Symbol=scrollClip, layer=Layer 1, frame=1:Line 54: ')' or ',' expected

So I have tried many different things to fix this such as:

Code:
var timeLineXMLConn:XML = new XML (<?xml version="1.0" encoding="iso-8859-1"

var timeLineXMLConn:XML = new XML ("<?xml version="1.0" encoding="iso-8859-1"

var timeLineXMLConn:XML = new XML ("'<?xml version="1.0" encoding="iso-8859-1"

var timeLineXMLConn:XML = new XML ('"<?xml version="1.0" encoding="iso-8859-1"

var timeLineXMLConn:XML = new XML ('/"<?xml version="1.0" encoding="iso-8859-1"

var timeLineXMLConn:XML = new XML ("'/<?xml version="1.0" encoding="iso-8859-1"
Do I need to escape my XML or is it even possible to Load an internal XML file in AS2.0?

I also have tried to put the XML into a separate variable and then calling that variable from my var:

Code:
timeLineXMLConn:XML = new XML (myxml);
myxml = '<someXMLHere>';
And:

Code:
timeLineXMLConn:XML = new XML (myxml);
myxml =('<someXMLHere>');
I hope this makes sense... If not let me know and I will try to clear it up...

Thanks in advance
Scott

Copyright © 2005-08 www.BigResource.com, All rights reserved