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








Problem Adding Scrollbar Swf To Web Page


I've successfully created a dynamic text field with a Flash MX scrollbar component that loads external text. Now, after exporting it as a Flash movie, when I insert the swf file on the Dreamweaver MX web page, the text does not appear or scroll. All that is there is the scrollbar component and the text field. Can anyone help?

Here's the Flash MX code that I used:
loadVarsText = new loadVars();
loadVarsText.load("pjtfhome.txt");
//assign a function which fires when the data is loaded:
loadVarsText.onLoad = function(success) {
if (success) {
trace("done loading");
//Now that we know the data is loaded,
//set the text content of the Text Field
//with the instance name "scroller_home" equal to the
//contents of the variable
scroller_home.html=true;
scroller_home.htmlText=this.var1;
} else {
trace("not loaded");
}
};




FlashKit > Flash Help > Flash MX
Posted on: 09-01-2003, 12:24 AM


View Complete Forum Thread with Replies

Sponsored Links:

Adding A Scrollbar To A Table... Or Using Flash To Do This, To Save Space On The Page
Visit this site, might help you, help me...

http://blitzing.5u.com/index.htm

I have a table on my webpage, and ill be adding daily notes to it as I keep adding new conten1t. Now i dont want to use frames, but I do want to control the length of the page... since ill be adding two or three notes each day, the length of the page would grow a lot otherwise.

So what im asking for, in my own long-winded way =D Is if anyone can help me with a way to either add a scrollbar to the table on that website or if someone can hook me up with some flash that I could easily add daily notes to that would scroll as well. Thanks, if you need any clarification just ask... In case this wasnt too clear =D

Also you can email me at pre_engin@hotmail.com.

View Replies !    View Related
Help Please: Adding A Scrollbar =/
I'm trying to adding a scrollbar in my Flash site, but it doesn't seen to be working. I tried searching but couldn't find anything on this...

Here's my site so far:
http://www.canucksfanzone.com/images/actual site 8.fla

Here is what I am trying to put in the blank blue space:
http://www.canucksfanzone.com/images/theteam.jpg


As you can see, the image above is clearly bigger (in length) than the actual site. Since I don't want to change the size of the movie, how can I use a scrollbar to "surround" the image?

I'm currently using Flash MX Pro 2004

Thanks a lot in advance guys!

View Replies !    View Related
Adding A ScrollBar
Hi,

I've made a scrolling window that scrolls by two arrows, What I want to do is add a scrolling bar to it. Is there a way through Action Scripttingg to add the scrollBar?

I've attached the file here

Thanks

View Replies !    View Related
[CS3] Adding A Scrollbar
I have a flash book but I have yet to see anything regarding a scrollbar add. I've seen the IUScrollbar component but wasn't sure if that is the same nor how it worked. How do I add a scrollbar to a text section? And, is it possible, to create my own scrollbar to use?

View Replies !    View Related
Help Please: Adding A Scrollbar =/
Hey everyone, it's me again

I'm trying to adding a scrollbar in my Flash site, but it doesn't seen to be working. I tried searching but couldn't find anything on this...

Here's my site so far:
http://www.canucksfanzone.com/images/actual site 8.fla

Here is what I am trying to put in the blank blue space:
http://www.canucksfanzone.com/images/theteam.jpg


As you can see, the image above is clearly bigger (in length) than the actual site. Since I don't want to change the size of the movie, how can I use a scrollbar to "surround" the image?


Thanks a lot in advance guys!

View Replies !    View Related
Help Please: Adding A Scrollbar =/
Hey everyone, it's me again

I'm trying to adding a scrollbar in my Flash site, but it doesn't seen to be working. I tried searching but couldn't find anything on this...

Here's my site so far:
http://www.canucksfanzone.com/images/actual site 8.fla

Here is what I am trying to put in the blank blue space:
http://www.canucksfanzone.com/images/theteam.jpg


As you can see, the image above is clearly bigger (in length) than the actual site. Since I don't want to change the size of the movie, how can I use a scrollbar to "surround" the image?


Thanks a lot in advance guys!

View Replies !    View Related
Adding Scrollbar To A Table In DW
I'm trying to create a table with a scrollbar when the text overflows the table. However, it never worked for me using CSS. Can someone list the procedures to make it work? Thanks.

View Replies !    View Related
Problem Adding A Scrollbar
OK first off I'm verry new to Flash. I've been working with it a few day's trying to edit a template. I have figured out how to change the information for the most part but, I am trying to add scrollable text to a page. I have flash8 and if I open a new project I can creat a text box, add a scrollbar, test movie and it works like a champ. If I go to where I want the scrollable text in my template site and do the same thing the text show's and a blank bar show's. I can't do anything with what is suppse to be the scroll bar. If I highlight the text I can scroll it with my mouse that way but It needs to be an actuall scroll bar for obvious reasons. Everything ive read about doing this is a bit over my head with action scripts and all that. I guess I can see the advantage of having it import the text from a txt file as you can change it easily but I don't think the info will really change. Can anyone tell me what I am doing wrong or point me to some good tutorials that a newbie can follow!

I did read something about UltimateScroller. Would you recomed this? I hate to have to spend more money for something that I can already do, but if I can't figure this out soon im going to go nutz!

thanks in advance for any info you can give me!!!

View Replies !    View Related
[CS3] Automatically Adding Scrollbar?
I use a full screen flash. With scale "no border", but the problem is, that some of the contents sometimes is "under" the screen border bottom depending on the screen resolution. How do I make flash automatically insert a scrollbar at the right, when the flash file is cropped?
published: http://voresbiks.dk/voresbiks.html
flash: http://voresbiks.dk/voresbiks.fla

View Replies !    View Related
Adding Scrollbar Functionality
Anyone know how to add keyboard (up and down arrows) functionality to move the scroll up and down? And clicking the scroll bar area to move the scroll?

View Replies !    View Related
Adding Images To ScrollBar?
Hello all.

Currently I am workin on a website for my mom's real estate business (notice the footer )

I am now working on the 'About Us' page, and would like to scroll down to view images.

Take a look at this link

http://www.geocities.com/cgreenlee88/aboutus3.html

So, how do I add images (instead of text) into a scroll bar text area?

Thank ya

