Load and control swf
Hello, i am using loadmovie for load a swf file. I use this:
_root.content._x = 0;
_root.content._y = 0;
loadMovie("other.swf", _root.content);
_root.content.stop();
But don´t work. Other.swf is an animation, and i
haven´t MC. I want to control with a play, pause, stop....
other.swf from my main movie, is this possible?
Thanks
http://gskinner.com/blog/archives/2007/07/swfbridge_easie.html
Similar Messages
-
SQL Loader and control file changes for different users
In the front end of my application I can select a data file and a control file, and load data to the table mentioned in .ctl file. Every user who logs in uses the same .ctl file and so loads onto the same table. Now I want the user to load data onto the table in his own schema. I can get the username of the user currently logged in and i want to insert it into that username.table. So can i copy the contents of the .ctl file into a variable, modify it into username.table in that string and pass that variable as a parameter to the sqlldr command instead of the .ctl file.
Or is there a better way how I can modify the same control file everytime to change tablename to username.tablename in .ctl file and pass to sqlldr to load data to table in local user schema table.
Thanks and RegardsThanks for the reply .. user do have their user credentials but only for the application ... but all users use a common loader and control file once they log into the application. So irrespective of which user is logged in he selects the same control file and loads to the same table mentioned in the control file .. i instead want user to be able to load to the table in control file but into his schema like username.tablename instead of just the tablename mentioned in .ctl file.
-
Loading and download SWFs for AIR apps on iOS from server
Dear
I develop app for ios using adobe air i need to loading and download swf in my server to my local device
i make it loading from server and play but i need to download it locally in device to play offline
Please Help
Thank YouIf I undestand correct, the unload() is unsuported yet, so it just hangs in the memory
In the tests I did, when I put two loads for the same swf, the app freezes, so I don´t know what you can do there.
For the "code", you just need to put the LoaderContext on the loads, something like this:
Frame 1:
var myLoader:Loader;
var loaderContext:LoaderContext = new LoaderContext(false, ApplicationDomain.currentDomain, null);
if(myLoader == null){myLoader = new Loader(); addChild(myLoader); }
else {myLoader.unload();}
Frame 2:
myLoader.unload();
myLoader.load(new URLRequest("file1.swf"),loaderContext);
Frame 3:
myLoader.unload();
myLoader.load(new URLRequest("file2.swf"),loaderContext);
Frame 4:
myLoader.unload();
myLoader.load(new URLRequest("file3.swf"),loaderContext);
Regards,
Rogério Gonzalez -
Load and control AS2 interactive SWF in AS3 and get properties of AS2 swf
Hi,
Can anyone please tell me how to load AS2 and AS3 swf file in AS3 Loader class. I have tried "ForcibleLoader.as, AVM1Loader.as, AVM2Loader.as but as of now I have not get successes yet. There are some issue in all library.
I am looking for below solution.
1) Load SWF file AS2, AS3 via flashVars params and load it in AS3 player.
2) After successfully loaded, below properties should be shown -
a) totalFrames
b) currentFrames
c) FPS of loaded swf file
d) Should wok play(), stop() properties of loaded swf file.
e) SWF file should work just like video player application where we can do Play, Pause, Stop, Seek (All properties and methods
should be supported. )
3) Player should be capable of loading all swf file regardless of any version AVM1 AVM2 both in AS3 Player.
4) After loading player should scale external loaded swf file as per Player stage width and height and content should be scale
proportionate in 4:3.
4) AS2 & AS3 action script must be supported in AS3 player. (All interactive swf file should be supported)
Thankshttp://gskinner.com/blog/archives/2007/07/swfbridge_easie.html
-
Display/load and Unload SWF in flex
hi friends
i wnat to disply external SWF file into flex but without using SWFLOader(it's make lot's of problem) nad i also Embed that SWF
this is code
[Embed(source="1.swf")]
private var loadswf:Class;
private function load():void{
var symb:MovieClip = new loadswf() as MovieClip;
this.addChild(symb);
it's give me error....
TypeError: Error #1034: Type Coercion failed: cannot convert demos_loadswf@39ab3c1 to mx.core.IUIComponent.
please help to resolve this error or give me suggestion to simple Disply/Load and Unload Embed SWF file in flexthnx Flex harUI
i added UI componentes now my full code is like..
import mx.controls.Image;
import mx.controls.Alert;
[Embed(source = "1.swf")]
public var SWF:Class;
[Embed(source = "2.swf")]
public var SWF2:Class;
private var mc:MovieClip;
private var img:Image;
protected function checkBtn_clickHandler(event:MouseEvent):void
clear();
img = new Image();
img.width=Number("700");
img.height=Number("700");
mc = new MovieClip();
mc = MovieClip(new SWF());
img.source = mc;
vBox0.addChild(img);
protected function critcalBtn_clickHandler(event:MouseEvent):void
clear();
img = new Image();
img.width=Number("700");
img.height=Number("700");
mc = new MovieClip();
mc = MovieClip(new SWF2());
img.source = mc;
vBox0.addChild(img);
protected function clear():void
try{
if(mc!=null){
flash.media.SoundMixer.stopAll();
img.source="";
img.source=null;
mc=null;
vBox0.removeChild(DisplayObject(img));
vBox0.removeAllElements();
vBox0.removeAllChildren();
}catch(e:Error){
Alert.show(e + " ----::---- ");
<mx:Canvas id="vBox0" width="700" height="700" ></mx:Canvas>
<mx:HBox >
<mx:Button id="checkBtn" label="first" click="checkBtn_clickHandler(event)"/>
<mx:Button id="critcalBtn" label="second" click="critcalBtn_clickHandler(event)"/>
</mx:HBox>
now my error gone!!! but one problem is there when i unload my first SWF and load second SWF(on button click), my first SWF sound are still play in Background, i cn't unstand Y this will happen coz i already remove all object and child from my Canvas.
any help on this.... -
I know I've done this before but, I don't use SQL Loader often and I'm having issues getting a file to load.
The table has 6 columns in it - one of which is a timestamp.
I was having issues loading it initially with date format issues. I ruled out any issues with the timestamp format by simply loading a dummy table with some timestamp based data and had no issue.
So - I think the issue is around the fact that the table I'm loading's first column being a value I'm attempting to default with a sequence when loading and - that I'm screwing up something there.
Table is as such:
CREATE TABLE ACS_IPS
(seq_ips NUMBER,
col2 VARCHAR2(100),
col3 VARCHAR2(100),
col4 VARCHAR2(100),
col5 TIMESTAMP,
col6 VARCHAR2(100),
col7 VARCHAR2(100),
col8 DATE DEFAULT SYSDATE NOT NULL,
col9 VARCHAR2(30) DEFAULT USER);The control file is:
load data
truncate
into table acs_ips
fields terminated by ","
trailing nullcols
seq_ips "seq_ips.nextval",
col2,
col3,
col4,
col5 TIMESTAMP "YYYY-MM-DD HH24:MI:SS.FF9",
col6,
col7
)The sequence column isn't in the file being loaded... and - there are additional columns that are defaulted on the table that aren't in the control file.
Any help is appreciated... The error I'm getting is:
Rejected - Error on table CAMS.ACS_IPS, column ACTION_START.
ORA-01841: (full) year must be between -4713 and +9999, and not be 0Yeah - not sure that clears it up...
The sequence in my table is the first column - and - I think that's the problem... the sequence is being loaded as the first column in the control file but - it's not in the file being loaded so - it's skewing (again - I think??) the data being read in - which is why I'm getting the timestamp issues on the one column (it's actually reading the next column in the file vs. the actual timestamp one).
If that's the issue - I'm not sure how to avoid it without restructuring the table to stick the sequence physically at the end. I'm certain that's not necessary and - I'm overlooking something that's otherwise simple but evading me. -
Load and open swf in new window
Hi everyone,
I have 2 flex applications named login and game. When the user logged in, I want the login swf to load the game swf and open it in a new window once it finished loading. I tried popup manager and title window but they only made the swf popped up INSIDE the app itself (which is the login swf). What I really want is to be able to load and open the game swf in a brand new popup window.
Please help. Thanks.Loggin in is a classic example of when to use states.
The base state will be your app, and the "login" state will be your login state. Set the application currentState to 'login' in the creationComplete event.
<?xml version="1.0"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
creationComplete="this.currentState='login'">
<mx:states>
<mx:State name="login">
<mx:RemoveChild target="{vb}"/>
<mx:AddChild>
<mx:Form>
<mx:FormHeading label="Login"/>
<mx:FormItem label="Username:">
<mx:TextInput/>
</mx:FormItem>
<mx:FormItem label="Password:">
<mx:TextInput displayAsPassword="true"/>
</mx:FormItem>
<mx:FormItem>
<mx:Button label="Login" click="this.currentState=''"/>
</mx:FormItem>
</mx:Form>
</mx:AddChild>
</mx:State>
</mx:states>
<mx:VBox id="vb" width="100%" height="100%">
<mx:Label text="Login Done - Now in Main App"/>
</mx:VBox>
</mx:Application> -
Help with load and unload swf file.
hello, just now i try, to load my file using the code snippet 'load and unload' i manage to load the next file succesfully but why my recent file still appear in the background? how do i make it gone?
When you load another SWF you're loading it 'inside' the current SWF but it appears that you want to replace the current SWF entirely with the new SWF, is that correct?
If so you should make what's usually known as a 'stub' or a loader. Make an empty project that merely acts as a loader. It should load your first SWF and when you press a button on that first SWF to load a second SWF, it should signal the 'stub' it's loaded inside to unload the first SWF and then load the second.
e.g. a stub.swf (just coding out of memory, not error checked, just to give a general idea):
// make a new loader to do all the loading of SWFs
var loader:Loader = new Loader();
// and display
addChild(loader);
// a function to load a SWF into the loader (replacing any existing SWF)
function loadSWF(path:String):void
// assure path is defined or do nothing
if (!path) return;
// load requested SWF
loader.load(new URLRequest(path));
// load initial SWF
loadSWF('/path/to/1.swf');
For your 1.swf to use the function, you're currently inside the .content property of a Loader so I believe you can just run a command like: Object(this.parent.parent).loadSWF('/path/to/2.swf');
This example obviously lacks any error checking or transitions but you can add those and season to taste. -
Load and control youTube video
I would like to load a youtube video in a flash movie.
I have absolutely no idea how to do this.
I have the URL of the movie and I have the target movieChild.
All I want to do is to load and play the video frm within the
fash movie I have created.
Can anyone help me. I am using FlashMX. and I haven't used it
for a while (and I am no computer expert.)When you create the PeaBee embedding code...note the "edat"
variable.
Put that as a _root variable in your FLA. For example:
_root.edat="FA18987ECB...
Then, load the swf from
http://player.peabee.com/ (the
address is
automatically translated to a SWF).
You should now have a fully functional player inside your own
code.
Patrick
dorianw wrote:
> The video is mine, so it's not a question of having the
video on my site. It's
> more a question of using youtube to store all my videos
and calling them up
> when I need them but in the size i need . I've just
tried PeaBee but the video
> comes out jerky and I can't seem to use it from within
the swf I create.
>
http://www.baynewmedia.com
Faster, easier, better...ActionScript development taken to
new heights.
Download the BNMAPI today. You'll wonder how you ever did
without it!
Available for ActionScript 2.0/3.0. -
Flex 4.6 IOS Mobile packager - can it load and play swf's dynamically at run time?
I have an app that shows the viewer slides in a SWFLoader object. I load the slides at runtime from a remote server. When I package the app for IOS using 4.6 the swf slides load and play fine in the IOS emulator on the PC. They don't load, however, when I deploy to a provisioned iPad.
My guess is that IOS can handle doesn't know what to do with dynamically loaded swf data. I'm not positive though because it plays in the emulator. Is that emulator truly emulating xcode or is it running flash?
Note: this same app plays an rtmp flash stream just fine even on the device itself. Just can't handle a dynamically loaded swf.The correct answer to this question appears to be that Apple's terms of service *do not* prohibit the loading of swf's on IOS from remote servers dynamically at runtime. They prohibit the loading of swf's that *contain executable ActionScript code*.
I loaded a PPT into Adobe Connect and then retrieved the resultant slide swf's from the Connect server. I took these swf's and loaded them into my iPad app, dynamically at runtime, from a remote server. The swf's loaded and animations played. I made no changes to my code. I'm just using a plain old SWFLoader object.
Loading swf's dynamically at runtime from remote servers into IOS works - if you make the swf's right. How to do that I'm not sure. -
Need to load and unload swf from single htm file
I need to load or unload swf file or we can say that i need load 3 project one by one in current window
mit,
So are you saying you need to have one swf file call a second file to play, then call a third to play...
Which Captivate version are you using?
Are the swf files all captivate published swf's?
Do you have access to Flash Professional and if so what version?
how are you running your file, is it scorm packaged or just html based?
I may be able to help with your issue, but need these details. -
Detecting a Loaded and Displayed SWF
Hi All,
Dir 11.5 Flash AS2/AS3 - all fine, it works.
I am using DIR to make CD-ROM delivered SWF movies.
I have a SWF in the first frame - it is a load progress spinner.
The SWF is is Type:Flash Movie, named "MovieOnScreen".
I want to open this .dir as a MIAW. Pass a SWF name and path to an exteral SWF to "MovieOnScreen" member to replace the progess spinner SWF. I have done this with:
member("MovieOnScreen").fileName= "Flash\movieX.swf" in 'on startMovie me'.
I need the spinner to play/display until the external SWF full loads and then replace it.
The SWF and behaviors are in frame 1.
How can I test to see if the SWF is loaded?
I was thinking about having the spinner play on top of the external SWF until the it has loaded then hide the spinner (visible = false).
End of Quarter/Year crunch and my vacation time presses to find a solution fast.
Thanks,
Jim WileyWhat code/approach have you tried? What are you using as the trigger to load one after another has displayed?
-
Load and Control Extrenal HTML within Edge?
To preface things, I'm primarily a Flash animator - I can work my way around Action Script, but since swf files are on the outs, I have started messing with Edge Animate and HTML5 in general...
Let's say I want to use Edge to let users control an animated character. Now, in Flash, I'd just create a nested timeline of - we'll call him McFlashy - like this:
frames 1-50 is a "waiting" period, meant to loop while waiting for users to push a button;
frames 50 - 100 McFlashy jumps then returns to frame 1;
frames 100- 200 McFlashy waves and says "Hello! The SWF is dead!" and returns to frame 1;
Then I'd simply place buttons (ie JUMP_btn and SPEAK_btn) on the stage with "gotoandPlay.McFlashy_mc("jump") functionality. Pretty simple stuff. Now I want to recreate this in Edge Animate...
I used CreateJS to export the animation as an HTML file (McFlashy.html). What's the next step?
How do I tell Edge to load the McFlashy.html inside the main file created by Edge?
Can I control WHERE the McFlashy.html appears on the stage?
How can I have the Edge buttons control the McFlashy.html file like I mentioned earlier?
Is there a better way to do this than what I'm trying?
Let's assume I have to use Edge.
I know importing a PNG sequence or even Sprite sheet into Edge might be better, but unltimately, I will need to control long and complicated animations that have audio like this, so PNGs and Sprites aren't the best option (I assume)
Thanks SOOOO much for anyone who takes the time - I'm feeling pretty lost hereThanks for replying!
Would you mind clarifying one of your comments?
You said that I could control where McFlashy.html appears on stage, but that Animate does not interact with CreateJS exports (which in this instance would mean McFlashy.html)...if the two are incapable of interacting with eachother, how can Animate tell where to load McFlashy? (or are you simply saying that it can be done, but just not in Animate?)
Like I mentioned before, I'm an animator, not a web developer (so apologies for asking any "duh" questions! ). The issue I have with creating the animations natively in Edge is that my work involves complex, character-driven animation with detailed movement and a mix of traditional and symbol-based techniques. From what I've seen and played with, Edge Animate is not advanced nearly enough for anything other than simple animations (I'm sure users more adept with Edge's methods can create better animations, but not being frame-based, you loose a lot of the feel associated with frame-based animation). And since Edge (and everyother HTML5 app it seems) is unable to import audio, that even further hurts character animators ability to use the program. In short, I need to use Flash, Toonboom, etc to create these animations.
Thanks again for replying. I'll look into the Extend lesson you mentioned. -
I am making a site and I want each button to load an swf,
which would be the content of each page. When I click on each
button the swf will load, however, the old swf will not go away.
how does one do this. Thanks.It looks like you are adding the newly loaded swf, but not
removing the old one. So, maybe this change would help:
function about_CLICK(myevent:MouseEvent):void{
var loadMain:Loader = new Loader();
loadMain.load(new URLRequest("clip0.swf"));
// if there is a child on the display list remove it
if (getChildAt(0) !=null) removeChildAt(0);
stage.addChild(loadMain);
I should mention, however, that there is a bug in Flash 9
related to unloading swfs:
http://www.gskinner.com/blog/archives/2008/04/failure_to_unlo.html
However, I don't think this is affecting your visible
behavior. -
SQL Loader and control files with WHEN clauses
Hi All :)
Want to load data into 3 tables that are defined like so:
SQL> desc PARENT
Name NULL? Type
PKey.........NOT NULL....Number
Blah_One.................VARHCAR2(50)
Blah_Two.................VARHCAR2(50)
SQL> desc CHILD_ONE
Name NULL? Type
PKey.........NOT NULL....Number
FKey.....................Number -- this is used as a Foriegn key to PARNET
Bleep_One................VARHCAR2(50)
SQL> desc CHILD_TWO
Name NULL? Type
PKey.........NOT NULL....Number
FKey.....................Number -- this is used as a Foriegn key to PARNET
Bleep_Two................VARHCAR2(50)
I have a flat file that looks like this
PARENT|BLAHBLAH|Blahba|
ONE|BLEEP-IT|
ONE|BLEEP-BLOP|
TWO|TWOBLEEP|
TWO|OR NOT TO|
TWO|BLEEP
PARENT|AbbaDabaDooo|whaaaaa|
TWO|waka=waka|
.... so I worte a control file that looks like this ....
LOAD DATA
APPEND
INTO PARENT
WHEN (tableName='PARENT')
FIELDS TERMINATED BY '|' TRAILING NULLCOLS
tableName FILLER,
BLAH_ONE,
BLAH_TWO,
PKey "PARENT_SEQ.nextval"
INTO CHILD_ONE
WHEN (tableName='ONE')
FIELDS TERMINATED BY '|' TRAILING NULLCOLS
tableName FILLER,
BLEEP_ONE,
PKey "CHILD_ONE_SEQ.nextval",
FKey "PARENT_SEQ.currval"
INTO CHILD_TWO
WHEN (tableName='TWO')
FIELDS TERMINATED BY '|' TRAILING NULLCOLS
tableName FILLER,
BLEEP_TWO,
PKey "CHILD_TWO_SEQ.nextval",
FKey "PARENT_SEQ.currval"
where PARENT_SEQ, CHILD_ONE, and CHILD_TWO
are SEQUENCES.
The probelm I am having is that the Fkeys and PKeys
don't match up????
Am I mis-using SEQUENCES?
Should I be using a trigger?
I am very confused!
Thankshttp://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:6020061915147
answers this question perfectly
Maybe you are looking for
-
In ICal-How do I get the new event to span across multiple days.
If say, I have an event from Jan 1-3, I'd like to see it span across all days, like in Outlook. Not just the 1st day and the other 2 days blank. when I set the start date and the end date, in this case Jan 1-3 the event only shows up on Jan 1. I'd
-
This really confuses me
-
Multiple Pages docs merged into one?
Say someone was working on a large book project where each chapter is its own Pages document, to keep file sizes down. Assume further all chapters are done in Page Layout mode. After all the chapters have been proofread and corrected, is there a way
-
When is table BOM_CTO_ORDER_LINES populated
Soes anyone have any information regarding this Oracle table 'BOM_CTO_ORDER_LINES'. We are trying to determine when this table gets populated. We know that the Autocreate config process populates the table but when exactly and which API does it ?
-
ACS AAA and LOCAL AAA database...
Hello, We have implimented an 5520 device and configured it for ACS successfully. I want to also have a local database with a few accounts in the event our ACS server went down. I am having trouble finding documentation for the syntax I need to enter