How Can I Create Easily Accessible/editable Movies
WITHOUT opening up the original .fla?
I have created a information resource project for myself, using Powerpoint and a laptop. This has helped me during conferences and meetings. However I know how to use Flash and I came up with the idea of creating an online library that allows me to access the information quicker than opening up one presentation after the next. Every conference I go to has wifi hotspots and it would be a cinch to go online to my library. Creating this wouldn't be a problem, but later on if I need to add more information to my library it would be a hassle because I would need to open up a.swf, b.swf, c.swf and so on. Managing all of the text and pics would take up a lot of time that I wouldn't have.
I noticed that there are content management systems for HTML like Mambo. Are there any for Flash? Thanks!
FlashKit > Flash Help > Flash Newbies
Posted on: 05-11-2007, 01:00 AM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
What Is The Best Way To Create Globally-accessible Class Instances?
Hi there,
I created a custom class (no arguments needed for constructor) and I wanted to create an instance of that class that can be accessed by AS from aywhere inside the SWF (i.e. globally from any function or class).
So far the only way I can think of doing that is to create the custom class with an associated MovieClip Symbol, drag an instance of that MovieClip Symbol to the stage, and then give it an instance name. It seems like I can then use the instance name to access that class instance anywhere.
Is there a better or more proper way of achieving this? What if the custom class requires arguments for its constructor?
I'm still a relative newbie here, and still trying to wrap my head around how to do things the "right way" in AS 3.0. Any help will be appreciated!
Cheers,
- K.
Global Vars (accessible From Different Level Movies?)
Is it possible to access a global variable from an swf on a different level than another (outside of movies)? Or are they only global in the sense that they can be accessed from different scenes in the same movie? I want to check whether or not a certain movie (called by loadMovie) is on a certain frame (if else statement), and then act accordingly (tell it to play a certain frame in that movie [shut itself down, figuratively], or nothing). I've not used global vars so far, hence the newbie question. Any help would be appreciated, thanks.
The Red Fall
Global Vars (accessible From Different Level Movies?)
Is it possible to access a global variable from an swf on a different level than another (outside of movies)? Or are they only global in the sense that they can be accessed from different scenes in the same movie? I want to check whether or not a certain movie (called by loadMovie) is on a certain frame (if else statement), and then act accordingly (tell it to play a certain frame in that movie [shut itself down, figuratively], or nothing). I've not used global vars so far, hence the newbie question. Any help would be appreciated, thanks.
The Red Fall
How To Create An Editable Text Field At Runtime?
I can create a text field and add it to an mc, like this:
Code:
var myTextField:TextField = new TextField();
canvas_mc.addChild(myTextField);
But it is not visible on the stage, nor can you type in it. You can pass values into it, but how do you make it editable?
How Do I Create Externally Editable Links For Flash Buttons In An Html Site?
Hi!
Im creating a website for a client built in html (built in Dreamweaver MX)with flash navigation/buttons embedded (more unique than the pre-defined dreamweaver MX buttons). The client is a programmer with no knowledge of flash and wants the button links to be externally editable for him to update (in a text file or other kind of file)Does anyone know how to do this so that by simply editing the external file the flash automatically works with the changed links?
Martyn
__________________
Martyn Niman
King Bee Design
www.kingbeedesign.com
How Do I Create Externally Editable Links For Flash Buttons In An Html Site?
Hi -
Im creating a website for a client built in html (built in Dreamweaver MX)with flash navigation/buttons embedded (more unique than the pre-defined dreamweaver MX buttons). The client is a programmer with no knowledge of flash and wants the button links to be externally editable for him to update (in a text file or other kind of file)Does anyone know how to do this so that by simply editing the external file the flash automatically works with the changed links?
Martyn
Is It Possible To Have Non Editable Text In An Editable Textarea?
Hi guys,
I'm using textareas and loading in text. Some of the text that I am loading in I want to be editable, and some text I want it to be impossible for the user to edit
Is there a way to combine editable and non editable text into just 1 textarea?
and make the non editable text visible - e.g. have it greyed out?
Many thanks for your responses! :-)
Joe
How To Create Movies Preloader ?
Hi Friends,
I am creating one flash site but i want to know how to creat a Flash Movie preloader movie on for my site.
And would be the action scripts for that ??
Waiting for early reply.
Create Then Load Movies
I am trying to create movies via actionscript, and then have them load/nest into another movie, then place/nest that movie into another movie. all my attemps have failed can some one please help me. I placed 2 code attemps below. any help will be greatly apreciated thanks sincerly newwave
Code:
var track:MovieClip = new MovieClip();
//a shape is drawn with script
var thumb:MovieClip = new MovieClip();
//a shape is drawn with script
var sb:MovieClip = new MovieClip();
this.sb.addChild(track);
this.sb.addChild(thumb);
var scrollbox:MovieClip = new MovieClip();
this.scrollbox.addChild(sb);
this.addChild(scrollbox);
I also tried this with no luck
Code:
var track:MovieClip = new MovieClip();
//a shape is drawn with script
var thumb:MovieClip = new MovieClip();
//a shape is drawn with script
var sb:MovieClip = new MovieClip();
var sb0 = new track();
this.scrollbox.addChild(sb0);
var sb1 = new thumb();
this.scrollbox.addChild(sb1);
var scrollbox:MovieClip = new MovieClip();
var sb2 = new sb();
this.scrollbox.addChild(sb2);
this.addChild(scrollbox);
How Do You Create A Movie Cache For 10 Movies?
Does anyone know to create a movie cache that will hold like 10 preloaded movies? And how to write a "with" or "tellareget" action to call one of the movies from the cahce and load it into another movie?
Create Variable Across Movies Actionscript 3
Dear all,
i want to create variable across movies actionscript 3
i have main movie loader.swf i want to create a variable myvar in this
movie and set initial value to it
myvar =0
i have another movie new_movie.swf i want use the var in main movie myvar
and access it's value
Ex.
loader.swf:
var go_now:int = 0;
new_movie.swf
what sjould i write her
how can i do this
dev_mohamed is offline Reply With Quote
How Can I Combine Two Seperate Movies To Create Just One?
I've created two seperate movies and would like to create a single flash movie that will have one movie as Scene 1 and the second movie as Scene 2. I've tried the import feature, but this does not work on some of the movies, they look choppy. I appreciate any suggestions... Thanks
[F8] Create A Drop Down Menu That Opens Movies
I can open up a movie within a movie using the following script:
on (press) {
//load Movie Behavior
if(this.Work == Number(this.Work)){
loadMovieNum("Illustration.swf",this.Work);
} else {
this.Work.loadMovie("Illustration.swf");
}
//End Behavior
}
How can I do the same task with a button in a drop down menu? I can get the button to appear, but I can't open the movie.
Thanks-
Loading / Unloading Movies Using Create EmptyMovieCLip
mx 2004
Can anyone help?
I have assigned the following script to a frame to load a movie clip into a container.
{
_root.createEmptyMovieClip("container",10);
loadMovie("home_movie3.swf", "container");
container._x = 126.4;
container._y = 0;
}
I know it's probably really simple but i can't figure out the code to unload the movie.
Could someone help
Tanhks Simon .
Create Dynamic Movies With Data From Database
I am looking for a way to create dynamic movie files that need to be embedded in each user's login when the user logs in to his/her home page. The data for these movies needs to be loaded from a database. I am wondering if I can do this with Flash? Do you guys know if there are other utilities available to do this? Any help is greatly appreciated.
Loop To Create New Movies, Event Handlers Don't Work
Hi all,
I've just done a quick search of the the forum and although a couple of other posts touch on the problem I'm having I still can't sort things out so though I'd ask directly instead.
I'm building a movie that imports info' for a set of buttons from an XML file and then scrolls them in a loop. The flash file only contains a script - no actual assets - and works great apart from the fact that several event handlers I'm trying to add to the dynamically created movie clips (ie, the buttons) aren't being registered. I've tried several different ways of setting the handlers up and after scouring the internet for an answer am all but ripping my hair out.
My code is as follows:
Code:
var scrollerInterval, totalButtons, timer, marker, totalWidth;
var b = new Object();
function scrollButtons() {
if (marker > 0) {
marker--;
for (var i = 0; i < totalButtons; i++) {
b[i].xPosition = _root[b[i].bName]._x = b[i].xPosition - 1;
}
} else if (marker == 0) {
marker = totalWidth;
for (var i = 0; i < totalButtons; i++) {
b[i].xPosition = _root[b[i].bName]._x = 168 + (i * 100);
}
}
}
function buildButtons() {
for (var i = 0; i < totalButtons; i++) {
_root.createEmptyMovieClip(b[i].bName, _root.getNextHighestDepth());
_root[b[i].bName].loadMovie(b[i].iAddress);
_root[b[i].bName]._y = -10;
_root[b[i].bName]._x = b[i].xPosition;
_root[b[i].bName].onPress = function() {
trace("Stuff...");
};
_root[b[i].bName].onRollOver = function() {
trace("Stuff...");
};
_root[b[i].bName].onRollOut = function() {
trace("Stuff...");
};
}
marker = totalWidth = 168 + (totalButtons * 100) - 10;
timer = setInterval(scrollButtons, scrollerInterval);
}
importXML = new XML();
importXML.ignoreWhite = true;
importXML.onLoad = function(success) {
if (success) {
scrollerInterval = this.firstChild.attributes.scrollerInterval;
var count = 0;
for (var i = this.firstChild.firstChild; i != null; i = i.nextSibling) {
b[count] = {bName: "button_" + count,
iAddress: i.attributes.imageAddress,
pAddress: i.attributes.pageAddress,
xPosition: 168 + (count * 100)
};
count++;
}
totalButtons = count;
}
buildButtons();
}
importXML.load("bData.xml");
Can anyone see where I'm going wrong? Any help will be greatly apreciated.
Clips Still Accessible
Hi,
If you use load movie to load a movie, that contains child clips (each having been created with the export to actionscript used as well), and then you delete that move, are the child clips still in the library and accessible to the main movie? or are they all deleted as well?
thanks
phil.
+++ Is It Easily Possible Or Am I Being NAIVE?
Thanks for taking the time to read this-
Dynamic text field on the stage called
"loaded info"
It loads text from an external txt file called "welcome.txt".
On the main stage there is a target rectangle MC called "empty".
On the loaded text you can press for example this link- >Add comments to our <a href="../guest_Book.htm"<
Which opens a new small browser window containing guest book.
My question- Is there a similar code that I can place in the "welcome.txt" file that will alow me to load "possible.swf" inside MC "empty" which is on the main stage??????????????
So to clear it can the dynamic text have a link in it that will load an external swf into the MC which is on the main stage?
Very Useful. Is This Easily Flashable?
Take a look at this: http://www.samknows.com/toys/distance.php?pc1=&pc2=
I'd love to be able to get that to work in flash - it's currently php so it must be doable, not sure how at this point though
tnx
[MX] Is This Something Easily Doable?
Hello I am a struggling design student taking a flash class as an elective with a teacher who pretty much makes himself unavailable. I am trying to put together a simple portfolio site.
I would like my gallery to look like this
if you click on the portfolio site here
http://www.stereotype-design.com/
I would like my gallery to scroll horizontally like that, is this easily doable? Any tutorials for galleries like this around here.
Thanks in advanced
Flash, Accessible Or Not ?
maybe this wasnt quite the right place to post this but anyway...
working on a dissertation which generally debates weather flash is accessible or not.. in all ways really, eg.. search engine optimization, disabled users, back buttons etc...
i was just wondering what everyone els's views are on this, some developers despise flash and will always argue that code and css is better..
thanks for any opinions
joey.
Resizing A SWF Easily
I have a swf consiting of quite a number of frames and scenes at 800x600 resolution. It has been decided that this needs to be 1024x768.
It is going to be loaded into another swf of this dimensions. Is there an easy way to resize it other than altering the size manually. I have tried fscommand("fullscreen", true); but this does not work
help
'this' Is Not Accessible From This Scope
I get this error when attempting to run my current movie:
Quote:
'this' is not accessible from this scope
The error is coming from a class containing public static functions, but it seems these member functions cannot access each other. Here's a simplified example of my problem:
ActionScript Code:
class miscUtils {
public static function makeString():String {
return "a string";
}
public static function traceString() {
trace(this.makeString());
}
}
How can I accomplish this successfully?
Accessible Flash
Hi all,
I work for a web design company who for some reason have got it into their heads that flash = bad. The main concern is that it is not accessible to screen readers etc.
Is Flash accessible? What about in menu's / navigation?
Any help in this matter would be great
This' Is Not Accessible From This Scope
I am sure there is an easy fix for this problem but I am trying to create a remoting connection from within an AS2 class. I am getting the following error...
Line 50: 'this' is not accessible from this scope.
pc.responder = new RelayResponder(this, "onGetRecords", "onError");
If anyone could point me in the right direction. The code so far is as follows:
import mx.remoting.*;
import mx.rpc.*;
import mx.remoting.debug.NetDebug;
import mx.utils.Delegate;
class com.oop.ContentLoader
{
static private var __gatewayUrl:String;
static private var __service:Service;
static private var pcendingCall;
function ContentLoader() {};
//PRIVATE
//__________________________________________________ _________________________
static private function loadContent()
{
__gatewayUrl = "http://www.mydomain.com/flashservices/gateway.php";
__service = new Service(__gatewayUrl, null, 'testService', null , null);
NetDebug.initialize();
pc = __service.getRecords();
pc.responder = new RelayResponder(this, "onGetRecords", "onError");
}
static private function onGetRevords(re:ResultEvent)
{
trace('loaded');
}
}
[AS2] Super Not Accessible
Hi,
this is utterly strange. At one point a class, that I wasn't editing or anything, stopped working saying that
Quote:
There is no property with the name 'super'.
more specificaly
Code:
**Error** C:Documents and SettingsMetjuDesktop\_GENERAL FLASHflashcommetjuphysicsVector.as: Line 41: There is no method with the name 'super'.
super ( x, y );
**Error** C:Documents and SettingsMetjuDesktop\_GENERAL FLASHflashcommetjuphysicsVector.as: Line 91: There is no property with the name 'super'.
return super.length;
Total ActionScript Errors: 2 Reported Errors: 2
The Vector class is nothing special... it's just a subclass of flash.geom.Point.
I tried clearing the ASO files a thousand times, restart flash, resave the Vector.as file and still nothing. Have you ever experienced such an error?
Flex 2 Help Not Accessible
Hi,
I hav installed Flex Builder 2 on my machine. Strangly i'm not able to launch its internal help files (F1). It gives me error "Help cannot be displayed. The embedded application serever could not run help web application."
I hav un-installed and re-installed the Flex. But of no use. Can anyone help me out?
thanks.
Accessible XMLList
I'm wondering what the most efficient way of making an XMLList available to anything that needs it. Basically, I load images into two movie clips, fade out the one on top, move down one depth, load a new image and the process repeats...the problem is that I'm only able to do the first two images as I'm not sure of how to access the XMLList to change the image.
Once I get that I believe I'll be able to get the rest. Do I have to create a getter function? If so, how would I do that? Here's what I have for the xml loading so far.
Code:
var xmlLoader:URLLoader = new URLLoader();
var xmlData:XML = new XML();
xmlLoader.addEventListener(Event.COMPLETE, LoadXML);
xmlLoader.load(new URLRequest("../banner_images.xml"));
//LoadXML function
function LoadXML(evt:Event):void{
var xmlData:XML = new XML(evt.target.data);
ParseImgs(xmlData);
}
function ParseImgs(imgInput:XML):void{
var imgAtts:XMLList = imgInput.img.attribute("src");
//trace is fine unless I'm trying to access this information
//outside this function.
trace(imgAtts[0]);
}
Easily Baffled
Hi all,
Why do I loose a drop shadow when importing a symbol from Fireworks to Flash and how would I keep it?
Thanks
Stupid Q - Probably Can Be Answered Easily
I got the window within flash thing working, but how do I keep the "Open window" button from overlapping the actual window.
[url="http://www.geocities.com/planetoftheroms/index.html"]See what I mean?[url]
SharedObjects Accessible Across URLs?
Hey Guys!
I'm using MX. My goal is to have a SharedObject get set in one URL/SWF and then in a different URL/SWF, load that same SharedObject and change or dump its value. These URLs are still on the same domain by the way.
The first SWF has this code:
_so = SharedObject.getLocal("IntroCheck");
today = new Date().getDate();
if (_so.data.playedToday == today) {
***do some stuff***
} else {
gotoAndPlay("Main", 1);
_so.data.playedToday = today;
_so.flush();
}
}
The second SWF has this:
_so = SharedObject.getLocal("IntroCheck");
_so.data.playedToday = null;
_so.flush();
***go to the first URL/SWF***
Is there an obvious reason why the second URL is failing to access and/or update the value of "playedToday"? Can SharedObjects not be "shared" with any SWF other than the one that spawned it? Thanks in advance for any help you can give me!
Bootsy
Vars Accessible In Different Scenes?
can i make variables that can b accessed in different scenes? i tried making them into globals but i still cant seem to get them to work. thanks
Creating Accessible Content
I tried to made an accesible movie. Where can i get some screen reader? Its free or must i pay for it?
I read some information on macromedia pages, but i dont understud all, how can i make my site with this movie accessible.
How doas it work with IE browser. Have you some good samples?
Thanks Jan
Making Sites Accessible
Hiya everyone.
I was just wondering what everyone thought about making my website more accesible to my visitors. I'm working hard at the moment to remove those disgusting frames and so I'll direct you to this site instead.
There are a few little animations on there, I wondered if you have any pointers.
Buttons Not Easily Clicked
I have a basic menu with text as the buttons, but i have put a clear box of the text to make it easier to click each button....
everything works except sometimes you have to click the button a few times before it will work...like its stuck or something
any clues to help?
better methods of making text easily clicked upon?
Easily Updateable Sections
If you want to offer easy updatable sections (eg a news section) in flash how would u go about doin it.
im talking about a client being able to do it.
would you make a swf that writes edits text files on the server?
Easily Combining SWFs
Hey guys,
I'm looking for an easy way to combine about 10 SWF files into one big SWF.
Any ideas?
Accessible ('correct') Flv Code?
ok since both dreamweaver and flash dont seem to know how to accessibly
insert FLVs into websites does anyone know the 'correct' tags to use??
at present im using the following which is only coming back with 26 errors at
present!!!
[HTML]<object type="application/x-shockwave-flash" data="movie.swf" width="170" height="148">
<param name="movie" value="FLVPlayer_Progressive.swf" />
<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=Clear_Skin_ 1&streamName=media/teaching_vid&autoPlay=true&autoRewind=true" />
<embed src="FLVPlayer_Progressive.swf" flashvars="&MM_ComponentVersion=1&skinName=Clear_S kin_1&streamName=media/teaching_vid&autoPlay=true&autoRewind=true" quality="high" scale="noscale" width="170" height="107" name="FLVPlayer" salign="LT" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>
[/HTML]
using the object type as apposed to embed as W3c doesnt allow embed.
any ideas??
many thanks
david
How Easily Parse RSS Feed
Hi,
I was able to write some actionscript to begin to load and parse an RSS feed, but it's not quite there. I was hoping for a little code snippet that would help me out.
I'm wanting to parse the data to textboxes in my Flash (e.g. txtHeadline1, txtStory1, txtHeadline2, txtStory2).
Thanks for any help!
Ron Cook
LoadVars Variable Not Accessible
/*
goal get the username2 variable inside the myLoadvars.onLoad = function
to be accessible from outside its function.
I've been told that adding a key frame to the timeline will allow the username2
variable to be used outside its function, which works but this script is
part of a larger script and the keyframe causes a movie clip on stage to blink
and display wrong.
I've attempted to use stops(); and gotoAndPlay(); to control the frames/blinking
but that either stops the loadVars script or causes the movie clip to blink faster.
I've also attempted to put the movieclip on keyframe 6 then used
gotoAndPlay(6) stop(); on key frame 5.
Which stops the movieclip from blinking but as you know the script on frame 1
isn't accessible from frame 6 because of the stop(); on frame 5.
How can i access the username2 variable?
*/
Code:
var myLoadVars:LoadVars = new LoadVars();
myLoadVars.onLoad = function( success ){
if(success){
_root.msg.text = username2;
}
}
_root.username2 = myLoadVars.valid;
trace(_root.username2);
myLoadVars.load('loadvars.php');
External FLV Accessible Only For One User
I have lots of video (FLV) which are kept external. And I am calling it inside my flash movie. I have lots of user which can acccess these videos at same time. But at present in the network only one user can access this video and for others it's total blank screen. I am working on CD - ROM presentation. Any idea to fix this?
Please help.
Thanks,
FL
LoadVars Variable Not Accessible
/*
goal get the username2 variable inside the myLoadvars.onLoad = function
to be accessible from outside its function.
I've been told that adding a key frame to the timeline will allow the username2
variable to be used outside its function, which works but this script is
part of a larger script and the keyframe causes a movie clip on stage to blink
and display wrong.
I've attempted to use stops(); and gotoAndPlay(); to control the frames/blinking
but that either stops the loadVars script or causes the movie clip to blink faster.
I've also attempted to put the movieclip on keyframe 6 then used
gotoAndPlay(6) stop(); on key frame 5.
Which stops the movieclip from blinking but as you know the script on frame 1
isn't accessible from frame 6 because of the stop(); on frame 5.
How can i access the username2 variable?
*/
Code:
var myLoadVars:LoadVars = new LoadVars();
myLoadVars.onLoad = function( success ){
if(success){
_root.msg.text = username2;
}
}
_root.username2 = myLoadVars.valid;
trace(_root.username2);
myLoadVars.load('loadvars.php');
_global.variable Not Accessible
Greetings!
I'm new in this forum, but have been coding in several languages for years.
I wonder if someone can give me some help.
I have this script:
+==============================+
var MAX_ITEMS:Number = 20;
_global.msgList = new Array(MAX_ITEMS);// initialize array to hold the message list items
function setTicker(news_file:String, maxItems:Number, mesgID:String):Void {
var news_file:String = news_file;
var maxItems:Number = maxItems;
var mesgid:String = mesgID;
var newslist:LoadVars = new LoadVars(); // will store the news imported from a text file in this variable
newslist.load(news_file);
newslist.onLoad = function():Void{
for (var i: Number = 1; i <= maxItems; i++){
mesgid = mesgID + i;
// trace("mesgid: " + mesgid);
var mesgItem:String = eval ("this." + mesgid);
// trace ("MsgItem: " + mesgItem);
if (mesgItem == "undefined"){
break;
} else {
msgList[i] = mesgItem;
_level0.news_txt.text = msgList[1]; // shows the correct value
// trace("Array elem: " + msgList[i]);
}
}
}
} // ticker()
function showItems():Void{
trace ("Elems: " + msgList.length) // shows the correct number
_level0.news_txt.text = msgList[1] // shows : undefined !!
}
+==============================+
The function setTicker() works fine and when I test it iterates through the message items and adds them to the mstList array (which is a global array).
But when I try to access the elements of the array from the function showItems() it turns out the the array elements are empty but that should not be the case because the previous function shows they are set.
I've spent 2 days in this and cannot see where the problem is. Can anyone give me a hand here?
Much appreciated.
Rick
Stage Width Value Accessible?
Hi...
I have a SWF embedded as 100% so that the SWF is resizable...
Is there a way to get the stage width that is set in the authoring time??? Obviously stage.width and stage.stageWidth changes when I resize the browser...
I sure can create a static variable that stores the value, but I am just curious to know if somehow that value is accessible in run-time...
Thanks...
Easily Paste Scripts
i was wondering if this is possible without having to create a custom class:
have a menu somewhere where i can put tidbits of script. and i can just click on it and it adds it to the script pane.
Pages Not Easily Viewed In Fla
Hello,
I have a fla document that has pages deep inside the animation. So deep that I can't find them. When I scrub, they are not visable. Any advice on getting to these pages so that I can make changes?
Thanks, Jenn
|