View Replies !    View Related
Navigation Problem After Adding A Scrollbar
Flash 5 problem:
I just added a scrollbar to a textbox that pulls from several external text files to my site, which required me to make a Movie Clip of the textbox with the scrollbar in the same movie. Before I added this scrollbar I was using "loadVariablesNum ("flashhtml/file.txt", 0);" to call the external files. Now that I have made the clip I can only get the index.txt (the welcome message) to come up, when one of my buttons is click the text is not updated with the new file. I have tried several action scipting codes to try to pull this and I have finally gave in to asking for help.

My movie with the textbox and scrollbar in it uses the action of:

onClipEvent (load) {
this.loadVariables("flashhtml/index.txt");
scrolling = 0;
frameCounter = 1;
speedFactor = 3;
needInit = false;
}

to load the main (welcome) text... in my buttons I have used the same this.loadVariables("flashhtml/newtext.txt"); to load it and the same thing I had in the old buttons "loadVaribaleNum..." to try.. I cant seem to get this to work anyway I try.

Basically I am doing my whole site in Flash, using external text files to update it, but I cant get my buttons to update my textbox (which is dynamic).

If you need to see an example of this site you can look at http://www.freewebs.com/false/main.html that is the site, if you click on the buttons the text wont update, and thats what i need.

Thanks in advance for all your help.

View Replies !    View Related
Adding URLs To Text With Scrollbar
I am trying to add a link to some text in a text scrollbar, can anyone help?

View Replies !    View Related
Help With Adding Link To Scrollbar Component
Does any one know how to add urls to the scrollbar component.

Thanks!
-Casey

View Replies !    View Related
Adding Images To ScrollBar Component
I have a predesigned Flash website that I am trying to revamp for my project. I am using Flash MX.

There is a customized scrollbar. It calls upon a movie clip called Text Area. In this movieclip, the text for each section of the site is typed in the action frame.
How do I get pictures and buttons to show up in the scrollpane and scroll along like the text does. I have tried putting it in different spots but either it does not scroll or does not show up at all.

The fla can be found at:
http://www.ecaledonhills.com/CHE/

All help greatly appreciated.

Taz

View Replies !    View Related
Adding A Scrollbar To Flash Sample
Please can someone help me add a scrollbar to this sample jukebox actionscript.

It came with dreamweaver but there is no mention in the documentation about a scrollbar.










Attach Code

// import component classes.
import mx.controls.*;
import mx.containers.*;
import mx.controls.gridclasses.DataGridColumn;

// add components to the Stage
this.createClassObject(Label, "nowplaying_lbl", 1, {_x:35, _y:0});
nowplaying_lbl.setSize(530, 20);
nowplaying_lbl.setStyle("color", 0xFFFFFF);
this.createClassObject(MediaController, "nowplaying_mediacon", 2, {_x:30, _y:45});
nowplaying_mediacon.setSize(380, 24);
this.createClassObject(Accordion, "jukebox_acc", 3, {_x:25, _y:75});
jukebox_acc.setSize(550, 300);

// configure components on main timeline
nowplaying_lbl.autoSize = "center";
nowplaying_lbl.text = "";
nowplaying_mediacon.backgroundStyle = "none";
nowplaying_mediacon.controllerPolicy = "off";

// add the children to the Accordion component
var library = jukebox_acc.createChild(mx.core.View, "library_mc", {label:" 1. Library"});
var playlist = jukebox_acc.createChild(mx.core.View, "playlist_mc", {label:" 2. Playlist"});
var nowplaying = jukebox_acc.createChild(mx.core.View, "nowplaying_mc", {label:" 3. Now Playing"});

// add component instances to the Accordion component's children.
library.createClassObject(Tree, "library_tree", 100, {_x:10, _y:10});
library.library_tree.setSize(530, 280);

playlist.createClassObject(DataGrid, "playlist_dg", 200, {_x:10, _y:10});
playlist.playlist_dg.setSize(530, 260);
playlist.createClassObject(Label, "playlist_lbl", 201, {_x:10, _y:270});
playlist.playlist_lbl.setSize(530, 20);

var title_dgc:DataGridColumn = new DataGridColumn("title");
title_dgc.headerText = "Title:";
title_dgc.width = 300;
playlist.playlist_dg.addColumn(title_dgc);

var artist_dgc:DataGridColumn = new DataGridColumn("artist");
artist_dgc.headerText = "Artist:";
artist_dgc.width = 150;
playlist.playlist_dg.addColumn(artist_dgc);

var length_dgc:DataGridColumn = new DataGridColumn("length");
length_dgc.headerText = "Length:";
length_dgc.width = 60;
playlist.playlist_dg.addColumn(length_dgc);

playlist.playlist_lbl.autoSize = "center";
playlist.playlist_lbl.text = "{PLAYLIST STATS}";

nowplaying.createClassObject(Loader, "cover_ldr", 300, {_x:10, _y:10});
nowplaying.cover_ldr.setSize(200, 200);
nowplaying.createClassObject(MediaController, "mp3_mediacon", 301, {_x:220, _y:10});
nowplaying.mp3_mediacon.setSize(300, 70);
nowplaying.createClassObject(TextArea, "id3_ta", 302, {_x:220, _y:90});
nowplaying.id3_ta.setSize(300, 160);
nowplaying.createClassObject(MediaDisplay, "mp3_mediadisp", 303, {_x:220, _y:260});
nowplaying.mp3_mediadisp.setSize(70, 70);

nowplaying.mp3_mediacon.associateDisplay(nowplaying.mp3_mediadisp);
nowplaying_mediacon.associateDisplay(nowplaying.mp3_mediadisp);

nowplaying.mp3_mediacon.controllerPolicy = "on";
nowplaying.id3_ta.editable = false;
nowplaying.id3_ta.html = true;
var borders_array:Array = new Array("borderColor", "buttonColor", "shadowColor", "highlightColor", "shadowCapColor", "borderCapColor");
for (var side in borders_array) {
nowplaying.id3_ta.setStyle(borders_array[side], 0xFFFFFF);
}



updatePlaylistStats();

var dgListener:Object = new Object();
dgListener.change = function(evt:Object) {
playSong();
};
playlist.playlist_dg.addEventListener("change", dgListener);

