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




[F8] Loading Internal MC Help



Hi,

I've designed a credits screen for a project with a button to close it (this part works!). However, I cannot seem to sort out the AS syntax to load the credits mc from a button in the root of the main timeline.

I know this is probably simple, and something I've done in the past, but I've forgotten. I'm using Flash CS3, but using AS 2.0 only.

Any suggestions welcome.

Thanks.



FlashKit > Flash Help > Flash ActionScript
Posted on: 08-20-2007, 10:53 PM


View Complete Forum Thread with Replies

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

Loading Internal MCs
ok this might be a stupid question but i just can't seem to figure it out, as simple as it might sound...

i have made a lot of movie clips that load other movie clips exteranlly, but i want to do the exact same thing, only this time the movie clip that i want to load is in the same flash file. i tried using the same script:

content.loadMovie("otherMovie.swf");

only instead of using the file name, using the MC name inside Flash but this didn't work.

please help, thanks

Josh

Internal Loading
on most FLASH website when u click a link it loads that section ONLY im making somthing like that for my friend but i dont know how to load only a section at a time and it takes foreve for the whole thing to load any help or any links? thanks

Loading An Internal .jpg
This is probably a dumb question, but it is something I haven't done yet and can't seem to find in the help.

Is there a way to attach an internal (in the library) .jpg file to a movieclip in a similar fashion to attachMovie?

I have tried using attachMovie after giving the jpg file linkage names, but it wasn't a success.


There are a few reason I want to do that. The scope of this project expanded and instead of maybe 100 40x40 icons there will now be more like thousands of icons.

Also, when I convert a .jpg to a symbol, flash 'sharpens' the image somehow and I don't like that. I prefer the 'softer' look of the original jpg. I also would prefer to not have 1000 or so tiny external jpg files. It would be a portability issue and leads to runtime issues if the server is slow in responding.

Internal Loading
ok....i'm more into designing and my scripting is bad....so i'm a newbie when it comes to scripting...

so i was wondering if someone could help me out....

i want to be able to load another movie within another movie..
i've heard of it before..but i can't find any tutes on it..

Loading Internal MC's With AttachMovie
I have placed an empty movie clip (holder) on a labeled frame (show) on my time line. I have beeen trying to use "attachMovie" to attach 20 internal MC's.

The idea is that everytime you enter frame (show) the empty MC (holder) would play 1 of the 20 internal clips (Q_01, Q_02, Q_03... Q_20). The one that is played is determined my the value of varialble (currentQ). So if (currentQ)=3 then when you enter frame (show) empty MC (holder) would play inernal MC Q_03.


here is the code I am using:

holder.attachMovie(currentQ, "my_mc", 0);

Loading An Internal Movieclip?
loadMovie () calls up an external .swf file

is there any way to just have an empty clip on the main stage and have it load a movie clip inside of it that's not an external file?

I just want to load a movie clip from my library into the empty movie clip.

Is this possible?

Loading Internal Swfs
This may be a stupid question, but I made a website www.adenosinemusic.com that loads external swfs when hovered over a button that shows what the button is. It is different than just a hover caption. The problem is that since it loads the external files, it can lag a little bit even though they are small files. I've looked on this forum and others, but couldn't really find anything. Also, do you have any other advice regarding the site? Thanks,

- Ian

ismith5602@yahoo.com

Loading Internal Swfs
This may be a stupid question, but I made a website www.adenosinemusic.com that loads external swfs when hovered over a button that shows what the button is. It is different than just a hover caption. The problem is that since it loads the external files, it can lag a little bit even though they are small files. I've looked on this forum and others, but couldn't really find anything. Also, do you have any other advice regarding the site? Thanks,

- Ian

ismith5602@yahoo.com

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.

Loading Dynamic Image Into Internal Pop Up
so im creating this "pop up" inside flash that loads on Press an image from the directory.
i have some horisontal and some vertical images all same size let's say,
when its horizontal i check and use rotation to rotate it 90 deg.

