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




Internal Looping



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



FlashKit > Flash Help > Flash Newbies
Posted on: 04-29-2008, 03:57 PM


View Complete Forum Thread with Replies

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

Looping Sound And Looping Animation Sync
I'm working on a navagation interface for a new site, and I'm running into a few issues.

1) when you click on a button, it activiates an MC. within that MC, the first frame is the initial "off" state, and clicking on a button triggers the rest of the clip to play, from frame 2. I have a sound that starts in frame 2, and I set up an animation of a VU meter that is supposed to be synced very closely to the music. In the last frame of the MC is an action, gotoandplay, that sends it back to frame 2. The idea here is that once the button is pressed, the music loops and the animation loops with it.

When I test the movie, do a publish preview, or view the swf file in the flash player, the animation seems to be synced to the music for the first few times it loops, but then the animation drifts ahead of the music, getting progressively further out of sync with each loop. The other real problem here, is that when viewing the swf in any web browser, the animation is immediately behind the music, and seems to be running much slower than it should.

you can see the swf here:

http://www.lsrdigital.com/flash/index.html

Does anyone have any ideas about how to get this to work the way I am trying to get it to?

the .fla file is here if you want to look at it as well:

http://www.lsrdigital.com/flash/LSR.fla

2) The other problem I'm having is that the stage is set to be 680 pixels wide, and the graphic that fills the background is 680 pixels wide, BUT Flash MX publishes the movie at only 679 pixels wide! You can see the line of white pixels on the right side of the movie here:

http://www.lsrdigital.com/flash/index.html

I've double checked the html file and the table cell holding the movie element is 680 pixels wide. You can also tell that Flash is cutting off the last column of pixels because the background image is visibly just missing the edge to the right of the screws.

Any ideas on that one?

Looping External Mp3 Not Looping Perfectly
Hi there

I have a looping external mp3 file playing in the background of my flash (Flash MX 2004) movie.

Unfortunately it does not loop perfectly even though I know the mp3 file loops perfectly in sound editing programs.

There seems to be a slight delay.

Here is my code

function Play_Background_Audio() {
myMusic.loadSound(audioFile,true);

myMusic.onSoundComplete = function() {
myMusic.loadSound(audioFile,true);
};

};

audioFile = "home.mp3";
myMusic = new Sound(myMusicMc);
Play_Background_Audio();

Any help would be much appreciated.

Thanks

Paul

Looping & Non-looping Components In Same Movie
I'm new to using Flash MX, and would be grateful if someone could give me some advice for this animation I'm trying to do.

I'm making a banner for a website that is being designed by someone else. The background consists of four photos that fade in and out continuously (I think "looping" is the correct term) as soon as the animation (movie?) opens up. That part wasn't too hard!

However, the client wants a name (in white text) to gradually fade in on top of the looping background, and stay visible and static for as long as the looping animation plays. As well, after the white name fades in and becomes static, she needs another name (in gold text) to gradually appear and start fading in and out below it.

So the sequence is:
- Looping background begins to play.
- The name (in white text) gradually fades in (say at around frame 50) and stays visible (alpha at 100%) while the background is looping.
- Around frame 100 a second name (in gold text) fades in and then starts fading in and out continuously in synch with the looping background.

I can't figure out how to do this. Do I need multiple time lines? Or triggers in various frames? Or different scenes?

I have a sinking feeling that I'm going to have to use Actionscript for this, and although I'm perfectly willing to learn, I haven't a clue where to start. Could anyone help, please?