var songs_xml:XML = new XML();
songs_xml.ignoreWhite = true;
songs_xml.onLoad = function(success:Boolean) {
if (success) {
library.library_tree.dataProvider = this.firstChild;
} else {
trace("unable to load/parse library.xml");
}
};
songs_xml.load("library.xml");

var treeListener:Object = new Object();
treeListener.change = function(evt:Object) {
var selectedMP3:XMLNode = evt.target.selectedNode;
if (evt.target.getIsBranch(selectedMP3)) {
evt.target.setIsOpen(selectedMP3, !evt.target.getIsOpen(selectedMP3), true);
} else {
playlist.playlist_dg.addItem({title:selectedMP3.attributes['label'], artist:selectedMP3.attributes['artist'], length:selectedMP3.attributes['length'], track:selectedMP3.attributes['track'], album:selectedMP3.attributes['album'], cover:selectedMP3.attributes['cover'], src:selectedMP3.attributes['src']});
updatePlaylistStats();
}
};
library.library_tree.addEventListener("change", treeListener);

function playSong() {
var thisSong:Object = playlist.playlist_dg.selectedItem;
stopAllSounds();
nowplaying.mp3_mediadisp.setMedia(thisSong.src, "MP3");
nowplaying.mp3_mediadisp._playerImpl._sound.onID3 = function() {
nowplaying_lbl.text = this.id3.artist+" -- "+this.id3.songname+" ("+thisSong.length+")";
var id3_str:String = new String();
id3_str = "<textformat tabstops='[70]'>";
id3_str += "<b>Artist:</b> "+this.id3.artist+newline;
id3_str += "<b>Album:</b> "+this.id3.album+newline;
id3_str += "<b>Song:</b> "+this.id3.songname+newline;
id3_str += "<b>Track:</b> "+this.id3.track+newline;
id3_str += "<b>Year:</b> "+this.id3.year+newline;
//id3_str += "<b>Genre:</b> "+this.id3.genre+newline;
id3_str += "</textformat>";
//id3_str += "<p><font size='9'>"+this.id3.TSSE+"</font></p>";
nowplaying.id3_ta.text = id3_str;
};
nowplaying.mp3_mediadisp.play(0);
nowplaying.cover_ldr.load(thisSong.cover);
}

function updatePlaylistStats():Void {
var totalSeconds_number:Number = 0;
var numSongs_number:Number = playlist.playlist_dg.dataProvider.length;
for (var i = 0; i<numSongs_number; i++) {
var time_array:Array = playlist.playlist_dg.dataProvider.getItemAt(i).length.split(":");
totalSeconds_number += (Number(time_array[0]*60)+Number(time_array[1]));
}
var numMinutes = Math.floor(totalSeconds_number/60);
var numSeconds = totalSeconds_number%60;
var playlistLabel_string:String = numSongs_number+" "+((numSongs_number == 1) ? "song" : "songs");
playlistLabel_string += ", "+numMinutes+":"+((numSeconds<10) ? "0" : "")+numSeconds;
if (numMinutes<60) {
// playlist length is under an hour.
} else if (numMinutes<1440) {
playlistLabel_string += " ("+(Math.round(numMinutes/60*10)/10)+" hours)";
} else {
playlistLabel_string += " ("+(numMinutes/1440)+" days)";
}
playlist.playlist_lbl.text = playlistLabel_string;
}

View Replies !    View Related
Adding Scrollbar Via Actionscript After Text Is Loaded
Okay, I know this has probably been beaten to death, and I used to know it. But for the life of be, I can't remember how.

1. I am adding text from a .txt file straight into a dynamic text box. I would like to add a scrollbar component on via actionscript (so I can do it after the text loads).

2. Also, I would like to do it only when neccesary. How could I do the first part, and if so, the second part?

View Replies !    View Related
ScrollBar Component - Adding Keyboard Functionality
Is there a way to add keyboard commands to the ScrollBar Component? For example, I would like my text to scroll down, when I press the 'Down Arrow' key. I would like to give people the option to use both the mouse...and keyboard to scroll through text...is this possible? Any ideas or help would be appreciated...thanks!

View Replies !    View Related
Adding A Rollover State To Component Scrollbar (MX)
I was wondering how easy it is to add a rollover state to the arrows and scrollbar in MX's scrollbar component. None of the ways I've tried have worked. It seems I have to register a new state?? Or is it something else?

View Replies !    View Related
Problem With Adding Scrollbar To Dynamic Text
I have a dynamic text window - that renders text from an html file as html. Set to Multiline. I simply pulled the "standard" vertical scrollbar component, onto the stage and onto the text box. In the parameters of the component it say that is affects the correct instance name. The problem is when I test the movie, the scroll bar flickers, doesnt scroll at all, text doenst move - just the scrollbar flickers rapidly in place.

What did I do wrong? How can I fic this?

I would attach the fla, but it is too damn big (9mb zipped)

Please someone help. I need to fix this asap.

View Replies !    View Related
[F8] Adding Mouse Scroll To Ease-scrollbar
Hello,

in the attached file I've got a working scrollbar with ease.
The dragger is working fine and the up/down buttons as well.

Now my client wants me to add Mouse scrolling to the scrollbar
and he wants the ease to remain and off course that the dragger to be
synchronized with the main content.

Any help will be great.
I'm quit stuck with it.

Regards.
Elad

View Replies !    View Related
Adding A Text Area W/ Scrollbar In A Template
Hi. I'm pretty sure this question relates to scripting, hope I'm not in the wrong forum...but kinda new to Flash.

I'm using Flash Pro 8. I purchased a flash template and need to add an additional text area with a scrollbar to the "Meet the Band" page found here.... http://www.brotherbean.com/site_flash/index.html .

I want the same text area with scrollbar as the existing one to put beneath the existing one. The scrollbar folder in the libarary folder seems to link the existing scrollbars with their text (i.e., when I try to copy the existing scrollbars and text and place it beneath...when I edit one frame of text, the other one edits also). I hope I've explained it well enough???

Any help would be appreciated!!!! Thanks in advance.

Lisa

View Replies !    View Related
Adding Preloader Causing Errors With Scrollbar
Hi,