this works but it also rotates the image i'm loading....
any ideas of how to do this right?

i don't know if this code will really make a difference but here it is:

ActionScript Code:
loader_MC.onRelease = function() { // this is the clip where i loaded a preview
    var demoImg = "images/f_"+number+"demo.jpg" //the image to pop up
    trace("demoImg "+ demoImg);
    if(number == 3 || number == 6 || number ==  7 || number ==  9){// images to rotate
        _parent.popup1.loader._rotation = -90;
    }
    _parent.popup1._visible = true;
    _parent.popup1.overlay_btn.useHandCursor = false;
    _parent.popup1.loader.container.loadMovie(demoImg);
    _parent.popup1.loader.onPress = function(){
        _parent.popup1._visible = false;
        if(_parent.popup1.loader._rotation == -90) { //setting it back to normal rotation
            _parent.popup1.loader._rotation = 0;
        }
    }
}

Loading A Movie As An Internal Popup
I am developing a new site and when someone clicks on a photo for a gallery an internal movie popup that contains the info or photo gallaries. So then someone can scroll through them and when they are done close it. All of this happens without the main stage changing. For example; www.2advanced.com when you click on their contracts a movie popups showing the project and you can select images to display, when you're done you can just click a button that closes it. Anyone know how?

Loading Internal MC With A Vertical Menu
Hi can someone help me with this. I have a Vertical Menu with multiple children.
for example I've name my first child connURL10. What I want to do is to link up the test MC that I created to this.container onRelease. Where do I add the onRelease action in order to work. Below is what I have now it loads the test MC auto.

_root.connURL10 = this.container.attachMovie("test","test",1,"");

can someone help me please.

Best Regards

Loading Internal Movie Clip?
OK, Im trying to figure out how to load an internal movie clip? I am familar with loading a .swf by using:
on (release) {
loadMovieNum ("xxxx.swf", 1);
}

But what if you have the movie saved in your library and want to load it through a button on your main movie clip? Hope im making sense

Thanks!

Loading Internal Movies Into Other Movie Clips
Once a external swf has been loaded into a movie clip is it possible for it to be loaded from one movie clip into another?

here's the scenario: lets say I'm loading asset A (swf) into movieclip "AA" in my main movie. Once asset A is loaded I then need to load asset B into movieclip "BB" within asset A meaning that asset A must be loaded first. I need to be able to load asset B into the main movie before asset A is finished loading and am wondering if it is somehow possible to first load asset B into another movie clip called placeholder and then load asset B from placeholder into "BB" within asset A once asset A has been loaded.

Internal Object Loading Xml And Calling Another Function Afterwards - PLEASE HELP
I have a MC object set up basically like this:

#initclip
function myMC (){
//variables for the mc
}

myMC.prototype.initialize = function (){
this.getXML();
}

myMC.prototype.getXML = function (){
myXML = new XML ();
myXML.onLoad = this.parseXML;
myXML.load ("http://myURL.php");
myXML.ignorewhite = true;
}

myMC.prototype.parseXML = function (success){
if (success){
this.anotherFunction();
}else{
trace ("Error loading XML");
}
}

myMC.prototype.anotherFunction = function (){
//code i am trying to get to execute after the xml has loaded
}
Object.registerClass ("myMC", myMC);
#endinitclip

I HAVE ALSO ATTACHED A TESTER MOVIE WITH THE XML TO SEE FURTHER WHAT I HAVE DONE AND AM DOING.

I am calling myMC.initialize () from the root time line. It hits that function, calls the getXML function and hits the parseXML function fine! My problem is that I cannot get the 'anotherFunction' function to execute upon the successful load of the XML from the parseXML function.

Any suggestions as to why this is doing what its doing.