[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

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

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!

[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.

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.

[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

[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

Internal MC Caching
A while ago I found a site that showed how you can have an internal MC on stage, drag it around, and then if you reload the page it would be in the location you last dragged it to on stage, basically simulating caching in flash. I could use this for a project I am working on, but I have searched for days and can not for the life of me find the site or any other site that has anything like this? Would anyone know how to do this?

Internal Forms
I'm afraid I'm in over my head on a project.
I'm trying to create an interactive movie with a transparent background, with a window that a viewer can adjust via textual input.

There are two "symbols" (800x600 black rectangles converted to Movie Clips with F8) that I want to be able to resize using a sort of form. One would resize horizontally, and one vertically, in order to create an opening over the transparent background.
I'm trying to do it with two TextInput boxes (they appear to link under one component) and one Button (to execute the change, like a submit).

for a preview, go here: http://i3.photobucket.com/albums/y60/joequincy/flash_explanation.png

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

Internal Preloaders
I am using an empty movie as a holder clip to load swf's into, my question is this....

with the preloader for the swf that is going to be loaded into the empty movie clip, what should you use to reference the clip for loading.

_this. or _parent. but not root.

its a standard preloader that checks for bytes loaded against bytes total, but when i try to test it via streaming the preloader doesn't work.

the root preloader works fine but all the internal swf preloaders dont.

thanx 4 any help.

swift.

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

Internal Popup
Hi all,

I’m in the middle of trying to make a site in flash and want to make it so that when I click on one of my buttons, it launches and internal movieclip which can be dragged and has a close button. I've got the drag function just about, but I haven’t got a clue how to do the rest. I've searched high and low for some tutorial or forum post I could use to start me off but have come up empty handed.

Can anyone help me in my quest?

(Here’s an example of what I mean, http://www.blackmesasource.com/flash/index.html - the about, updates and jobs bit.)

Internal Preloaders
I am using an empty movie as a holder clip to load swf's into, my question is this....

with the preloader for the swf that is going to be loaded into the empty movie clip, what should you use to reference the clip for loading.

_this. or _parent. but not root.

its a standard preloader that checks for bytes loaded against bytes total, but when i try to test it via streaming the preloader doesn't work.

the root preloader works fine but all the internal swf preloaders dont.

thanx 4 any help.

swift.

Random Internal Mc
does anyone know 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);
return tab_mc[r];
}

// How can I load randomly each of them starting in frame 2?
// gotoAndPlay() is only accept frame number or label
onEnterFrame = function() {

}

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

Controlling Internal Mc
I imagine this is achingly simple. I have a button, with which I'd like to control the timeline of a movie-clip placed on the same layer. I got some code from the forums but its not quite doing it for me. Any advice? Many thanks.

Internal MC Transitions
Anyone know how to do the transitions like the tutorial on this site but using internal movieclips instead of external swfs. I've tried using the attachMovie instead of loadMovie but haven't had much luck getting the buttons to function correctly.

Any help would be much appreciated.

Thanks

[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!!

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

[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!!

Transitions - Internal MCs
Hi there


i'm in search of a good tutorial or a .fla concerning transitions with internal movieclips.

I have no difficults with external mcs transitions, kirupa's site transitions and the other examples i found searching ultrashock's forum but i wasn't able to find what i need.

I'm in search of the classic

1- button released
2- section intro
3 button 2 released
4 section outro
5 section 2 intro

and so on, the whole stuff with internal movieclips placed on the main stage.


Tnx a lot and enjoy Athens 2004

Internal Clip Depth
hi,
how do i set the depth of an internal movie clip? .i'm loading other clips externaly and need this built in clip to always be on top...is swapdepths the only way?

Storing Internal Variables
I need to create a fairly simple trivia game which is completely self contained. All the questions and answers need to be stored within the Flash movie as lists of variables. What is the best way to do this?

Internal Javapopup Heeeeeeeeeeeeeelp
Ok, I found this Action on flashkit

on (release) {
getURL ("javascript:NewWindow=window.open('ShowPopup.php' ,'newWin','width=400,height=300,left=0,top=0,
toolbar=No,location=No,scrollbars=No,status=No,res izable=No,fullscreen=No'); NewWindow.focus();
void(0);");
}

It's meant to give you a popup containing the page showpopup.php.
Problem is it doesn't work has anyone use this before or is there just a far better way of doing it, cause to be honest im a bit lost.

I'll be forever in debt to whatever genius can sort this one out
Cheers Jasinio

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!

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