I have a flash project that works well when you load the .swf directly into the html page. However, once I add a prelaoder (using the show display progress code from "Essential ActionScript 3.0" example 28-8 which I've used successfully before. I'm using one swf as a preloader and the main swf loads into it) the .swf loads with a number of errors:


Quote:




TypeError: Error #1009: Cannot access a property or method of a null object reference.
at Scrollbar()
at flash.display::Sprite/constructChildren()
at flash.display::Sprite()
at flash.display::MovieClip()
at international_fla::MainTimeline()
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at Scrollbar()
at flash.display::Sprite/constructChildren()
at flash.display::Sprite()
at flash.display::MovieClip()
at international_fla::MainTimeline()
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at international_fla::MainTimeline/initializeFlyerScrollbar()
at international_fla::MainTimeline/frame1()
http status: 0




Does anyone know what would cause a preloading swf to cause a working swf to break like this?

The scrollbar that is referenced in the error code came from this site:

http://flashrevolution.net/actionscript-3-scrollbar/

...and like I said, it works fine without the preloader. It is run by an external .as file called Scrollbar.as and these null references seem to be coming from there. Why would it suddenly be a null reference?

I'm happy to post anything that might be relevant. Thanks in advance for any advice.

View Replies !    View Related
Adding A Flash Website Html Scrollbar
Hey!

I've been looking around in the internet and in the Kirupa's forum as well but haven't found the solution for my problem so far.

Basically, the efect i want to create is like a simple html/css webpage which has dynamic height. That means, page height depends of the text ammount.

So, when i come to flash, i am able to create a full screen website with the scrollbar of the overflow. But how can i make it dynamic? So the height of flash movie depends on movie clip size in flash?

Thanks in advance!

View Replies !    View Related
Importing Txt With Page Numbers - NO SCROLLBAR
I want to be able to import txt into a flash movie, but have no scrollbar; instead I want to be able to use page number buttons, that dynamically increase in number depending on the size of the txt file imported. - (Heavy Stuff)

I have seen many examples of dynamic scrollbars that adjust with the height of the txt being imported; but I cant get my head around doing this for buttons.

Has anybody attempted such a task - if not I will struggle on.

View Replies !    View Related
UI Scrollbar Loads Only On Page Refresh?
I need some help with the seemingly easy to use Flash UI Scrollbar component. I cannot figure out why it will not work the first time the page loads, but works just fine after a page refresh.

The URL:

http://www.agsilver.com

Can anyone help? Thank you!

View Replies !    View Related
Help Adding Music To A Page
hi everyone! i hope you guys can help me, because im extremely computer illiterate!!>_<

im currently constructing a website in flash mx and i want to put music (that is a mp3/wma file) onto each page, so when each page loads, the song is played..

i was wondering if thats possible.. and if so, how to do it..

thanks for the help!

View Replies !    View Related
Adding Sound To A Web Page
I'm sure there's an easy link to answer this question, but I've been following links for the last 20 minutes and can't find anything.

All I want is to add an area on a band website that has all the regular things of a sound file player (buttons, volume scroll, progress scroll). The band I'm doing it for wants it to be similar to the one on www.drowningpool.com/home.html, if that helps. And i need to make the file that plays into a .swf file? I don't know how to do that either.

I've looked at scripts for it, but I have no clue how to add it. I'd be greatly appreciative if someone can point me in the right direction

-Hannah

View Replies !    View Related
Help With Adding Flash To Web Page
Ok, I'm very new at this. I added my flash in dreamweaver, and saved it. I viewed the html file on my harddrive offline, and the flashplayed fine. I sent the html through ftp to my web host. Now when i view my site, there is a white box where my flash should be. Here is a link to my site

mydadletsmedrink.fcpages.com

sorry about the bad language on this site, it's a joke for me and my friends.

View Replies !    View Related
Help Adding Contact Swf To Page
Hi firstly i'm a total novice at flash. Ive bought a template and had no problems changing text and images. I've downloaded a new contact form that's more fancy than the one on the template but i'm having problems importing it into the page where the existing contact form is. I've tried copying all frames and pasting them into the template but that doesn't work I've tried making the form into a movie and pasting it into the page but no lick there. I've been trying for two weeks now. Any ideas would be appreciated. I can email the two fla's if that will help Thanks Kiomisu.

View Replies !    View Related
Adding Elements To Xml Page, As3
Hello all,
i was wondering how to add elements to an xml page. When I click on the thumbnail, the video loads in the player, and "image" loads beside it. I would like to add a sub scrollpanel for each video loaded (diplaying the chapters of the video). For now though, I am just trying to find the correct place to put it in the xml page. It seems the only elements flash recognizes are description, path, and data. here is my code:

<content>
<item>
<description>image</description>
<path>thumbnail</path>
<data>video</data>
<type></type>

</item>

As you can see, all the elements here are assigned except for type. If i add a .jpg or a .flv in type, i get the following error:
Error #2044: Unhandled IOErrorEvent:. text=Error #2035: URL Not Found.
The path is correct though. Any ideas? Here is my AS:


import fl.video.VideoEvent;
import flash.events.MouseEvent;
import com.afcomponents.scrollpanel.ScrollPanelEvent;
import flash.display.Loader;
import flash.display.LoaderInfo;
import flash.net.URLRequest;
import flash.net.navigateToURL;



function loadComplete(event:ScrollPanelEvent){
myScroll.addGenericItemEventListener(MouseEvent.CL ICK, playOnClick);
video1.source = myScroll.getSelectedItem().data;

var imageLoader:Loader = new Loader();
var myRequest:URLRequest = new URLRequest(myScroll.getSelectedItem().description) ;
imageLoader.load(myRequest);
addChild(imageLoader);
imageLoader.y = 160;
imageLoader.x = 22;


}

myScroll.addEventListener(ScrollPanelEvent.XML_LOA D_COMPLETE, loadComplete);


function playOnClick(event:MouseEvent) {
video1.source = event.target.data;
//variable to load clicked video data from description field
var imageLoader:Loader = new Loader();
var myRequest:URLRequest = new URLRequest(event.target.description);
imageLoader.load(myRequest);
addChild(imageLoader);
imageLoader.y = 160;
imageLoader.x = 22;

var imageLoaderb:Loader = new Loader();
var myRequestb:URLRequest = new URLRequest(event.target.type);
imageLoaderb.load(myRequestb);
addChild(imageLoaderb);
imageLoaderb.y = 260;
imageLoaderb.x = 22;

}

