Forum Statistics

  • Forum Members: 4,499
  • Total Threads: 3,656
  • Total Posts: 3
There are 1 users currently browsing forums.

Partner Sites

Reply
Old 06-14-2009, 06:11 AM   #1 (permalink)
 
Status: Newbie
Join Date: Jun 2009
Posts: 3

Rep Power: 12 diamondrajoor is on a distinguished road



Default how to know the current SWF loaded

Hi all,

I'd like to do if a certain SWF is loaded do some actions:

I upload many swf at the same location and the user can navigate them with Next and Back buttons.

one of the swf has some buttons.

I'd like to check if that swf is loaded then do some action.

how ?


page.addChild(swfLoader);
var ext:MovieClip;
var ch1_btns:Array;

swfLoader.contentLoaderInfo.addEventListener(Event .COMPLETE, onCompleteLoad);

function onCompleteLoad(e:Event):void
{
ext = MovieClip(swfLoader.content);

ch1_btns = new Array(ext.less1, ext.less2, ext.less3, ext.less4, ext.less5, ext.less6, ext.quiz);

for(var k:Number = 0; k < ch1_btns.length; k++)
{
ch1_btns[k].addEventListener(MouseEvent.CLICK, onChapter1Buttons);
}

}

in the code above, I have created an array of the buttons in the first swf, so the array will be created when any SWF will be loaded.

and the Error #1010: A term is undefined and has no properties. is out.

How I can stick to a certain SWF.

thanks in advance
__________________
call center software I who
diamondrajoor is offline Add Infraction for diamondrajoor   Reply With Quote
Old 06-22-2009, 10:32 AM   #2 (permalink)
 
Status: Newbie
Join Date: Jun 2009
Posts: 19

Rep Power: 13 gavner is on a distinguished road



Default

sorry by im just looking to find out the best place to learn action script
__________________
-------------------
Illustrators
gavner is offline Add Infraction for gavner   Reply With Quote
Old 11-17-2009, 06:16 AM   #3 (permalink)
 
nitishkunal's Avatar
 
Status: On a mission
Join Date: Sep 2009
Location: India
Posts: 40

Rep Power: 15 nitishkunal is on a distinguished road

Send a message via Yahoo to nitishkunal Send a message via Skype™ to nitishkunal


Default

you can look for tutorials over internet..........
nitishkunal is offline Add Infraction for nitishkunal   Reply With Quote


Reply

Bookmarks

Tags
None


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may post new threads
You may post replies
You may post attachments
You may edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Search Engine Optimization by vBSEO 3.5.0 RC2