Todd's Tut On Xml Video Scroll Panel Is Great. But I Aint.
Hello everyone. I found this forum just a few days ago and have been hooked to it since. I found tuts from Todd and DruKepple and others' that addressed wht I have trying to accomplish, and theyre the best I have come accross on the web. I wanted to say thanks for what I have learnt.But I can't get to work at all Todd's xml_video_playlist :(viewtopic.php?f=10&t=3941&p=19733&hilit=scroll+panel+video#p19733)...to make a video playist version of Dru's scroll panel photo gallery. I know there are alot of threads ont the subject, but the more I read on different vriations the more i get confused!!!Here is where I left off. If someone could give me a hand on this, I would really appreciate it greatly.Chris
General Flash
Posted on: Wed Mar 26, 2008 10:36 am
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Todd Lajoie XML Video List With Stylesheet?
Hello,
i tried to use one textfield in Todds video list modification which is formated with HTML und CSS.
The XML and html-tags are working now but i can´t use the stylesheet on my textfield.
the stylesheet was loaded too but it wont work.
Here is the relevant Code:
Code:
var myStyles:TextField.StyleSheet = new TextField.StyleSheet();
myStyles.onLoad = function(success:Boolean) {
if (success) {
trace("Styles loaded:");
} else {
trace("Error loading CSS");
}
};
myStyles.load("playlist.css");
var vlist:XML = new XML();
vlist.ignoreWhite = true;
var listClips:Array = new Array();
var whoIsOn:Number = 0;
var yBegin:Number = videoList._y;
vlist.onLoad = function() {
var videos:Array = this.firstChild.childNodes;
for (i=0; i<videos.length; i++) {
var a = videoList.attachMovie("listEntry", "listEntry"+i, videoList.getNextHighestDepth());
listClips.push(a);
a._y = a._height*i;
a._alpha = 66;
loadMovie(videos[i].attributes.thumb, a.tHolder);
a.vRubrik.html = true;
a.vRubrik.htmlText = videos[i].firstChild.nodeValue;
a.vRubrik.styleSheet = myStyles;
////////////////////////////////////////////
a.numb = i;
a.urlLink = videos[i].attributes.url;
a.yLoc = (yBegin+(mask._height/2))-(a._y+(a._height/2));
a.onRelease = function() {
getNewVid(this);
};
that´s my XML-CodeCode:
<?xml version="1.0" encoding="UTF-8"?>
<videos>
<video
thumb="thumbs/beauty/beauty_01.jpg"
url="psychotest/battle1.flv" >
<![CDATA[<b>People</b> 22.01.07<br><span class='videoTitle'>Dreamgirls</span> (inkl. Beyoncé-Interview)<br>Das Soul Trio Dreamgirls steigt in die Pop Charts der frühen 60er Jahre auf.]]>
</video>
</videos>
thats my cssCode:
.videoTitle {
font-family:Verdana, Arial, Helvetica, sans-serif;
font-size:11px;
font-weight:bold;
color:#990000;
}
is anyone here, who could help me in this matter?
Help Regarding Todd Lajoie XML Video List Modification
First off I would like to say thank you to Lee and all the moderators. This is a great site.
I have completed Todd Lajoie's Modifications to Lee's NetStream Video Player: http://www.gotoandlearn.com/forum/viewtopic.php?t=3941
Which was excellent. I have got everything to work except for the the dynamic text to appear. I figure I just need a second pair of eyes to see the small mistake I am overlooking.
Here is the XML:
Code:
<?xml version="1.0" encoding="ISO-8859-1"?>
<videos>
<video
name="Fun Waimea Bay"
desc="Matt messes around in some small Waimea shorebreak"
url="bb.flv" thumb="bb1.jpg" />
<video
name="Big Island Rippers"
desc="Kainoa and the Big Island Bodyboarders rip to Pepper's Kona Town"
url="kainoa.flv" thumb="kainoa.jpg" />
<video
name="Chris Taloa"
desc="You may remember him as the dick surfer in Blue Crush, but he's actually a bodyboarder."
url="taloa.flv" thumb="taloa.jpg" />
<video
name="Tahiti"
desc="Tahiti. Nothing else to say about that."
url="tahiti.flv" thumb="tahiti.jpg" />
</videos>
Here is the actionscript:
Code:
var nc:NetConnection = new NetConnection();
nc.connect(null);
var ns:NetStream = new NetStream(nc);
theVideo.attachVideo(ns);
ns.setBufferTime(10);
ns.onStatus = function(info) {
if(info.code == "NetStream.Buffer.Full") {
bufferClip._visible = false;
}
if(info.code == "NetStream.Buffer.Empty") {
bufferClip._visible = true;
}
if(info.code == "NetStream.Play.Stop") {
v = whoIsOn+1
if (v >= listClips.length ) {
v = 0;
}
getNewVid(listClips[v]);
}
}
playButton.onRelease = function() {
ns.pause();
}
rewindButton.onRelease = function() {
ns.seek(0);
}
this.createEmptyMovieClip("vFrame",this.getNextHighestDepth());
vFrame.onEnterFrame = videoStatus;
var amountLoaded:Number;
var duration:Number;
ns["onMetaData"] = function(obj) {
duration = obj.duration;
}
function videoStatus() {
amountLoaded = ns.bytesLoaded / ns.bytesTotal;
loader.loadbar._width = amountLoaded * 208.9;
loader.scrub._x = ns.time / duration * 208.9;
}
var scrubInterval;
loader.scrub.onPress = function() {
vFrame.onEnterFrame = scrubit;
this.startDrag(false,0,this._y,208,this._y);
}
loader.scrub.onRelease = loader.scrub.onReleaseOutside = function() {
vFrame.onEnterFrame = videoStatus;
this.stopDrag();
}
function scrubit() {
ns.seek(Math.floor((loader.scrub._x/208)*duration));
}
var theMenu:ContextMenu = new ContextMenu();
theMenu.hideBuiltInItems();
_root.menu = theMenu;
var item1:ContextMenuItem = new ContextMenuItem("::::: Video Controls :::::",trace);
theMenu.customItems[0] = item1;
var item2:ContextMenuItem = new ContextMenuItem("Play / Pause Video",pauseIt,true);
theMenu.customItems[1] = item2;
var item3:ContextMenuItem = new ContextMenuItem("Replay the Video",restartIt);
theMenu.customItems[2] = item3;
var item4:ContextMenuItem = new ContextMenuItem("? 2005 Lee Brimelow",trace,true);
theMenu.customItems[3] = item4;
function pauseIt() {
ns.pause();
}
function stopIt() {
ns.seek(0);
ns.pause();
}
function restartIt() {
ns.seek(0);
}
_root.createEmptyMovieClip("vSound",_root.getNextHighestDepth());
vSound.attachAudio(ns);
var so:Sound = new Sound(vSound);
so.setVolume(100);
mute.onRollOver = function() {
if(so.getVolume()== 100) {
this.gotoAndStop("onOver");
}
else {
this.gotoAndStop("muteOver");
}
}
mute.onRollOut = function() {
if(so.getVolume()== 100) {
this.gotoAndStop("on");
}
else {
this.gotoAndStop("mute");
}
}
mute.onRelease = function() {
if(so.getVolume()== 100) {
so.setVolume(0);
this.gotoAndStop("muteOver");
}
else {
so.setVolume(100);
this.gotoAndStop("onOver");
}
}
var vlist:XML = new XML();
vlist.ignoreWhite = true;
var listClips:Array = new Array;
var whoIsOn:Number = 0;
var yBegin:Number = videoList._y;
vlist.onLoad = function() {
var videos:Array = this.firstChild.childNodes;
for(i=0;i<videos.length;i++) {
var a = videoList.attachMovie("listEntry", "listEntry"+i, videoList.getNextHighestDepth());
listClips.push(a);
a._y = a._height*i;
a._alpha = 66;
loadMovie(videos[i].attributes.thumb, a.tHolder);
a.vName.text = videos[i].attributes.name;
a.vDesc.text = videos[i].attributes.desc;
a.numb = i;
a.urlLink = videos[i].attributes.url
a.yLoc = (yBegin + (mask._height/2)) - (a._y + (a._height/2));
a.onRelease = function() {
getNewVid(this)
}
a.onRollOver = function() {
if (this.numb <> whoIsOn) {
this._alpha = 100;
this.accent._alpha = 100;
this.back._alpha = 0;
}
}
a.onRollOut = a.onReleaseOutside = function() {
if (this.numb <> whoIsOn) {
this._alpha = 66;
this.accent._alpha = 0;
this.back._alpha = 100;
}
}
a.onRelease = function() {
if (this.numb <> whoIsOn) {
getNewVid(this);
}
}
}
yEnd = yBegin - videoList._height + mask._height + 5;
getNewVid(listClips[whoIsOn]);
}
vlist.load("thumbvideos.xml");
videoList.onRollOver = scrollPanel;
function panelOver() {
speed = 10;
this.onEnterFrame = scrollPanel;
delete this.onRollOver;
}
var b = mask.getBounds(_root);
function scrollPanel() {
if (_xmouse<b.xMin||_xmouse>b.xMax||_ymouse<b.yMin||_ymouse>b.yMax) {
this.onRollOver = panelOver;
delete this.onEnterFrame;
}
var yDist = _ymouse - 250;
videoList._y += -yDist/speed;
if (videoList._y >= yBegin) {
videoList._y = yBegin;
}
if (videoList._y <= yEnd) {
videoList._y = yEnd;
}
}
function getNewVid(who) {
ns.play(who.urlLink);
whoIsOn = who.numb;
z = who.yLoc;
if (z >= yBegin) {
z = yBegin;
}
if (z <= yEnd) {
z = yEnd;
}
easeList(z);
for (i=0; i<listClips.length; i++) {
if ( listClips[i].numb == whoIsOn ) {
listClips[i]._alpha = 100;
listClips[i].frame._alpha = 100;
listClips[i].back._alpha = 0;
listClips[i].accent._alpha = 0;
}else {
listClips[i]._alpha = 66;
listClips[i].frame._alpha = 0;
listClips[i].back._alpha = 100;
listClips[i].accent._alpha = 0;
}
}
}
function easeList(where) {
delete videoList.onRollOver;
delete videoList.onEnterFrame;
videoList.onEnterFrame = function() {
yDist = (videoList._y - where)/7;
videoList._y-=yDist;
if ((videoList._y < (where+2)) && (videoList._y > (where-2))) {
delete videoList.onEnterFrame;
videoList.onRollOver = panelOver;
}
}
}
And here is the the whole package I have created in Flash 8:
http://equalitydesigns.com/art/video.zip
Any help would be great.
Thanks!
Todd Lajoie Modifications To Lee's NS Video Player Troubles
Hi Guys. Todd I really want to thank you for providing the walkthrough to modify Lee's tutorial and many thanks to Lee for sharing it on his player, I have learned a great deal from the two of you.
:cry: Unfournately I am having a problem getting my video player to load text and I can not figure out for the life of me why it will not show up on my player. After doing the walkthrough twice I finally got the image to load successufully but can not get the text to show up along side of the image. Hopefully some one can take a look and point me in the right direction.
Any and all help will be appreciated. The directory of the files are posted http://www.dothiz.com/2theWeb/.
Thanks
Shoo
Scroll Text With Image In Scroll Panel ? Help
Hi,
I m trying scroll pannnel to show image and dynamic text both in scroll panne but when i select dymanic text in text option it comes outer from scroll pannel but static text is coming.
I need help to show dynamic text also in scroll pannel.
Thanks
Scroll Text With Image In Scroll Panel ? Help
Hi,
I m trying scroll pannnel to show image and dynamic text both in scroll panne but when i select dymanic text in text option it comes outer from scroll pannel but static text is coming.
I need help to show dynamic text also in scroll pannel.
Thanks
Great Scroll Effect?
i'm looking for some tutorial or example for some cool horizontal scroll, something like http://www.motown.com/classicmotown/
i know there is a default one in flash mx, but i'm looking for something a bit more fancy with velocity and so on...
any suggestions welcome!
thanks
I Found A Great MC Scrollbar, Now Help Me Make It Scroll Dynamic Text Too.
I found this great draggable scrollbar that scrolled an MC. It works like a charm and is very snazzy. What I would like to do is have the same daggable scrollbar on my dynamic text fields. Is this possible, and if so, what in the script below would I have to change??
The way I have my dynamic text fields is a very simple:code: loadVariables("bla.txt", ""); Then have the texfield have a var. called 'text' and then have the actual .txt file start with text=blablabla
Anyway, here's the script for the draggable scrollbar:
code: fscommand("allowscale", "false");
bar.useHandCursor = dragger.useHandCursor=true;
space = 50;
friction = 10;
speed = 10;
y = dragger._y;
top = main._y;
bottom = main._y+mask_mc._height-main._height-space;
dragger.onPress = function() {
drag = true;
this.startDrag(false, this._x, this._parent.y, this._x, this._parent.y+this._parent.bar._height-this._height);
dragger.scrollEase();
};
dragger.onMouseUp = function() {
this.stopDrag();
drag = false;
};
bar.onPress = function() {
drag = true;
if (this._parent._ymouse>this._y+this._height-this._parent.dragger._height) {
this._parent.dragger._y = this._parent._ymouse;
this._parent.dragger._y = this._y+this._height-this._parent.dragger._height;
} else {
this._parent.dragger._y = this._parent._ymouse;
}
dragger.scrollEase();
};
bar.onMouseUp = function() {
drag = false;
};
moveDragger = function (d) {
if ((dragger._y>=y+bar._height-dragger._height && d == 1) || (dragger._y<=y && d == -1)) {
clearInterval(myInterval);
} else {
dragger._y += d;
dragger.scrollEase();
updateAfterEvent();
}
};
up_btn.onPress = function() {
myInterval = setInterval(moveDragger, 5, -1);
};
down_btn.onPress = function() {
myInterval = setInterval(moveDragger, 5, 1);
};
up_btn.onMouseUp = down_btn.onMouseUp=function () {
clearInterval(myInterval);
};
MovieClip.prototype.scrollEase = function() {
this.onEnterFrame = function() {
if (Math.abs(dy) == 0 && drag == false) {
delete this.onEnterFrame;
}
r = (this._y-y)/(bar._height-this._height);
dy = Math.round((((top-(top-bottom)*r)-main._y)/speed)*friction);
main._y += dy;
};
};
There were up/down arrows, but I removed those just to have the dragger and the bar.
Many thanx in advance...
Scroll Panel?
Hi
I have a problem with a scroll panel with pictures.
I have find the script on the internet but I donīt know how to move the scroll panel? When I try to move the panel it donīt work when I make the SWF file?
I have upload the fla file to http://molotov.brandfilm.com/scrolling_panel.fla
Can someone please tell me what Iam doing wrong?
Thanks for your all help I have get jet, and allso the fast respons
//Molotov
Using Scroll Panel
Hello everyone!!
I try to work with scroll panel putting some text on it.What I did is creating one swf file that contains the text and in another swf I put the scroll panel.The problem is that I cannot see the whole text I wrote and when the scroller is at the middle my text is cut.
You can check what I mean on www.apositive.com in the news section
I am using flash 8
Thanks in advance!!
Edited: 10/01/2007 at 08:36:05 AM by A positive
Scroll Panel Help....PLEASE HELP.
Can somebody have a look at this link....go to the bags section....and test the scrolling gallery...it was done using a great tutorial. When previewed the gallery scroll works perfectly...or did work perfectly.....now as you will see it seems to stick and jerk at certain points....any ideas?
The scroll is a seperate .swf which is loaded into a loader_mc in the origainl .swf (basic shell based navigation)...when I preview the scroll.swf alone it wors perfectly...how ever when it is loaded into the shell.swf loader_mc it starts to jerk.....
I think this may have something to do with the position which it is loaded into i.e off centre and therefore this is throwing of the code for the scroll function.....any suggestions??
http://www.prbags.com
Below is actionscript for the scroll.swf:
panel.onRollOver = panelOver;
function panelOver(){
this.onEnterFrame = scrollPanel;
delete this.onRollOver;
}
var b = stroke.getBounds(_root);
function scrollPanel(){
if(_xmouse<b.xMin || _xmouse>b.xMax || _ymouse<b.yMin || _ymouse>b.yMax){
this.onRollOver = panelOver;
delete this.onEnterFrame;
}
if(panel._x >= 113) {
panel._x = 113;
}
if(panel._x <= -485) {
panel._x = -485;
}
var xdist = _xmouse - 300;
panel._x += -xdist / 7;
}
And the code for the frame action of shell.swf:
onLoad = function(){
_root.shell.loader_mc.loadMovie("about.swf");
}
//import flash.display.BitmapData;
shell._x = Stage.width /2;
shell._y = Stage.height /2;
/*var tile:BitmapData = BitmapData.loadBitmap ("tile");
function fillBG() {
this.beginBitmapFill(tile);
this.moveTo(0,0);
this.lineTo(Stage.width,0);
this.lineTo(Stage.width,Stage.height);
this.lineTo(0,Stage.height);
this.lineTo(0,0);
this.endFill;
}
fillBG(); */
var stageL:Object = new Object();
stageL.onResize = function(){
fillBG();
shell._x = Stage.width /2;
shell._y = Stage.height /2;
}
Stage.addListener(stageL);
And this is the code for the frame action within the shell movie clip:
about.onRelease = function(){
loader_mc.loadMovie("about.swf");
}
bags.onRelease = function(){
loader_mc.loadMovie("bags.swf");
}
contact.onRelease = function(){
loader_mc.loadMovie("contact.swf");
}
PLEASE HELP>>>>>sorry i know its alot.
Help With Scroll Panel
Hi all,
Can someone please help me with the scrolling panel tutorial?
I have completed the tutorial and it all works correctly. The scroll is smooth, and the mouseover produces a more coloured version of the button/pic.
I need to export the scroll.swf and import it into my mainpage.swf. And I've done this with "this.loadMovie('scroll.swf')". However the problem is that now when the scrolling is kind of blocky, and the buttonover state doesnt work too well.
Here is a link to show how it doesnt work...http://tbone1.awardspace.com/mainpage.html
And here is a link to show how it works on its ownhttp://tbone1.awardspace.com/scroll.swf
And here is the actionscript from the scroll.swf file
Code:
panel.onRollOver = panelOver;
function panelOver() {
this.onEnterFrame = scrollPanel;
delete this.onRollOver;
}
var b = stroke.getBounds(_root);
function scrollPanel() {
if(_xmouse<b.xMin || _xmouse>b.xMax || _ymouse<b.yMin || _ymouse>b.yMax) {
this.onRollOver = panelOver;
delete this.onEnterFrame;
}
if(panel._y >= 121) {
panel._y = 121;
}
if(panel._y <= -5) {
panel._y = -5;
}
var ydist = _ymouse - 220;
panel._y += -ydist / 10;
}
Has anybody got any ideas why this doesnt work or how to fix it?
Thanks
Scroll Panel Text
I am trying to get text to load into text fields in a movie clip, that is used inside a scroll panel.
Here is the setup..
(In Movie Clip: Menu2)
Frame 2:
There is a button called Wine. When it is clicked it loads variables from a text file "wine.txt" and it moves to Frame 10 where there are two text boxes; one that displays the variable "name" and the other displays the variable "date"
Below the text fields is a scroll panel that uses a movie clip called "ListBG"
(Movie Clip: ListBG)
It is a blue background with 3 text boxes, with black lines in between. This is so i can have a long scrollable list, of
Name--------Sale Price-----Regular Price
Each text box uses a variable like LNS, LSP, LRP
Now the problem...
In my loadVariable() statement... how should i get the information into this movie clip?
Since the ListBG is loaded through the scroll panel from the libary and is no where else on the stage.. i dont know how to send the information from a text file into the text boxes in ListBG...
Thank you so much!
God Bless you.
SCROLL PANEL Question
I am trying to do the following. I have set of the buttons on the left. I want to set up a scroll panel on the right and make it so "on the press" of a different button it would display a different content in the scroll panel. Is that possible? Content in the scroll panel can be taken from an HTML file or can be a movie clip in the Flash file.
Can you please help me to figure this out?
Scroll Panel Question
hey
i am still in the womb here but yesterday i followed a tutorial and was able to convert gifs to buttons, then use those buttons in a scrolling panel..which will be very useful for a site i am building... except... i need each of those individual thumbnail buttons that i place in the panel to link to an html page when i pop this into dreamweaver. i have the site set up in frames and it is image intensive thus the need for scrolling thumbnails....to link to bigger images that come up in another frame. i know how to use static thumnails and have them link in the frames. i have that set up..but this panel would solve a lot of real estate probs for me.
any help would be greatly appreciated.
My Scroll Panel Looks With Less Color... Why?
Hi there:
I wonder why my control panel contain (text as example) looks softer when I run my SWF. For example, I have set #000000 or my black appearance, but it shows like a #333333 or even less... also the pictures contained in the scroll panel.. why ? I changed all the "Blend options" but nothing to do with it... it must be another thing... Please help me with this ASAP, I am in a hurry about time... ! thanx a lot in advance,
Scroll Panel Not Working
Hi, I am not sure which action script version I am using, sorry, but here it goes...
I have the following action script:
and its giving me the following errors:
Location: Scene 1, Layer 'action', Frame 1, Line 11
Description: 1120: Access of undefined prperty _xmouse,
Source: if(_xmouse<b.xMin || _xmouse>b.xMax || _ymouse <b.yMin || _ymouse>b.yMax) {
Location: Scene 1, Layer 'action', Frame 1, Line 11
Description: 1120: Access of undefined prperty _xmouse,
Source: if(_xmouse<b.xMin || _xmouse>b.xMax || _ymouse <b.yMin || _ymouse>b.yMax) {
Location: Scene 1, Layer 'action', Frame 1, Line 11
Description: 1120: Access of undefined prperty _ymouse,
Source: if(_xmouse<b.xMin || _xmouse>b.xMax || _ymouse <b.yMin || _ymouse>b.yMax) {
Location: Scene 1, Layer 'action', Frame 1, Line 11
Description: 1120: Access of undefined prperty _ymouse,
Source: if(_xmouse<b.xMin || _xmouse>b.xMax || _ymouse <b.yMin || _ymouse>b.yMax) {
Location: Scene 1, Layer 'action', Frame 1, Line 24
Description: 1120: Access of undefined prperty _xmouse,
Source: var xdist = _xmouse - 185;
Location: Scene 1, Layer 'action', Frame 1, Line 8
Description: 1120: Access of undefined prperty _root,
Source: var b = stroke.getBounds(_root);
Location: Scene 1, Layer 'action', Frame 1, Line 11
Description: 1120: Access of undefined prperty _ymouse,
Source: if(_xmouse<b.xMin || _xmouse>b.xMax || _ymouse <b.yMin || _ymouse>b.yMax) {
HERE IS MY ACTION SCRIPT
HERE IS MY FILE
http://www.netchat.co.za/web/flash5.fla
I used the following tutorial http://www.gotoandlearn.com/ - Scrolling Thumbnail Panel.
Please help as to what I should do to fix it please.
CODE:
panel.onRollOver = panelOver;
function panelOver() {
this.onEnterFrame = scrollpanel;
delete this.onRollOver;
}
var b = stroke.getBounds(_root);
function scrollpanel() {
if (_xmouse<b.xMin || _xmouse>b.xMax || _ymouse<b.yMin || _ymouse>b.yMax) {
this.onRollOver = panelOver;
delete this.onEnterFrame;
}
if(panel._x >= 31.4) {
panel._x = 89;
}
if(panel._x <= -245.7) {
panel._x = -245.7;
}
var xdist = _xmouse - 185;
panel._x += -xdist / 7;
}
Help With Lee's Scroll Panel Tutorial..
I have followed the Tutorial to a Tee, only difference is my stage size, and my thumbnail sizes. That's it.
http://redolent.net/stuff/gallery_lina.html that's the file right there, and here's my fla file..
http://redolent.net/stuff/gallery_lina.fla.
My issue with this tutorial isn't until the end part of it where you have to make it so that it doesn't scroll forever to the left and then forever to the right. I can't get it to stop. It just keeps scrolling on forever.
Here's my code:
Code:
panel.onRollOver = panelOver;
function panelOver() {
this.onEnterFrame = scrollPanel;
delete this.onRollover;
}
var b = stroke.getBounds(_root);
function scrollPanel() {
if (_xmouse<b.xMin || _xmouse>b.xMax || _ymouse<b.yMin || _ymouse>b.yMax) {
this.onRollOver = panelOver;
delete this.onEnterFrame;
}
if (panel._x>= 677) {
panel._x = 677;
}
if (panel._x<=-15) {
panel._x = -15;
}
var xdist = _xmouse-333;
panel._x += -xdist/7;
}
I'm not sure what I'm doing wrong..help please..
Someone Please Help Me... Scroll Panel With Preloader
My page uses a scroll panel like the one lee has done, what type of preloader can I use with this?? as everytime I move the content from frame 1 the scroll panel fails to work.
How can I get around this?
Thanks
Ricky55
Sticky Scroll Panel
I have a website that uses a scroll bar like the one Lee did in his tutorial a while back.
You can see the page here: (click on tranquility mattresses)
http://www.idahobeds.co.uk/home.html
The swf that contains the panel is loaded into the main swf and this is where the problem comes from. With the help of this forum I modified the code to get the panel working but its still sticky and sometimes it just doesn't spring into life properly.
If I access the swf on its own (without loading into the main swf) it scrolls fine.
Is there any way I can improve this?
My code currently looks like this:-
Thanks
Code:
stop();
//Scrolling Panel Actions
var home:MovieClip = panelStroke_mc;
//Scrolling Panel Actions
panelMovie_mc.onRollOver = panelOver;
function panelOver() {
this.onEnterFrame = scrollPanel;
delete this.onRollOver;
}
var b = panelStroke_mc.getBounds(home);
function scrollPanel() {
if(home._xmouse<b.xMin || home._xmouse>b.xMax || home. _ymouse<b.yMin || home. _ymouse>b.yMax) {
this.onRollOver = panelOver;
delete this.onEnterFrame;
}
var xdist = _xmouse -333;
panelMovie_mc._x += -xdist / 18;
if(panelMovie_mc._x >= -190) {
panelMovie_mc._x = -190;
}
if(panelMovie_mc._x <= -827) {
panelMovie_mc._x = -827;
}
}
Flash Video Looks Great In Browser Preview But Not On Published Page
I created a flash video in Flash 8 imported it into Dreamweaver. It previews great in Browsers, but when I posted to the web it does not appear. What am I doing wrong? I have attached the code.
Attach Code
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="382" height="291" id="FLVPlayer">
<param name="movie" value="FLVPlayer_Progressive.swf" />
<param name="salign" value="lt" />
<param name="quality" value="high" />
<param name="scale" value="noscale" />
<param name="FlashVars" value="&MM_ComponentVersion=1&skinName=Halo_Skin_3&streamName=../movies/Sequence02&autoPlay=false&autoRewind=true" />
<embed src="FLVPlayer_Progressive.swf" flashvars="&MM_ComponentVersion=1&skinName=Halo_Skin_3&streamName=../movies/Sequence02&autoPlay=false&autoRewind=true" quality="high" scale="noscale" width="382" height="291" name="FLVPlayer" salign="LT" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>
Scroll Panel, Srolling Multiple MC's?
I am trying to have the scrollpanel scroll several MC's based on user input...The first frame of my movie will have a series of checkboxes...Based on the selections when submitted the selected MCs would be stacked in the panel...Such that if the user picks 1, 3, and 4...MCs 1, 3, and 4 would be stacked in the scrollpanel. Is this possible?
Making Scroll Panel For A Lot Text
First let me say, THANK YOU, THANK YOU, THANK YOU to everyone for all of your help over the months and months. I finally built my first entire swish site and got over the fear of placing it on the internet.
Now I need help trying to figure out how to make a scroll window for a very long text. I've already figured out how to make the text move, up and down when placing your pointer on the text but I still can't figure out how to first of all make a scroll bar and then how to place all of my text in the window only having the rest of the text seen when scrolling. As of right now all of my text is showing, running straight through the window that I made all the way to the bottom. Can anyone help? I can send my file to someone if needed so I can learn how to do it, after they actually fixed my scroll panel correctly.
Please take a look at my first swish site and yes I realized I have a type-o, I'll will fix when I get home. Thank you to everyone, it has taken me 8 months to finally figure this much out. www.cindesign.com
Rollover Arrows In Scroll Panel
i've figured out how to make the up and down arrows in a scroll panel act on rollover. but theres a slight delay before the field begins its scroll.. the action script on the scroll pane is pretty complex for me so im not exactly sure what i need to change to get it to start the scroll as soon as i rollover the arrow. any help would be appreciated.
thanks
Components Inside Scroll Panel
What do i have to do to make input text or combobox component work into the scroll panel component.
Everything is working find if i use my own component but i need to use the one by macromedia.. But nothing is displaying.
So i figured out there is probably something to make it work...
Do you know what it is.
Buttons Not Working In Scroll Panel...
Hello,
Am using Flash 8, and am still quite new to flash in general, however I thought this question was better for here rather than the newbie section....
I have created a scrolling button thumbnail bar. The buttons don't work ... I presume this is because they are within a movie clip? I used some action scripting from a tutorial which I somewhat understand but am too new to actionscript to know what to do/alter. I think I'm a bit over my head with this... Here is the script I am using....
panel.onRollOver = panelOver;
function panelOver () {
this.onEnterFrame = scrollPanel;
delete this.onRollOver;
}
var b =stroke.getBounds(_root);
function scrollPanel() {
if(_xmouse<b.xMin || _xmouse>b.xMax || _ymouse<b.yMin || _ymouse>b.yMax) {
this.onRollOver = panelOver;
delete this.onEnterFrame;
}
if(panel._y >= -40) {
panel._y = -40;
}
if(panel._y <= -2136) {
panel._y = -2136;
}
var ydist = _ymouse - 146.55;
panel._y += -ydist / 7;
}
Anyway, if you have any suggestions, comments, or even if you could direct me to some other, perhaps simpler tutorials for scrolling panels with usable buttons, I would really, really appreciate it!
Thank you in advance,
franny
Flash 2004 MX Scroll Panel Help
I am using the scroll Panel component from 2004 MX and it seems that sometimes the scroll panel spills out the text and the actual scroll bar is gone. It seems to only happen when I look at the site on a PC. IT does not happen very often but it happens. What can I do to prevent the text from spilling over??
Please help Attached is a jpg of waht i am talking aobut.
Simple Scroll Panel Problem
I am using a scroll pane instance in which I am loading an external swf.
When I test the movie from within the Flash MX program it works fine.. but when I export it and try to use it outside the Flash program it exhibits an oddness...
Where the scroll pane ends on top and bottom, the external clip I loaded should lose visibility oursite the viewable scrollpane area... and it does so within the test movie function of the main flash program. But on its own outside the program, the scroll works but the entire external swf image is now viewable ..although it can be scrolled.. it does not hide what is outside the pane area....
What am I doing wrong?
Want A Challenge? A Scroll Panel Inside A Mc, Fix
Here's the site: http://www.clay.bellmor.com/PFC
Here's the fla: http://www.clay.bellmor.com/PFC/resized.fla
I have a couple things going on in my movie that's not working correctly.
the main problem is that I have a drawer that has a tooltip. When the drawer is clicked a thumbnail panel comes out of it. Problem is that since the panel is inside the drawer mc, the tooltip is attached to it and it won't scroll.
I hope someone can figure it out, I'm new to Flash and I'm quite lost.
Keep in mind that the panel will also be placed inside three other drawers, which is why i figured i would nest it inside the drawer in the first place.
good luck and thank you!
Scroll Panel With External Images
First Id like to say this a great site!
I want do exact what the tutorial but images to be loaded from axml file and i still want them to be buttons.
Any help would be great!
Thx all!
Scrolling Panel Auto Scroll
Any way to make the thumbnails start scolling when loaded?
Just a slow speed - lets people know theres more to it.
Many thanks in advance!
Changing The Color Of Scroll Panel Component
I was wondering if anyone could help me out with this. I'm using MX2004 and I can't figure out how to change the skin on the Scroll Panel component. Currently when you publish it the scroll buttons turn green. I followed all the instructions on changing themes and skins in the flash help but it is not working. Please Help.
Creating A Scroll Panel Without Handle Buttons
Dear friends.. I need to create a sort of scroll panel, but WITHOUT the typical arrow buttons... it should move right and left only with the mouse movement... can anyone help me how to make it ? any tutorial ? I have been looking for this but I only find the typical scroll panels... I will appreciate your help, thanks in advance,
Stop Scroll Panel When Mouse Stops.
Hey All,
I am making a scroll panel which scrolls perfect. I was wondering if there is a way to make the panel stop moving when the mouse stops moving? If anyone could point me in the right direction that would be great.
Thanks
F
http://www.francomichienzi.com/test4
Code:
stop();
small_pictures.onRollOver = panelOver;
function panelOver() {
this.onEnterFrame = scrollPanel;
delete this.onRollOver;
}
var b = stroke.getBounds(_root);
function scrollPanel() {
var xdist = _xmouse-480;
_root.small_pictures._x += Math.round(-xdist/40);
if (_xmouse<b.xMin || _xmouse>b.xMax || _ymouse<b.yMin || _ymouse>b.yMax) {
this.onRollOver = panelOver;
delete this.onEnterFrame;
}
if (small_pictures._x>=40) {
// This value is always the same.
small_pictures._x = 40;
}
if (small_pictures._x<=-560) {
// This value will change depending on the number of small pictures.
small_pictures._x = -560;
// Look below for correct values.
}
}
[CS3/AS2] Thumbnail Panel To Auto Scroll Vertical On Mouse Over
I trying to make a gallery thumbnail panel to auto scroll vertical, I did see the great video on the site gotoandlearn called "Scrolling Thumbnail Panel" and base most of my code on it. But this one scroll horizontal on mouse over and is base on Root X of the mouse position.
My scroll movieclip is deep into a other one and I am trying to make it scroll vertical so far its not really scrolling well see the include fla file. :S
This is the code I am trying to use:
Code:
stop();
hiddengalbuttons_mc.onRollOver = panelOver;
function panelOver() {
this.onEnterFrame = scrollPanel;
this._parent.gall_but.gotoAndPlay("s1");
delete this.onRollOver;
}
var b = stroke.getBounds(this);
function scrollPanel() {
if (_xmouse<b.xMin || _xmouse>b.xMax || _ymouse<b.yMin || _ymouse>b.yMax) {
this.onRollOver = panelOver;
this._parent.gall_but.gotoAndPlay("s2");
delete this.onEnterFrame;
}
if (this._parent.gall_but.butt_gall.photo._y<=0) {
this._parent.gall_but.butt_gall.photo._y = 0;
}
if (this._parent.gall_but.butt_gall.photo._y>=-411.0) {
this._parent.gall_but.butt_gall.photo._y = -411.0;
}
var ydist = _ymouse-5;
this._parent.gall_but.butt_gall.photo._y += Math.round(-ydist/7);
}
hiddengalbuttons_mc is use to make the thumbnail panel slide in and out on mouse over that all is working so far.
But like I only just learn this mouse related actionscript I am kind of clueless what I am doing wrong
Please please help!
Also is there a way to make this more dynamic?
Scroll Panel: Not Scrolling Smoothly / Cont. After Mouse Off
I have two flash files
flash4.fla with scrolling panel with pics in it - it keeps scrolling as soon as I take the mouse of the panel onto the rest of the flash file.
flash3.fla, created an empty movie clip, and inbeded an actioncript 'loadMovie('flash5.swf',this,'GET');'; then draged the movie clip on to the stage. - It works fine, exept that it does not scroll smoothly, and has difficulty.
What do you suggest I do to fix this, I would like to keep the scrolling panel as a separate movie that just loads rather than part of a movie.
http://www.netchat.co.za/web1/flash/flash3.fla scrolling panel movie clip load in this one
http://www.netchat.co.za/web1/flash/flash4.fla scrolling panel included
http://www.netchat.co.za/web1/flash/flash5.fla scrolling panel
Regards
Modifying Lee's Auto Scroll Thumbnail Panel Tutorial
In Lee's tutorial, there is a left and right end point to the scroll panel where the scroll effects stops.
Is there a way to modify this tutorial so that the thumbnail buttons would appear to continuously scroll by repeating? Seems that with a panoramic photo, this could give the appearance of a continous 360 degree scroll (without all the lens-bending effects).
Thanks,
Brandon
Scroll Bar? Scroll Panel? How?
I wanted to place a .jpg or swf file in a scroll panel, how do I do it?? Have tried reading the flash help, but still don't understand, pls help!!
Issit possible to display a doc or pdf file in there too??
thanx alot!!
[CS3] Pop-up Video Control Panel
I've seen on the gm corporate site a little video and it has a pop up flash control panel. I know flash has ready to insert video control skins, but I can't find one that appearers when you roll over the video.
Want A Challenge? Multilayer Scroll Panel Inside Mc With Attached Tooltip
I have a couple things going on in my movie that's not working correctly.
the main problem is that I have a drawer that has a tooltip. When the drawer is clicked a thumbnail panel comes out of it. Problem is that since the panel is inside the drawer mc, the tooltip is attached to it and it won't scroll.
I hope someone can figure it out, I'm new to Flash and I'm quite lost.
Keep in mind that the panel will also be placed inside three other drawers, which is why i figured i would nest it inside the drawer in the first place.
Here's the site: http://www.clay.bellmor.com/PFC
Here's the fla: http://www.clay.bellmor.com/PFC/resized.fla
good luck and thank you!
Admin Panel For Video Site?
Ok so I just got a job for a guy who actually posted a topic on this board...too lazy to go and look it up.
Anyway, it's basically a site where you can view a ton of videos (it's an award site thingy) so i'm making it load/stream external movies.
Is there a way to make a video gallery type thing that allows the admin to change and add videos? Any ideas?
Minimize The Panel & Sound & Video Stops
Hi!
I made an swf panel with which it's possible to watch movies. The problem is that when I press the panel's minimize arrow (beside the panel's name), the video and the sound stops.
Is there any way to minimize the panel and let the video and the sound keep playing?
My e-mail is vick_dini@hotmail.com
Hope you can help.
Multiple XML Video Player With Scrolling Panel
Hi all...
I'm working on building a XML video player with a scrolling thumbnail panel.
After going through the great tutorials here and searching through some very helpful forum posts (I'm sure some of you will recognize your contributions!), I've been able to piece together a player that I'm pretty happy with... but now I'm stuck on one last detail.
Right now, the file is set up so that my player plays an intro video (not from XML) and loads 14 thumbnails from the first XML file - entertainment_videos.xml. So far, so good... all the buttons work, the panel scrolls fine, and the videos play as they should.
When I click the button to load the second XML - news_videos.xml, which contains only 6 thumbnails - it replaces the first 6 thumbs in my panel, and continues to display the last 8 from my first XML. Again, all the buttons work fine, but when I choose the second XML list, I don't want the thumbs/videos from the first to be displayed.
I've messed around with adding a panel.removeMovieClip function in various places in the script, but that hasn't seemed to do anything yet.
I also tried using a panel.unloadMovie function in the entertainment and news button functions... When I run the debugger, I can see that it deletes the thumbnails the way I'd like it to, but it locks the scroll panel so I can only see the first 5 thumbnails.
Does anyone have any suggestions for a struggling actionscript newbie on how to make this work? Am I on the right track?
Thanks!
Sean
Code:
var nc:NetConnection = new NetConnection();
nc.connect(null);
var ns:NetStream = new NetStream(nc);
theVideo.attachVideo(ns);
choose._alpha = 100;
// start playing demo intro video
ns.play("flv/demo_open.flv");
// video controls
rewindButton.onRelease = function() {
ns.seek(0);
}
playButton.onRelease = function() {
ns.pause();
}
// scrubber functions
var videoInterval = setInterval(videoStatus,100);
var amountLoaded:Number;
var duration:Number;
ns["onMetaData"] = function(obj) {
duration = obj.duration;
}
function videoStatus() {
amountLoaded = ns.bytesLoaded/ns.bytesTotal;
loader.loadbar._width = amountLoaded * 260;
loader.scrub._x = ns.time / duration * 240;
}
var scrubInterval;
loader.scrub.onPress = function() {
clearInterval(videoInterval);
scrubInterval = setInterval(scrubit,10);
this.startDrag(false,0,this._y,240,this._y);
choose._alpha = 0;
}
loader.scrub.onRelease = loader.scrub.onReleaseOutside = function() {
clearInterval(scrubInterval);
videoInterval = setInterval(videoStatus,100);
this.stopDrag();
}
function scrubit() {
ns.seek(Math.floor((loader.scrub._x/240) * duration));
}
// panel selection
entertainment.onRelease = function() {
vlist.load("entertainment_videos.xml");
panel._x = 0;
}
news.onRelease = function() {
vlist.load("news_videos.xml");
panel._x = 0;
}
var vlist:XML = new XML();
vlist.ignoreWhite = true;
vlist.load("entertainment_videos.xml");
vlist.onLoad = function() {
var videos:Array = this.firstChild.childNodes;
var thumbWidth:Number = 100;
var spacing:Number = 10;
for(i=0;i<videos.length;i++) {
var thumb = panel.createEmptyMovieClip("thumb"+i, i);
thumb._x = i * (thumbWidth + spacing);
thumb.videoURL = videos[i].attributes.url;
thumb.videoDesc = videos[i].attributes.desc;
thumb.videoCredits = videos[i].attributes.credits;
thumb.videoAward = videos[i].attributes.award;
var img = thumb.createEmptyMovieClip("img", 1);
img.loadMovie(videos[i].attributes.thumb);
thumb._alpha = 60;
thumb.onRollOver = function() {
this._alpha = 100;
alt.text = this.videoDesc;
}
thumb.onRollOut = function() {
this._alpha = 60;
alt.text = "";
}
thumb.onRelease = function() {
ns.play(this.videoURL);
desc.text = this.videoDesc;
credits.text = this.videoCredits;
award.text = this.videoAward;
choose._alpha = 0;
}
}
}
// scroll bar
panel.onRollOver = panelOver;
function panelOver() {
this.onEnterFrame = scrollPanel;
delete this.onRollOver;
}
var b = stroke.getBounds(_root);
function scrollPanel() {
if(_xmouse < b.xMin || _xmouse > b.xMax || _ymouse < b.yMin || _ymouse > b.yMax) {
this.onRollOver = panelOver;
delete this.onEnterFrame;
}
if(panel._x >= 0) {
panel._x = 0;
}
var panelRight = - (panel._width - Stage.width);
if(panel._x <= panelRight) {
panel._x = panelRight;
}
var xdist = _xmouse - (Stage.width / 2);
panel._x += -xdist / 10;
}
Slideshow 3 By Todd
I have slidesho3 made my Todd :D
I'm trying to add text for every picture but I don't know exactly how
So this is how my stupid mind is working after 22 hours without sleep :D
Here is the actionscript:
Code:
import mx.transitions.Tween;
import mx.transitions.easing.*;
var urls:Array = new Array;
var fTime:Array = new Array;//holds Fade Time
var dTime:Array = new Array;//holds Delay Time
var myText:Array = new Array;
var currentImage:Number = 0;
holder2._alpha = 0;
var x:XML = new XML ();
x.ignoreWhite = true;
var images:XML = new XML();
images.ignoreWhite = true;
images.load("images.xml");
images.onLoad = function() {
var photos:Array = this.firstChild.childNodes;
for (i=0; i<photos.length; i++) {
urls.push(photos[i].attributes.src);
fTime.push(photos[i].attributes.f);
dTime.push(photos[i].attributes.d);
myText.push(photos[i].attributes.txt);
}
holder1.loadMovie(urls[currentImage]);
delayIt1();
};
function delayIt1() {
var tw1:Tween = new Tween(holder1,"_alpha",None.easeNone,100,100,dTime[currentImage],true);
currentImage++
if (currentImage >= urls.length) {
currentImage = 0;
}
holder2.loadMovie(urls[currentImage]);
tw1.onMotionStopped = function() {
fadeIt1();
}
}
function fadeIt1() {
var tw2:Tween = new Tween(holder2,"_alpha",None.easeNone,0,100,fTime[currentImage],true);
tw2.onMotionStopped = function() {
delayIt2();
}
}
function delayIt2() {
var tw3:Tween = new Tween(holder2,"_alpha",None.easeInOut,100,100,dTime[currentImage],true);
currentImage++;
if (currentImage >= urls.length) {
currentImage = 0;
}
holder1.loadMovie(urls[currentImage]);
tw3.onMotionStopped = function() {
fadeIt2();
}
}
function fadeIt2() {
var tw4:Tween = new Tween(holder2,"_alpha",None.easeNone,100,0,fTime[currentImage],true);
tw4.onMotionStopped = function() {
delayIt1();
}
}
myStageText.text = myText;
trace(myText);
And here is the XML code:
Code:
<?xml version="1.0" encoding="iso-8859-1"?>
<images>
<image src="images/001.jpg" f="3" d="4" txt="my text 01" />
<image src="images/002.jpg" f="3" d="4" txt="my text 02" />
<image src="images/003.jpg" f="3" d="4" txt="my text 03" />
<image src="images/004.jpg" f="3" d="4" txt="my text 04" />
<image src="images/005.jpg" f="3" d="4" txt="my text 05" />
<image src="images/006.jpg" f="3" d="4" txt="my text 06" />
<image src="images/007.jpg" f="3" d="4" txt="my text 07" />
<image src="images/008.jpg" f="3" d="4" txt="my text 08" />
<image src="images/009.jpg" f="3" d="4" txt="my text 09" />
<image src="images/010.jpg" f="3" d="4" txt="my text 10" />
<image src="images/011.jpg" f="3" d="4" txt="my text 11" />
</images>
Please help a man with to much work to do in a short period of time :lol:
Thanks
Paul
Unable To Scroll Video Until Video Plays In Entirety
Hi all.
I'm making a simple flash file to play a flv off a server. I'm using a flash skin with seekbar but the scroll triangle on the seek bar doesnt show up until the movie has played in its entirety. I would like to have it show up as soon as the movie starts playing.
Here's the steps I did using Flash Professional 8 on a Mac
import video (set the url path)
custom skin URL (typed in path) to SteelExternalPlaySeekMute.swf
My component inspector looks like this
autoplay - true
autorewind - true
autosize - true
buffertime - 0.1
contentpath - the url of the file
cuepoints - none
islive - false
maintainaspectr - true
skin - url of the skin
skinautohide - true
totaltime - 0
volume - 100
so what do I have to do to make the ability to scroll the video once the video starts?
I've tried this with numerous skins and all have the same results
TIA
- Pete
Todd Dominey's Slideshow
I am using Todd Dominey's slideshow. I would like to be able to choose between 2 slideshows. I have 2 buttons, the first start the fisrt slideshow, and the second one trigger the second slide show. But for somekind of reason, if I start the first slideshow, then the 2nd one, and do that like 2 or 3 times, it get all messed up.
http:www.e-novative.ca/slideshow/
here is the code of my index :
Code:
stop();
_root.createEmptyMovieClip("content_mc",1);
_root.attachMovie("button1","but1",2);
_root.attachMovie("button2","but2",3);
_root.but1._x = 5;
_root.but1._y = 5;
_root.but2._x = 50;
_root.but2._y = 5;
var slide:String;
_root.but1.onRelease = function(){
slide = "slide1.swf";
reload();
}
_root.but2.onRelease = function(){
slide = "slide2.swf";
reload();
}
function reload(){
_root.content_mc.removeMovieClip();
_root.createEmptyMovieClip("content_mc",1);
loadMovie(slide,"content_mc");
}
here is the code of my slideshow 1 (slide showshow 2 is exactly the same code, except for the XML) :
Code:
/****************************/
/* Crossfading slide show */
/* Author: Todd Dominey */
/* http://whatdoiknow.org */
/* http://domineydesign.com */
/****************************/
// set random # variables - each must be 0 for first 'while' loop below
var randomNum = 0;
var randomNumLast = 0;
// parent container
var container_mc = this.createEmptyMovieClip("container",0);
// movie clip containers
container_mc.createEmptyMovieClip("loader1_mc",2);
container_mc.createEmptyMovieClip("loader2_mc",1);
// preload watcher
this.createEmptyMovieClip("watcher_mc",100);
// load xml
images_xml = new XML();
images_xml.ignoreWhite=true;
images_xml.onLoad = parse;
images_xml.load("images.xml");
function parse(success) {
if (success) {
imageArray = new Array();
var root = this.firstChild;
_global.numPause = Number(this.firstChild.attributes.timer * 1000);
_global.order = this.firstChild.attributes.order;
_global.looping = this.firstChild.attributes.looping;
_global.fadetime = Number(this.firstChild.attributes.fadetime);
_global.xpos = Number(this.firstChild.attributes.xpos);
_global.ypos = Number(this.firstChild.attributes.ypos);
var imageNode = root.lastChild;
var s=0;
while (imageNode.nodeName != null) {
imageData = new Object;
imageData.path = imageNode.attributes.path;
imageArray[s]=imageData;
imageNode = imageNode.previousSibling;
s++;
}
// place parent container
container_mc._x = _global.xpos;
container_mc._y = _global.ypos;
// parse array
imageArray.reverse();
imageGen(imageArray);
} else {
trace('problem');
}
}
// depth swapping
function swapPlace(clip,num) {
eval(clip).swapDepths(eval("container_mc.loader"+num+"_mc"));
}
function loadImages(data,num) {
if (i==undefined || i == 2) {
i=2;
createLoader(i,data,num);
i=1;
} else if (i==1) {
createLoader(i,data,num);
i=2;
}
}
function createLoader(i,data,num) {
thisLoader=eval("container_mc.loader"+i+"_mc");
thisLoader._alpha=0;
thisLoader.loadMovie(data[num].path);
watcher_mc.onEnterFrame=function () {
var picLoaded = thisLoader.getBytesLoaded();
var picBytes = thisLoader.getBytesTotal();
if (isNaN(picBytes) || picBytes < 4) {
return;
}
if (picLoaded / picBytes >= 1) {
swapPlace("container_mc.loader2_mc",1);
alphaTween = new mx.transitions.Tween(thisLoader, "_alpha", mx.transitions.easing.Regular.easeOut,0,100,_global.fadetime,true);
timerInterval = setInterval(imageGen,_global.numPause,data);
delete this.onEnterFrame;
}
}
}
function imageGen(data) {
// random, or sequential?
if (_global.order=="random") {
// choose random # between 0 and total number of images
while (randomNum == randomNumLast) {
randomNum = Math.floor(Math.random() * data.length);
trace(randomNum);
}
loadImages(data,randomNum);
randomNumLast = randomNum;
} else if (_global.order=="sequential") {
// start at 0, increment to total number of images, then drop back to zero when done
if (p==undefined || p==data.length && _global.looping=="yes") { p=0; } else { break; }
loadImages(data,p);
p++;
} else {
trace ("order attribute in xml isn't correct - must specify either 'random' or 'sequential'");
}
clearInterval(timerInterval);
}
stop();
In my function reload(), I tried to remove the content_mc movieclip to reset the variables, and to make a new loadmovie, but it doesn't fix the problem
Working Great In The Swf Not So Great In The Html
Dear all,
Here's the story of a simple menu: when your mouse is over the menu button, the panel with the menu choices appears and your mouse can travel around the panel. As soon as you leave the panel with your mouse, the panel disappears.
This is happening in the swf:
http://aracelid.110mb.com/test/menu_ee.swf
But when you go to the html and your mouse goes out of the panel, a lot of times the panel does not disappear:
http://aracelid.110mb.com/test/menu_ee.html
What is going wrong?
(the fla file in case is need it: http://aracelid.110mb.com/test/menu_ee.fla)
My publishing settings in the HTML tab:
Flash Only
Match Movie.
Loop
Display menu
High quality
Transparent without windows
Default
Default
Alignment center center
Thanks a lot in advance!!
|