thanks

View Replies !    View Related
Adding Elements To Xml Page, As3
Hello all,
i was wondering how to add elements to an xml page. When I click on the thumbnail, the video loads in the player, and "image" loads beside it. I would like to add a sub scrollpanel for each video loaded (diplaying the chapters of the video). For now though, I am just trying to find the correct place to put it in the xml page. It seems the only elements flash recognizes are description, path, and data. here is my code:

<content>
<item>
<description>image</description>
<path>thumbnail</path>
<data>video</data>
<type></type>

</item>

As you can see, all the elements here are assigned except for type. If i add a .jpg or a .flv in type, i get the following error:
Error #2044: Unhandled IOErrorEvent:. text=Error #2035: URL Not Found.
The path is correct though. Any ideas? Here is my AS:


import fl.video.VideoEvent;
import flash.events.MouseEvent;
import com.afcomponents.scrollpanel.ScrollPanelEvent;
import flash.display.Loader;
import flash.display.LoaderInfo;
import flash.net.URLRequest;
import flash.net.navigateToURL;



function loadComplete(event:ScrollPanelEvent){
myScroll.addGenericItemEventListener(MouseEvent.CLICK, playOnClick);
video1.source = myScroll.getSelectedItem().data;

var imageLoader:Loader = new Loader();
var myRequest:URLRequest = new URLRequest(myScroll.getSelectedItem().description);
imageLoader.load(myRequest);
addChild(imageLoader);
imageLoader.y = 160;
imageLoader.x = 22;


}

myScroll.addEventListener(ScrollPanelEvent.XML_LOAD_COMPLETE, loadComplete);


function playOnClick(event:MouseEvent) {
video1.source = event.target.data;
//variable to load clicked video data from description field
var imageLoader:Loader = new Loader();
var myRequest:URLRequest = new URLRequest(event.target.description);
imageLoader.load(myRequest);
addChild(imageLoader);
imageLoader.y = 160;
imageLoader.x = 22;

var imageLoaderb:Loader = new Loader();
var myRequestb:URLRequest = new URLRequest(event.target.type);
imageLoaderb.load(myRequestb);
addChild(imageLoaderb);
imageLoaderb.y = 260;
imageLoaderb.x = 22;

}

thanks

View Replies !    View Related
Adding Bookmarks To A Page
Hi I've created a presention in flash mx that navigates multiple pages.

There are many pages to the entire presentation so I would like to add a feature where the user, can "add a bookmark" to any certain page.

This bookmark would appear as a small tag or something attached to the corner of the page, and when clicked should take the user back to that particular page in the document.

I have attached a small image of what I'm talking about.

I would like to know if there is any way to script this functionality such that when a button :called "bookmark this page" is clicked, the visual bookmark appears on the page, and remains there sort of sticking out from behind the page, no matter where else the user navigates to....and if the user wants to return to a bookmarked page..he/she should simply click this bookmark.

Many thanks to anyone who can help.

Cheers.

View Replies !    View Related
Adding Elements To Xml Page, As3
Hello all,
i was wondering how to add elements to an xml page. When I click on the thumbnail, the video loads in the player, and "image" loads beside it. I would like to add a sub scrollpanel for each video loaded (diplaying the chapters of the video). For now though, I am just trying to find the correct place to put it in the xml page. It seems the only elements flash recognizes are description, path, and data. here is my code:

<content>
<item>
<description>image</description>
<path>thumbnail</path>
<data>video</data>
<type></type>

</item>

As you can see, all the elements here are assigned except for type. If i add a .jpg or a .flv in type, i get the following error:
Error #2044: Unhandled IOErrorEvent:. text=Error #2035: URL Not Found.
The path is correct though. Any ideas? Here is my AS:


import fl.video.VideoEvent;
import flash.events.MouseEvent;
import com.afcomponents.scrollpanel.ScrollPanelEvent;
import flash.display.Loader;
import flash.display.LoaderInfo;
import flash.net.URLRequest;
import flash.net.navigateToURL;



function loadComplete(event:ScrollPanelEvent){
myScroll.addGenericItemEventListener(MouseEvent.CL ICK, playOnClick);
video1.source = myScroll.getSelectedItem().data;

var imageLoader:Loader = new Loader();
var myRequest:URLRequest = new URLRequest(myScroll.getSelectedItem().description) ;
imageLoader.load(myRequest);
addChild(imageLoader);
imageLoader.y = 160;
imageLoader.x = 22;


}

myScroll.addEventListener(ScrollPanelEvent.XML_LOA D_COMPLETE, loadComplete);


function playOnClick(event:MouseEvent) {
video1.source = event.target.data;
//variable to load clicked video data from description field
var imageLoader:Loader = new Loader();
var myRequest:URLRequest = new URLRequest(event.target.description);
imageLoader.load(myRequest);
addChild(imageLoader);
imageLoader.y = 160;
imageLoader.x = 22;

var imageLoaderb:Loader = new Loader();
var myRequestb:URLRequest = new URLRequest(event.target.type);
imageLoaderb.load(myRequestb);
addChild(imageLoaderb);
imageLoaderb.y = 260;
imageLoaderb.x = 22;

}

thanks

View Replies !    View Related
Full Screen Flash Page ....with Scrollbar
I've created a full screen flash page by setting the html dimensions to "percent,"
and changing the scale mode to "no scale." However, the html page that flash generates using these settings disables the use of a page scrollbar.

Users with a screen resolution lower than 1680 x 1050 can only see a portion of the web page.

How can I generate a page scrollbar so that users of any resolution are able to view the entire page? Is this done in flash or html? As an example, you can refer to http://www.bioshockgame.com (load the flash site)

View Replies !    View Related
Adding Flash To An HTML Page
I am just new to flash and I have created a header for my website in flash and saved it as an .swf file and now I would like to add it to my HTML page so that it can be viewed. Can someone suggest the steps I need to do to publish this file before I add it to the table in the page?

Thanks for your help in advance

