TwelvestoneFlash

how safe is an swf?


Sign in

  • Waiting for Godot ( 730 k posts )
    Just conversation.
  • Thunder Dome ( 23 k posts )
    Photoshop Tennis and Collabs.
  • Photography ( 5.1 k posts )
    For all you shutterbugs, sh...
  • Flash ( 18 k posts )
    ActionScripting to tweens, ...
  • Front End ( 5.9 k posts )
    general front end design an...
  • Back End ( 9.7 k posts )
    serverside scripting, progr...
  • Projects and Theory ( 12 k posts )
    This forum is for discussio...
  • FAQ ( 269 posts )
    All those nagging questions...
  • Design ( 17 k posts )
    graphics & all aspects of g...
  • Purgatory ( 3.6 k posts )
    12stone Jail, feel free to ...
dave_boo
 
2008-08-28

is there a way (aside from decompiling and 'pirating' the swf) to load an external swf but have it begin playback at a specified frame other than the frame_1?

thanks

Storm
 
2008-08-28

load the .swf into a level (eg. 100)...

level100.gotoAndPlay(desiredFrameNumber);

dave_boo
 
2008-08-29

thx k

dave_boo
 
2008-10-03

forgot to add this way back when ...

didnt get storm's code to work properly - at least not for my situation

but i did get this to do what i needed ...

code on button in parent swf: on(release){ _root.whereToGo="frameLabel_X"; _container.loadMovie("external.swf"); }

code on frame 1 of child swf (add frameLabel_X to desired frame #): gotoAndPlay(_root.whereToGo);

Storm
 
2008-10-03

well, looking back my code should have been _level100 I got lazy and figured you knew what I meant.

Both will work, but your method loads the .swf INTO a MovieClip, mine loads it into its own layer. 6 of 1, half a dozen of......

but my question is this? How did you add code and a label to the child when you prefaced your first question with: > (aside from decompiling and 'pirating' the swf) meaning you didn't have the source.

dave_boo
 
2008-10-06

i didnt adequately explain that there were actually two separate issues i was up against ...

1) A security concern: the client wanted to know if somebody could bypass the validation key (an embedded mc) by loading the swf externally and starting playback on the initial content frame instead of frame 1

although i never got the supplied code to work with levels i did using targets - so i just used a timed looping validation key so that even if bypassed on frame 1 it would 'come back around'

2) A re-invent the wheel concern: a ridiculously long and convoluted swf that would be better served splitting into 4 user initiated 'steps' - and the AS was in Spanish - so rather than a) recreate the behavior from a visual analysis or b) learn spanish, i wanted to call the swf into a parent clip and control playback of the child clip using buttons in the parent

sorry - should have detailed more initially

and thanks again for the push - like i said didnt get it to work with levels but did with targets - so that could just be me being a dumbass - or something in the spanish AS that didnt translate k

Storm
 
2008-10-06

The Spanish hate levels. k

Glad you got it regardless. There's no one right way to do anything. If it works, it works.

Donde este dos levels?!!

Sorry, you must be a member to post to a conversation. Either log in or sign up to get involved.
TwelvestoneFlash

how safe is an swf?