Accesing externally loaded variables
i would greatly appreciate a pointer or two as i am having a
painful transition to AS2.0
an 8k zip test is at: www.cyan-animatica.com/v2/exttest.zip
//(wasn`t there an option back in macromedia days to attach a
file?)
i am having a poblem accesing externally loaded variables :
A.--------------------------------------------------------------------
the external .txt has folowing content:
&a1_0=hello&a1_1=bye&a1_2=whatever
B.--------------------------------------------------------------------
loaded on the first frame thus:
var thumbs:LoadVars = new LoadVars();
thumbs.onLoad = function(success:Boolean):Void {
if (success) {
trace("LoadVars loaded successfully: "+this.loaded);
} else {
trace("Error");
thumbs.load("my_externals.txt");
C.--------------------------------------------------------------------
if want to access one of 3 loaded variable hardcoding, this
works just fine:
trace(_root.thumbs.a1_1) //bye
BUT i need to do this based on the mc/buton name that calls
it:
on (press) {
var kk:String = _name;
trace(_root.thumbs.kk);
i get UNDEFINED...obviously i am mixing datatypes if not
worse
pc win 2000
flash prof for flash8 player[
thanks for a prompt reply, blemmo.
you write:<<to ADD vars to the LoadVars object, it has
to be referenced correctly
what i want to do is READ vars from LoadVars object and
referencing is exactly what is killing me
sorry bout the lack of clarity. the zip would help
(www.cyan-animatica.com/v2/exttest.zip)
i am loading 3 variables into an object var thumbs:LoadVars
from one external .txt file:
a1_0=hello
a1_1=bye
a1_2=whatever
i want to see the contens of let us say the second variable
trace(_root.thumbs.a1_1);
produces bye , perfectly - this is exactly what i want, but i
want it based on a constructed reference
so, i have button in an mc named "a1_1", the button script
is:
on (press) {
var kk:String = _name;
trace(kk); // produces a1_1
trace(_root.thumbs.kk); //this should be same as
_root.thumbs.a1_1 and produce the same result, but does not
i suspect that the problem is that kk is declared as string
datatype, but no matter what i do i cannot get a result
thanks for your help
Similar Messages
-
Load variables externally?
I am fairly new to flash.
Can anybody give me any advice on how to load variables from
an external file on my website that I can edit with a text editor.
I am making a flash intro to a website that has a pull-down panel
that displays information on new content on the website. It has two
variables in the main actionscript 3 code:
var gotoUrl:URLRequest = new URLRequest("
http://www.website.tld/newcontenturl")
var whatsnewText:String = "There is something new on this
website!"
The first one defines the url that a Go To button will link
to to allow the user to visit new content directly.
The second one defines the message displayed on the panel.
I am looking for a way to load these from a file I can edit
with a text editor like Notepad++ so I don't have to open flash to
update the content.
Can anyone give me any advice on how to do this?I changed something related to what that variable is used
for.
I replaced whatever with
"Text". This is used in an action that changes a dynamic
text field to say what is in the variable. So it would make a text
field say
Text. This part does work because before I tried your code I
had just set the variable in the actionscript with the var action.
instead of whatever I used
"Text" -
Listen for a variable in externally-loaded interactive swf
Hi,
I'd like to set a variable inside an externally-loaded swf created in Flash Professional that is playing inside a Flex 4 application. The swf will "signal" the end of an interaction (using a s:SWFLoader). Once the variable is set (by arriving at a particular frame inside the externally-loaded swf, I'd like my Flex 4 application to "know" and take action to unload the swf and then "navigate" to another state with a new Flex-based interraction.
Perhaps a step-based illustration will be more clear:
1. Clicking a textfield inside a Flex 4 application loads a custom component that uses an <s:SWFLoader> to load an external SWF that includes buttons to navigate through frames in a "slideshow" fashion.
2. Once the end of the "slideshow" is reached, a variable is instantiated by
var swfEND:String = "swfDne";
3. I'd like my Flex 4 calling application to know when this event occurs, then I'd like the sef to unload and Flex to goto another state.
Any help, particularly on how to detect events in external swfs from Flex will be greatly appreciated.
Thanks,
Dougwanaryd,
> In my main timeline on frames this variable is changed
> (color = "red";) When the main timeline changes to a
> different location a new color is set. How do I make the
> movie clip listen for the color variable to change?
When the timeline changes to a different location, something
in that new
location changes the value of your color variable -- so why
not just update
the code in that location (or those locations) and have them
perform the
functionality that depends on the variable's value?
In any case, you should be able to use the Object.watch()
method.
Instead of creating a simple variable, create an instance of
the Object
class, then use the Object.watch() method to keep an eye on
things.
http://my.opera.com/darylducharme/blog/2007/02/13/the-object-watch-method
David Stiller
Co-author, Foundation Flash CS3 for Designers
http://tinyurl.com/2k29mj
"Luck is the residue of good design." -
Loading Variables in a Class Function
I am having problems loading variables from an external text
file inside of a class function. The text file has been created
properly, and the code that I use in the class is as follows:
_root.createEmptyMovieClip("texRules", -100);
loadVariables("texRules.txt", _root.texRules);
m_Rules = _root.texRules.rules;
I create an empty movie clip on the root frame named
texRules, load the variables into that movie clip with the next
line and then set my member string value equal to the text file
variable named rules. When I run the program, I get an undefined
for my m_Rules.
Here is my texRules.txt:
rules=THESE ARE THE TEXAS HOLD'EM RULES.
Any ideas as to what I am doing incorrectly?I've opted to use the LoadVars instead of creating an empty
movie clip and loading the variables there. Here is my new code.
public function setRules():Void
var rulesLoader:LoadVars = new LoadVars();
rulesLoader.onLoad = function (success:Boolean):Void
if (success)
trace(rulesLoader.rules);
this.m_Rules = rulesLoader.rules;
else
trace( "Unable to load external file.");
rulesLoader.load("texRules.txt");
Here is where I define my properties of my class:
class TexHoldem extends Game
//Class member properties
//Private Properties
private var m_Rules:String;
private var m_Target:MovieClip;
Here is my constructor:
public function TexHoldem(target)
this.m_Target = target;
super("Texas No Limit Hold'Em", 0, 1);
setRules();
The setRules function works fine, the only problem now is
that I can't save the variables once the onLoad function goes out
of scope. I've thought of modifying it so that it returns a type,
but that seems difficult. The two easiest solutions I see is to
create an empty text field that holds the string or find a way to
get the rulesLoader.rules outside of the onLoad scope. Any
suggestions now? Sorry to change the problem on you. -
External javascript variable problem
QUESTION: Why would an external javascript variable be undefined if I set it equal to all the links in a page?
BACKGROUND: I have a simple image swap function that works when the script is all in the html. But when I tried taking the script to an external javascript file, when I gather all the anchors on the page. The variable that is supposed to refer to the anchors is considered undefined in the middle of the script.
EXAMPLE: I have place an example online. You may check it out. Please.
Thanks!
Message was edited by: UteFanJasonSo I checked out that link, and some information on scope. I got the function to work. Check it out.
I did some more reading, and it turns out that the onload event is when the entire DOM has finished loading. (That is according to a book put out a couple of years ago so it could be different now).
This is what I changed the the code to:
function prepare_thumbs() {
var main_img = document.getElementById('main_img');
links = document.getElementsByTagName('a');
for (x=0; x<links.length; x++) {
links[x].onclick = function() {
main_img.setAttribute('src', this.getAttribute('id'));
return false;
window.onload = prepare_thumbs;
Again, thanks for the help! -
Please help me understand making and loading variable classes
Hi guys ,
I know that I am stupid but I just can't get this! AS3 says you need to load variables into a class? Please please give me a simple example
my variables look like this... (the whole point of playing around with variables was that if I had to make a change I could access one place and change them...
but now I realse that I can't access or call them outside the movie clip they are in:(
please hlep me!
var ans1="";
var ans2="";
var w1="ABN";
var def1="An ABN (Australian Business Number), is a personal number for your business that makes it easier and quicker to deal with government and other businesses.";
var w2="ACN";
var def2="An ACN is an Australian Company Number, which is a special number that each company gets to identify it. No two companies can have the same ACN";
var w3="Action Plan";
var def3="A business Action Plan will show What needs to be done and When it needs to be done by."
var w4="Advertising";
var def4="Advertising is producing information to let people know about your business and try to increase sales."
var w5="Promotions";
var def5="Promotions are where your business tries to increase the sales of a particular item through offering a good deal, advertising or a special display.";
var w6="Benefit";
var def6="A benefit is something good that you get. One benefit of doing exercise is getting fit, another benefit is losing weight.";
var w7="Business Mentor";
var def7="A business mentor is a trusted guide. Someone who has experience and has been successful in business and can help and advise you.";
var w8="Business Name";
var def8="A Business name is the name a business uses to do its work. It lets customers know who you are.";
var w9="Business Registration";
var def9="When you start a business you need to register your ABN, you may need to register your business name.";
var w10="Cash flow";
var def10="Cash Flow for a business is having enough cash saved to be able to pay your bills when they are due.";
var w11="Characteristic";
var def11="The characteristics of something are describing words about that thing.";
var w12="Charges";
var def12="A charge is something you have to pay, an expense.";
var w13="Company";
var def13="Is the same as a corporation. A company is a type of business that needs to be registered (either State or Federal) and has special legal status. A company can put Pty. Ltd after it’s business name.";
var w14="Competitor";
var def14="A competitor is another business that is challenging you for customers.";
var w15="Constitution";
var def15="A constitution in business is a list of rules and principles that a company has agreed to follow.";
var w16="Corporations Aboriginal and Torres Strait Islander Act";
var def16="In the 1960s and 1970s, various reviews advised the Australian Government of the need for legislation to make it easier for Indigenous communities and organisations to form corporations. As a result, the ACA Act was passed, allowing Aboriginal and Torres Strait Islander groups to form corporations for any social or economic purpose.";
var w17="Corporations Act";
var def17="The Australian Securities and Investments Commission (ASIC) have laws that apply to corporations and these are found in the Corporations Act.";
var w18="Cultural knowledge";
var def18="Cultural knowledge is special information that is held by a particular cultural group, this could include technologies (e.g. special ways of using materials, making and using tools), stories, language and song, cultural rules, taboos, regulations and oral history.";
var w19="Customer";
var def19="The customer is someone who is buying something from a business.";
var w20="Debt";
var def20="Is something that you have to pay back. If you borrow 20 dollars you have a $20 debt.";
var w21="Direct competitor";
var def21="Is selling exactly the same thing as your business and competing for your customers.";
var w22="Dividend";
var def22="A dividend is money that is paid to shareholders regularly out of the company’s profits.";
var w23="(Microsoft) Excel";
var def23="Microsoft Excel is a computer program that lets you keep lists of numbers and also add up totals and do other sums to those numbers.";
var w24="Fees";
var def24="A fee is something that you have to pay, an expense.";
var w25="Financial Management";
var def25="Financial Management is the planning, organising, checking and controlling of the income, expenses and Tax for a business.";
var w26="Franchise";
var def26="A franchise is a type of business you can buy. When you buy a franchise you set up the same type of business that has been successful somewhere else.";
var w27="General ledger";
var def27="A general ledger for a business is where all of the income and expenses for that business are kept in a document.";
var w28="Goal";
var def28="A goal is a target that you set yourself or your business. Something that you want to achieve.";
var w29="Growth opportunity";
var def29="A growth opportunity is a chance for a business to get bigger.";
var w30="GST";
var def30="The Goods and Services Tax is paid when you buy things. Some items like food and medicine do not have the Goods and Services tax charged to them.";
var w31="ICN";
var def31="Indigenous Corporations Number is a special number given each indigenous corporation to identify it. No two indigenous corporations can have the same ICN.";
var w32="Incorporate";
var def32="Incorporate is what people do when they create a company or corporation.";
var w33="Indirect competitor";
var def33="An indirect competitor is selling a similar product or service to your business. E.g. If you had a pizza shop, a fried chicken shop is an indirect competitor because it sells food and your customers might want to eat chicken instead of pizza.";
var w34="Labour";
var def34="Labour is all the work done by people (including you) in your business.";
var w35="Legal name";
var def35="Your Legal Name is the name that is on your Birth Certificate.";
var w36="Legal protection";
var def36="Legal protection means you are protected under the law from certain things happening.";
var w37="Legal structure (business)";
var def37="Legal structure is the type of business, sole trader, company, partnership.";
var w38="Liability";
var def38="A liability is something you are responsible for.";
var w39="Licence";
var def39="A license is proof that you have permission to do something. For example, if you have a driving license you can drive a car.";
var w40="Lodge";
var def40="To lodge a form means to send it to where it has to go.";
var w41="Manufacturing";
var def41="A manufacturing business makes things.";
var w42="Marketing budget";
var def42="A marketing budget is the amount of money you have set aside for advertising and promotion for your business.";
var w43="Minor criminal convictions";
var def43="A minor criminal conviction is something small you have been in trouble over with the police. Shop lifting is an example of a minor criminal conviction. ";
var w44="MYOB";
var def44="MYOB is financial management software for business.";
var w45="Networks";
var def45="A network for business is all of your contacts, customers and the people you know through doing business. ";
var w46="Obligations";
var def46="Obligations are things you are responsible for.";
var w47="One off";
var def47="A “one off” cost is something that only needs to be paid for once.";
var w48="Operating budget";
var def48="The Operating Budget is a record of the income and expenses of a business.";
var w49="Overheads";
var def49="Overheads are the expenses or costs in running your business, the things you have to pay for.";
var w50="Partnership";
var def50="A partnership is where two or more people own and run a business.";
var w51="Permission";
var def51="Permission is where you ask if you can do something. If you ask and the person, group or council and they say yes, you have permission.";
var w52="Permit";
var def52="A permit is a special license or permission to do something";
var w53="Personal assets";
var def53="Personal assets are things that you own, like your car, house and furniture.";
var w54="Personal protection";
var def54="Being part of a company offers the shareholders some personal protection from legal and debt liabilities. This means that they have less responsibility than a Sole trader.";
var w55="Photo identification";
var def55="Photo Identification is a document that shows who you are and has your photo on it, like a Driver’s License, 18+ card or a passport.";
var w56="Postal address";
var def56="Your postal address is the address where you get your mail sent. It might be different to the address where you live.";
var w57="Pricing structure";
var def57="Pricing structure is where prices for something can change depending on how much the customer orders. The bigger the order the cheaper the price becomes.";
var w58="Private";
var def58="Private means not part of government.";
var w59="Profitable";
var def59="Profitable means that there is money left over after a business pays for all of its expenses out of the money it has made.";
var w60="Promote";
var def60="When you promote something you try to advertise or increase the amount of people who know about it.";
var w61="Public liability insurance";
var def61="Public Liability Insurance gives legal protection to the business owner against getting sued by a member of the public for things like injury or property damage. ";
var w62="Quickbooks";
var def62="Quickbooks is financial management software for business. ";
var w63="Registered";
var def63="Registered means that you have recorded your information on an official list. You register your car to be able to drive it on the road.";
var w64="Regulations";
var def64="Regulations are rules or laws that control what you can and can’t do.";
var w65="Retail";
var def65="Retail is where things get sold in small amounts to customers. Retail usually happens in a shop and the prices are higher.";
var w66="Service";
var def66="A Service business provides a service, like lawn mowing or accounting services.";
var w67="Shareholders";
var def67="Shareholders are people that own part of a company.";
var w68="Sole trader";
var def68="A sole trader is where one person owns and runs a business.";
var w69="Start up budget";
var def69="A Start Up Budget is the first Budget that gets done for a starting business and includes all of the costs involved in setting up the business.";
var w70="strategy";
var def70="A strategy in business is a plan of attack, or a plan of how to get something done.";
var w71="system";
var def71="A system is business is a set of detailed plans and rules for how to do something in your business.";
var w72="Vision";
var def72="Vision in business is being able to imagine and see something in the future. To set up a new business you need to be able to see something new that wasn’t there before.";
var w73="Wholesale";
var def73="Wholesale is where things get sold in large amounts, usually for a cheaper price. The Wholesale price. A wholesaler is usually a big shed where goods are stored. Wholesale is not usually available to just anyone.";no, that's not a reason you would use a class file.
anyway, your document class variables are defined on the main timeline so to reference them from any timeline you can use:
MovieClip(root).w36; // for example (but it's really undesirable to have coding in more than one timeline) -
Enable External Load Balancing error
Hello,
I'm trying to create a DirectAccess farm with 2 external Load balancers (Step 3.1.1 http://technet.microsoft.com/en-us/library/jj134166.aspx)
The first server is configured (Behind a Edge with 2 NICs) and working but when trying to enable External Load Balancing, I immediately receive this error when applying the settings:
Initializing operations before applying configuration
Backing up GPOs...
Updating cluster settings
Retrieving server GPO details...
Opening the server GPO...
Error: The configuration data for this product is corrupt. Contact your support personnel.
Finishing operations after applying configuration
Information: Attempting to roll back the configuration...
The DirectAccess dashboard shows that all services are fine, the DC is available and no errors are logged in the Event Viewer.
I can't find any explanation about a possible corrupted configuration.Ok... Found the problem... You can't mix Internet IP and LAN IP to create the VIP...
-
Dynamic Text in Externally Loaded swf
hi. i have a dynamic text field in an externally loaded swf. Its a digital clock so i want the numbers to update in the dynamic text field.
this is not my exact code but it is very similar. i show below that i add the loader.swf, and once its loading is complete, i can work on its movieclips and add event listeners to its buttons, etc. but i cannot change the dynamic text field (its "classic text" set to "dynamic text"). after running this, the text just stays empty as it is in the external swf).
here is the sample code:
var loader:Loader = new Loader();
loader.load(new URLRequest("loader.swf"));
loader.contentLoaderInfo.addEventListener(Event.COMPLETE, loaded);
function loaded(event:Event):void{
addChild(loader);
var loader_mc:MovieClip = (loader.content as MovieClip)
loader_mc.myMovieClip.gotoAndStop(2);//***this works
loader_mc.myButton_btn.addEventListener(MouseEvent.CLICK, clickMe);//***this works
loader_mc.myText_txt.text = "12";//***this doesn't work******
please help. thanks!Did you embed the font in the textfield--it needs to be done in the loaded swf when you create it? One other thing to check is that the color for the textfield is not the same as the background it sits on.
-
How to load variables from a .txt file
Hi.
I usually make a flash aplication in colaboration with a php
programmer. But i want to test my swfs without having to wait for
him. So i want to do that through a text file. I know that flash
can load variables from text files. The problem is i don't know how
to format the text file ( example.txt).
Thank youHere's a couple of ideas.
First you probably want to change what you have...and put
your 'if (pVar==1' etc inside a separate function and call it from
the onLoad handler after you have assigned the value to pVar...
because the onLoad will run at some unknown point in time after
loading has finished (actually in the test environment this might
work... but that wouldn't be the same as what happens in a
production setting).
To create test files for loadvars... simply create a new as2
file and put this code on the first frame and test movie: -
Using the DateField in an Externally loaded SWF
Hello,
I have been having major trouble trying to get a basic PHP
contact form to work within an externally loaded SWF file inside of
a parent SWF. When I test the movie on its own it seems to work
fine (example: I'm able to select a date from the DateField
component). However, when I open up the parent SWF file and call
the external SWF file with the form the DateField is basically
unusable (example: when you click on it nothing happens, no
calendar pops up to select a date).
I have no ActionScript on it yet, simply because I figure I
need it to work before I tell it what to do with the PHP file. The
instance name on the DateField is "theDate". Any help is very much
appreciated. Thank you.
Also, I have just successfully used the contact form on the
web. But, the only user interface components I am able to edit are
the input text boxes, not the DateField or the ComboBox I have in
it as well. This is very odd, I was not aware that anything special
had to be done using these UI components within an external file.
ElijahHello 2m,
Maybe if you were to see it, it may help you out a bit. If
you
click
here for the external file you will see that the components are
working. However, if you
click
here for the parent file and then click on "Meetings" on the
top menu you will see that they do not work at all. However, if
someone were to hit the "send" button, the PHP code would actually
interact with the form. Let me know if that helps at all. Thanks
again for replying.
Elijah -
UAG External Load Balancing and ISATAP
Hi Experts,
I am deploying a UAG Array to be used for Direct Access. The Array will consist of two servers and use an F5 External Load Balancer. In addition and in similarity
to 90% of the other corporate intranets out there, the internal network is IPv4 with no IPv6 transition technologies deployed. The article
http://blogs.technet.com/b/edgeaccessblog/archive/2010/05/17/configuring-an-external-load-balanced-uag-directaccess-array-for-an-ipv4-only-network.aspx
isgreat but to my mind has no information to support ‘Manage Out’ and throws up a number of questions: (Note that I want to enable ‘Manage Out’ capability and as far as I am aware that is achieved by using ISATAP)
The article describes that you have to generate and configure your own IPv6 address for the internal interface when using an external load balancer. Does anyone know why? Why not let UAG assign
the addresses as per the default?
UAG by default configures itself as an ISATAP router when there is no IPv6 infrastructure deployed on the internal network
to facilitate ‘manage out’. This still applies when using Windows NLB. Why does this no longer apply when using an external load balancer? I.e. Why does UAG no longer configure itself as a ISATAP router?
In relation to question 2; you therefore need to move your ISATAP router to a different device (http://technet.microsoft.com/en-us/library/ee690463.aspx),
in doing so how do you configure the ISATAP environment to traverse the UAG servers without some sort of load balancing on the internal interfaces? I’m assuming that you can only tell the ISATAP router to use the one default gateway i.e. either one UAG server
or the other. This means that you would have all your outbound internally initiated traffic going via one server only – not very good for performance or fault tolerance.
In relation to question 3; I thought therefore that NLB could be used on the internal interface to solve the above problem, except that I have read that you can’t mix and match external load
balancing and NLB even though they are on separate networks due to bidirectional affinity. What does this actually mean and why does this not occur when load balancing is mixed in this manor?
Therefore when you wish to use external load balancers, do you:
A) Except the fact that you can’t use UAG as a ISATAP router and you do indeed need two devices
and deploy it as described here (http://technet.microsoft.com/en-us/library/ee690463.aspx)
or
B) Except the fact that that you can’t use UAG as a ISATAP router and any internal outbound
traffic travels via the one UAG server only.
Apologies for the long post, but I wanted to make sure that I get my thoughts down concisely so that it may help others who come up with the same questions
J
Thanks for your time everyone
GaryI am also facing the same issue. I have UAG1 and UAG2, which are in an array, and externally load balanced. I've configured an external ISATAP router according to:
http://www.windowsnetworking.com/articles_tutorials/Configuring-ISATAP-Router-Windows-Server-2008-R2-Part2.html. However, as mentioned by others, the ISATAP router has to have either UAG1 or UAG2 as the next hop for IP-HTTPS traffic. As
a result, communication between the DirectAccess client and management devices will only work if the client is tunneling through the same UAG server that the ISATAP router has as the next hop for the IP-HTTPS prefix. From what I can tell, my configuration
is supported, but I can't figure out how to have the ISATAP router determine which UAG server a client is tunneling through. I thought about having two separate IP-HTTPS prefixes for each UAG server, but this would get overwritten when activating
the DirectAccess configuration. Maybe some type of internal load balancing? -
External Load Balancing OAM11g Servers
With OAM 11g, DB 11.2.0.1, RHEL5.6, and WLS 10.3.5... we have clustered the managed servers and all that displays, starts, stops as expected -- hosts are H1 and H2. We also have an external load balancer (haproxy). By "external", I mean that the host (PRHost) where the protected resource (PR) resides is outside the LB and all of the OAM infrastructure is inside the LB. We actually have 2 layers of LB because we are also trying to create a disaster recovery site, but for now we'll concentrate on the just the webgate and the LB.
We have installed WLS 10.3.5, OHS 11.1.1.2, and have deployed a PR on the PRHost. We then installed the 11g webgate on PRHost and instantiated the webgate within the OAM Server on H1 and moved the artifacts to the PRHost.
The question is fairly simple -- at least from my perspective -- the webgate gets its connection information from the ObAccessClient.xml artifact created when the webgate was added to the OAM Server. The only connection the webgate understands is the listing of the primary/secondary OAM Servers within that artifact.
QUESTION:+ When we access the protected resource, how will it know to go through the external LB if the only connection information it has is the OAM Server? We realize that there is LB information within the OAM Server setup, but this means that in order to determine where the LB is, we need to first access the OAM Server setup. We require the PR to first go through the LB to find an available OAM server, but there appears to be nothing on the PR webgate to inform it how to find the LB.Luis,
you need the command 'portmap disable' available in 5.01 and 5.03
gilles. -
In my SWF fie, I have an externally loaded FLV file.
I now want to add another FLV that will load and play
automatically when the first one is finished.
I actually want the SWF to jump to a new scene when the first
movie is done.
How can I do that/ what the actionscript?
StevenHey Steven,
I am not very sure but just giving a shot answering it...
You can use FLVPlayback.complete event to detect the
comepletion of first flv and set the path of other flv on complete.
Something like this:
import mx.video.*;
my_FLVPlybk.contentPath = "
http://www.helpexamples.com/flash/video/clouds.flv";
var listenerObject:Object = new Object();
// listen for complete event; play new FLV
listenerObject.complete = function(eventObject:Object):Void {
if (my_FLVPlybk.contentPath == "
http://www.helpexamples.com/flash/video/clouds.flv")
my_FLVPlybk.play("
http://www.helpexamples.com/flash/video/water.flv");
my_FLVPlybk.addEventListener("complete", listenerObject);
Hope that works... -
Problem loading variables and controls in Workshop 8.1 (Beta) Palettes
Hi All,
I am getting problem in loading variables and control in the Workshop Data and
Control Palette at times when I open the application. The Workshop interface shows
the variable at times and does not show up at all on another instance. Let me
know if anybody else has faced a similar problem or notAkshay,
Please post this question in the Workshop 8.1 Beta Newsgroup.
weblogic.developer.interest.81beta.workshop
Thanks
Raj Alagumalai
WebLogic Workshop Support
"Akshay Aggarwal" <[email protected]> wrote in message
news:3e9107da$[email protected]..
>
Hi All,
I am getting problem in loading variables and control in the Workshop Dataand
Control Palette at times when I open the application. The Workshopinterface shows
the variable at times and does not show up at all on another instance. Letme
know if anybody else has faced a similar problem or not -
Hi guys. Just have a couple of questions about external loading.
Firstly, in order to reduce the file size of my swf, I want to place all the video and image content on a server and just loading it in using as. Is this done using a standard URLRequest or do I need the NetConnection thing?
Secondly, say I aim to have a preloader, which loads all content of the swf before the users enters the website (The swf will be a website...I aim for no loading whatsoever when the user enters the site). Will the preloader load all the content which relies on the above method (URLRequest or NetConnection), or will this only happen when the user navigates to a page which holds the video or image to be loaded from the server?
Any advise appreciated as always,
cheersyou can load swfs and bitmaps using the loader class.
and, if you have a preloader for your main swf that will not preload swfs and bitmaps loaded using the loader class unless you explicitly preload those assets.
Maybe you are looking for
-
Using 2005 30" Cinema display with new mac pro
I will order a new MacPro to replace my Mac Pro 1.1 immediately upon release. I also have a 30" Cinema Display version 2005. It's interface with the existing Mac Pro is three cable hookup: DVI, USB and Firewire 400. By connecting the Cinema displ
-
Safari will not open websites saying can't find website
Safari will not open some websites saying can't findserver. It will open others like them. Will JavaScript cause this issue. How do I fix my safari and get my websites to open.
-
SAP Business Obeject XI 3.1 SP3 CLuster
Hi All, In our landscape we want to install SAP BOBJ XI 3.1 (SP3) systems on cluster. We have 2 window 2008 server were we installed BOBJ XI3.1 (Tomcat55), Crystal 2008 and SAP integration KIT XI 3.1(SP3). Prior to start BOBJ installation we created
-
Few times a week, ff opens after boot with random tabs from history open. But today it kept opening the same set of windows (not tabs) from random points of time from history. It stopped after I closed 4 of them and browsed a bit with the last and cl
-
Hi , I have Lenovo G550 and it crashed. When i used recovery discs .. i got some problem saying" Cant read from the device". So I turned it off and tried with another set of receovery discs i have made. But Now it is saying " Insuffient space and not