View Replies !    View Related
Adding A Page In Flash Template
I have purchaed a template and i need to edit one part which i am stuck on. the template only has 5 pages but i need 5 more. how do i add more pages in flash.

View Replies !    View Related
Adding Hyperlinks To An Existing Page
New to Dreamweaver 8, Fireworks and Flash: I've created the first of my pages in my navigation bar which are a series of articles that lead to the next article. But throughout the time I've spent creating the pages, including using Flash to create media for the titles' ("links") movement onto certain homepages, I did not enter the links/URL to the successive pages, not within the nav bar or within any of the articles to lead to the next page, or the next article. I cannot figure out how to go into a page in either Dreamweaver, Fireworks, or Flash (if possible) to add the links to that specific page.
Could some help be lended to me, please?

View Replies !    View Related
Adding Hyperlinks To An Existing Page
New to Dreamweaver 8, Fireworks and Flash: I've created the first of my pages in my navigation bar which are a series of articles that lead to the next article. But throughout the time I've spent creating the pages, including using Flash to create media for the titles' ("links") movement onto certain homepages, I did not enter the links/URL to the successive pages, not within the nav bar or within any of the articles to lead to the next page, or the next article. I cannot figure out how to go into a page in either Dreamweaver, Fireworks, or Flash (if possible) to add the links to that specific page.
Could some help be lended to me, please?

View Replies !    View Related
Adding Page In Template Purchased
i purchased a template and it had a total of 5 pages all in flash. i have to add 3 more. how do i do this...

View Replies !    View Related
Adding Html Page To Flash
is there any way that i can have an external webpage in a flash file, so that i dont have to update the flash, just the web page.

or is it best just to have the flash file on a webpage around the html?

Cheers,
Steve

View Replies !    View Related
Create Scrollbuttons/scrollbar For External Html-page
Hello mr. Flash (by the way, my English is very bad, but don't blame me (I'm dutch)),

I've got a complicated problem, but first i will define my site:

first I made with dreamweaver (you can make it with frontpage also) a framepage with two pages, a left one and a right one. The right page has to become my textpage, the left page is made for the flashfile with scrollbuttons (or scrollbar) in it.

Now I want to react the textfield in the left page on the scrollbuttons in the right. So when I go over the upperbutton the textfield must scroll up, when I go over the second button the textfield must scroll down.

Who can solve my problem????

Thanks,

Bart Bart

View Replies !    View Related
Adding Flash Page To Favorites Menu
Is there a way to assign a button to a Flash movie that will add the page(HTML with Flash embedded) to the users Favorites menu?

View Replies !    View Related
Adding Flash Object Causes Web Page To Slowly Die?
Hello, the title to this post doesn't exactly describe my problem so here it is folks:

I created two small movies to be used as animated logos on my HTML web site both movies are set to loop forever so that they keep repeating the message similar to an animated banner. The web page they are on loads up fine the first time I open it on my system using explorer 5, but I find that if I leave the page open for any longer than 2 minutes or so, Internet Explorer becomes very slow to respond, and the animation in the movies I placed on the page get slower and slower the longer the page stays open.

What I want to know is whether or not this only happens when you run the site on your own system, and once you ftp the site to your host and then view it over the web it will act normally, or if there is maybe something I am doing wrong before I save the movie (I saved it as a flash object .swf under export for web in Koolmoves) that either compresses or sets the .swf file to refresh the systems resources as I beleive what it is doing now is acting like some viruses by continuosly sucking memory from my system in order to loop the movies and keep them going.

if you know how to fix this as it is likely just a simple I'm a newbie and don't know my you know from you you know whatsit solution or if you know a tutorial that is really good at describing the solution please pass it on.

My thanks to you for the help in advance.

Dr

View Replies !    View Related
Adding Flesh To Web Page With Fireworks Menu
hi,
i am trying to add a bit of flash onto a webpage. right above the piece of flash is a horizontal menu bar created in macromedia fireworks, that has drop down menus.
the problem is, the drop down menus show up behind the flash and are not visable...i want the flash to stay behind the drop down menu bar...is there any bring forward or send behind command in flash (or fireworks and dreamweaver) i am using version mx from all the macromedia programs
thanx!!
rookie

View Replies !    View Related
Adding Swish File To Existing Web Page
Swish v2
I have just started using with Swish files. As I've already created a web site with a number of pages, successfully. I now want to add Swish files to the existing pages BUT.

My web site was created with AOL Easy Design and I have no problems with basic pages, the trouble starts when I place a Swish File on the page it displaces, what is already a well set up page, the rest of the page.
As I am new to this, is there a simple solution to this problem

View Replies !    View Related
Page-turn Script | Adding Pages
Hi,

I found this great page turning script. But when I try to add pages those pages don't show up, the last page from the ones that were already in the script shows like ten times instead. Please take a look at the file.

Thanks!

View Replies !    View Related
Adding A Flash Movie To An Html Page
So I have an html file and I want to add a movie to it. Using dreamweaver, it looks like it works, but the movie doesn't load.

What am I doing wrong?

View Replies !    View Related
Adding A Menu Under A Page Curl Effect
Hey Everyone.

Im needing some help on how i can add a menu navigation under my page curl button effect. So when the user rolls over the corner the page curls up and out comes the menu, where you can click on.

I can only get to the stage where i have the menu in place and it pops up, but when i want to click onto the menu links i cant, because of the curl effect button. Its like a button on top of a button.

Any way i can work around this.

Any help would be amazing..please please...

Many thanks


kym

View Replies !    View Related
Removing MovieClips And Adding A Win/lose Page?
I am creating a kids game and need to remove a click event listener after you click a character once, until the timer event places the character back on stage again.

For example, you click on a good character and your energy goes up and you click on a bad character and your energy goes down. I don't want you to be able to keep clicking on the same character while they are on stage and make the energy go up and down.

I also need to remove all of the movieclips when the game is over and go to a win or lose screen. Does anyone have some suggestions on the best way to handle this.

Here is the code and a link to the game so you will have an idea of what I am talking about.

Thanks Scott

http://misc.graphxco.net/DDtest/game.html

.fla code

[as]

stop();

var score:int;// lynda.com Tut
var energy:int;// lynda.com Tut

//Code from lynda.com that is placed inside a MovieClip controlling energy..