One thing i did get to work is that in the parseXML function I can call up like this... _root.myMC.anotherFunction() and it works. But I don't want to do this. 1) its sloppy 2) i can't guarantee the MC will always be at _root and called myMC. So this restricts me way too much.

PLEASE HELP!!!
Derek Neely
derek@mediaflux.com

Loading/Unloading Internal MovieClip Instances?
Is that even possible?

I'm creating an optional menu bar that should be loaded when a button is pressed.

currently, the menu bar is a movie clip instance on stage, my question is, can you write script to load and unload the movie clip instance?

I'm aware that you can load existing movies from an external swf file into another, but I'm finding it hard to work that way, I cant set the location of the menu without creating all this extra space on the external file to position it, plus I cant seem to manage to unload the movie once its on.

does anyone know how to make a movie clip instance dragable?

Thanks!

Loading Internal MCs Inside Scroll Pane ?
help - im having an issue thats prolly easy to resolve - im just a dummy and dont know (yet)...

i have a thumbnail_mc inside of a scroll pane (named myScrollPane - which is on the stage and main timeline). thumbnail_mc consists of about 50 buttons.


when user presses a button, i would like an external SWF to load - like BJ_identitytheft_SWF

AND i want to load

the subtitles that i have transcribed (the external swf's are all videos i produced)

so when user presses button, i want to the external SWF movie to load and the text captioning to load - in the same place as the thumbnail_mc.

i would like the captioning to replace the thumbnail_mc as the movie is playing and when the movie is done, i want the thumbnail_mc to return.

so i thought it would be a simple action on the button to also load the captioning, but its not working.

the subtitles-captions are all scrolling dynmaic text boxes inside a movie clip - ie
BJ_email_text_mc consists of a dynamic text box with a scroll bar that would display the words of the BJ_email_SWF that is also being called with the button.


this is the action on BJthumbnail button #1 - which is name BJnameThNbutton


on (press){
_root.logoHolder_mc.loadMovie("Exported SWFs/BJ/BJ_identitytheft_SWF.swf");}

on (release) {
tellTarget(this._parent.BJ_companion_text_mc){
gotoAndPlay(1);}
}


this is the error i get:
Target not found: Target="undefined" Base="_level0.myScrollpane.spContentHolder"

this has something to do with my scroll pane i guess ?
why would the button let me refer to somehting outside the scroll pane - to load the movie - but to load an internal MC its giving me this error ??

basically - i need to know how to, and/or why i cant, call an internal movie clip

i have also tried this :

first i put this script on the first frame action of the main timeline, and then i tried it on the first frame action of the thumbnail_mc

BJnameThNbutton.onRelease = function(){
BJ_name_text_mc.gotoAndPlay();}

neither of them work.

so i have this function on a frame action, and the usual loadmovie action on the button.

all of my subtitle texts are internal movie clips. i can get it to work if i make them all external like my movie SWFs, but i didnt want to have to do that and im sure that there's got to be a way to get these to load internally.

ellare

Kirupa XML News Ticker: Internal MC Loading?>?
Hi, the XML news ticker tutorial is fantastic! However, I would like some of the links to load external MC's internally in my flash movie rather than URLS. How would I go about doing this or is it even possible??

http://www.kirupa.com/developer/mx2004/newsticker.htm

THX.

Loading Internal Image Into Dynamic Textbox
Hey guys,

I'm having a little trouble loading an INTERNAL image into a dynamic text box. It works fine while loading an EXTERNAL image, such as the following:


Code:
strTxt = "<img src='gorilla.jpg'>";
out.htmlText = strTxt; //out is the dynamic text box name
How do I get it so that it'll load an image within the flash scene?
I tried
Code:
strTxt = "<img src='_root.gorilla'>";
but that doesn't work, neither does the 'gorilla' without the '_root.' I gave the image an ID name of "gorilla". The image is in the main directory, where the dynamic text box is. Anyone have an idea?

Thanks,
Matt

Urgent: Loading Internal Movies To Stage?
in a very similar way to loading external swf using "loadmovie" to an existing empty movie instance, is it possible to load internal movies/images i.e from library??

basically i want to produce a projector and use it without having to worry about external files and paths etc. i'm creating an application and it needs to be one single exe file.

is there is any way to merge the exteranl swf files or as my first question load them internally in the fla???

please advise and many thanks in anticipation

Loading Internal MCs Inside Scroll Pane ?
help - im having an issue thats prolly easy to resolve - im just a dummy and dont know (yet)...

i have a thumbnail_mc inside of a scroll pane (named myScrollPane - which is on the stage and main timeline). thumbnail_mc consists of about 50 buttons.


when user presses a button, i would like an external SWF to load - like BJ_identitytheft_SWF

AND i want to load

the subtitles that i have transcribed (the external swf's are all videos i produced)

so when user presses button, i want to the external SWF movie to load and the text captioning to load - in the same place as the thumbnail_mc.

i would like the captioning to replace the thumbnail_mc as the movie is playing and when the movie is done, i want the thumbnail_mc to return.

so i thought it would be a simple action on the button to also load the captioning, but its not working.

the subtitles-captions are all scrolling dynmaic text boxes inside a movie clip - ie
BJ_email_text_mc consists of a dynamic text box with a scroll bar that would display the words of the BJ_email_SWF that is also being called with the button.


this is the action on BJthumbnail button #1 - which is name BJnameThNbutton


on (press){
_root.logoHolder_mc.loadMovie("Exported SWFs/BJ/BJ_identitytheft_SWF.swf");}

on (release) {
tellTarget(this._parent.BJ_companion_text_mc){
gotoAndPlay(1);}
}


this is the error i get:
Target not found: Target="undefined" Base="_level0.myScrollpane.spContentHolder"

this has something to do with my scroll pane i guess ?
why would the button let me refer to somehting outside the scroll pane - to load the movie - but to load an internal MC its giving me this error ??

basically - i need to know how to, and/or why i cant, call an internal movie clip

i have also tried this :

first i put this script on the first frame action of the main timeline, and then i tried it on the first frame action of the thumbnail_mc

BJnameThNbutton.onRelease = function(){
BJ_name_text_mc.gotoAndPlay();}

neither of them work.

so i have this function on a frame action, and the usual loadmovie action on the button.

all of my subtitle texts are internal movie clips. i can get it to work if i make them all external like my movie SWFs, but i didnt want to have to do that and im sure that there's got to be a way to get these to load internally.

ellare

Loading An Internal Movie Clip Into A Specific Layer
I think I might have asked a similar question before - but this is very specific, so I'll ask away.

How would I load a movieclip within my main swf, into say Layer2 - and have any actionscript that specifies level2, affect that movie clip?

at the moment, i have a number of external swfs that are loaded into layer2 by a loadmovie scipt. and these can be reset to their first frame by a scipt I have on another button.
I would like to have these all as internal movie clip instead of external swfs (it will bring the overall size DOWN. currently each clip has to have helvetica and hiragino, a full japanese font, loaded - bringing them all into the main movie means only once - knocking 20-25k off per clip) and still be able to affect them by specifying level2. (ie. bringing in a second clip, overwrites the first one - and telling level2 to go to frame 1 makes whatever clip is visible return to frame 1)(I would prefer to keep it specifying level 2, which is general, than having to individualy specify each clip - as there's about 15 of them, which may grow in the future as I increase the content)

I've tried everything under my capabilities and i've been tearing my hair out. So some advice would be fantastic. thanks in advance

Loading And Playing Internal Movie Clips Randomly
Hi!!! Does anyone out there know how to get movie clips to play randomly? Here's what I want to do:

I have four movie clips already created and I want to make it so that when someone visits the page and accesses it for the first time, one of the four is randomly selected and plays (I also want to be able to tell it what frame of the movie clip to go to)!

I know some genius out there has the answer! Help!!!

Loading "Internal" Data
It seems like Flash has two extremes of data access, either its already in the file or you have to go and get it from another data source. But what if I have it within my page already? I have an aspx page the pulls all my Product info down including a list of MP3. I want to pass that list to my flashplayer and not build a webservice because its redundant.

Is there a way to pass info to a swf file from within an (rendered) HTML page. I have tried XML as a string as a flash var and that didn't seem to work.

There must be something fundamental I am missing.

Loading An "Internal" .swf?
I've scoured the net for a simple answer to what seemed like a simple problem.

I have a .swf file that is a flash movie (video) and associated controls (play, stop, pause, rew, etc...).

I need to import this into my new .fla in order to create a new .swf that has static images and yet allows for the movie .swf to play within it.

I know all about loading an external movie (i.e. having the .swf file in the same folder (as described on this site), however that is not going to work for this situation.

I can only have ONE .swf file in the end.

(This file is being utilized within a SCORM compliant environment - and a .swf cannot communicate with another .swf in this format).


Any clues of ideas? Can I embed it?
My assumption was that I could import it into the library and call it to the stage. This did not work (the .swf was static and lost all control functions).

Thanks!

[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

# Internal Anchor
Hi all,
Does anyone know how to put an internal anchor in the url in Flash5?
I am assigning a button to go to a certain section in a particular website; however, every time I put a #sign after the url, the website just won't show!!! Can anyone help??? Thank you very much!!!!
orange

Replacing Two Internal...
Movieclips...
How does this work ?

Internal Window Within Swf.
Ok, I hope this makes sense. Basically a friend has asked me to do a site for him. (i owe him a favour). Being I am still learning flash i thought the best way to learn was to just design the whole thing in Flash... (so a flash site).

Anyhow he sells posters, so I have the thumbnails of the posters, i want the user to click on the thumbnail and a mini window will open within the flash movie. This window will have a picture of the poster and some details about it.

Now sounds nice and simple but no matter what I try i can get a window to open but if u move the mouse around the window if a link exists under the popup window then the mouse will allow u to click that link even tho the popup window is on top of it.

If this doesn't make any sense what so all I understand, but some help would be great.

you can email me at wolfie_1980@hotmail.com or reply here or use the same addy for MSN Messenger.

Enjoy :P

Internal Variables
hi chaps

using flash 5
how do i store text variables in a keyframe, and then call them to an invisible mc when i roll over a chosen object.

ive seen this done, but dont know how to do it. I think i will only need help on the storing and displaying of the variables.


cheers rat

Timer... Fps Vs Internal?
I'm making a game in which the time allowed to complete a task is important. I'm worried that people's computer speeds will have too much of an effect on their scores. So, would i be better off using their computer's internal clock to time them? Thanks ... Ku (C8;

How To Add Internal Link To Nav Bar
Can anyone give me detailed instructions on how to add internal links to this file. I know you click it then go to the actions panel but once iv added a link saved it it still doesnt work. I think the problem may be what i do with the timeline (of whole animation not button one (up down over) )

Please Help

Alex

An Internal Twitch
Whenever I have a movieclip play on this certain project, right at the end the inside of the image twitches in toward the left. I checked and it looks like all layers are matched up perfectly, any suggestions?

Internal Blog With RSS, Please.
I'm just finishing my site in flash, and I was wondering if it was possible to include a news/blog feed in it that I can alter externally. Could be blogger powered, for example, but with the end result ending up in the flash file. An RSS feed would be nice too, for those who don't want to visit the site every time they want to know whats going on.

Try to explain this to someone whos never used flash before. I have a bit of knowledge, but not a great deal, so keep it simple if you are fantastic enough to be able to help.

Cheers.

Internal XML Problems 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

Internal Preloader, Can This Be Done?
Hello i am having a problem and i need your help to find a solution to it, any help will be greatly appreciated.

I have my basic preloader on scene 1 where it loads the movie in scene 2. That works fine. What i want to do is add a preloader in scene 2 (internal) so that i can preload external videos and images from an ftp. How can i do this?

Thanks everyone for your time..

Is XML (or XMLList) Appropriate For Internal Use?
I wrote a prototype in procedural AS2 that took items from a mySQL database and displayed them as cards on the user's screen. The cards could be rearranged and edited, and then posted back to the server.

I created an array for each property (e.g. authorArray, contributorArray, etc.) and gave each card a number. So card 5 would display authorArray[5], contributorArray[5], etc.. I pushed the data to/from the server with sephiroth's Serializer class and php serialize();.

I'm building a production version in object-oriented AS3. I'm wondering if it would be appropriate to store each card as an XML object.

Code:
<card id ="5"><author>Mike</author>
<contributor>Harry</contributor>
<contributor>Jonas</contributor></card>
I expect as many as 1000 or more cards in memory at a time, including both images and text. Should I store my data as an XMLList that can be sent/received from PHP? Should I convert them all to Arrays for internal processing, and then back to either XML or serialized strings for exportation? My biggest priority is speed, with a secondary emphasis on ease of coding.

Thanks!

[CS3] Internal Linking
Hey,

I recently downloaded a free template for a website and I was trying to edit it so that I could make links on a page that link to another 'page' within the flash file.

I took a look at the normal buttons and thier actionscript and tried to slightly modify it to work for a link inside a page (which is inside a different movie clip). It is all in one scene, but inside that scene is a buttons movie clip (with the navigation) and then a different movie clip called page4.
This is the code on the buttons:

Quote:




on (rollOver) {
if (_root.link<>6) {
this.gotoAndPlay("s1");
}
}
on (releaseOutside, rollOut) {
if (_root.link<>6) {
this.gotoAndPlay("s2");
}
}
on (release) {
if (_root.link<>6) {
_root.menu["item"+_root.link].gotoAndPlay("s2");
_root.gates.gotoAndPlay("s1");
_root.link = 6;
_root.scroller.scroller.gotoAndStop(3);
}
}




I believe the problem is that they are in different movie clips, hence the referencing of other clips and such is out of wack, causing it not to work. If someone could help me figure out how to link and make the page animation clip roll (gates) and the page that the user is on highlighed (frame 3 of that buttons animation sequence).

Thanks,
TheMagicMan003

Internal Looping
how can i make it so that 5 frames in 100 will loop until a button is clicked (not the first 5)

[CS3] [AS2] Internal MovieClipLoader
Is there another class like MovieClipLoader, or a way to use MovieClipLoader, which results in using "Graphics" or "Movie clips" which are in the library, rather than an external source?

[help] Internal Swf Link?
Hi. Im sure there is a way to this. Im just not sure how. And its causing me to have a huge headache! ha ha ha

I have a flash document with thumbnails in and I have AS on each of these thumbnails. They are each buttons.

So when you click on one of these buttons a swf will load into this empty MC. Its something like this.

on (release) {
_root.body_all.body_pants = "shorts_yellow";
_root.exampleBottoms.loadMovie("yellowshorts.swf") ;
//Unload Dresses
_root.exampleDress.unloadMovie("blacktubedress.swf ");
}


I want to know if you can use this in a different way so that the swf isn't loading externally, but maybe there is some sort of linkage within the library or inside the document? Hope this makes sense?

The reason I'm asking is cause at the moment some of these swf's are taking too long to load on the server. Is there someway of making them load quicker or something?

Thanks so much!!

What Is Namespace Internal?
So I'm trying to get this little game I'm making run, however the Start Button at the beginning and the playAgainButton at the end keep giving me this error when I run the program and I WISH I knew what it meant. All the names are in sync so I dunno..

1151: A conflict exists with definition startButton in namespace internal.

What Is Namespace Internal?
So I'm trying to get this little game I'm making run, however the Start Button at the beginning and the playAgainButton at the end keep giving me this error when I run the program and I WISH I knew what it meant. All the names are in sync so I dunno..

1151: A conflict exists with definition startButton in namespace internal.
1151: A conflict exists with definition playAgainButton in namespace internal.

As Well as:

5000: The class 'source.Hero' must subclass 'flash.display.MovieClip' since it is linked to a library symbol of that type.

Using Internal XML File
Hello, I've looked around and cannot find any way to do this. I want to use an XML file that I import into my library. I want the final application to be one self -contained file with no external resources. I am generating the XML file from another application and want to import it into my new application and use that data. Is there a way to do this? If not, can you think of an alternative method?

Internal MP3 Player
I am trying to morph the following code to make an mp3 type player work with an attachedSound instead of accessing an external MP3. Everything works fine with the exception of the playback scubber. Any one have any Ideas on why its not working?

PHP Code:



this.createEmptyMovieClip("mcSoundHolder", this.getNextHighestDepth());var sndAudio:Sound = new Sound(mcSoundHolder);var nLoadProgressInterval:Number;var nPlaybackInterval:Number;sndAudio.onLoad = function(bSuccess:Boolean):Void {    if(bSuccess) {        this.start();        csldProgress.max = this.duration;        nPlaybackInterval = setInterval(checkPlayback, 100);    }};var oListener:Object = new Object ();oListener.change = function(oEvent:Object):Void {    if(oEvent.target == csldVolume) {        sndAudio.setVolume(oEvent.target.value);    }    else {        sndAudio.stop();        sndAudio.start(oEvent.target.value/1000);    }};csldVolume.addEventListener("change", oListener);csldProgress.addEventListener("change", oListener);csldVolume.value = 100;mcTrack1.onRelease = function():Void {    sndAudio.attachSound("audioSherman");    sndAudio.start();    sndAudio.setVolume(csldVolume.value);    nLoadProgressInterval = setInterval(checkLoadProgress, 100);};mcPlay.onRelease = function():Void {    sndAudio.stop();    sndAudio.start(sndAudio.position/1000);};mcPause.onRelease = function():Void {    sndAudio.stop();}function checkLoadProgress():Void {    clpbProgress.value = (sndAudio.getBytesLoaded()/sndAudio.getBytesTotal())*100;};function checkPlayback():Void {    if (!csldProgress.dragging) {        csldProgress.value = sndAudio.position;    }}; 

'internal' Keyword
Can someone just explain what this is used for?

Thanks

Loader Bar For Internal MC?
Hi

I'm building a Flash photo gallery - I'm interested to know if it's possible (and how to do it!) to have a loader bar work for internal movie clips.

So the main movie has a loader bar - which show progress of the interface and thumbnails loading (but not the actual photos (jpgs) also contained in the movie). The actual photos are contained in individual movie clips.

When I call the movie clips with the individual photos - I'd like a loader bar to appear.

I realize this can be achieved with loadMovie / external assets. But I'm interested how the loader bar could be caklled for internal MCs when they are called.

Thanx!!

d

Internal Map Of The Buildings
Hi
I am working on a project in which I need to build a interactive map of the 10 buildings in my university.
It has a seperate building for library and also a Recreation centre(Gym+snooker+Table Tennis Hall, etc)
Now, I want to ask few questions so as to give best to the project

1. What is the camera I should be using for this sort of project? Panoramic camera would be a must or a simple digital camera would do?

2. How would I join the images to get a 3D or real effect? Will this again need some special software?

3. Is it possible to take the aerial view, although its not very important?

To sum up, if a user clicks on "Gym", he should be able to see the gym(which is quite big) according to the mouse motion exactly the way he is seeing with his eyes and possibly all the equipments inside too with the same clarity.
Thanks

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