/*function hurtPlayer(event:MotionEvent):void
{
var main:MovieClip = MovieClip(this.parent.parent);
main.decreaseEnergy();
this.parent.removeChild(this);
}

function die(event:MotionEvent):void
{
var main:MovieClip =MovieClip(this.parent.parent);
main.increaseScore();
this_animator.removeEventListener(MotionEvent.MOTI ON_END, hurtPlayer);
this.parent.removeChild(this);
}*/

//NEED to add text Field to test edu_Tut

/*var hits:int = 0;// tHits NEED to add text Field to test edu_Tut
var shots: int =0;// tshots NEED to add text Field to test edu_Tut
var duckCount = 0;// tDucks NEED to add text Field to test edu_Tut
var score:int = 0;// tScore NEED to convert to a graphic edu_Tut*/

/*var urlShot:URLRequest = new URLRequest("shot.mp3");//Need Sound effect edu_Tut
var sndShot:Sound = new Sound(urlShot);
var urlGotOne:URLRequest = new URLRequest("gotOne.mp3");//Need Sound effect edu_Tut
var sndGotOne:Sound = new Sound(urlGotOne);*/


var duckTimer:Timer = new Timer(3000, 1);
duckTimer.addEventListener(TimerEvent.TIMER, makeADuck);
duckTimer.start();


function makeADuck(evt:TimerEvent):void {
/*duckCount += 1;//extra from edu_Tut
tDucks.text = String(duckCount);//extra from edu_Tut */

var newDuckuck = new Duck();//(10) Point sys tPoints TEXT FEILD add to all Characters replace w/ movieClip
var duckIndex:Number = this.getChildIndex(gdCheet1)+1;
addChildAt(newDuck, duckIndex);
newDuck.y = 204.8;
newDuck.swim();
//newDuck.disposition = "good";
newDuck.addEventListener(MouseEvent.CLICK, clickDuck);


//Not Exactly Sure Where to Place This..
/*
score = 0;// lynda.com Tut
energy = energy_mc.totalFrames;//lynda.com Tut
energy_mc.gotoAndStop(energy);// lynda.com Tut*/
}


var duckTimer2:Timer = new Timer(35000,1);
duckTimer2.addEventListener(TimerEvent.TIMER, makeADuck2);
duckTimer2.start();

function makeADuck2(evt:TimerEvent):void {

var newDuckuck2 = new Duck2();
var duckIndex:Number = this.getChildIndex(duck2Fnl)+1;
addChildAt(newDuck, duckIndex);
newDuck.y = 178.2;
newDuck.swim();
//newDuck.disposition = "bad";
newDuck.addEventListener(MouseEvent.CLICK, clickDuck);

}

var duckTimer3:Timer = new Timer(20000,1);
duckTimer3.addEventListener(TimerEvent.TIMER, makeADuck3);
duckTimer3.start();

function makeADuck3(evt:TimerEvent):void {

var newDuckuck3 = new Duck3();
var duckIndex:Number = this.getChildIndex(bamboo1)+1;
addChildAt(newDuck, duckIndex);
newDuck.y = 98.0;
newDuck.swim();
newDuck.addEventListener(MouseEvent.CLICK, clickDuck);


}

var duckTimer4:Timer = new Timer(25000,1);
duckTimer4.addEventListener(TimerEvent.TIMER, makeADuck4);
duckTimer4.start();

function makeADuck4(evt:TimerEvent):void {

var newDuckuck4 = new Duck4();
var duckIndex:Number = this.getChildIndex(goodMnky2)+1;
addChildAt(newDuck, duckIndex);
newDuck.y = 147.6;
newDuck.swim();
newDuck.addEventListener(MouseEvent.CLICK, clickDuck);

}

var duckTimer5:Timer = new Timer(25000,1);
duckTimer5.addEventListener(TimerEvent.TIMER, makeADuck5);
duckTimer5.start();

function makeADuck5(evt:TimerEvent):void {

var newDuckuck5 = new Duck5();
var duckIndex:Number = this.getChildIndex(goodMnky)+1;
addChildAt(newDuck, duckIndex);
newDuck.y = 58.1;
newDuck.swim();
newDuck.addEventListener(MouseEvent.CLICK, clickDuck);

}

var duckTimer6:Timer = new Timer(27000,1);
duckTimer6.addEventListener(TimerEvent.TIMER, makeADuck6);
duckTimer6.start();

function makeADuck6(evt:TimerEvent):void {

var newDuckuck6 = new Duck6();
var duckIndex:Number = this.getChildIndex(goodMnky)+1;
addChildAt(newDuck, duckIndex);
newDuck.y = 389.6;
newDuck.swim();
newDuck.addEventListener(MouseEvent.CLICK, clickDuck);

}



var duckTimer7:Timer = new Timer(15000,1);
duckTimer7.addEventListener(TimerEvent.TIMER, makeADuck7);
duckTimer7.start();

function makeADuck7(evt:TimerEvent):void {

var newDuckuck7 = new Duck7();
var duckIndex:Number = this.getChildIndex(bamboo1)+1;
addChildAt(newDuck, duckIndex);
newDuck.y = 374.6;
newDuck.swim();
newDuck.addEventListener(MouseEvent.CLICK, clickDuck);

}

var duckTimer8:Timer = new Timer(30000,1);
duckTimer8.addEventListener(TimerEvent.TIMER, makeADuck8);
duckTimer8.start();

function makeADuck8(evt:TimerEvent):void {

var newDuckuck8 = new Duck8();
var duckIndex:Number = this.getChildIndex(bamboo1)+1;
addChildAt(newDuck, duckIndex);
newDuck.y = 485.5;
newDuck.swim();
newDuck.addEventListener(MouseEvent.CLICK, clickDuck);

}

var duckTimer9:Timer = new Timer(8000,1);
duckTimer9.addEventListener(TimerEvent.TIMER, makeADuck9);
duckTimer9.start();

function makeADuck9(evt:TimerEvent):void {

var newDuckuck9 = new Duck9();
var duckIndex:Number = this.getChildIndex(goodMnky)+1;
addChildAt(newDuck, duckIndex);
newDuck.y = 385.4;
newDuck.swim();
newDuck.addEventListener(MouseEvent.CLICK, clickDuck);

}

var duckTimer10:Timer = new Timer(25000,1);
duckTimer10.addEventListener(TimerEvent.TIMER, makeADuck10);
duckTimer10.start();

function makeADuck10(evt:TimerEvent):void {

var newDuckuck10 = new Duck10();
var duckIndex:Number = this.getChildIndex(goodMnky)+1;
addChildAt(newDuck, duckIndex);
newDuck.y = 352.3;
newDuck.swim();
newDuck.addEventListener(MouseEvent.CLICK, clickDuck);


}

// lynda.com Energy Bar "energy_mc"
/*
function increaseScore():void
{
score ++;
if(score >= monsterInGame)
{
monsterMaker.stop();
showWinLose("You Win!");

}
}


function decreaseEnergy():void
{
energy --;
if(energy <=0)
{
monsterMaker.stop();
showWinLose("You Lose!")
}
else
{
energy_mc.gotoAndStop(energy);
}
}


function showWinLose(endMessage:String):void
{
var winLose:MovieClip = new WinLose();
addChild(winLose);
winLose.end_txt.text = endMessage;
}
*/
function clickDuck(evt:MouseEvent):void {
evt.target.hit();
if (evt.target.disposition == "bad") {
smileMeter_mc.prevFrame();
if (smileMeter_mc.currentFrame == 1) {
trace("You Are a Loser");
gotoAndStop("loser");
//duckTimer.removeEventListener(TimerEvent.TIMER, makeADuck);
//stage.removeEventListener(MouseEvent.MOUSE_MOVE,mo veTarget);
//duckTimer.stop();
}

} else {
smileMeter_mc.nextFrame();
if (smileMeter_mc.currentFrame == 20) {
trace("You Are a BadAss Winner");
gotoAndStop("winner");
duckTimer.stop();
}
}
trace("Click Duck!");

/*hits += 1;// Don't Need extra from edu_Tut
tHits.text = String(hits);// Don't Need extra from edu_Tut
score += evt.target.points;// score need to convert to energy_mc edu_Tut
tScore.text = String(score);// score need to convert to energy_mc edu_Tut
sndGotOne.play();// Need sound Effect edu_Tut
*/
}

/*function anyClick(evt:MouseEvent):void
{
shots +=1;
tShots.text = String(shots);
sndShot.play(); //May not need this function. Nee Sound Effect edu_Tut
}


Mouse.hide();
mTarget.mouseEnabled = false;
function moveTarget(evt:MouseEvent):void {
//target graphic = mTarget
mTarget.x = evt.stageX;
mTarget.y = evt.stageY;
}
stage.addEventListener(MouseEvent.MOUSE_MOVE,moveT arget);

[as]

.as external code


[as]

package {

import flash.display.MovieClip;
import fl.transitions.Tween;
import fl.transitions.easing.*;
import fl.motion.Animator;

public class Duck extends MovieClip {
var duckHit_animator:Animator;
public var disposition:String = "good";
//public var points:int;// form TUT


function Duck():void {
this.disposition = "good";

}
public function swim():void {
var swimTween = new Tween(this, "x",None.easeNone,4.8,4.8, 5, true);

}
public function hit():void {

var duckHit_xml:XML = <Motion duration="11" xmlns="fl.motion.*" xmlns:geom="flash.geom.*" xmlns:filters="flash.filters.*">
<source>
<Source frameRate="24" x="245.15" y="586.9" scaleX="1" scaleY="1" rotation="0" elementType="movie clip" symbolName="duckHit">
<dimensions>
<geom:Rectangle left="-85.65" top="-51" width="171.3" height="102"/>
</dimensions>
<transformationPoint>
<geomoint x="0.5046701692936368" y="0.5"/>
</transformationPoint>
</Source>
</source>

<Keyframe index="0" tweenSnap="true" tweenSync="true">
<tweens>
<SimpleEase ease="0"/>
</tweens>
<filters>
<filters:GlowFilter blurX="0" blurY="0" color="0xFF0000" alpha="1" strength="0" quality="1" inner="false" knockout="false"/>
</filters>
</Keyframe>

<Keyframe index="5" tweenSnap="true" tweenSync="true">
<tweens>
<SimpleEase ease="0"/>
</tweens>
<filters>
<filters:GlowFilter blurX="56" blurY="56" color="0xFFCC00" alpha="1" strength="1" quality="3" inner="false" knockout="false"/>
</filters>
</Keyframe>

<Keyframe index="10" tweenSnap="true" tweenSync="true">
<tweens>
<SimpleEase ease="0"/>
</tweens>
<filters>
<filters:GlowFilter blurX="0" blurY="0" color="0xFF0000" alpha="1" strength="0" quality="1" inner="false" knockout="false"/>
</filters>
</Keyframe>
</Motion>;

duckHit_animator = new Animator(duckHit_xml, this);
duckHit_animator.play();



}
}
}

[as]

View Replies !    View Related
Adding Flash Movie/navigation To Html Page...
Hi all,
I'm doing some freelance building for a company around here...

I have got all the css/xhtml built but I need to add the flash to it...I use dreamweaver but know css and xhtml by hand..I dont know how to add a flash nav/movie though...I mean, I have built my own flash movies of photos fading in and out but that's it...The flash files they gave me have 4 .fla files, a couple html files, 2 xml files and 1 folder called "media" with images inside of it...They asked me to make new swf's and insert it in the page...In dreamweaver I know to go to media>insert flash. But, it just puts a black box where the movie goes.

Here are the contents of the flash folder I have been given:
• temp0000
• images.xml
• images2.xml
• /media (folder with images)
• Base.html
• Player.html
• PlayerMulti.html
• Base.fla
• Nav.fla
• Player.fla
• PlayerMulti.fla
• Base.swf
• Nav.swf
• Player.swf
• PlayerMulti.swf

Only on the index page does the whole thing go. (movie and navigation) then on all the sub pages goes just the navigation.

I just dont know flash well enough and have never done this myself so I have no idea.

you can check out the site so far at:
www.davidrossdesign.us / lentix
(remove spaces)

There is a jpg in place right now (top right) of the flash elements.

Thanks A TON for any info,
Ross

View Replies !    View Related
Copyright © 2005-08 www.BigResource.com, All rights reserved